diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 796fd876c..7832b641a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.18.x' ] + go: [ '1.19.x' ] steps: - name: Checkout uses: actions/checkout@v3.0.2 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6194a1634..d238f878d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.18.x' ] + go: [ '1.19.x' ] steps: - name: Check conventional commits in PR uses: Namchee/conventional-pr@v0.10.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3194335e0..2b27d84f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.18.x' ] + go: [ '1.19.x' ] steps: - name: Checkout uses: actions/checkout@v3.0.2 diff --git a/go.mod b/go.mod index a6643e84e..e81d1a657 100644 --- a/go.mod +++ b/go.mod @@ -4,9 +4,9 @@ go 1.18 require ( github.com/go-openapi/runtime v0.24.1 - github.com/go-openapi/strfmt v0.21.2 + github.com/go-openapi/strfmt v0.21.3 github.com/hashicorp/terraform-plugin-docs v0.10.1 - github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 + github.com/hashicorp/terraform-plugin-sdk/v2 v2.21.0 github.com/smutel/go-netbox v3.2.0+incompatible ) @@ -20,15 +20,14 @@ require ( github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/fatih/color v1.13.0 // indirect - github.com/go-openapi/analysis v0.21.3 // indirect - github.com/go-openapi/errors v0.20.2 // indirect + github.com/go-openapi/analysis v0.21.4 // indirect + github.com/go-openapi/errors v0.20.3 // indirect github.com/go-openapi/jsonpointer v0.19.5 // indirect github.com/go-openapi/jsonreference v0.20.0 // indirect - github.com/go-openapi/loads v0.21.1 // indirect - github.com/go-openapi/spec v0.20.6 // indirect - github.com/go-openapi/swag v0.21.1 // indirect + github.com/go-openapi/loads v0.21.2 // indirect + github.com/go-openapi/spec v0.20.7 // indirect + github.com/go-openapi/swag v0.22.3 // indirect github.com/go-openapi/validate v0.22.0 // indirect - github.com/go-stack/stack v1.8.1 // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/google/uuid v1.3.0 // indirect @@ -36,27 +35,27 @@ require ( github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-hclog v1.2.1 // indirect + github.com/hashicorp/go-hclog v1.2.2 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.4.4 // indirect + github.com/hashicorp/go-plugin v1.4.5 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.5.0 // indirect - github.com/hashicorp/hc-install v0.3.2 // indirect - github.com/hashicorp/hcl/v2 v2.12.0 // indirect + github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/hc-install v0.4.0 // indirect + github.com/hashicorp/hcl/v2 v2.13.0 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-exec v0.16.1 // indirect + github.com/hashicorp/terraform-exec v0.17.2 // indirect github.com/hashicorp/terraform-json v0.14.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.9.1 // indirect - github.com/hashicorp/terraform-plugin-log v0.4.1 // indirect - github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27 // indirect + github.com/hashicorp/terraform-plugin-go v0.14.0 // indirect + github.com/hashicorp/terraform-plugin-log v0.7.0 // indirect + github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c // indirect github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect - github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.3.2 // indirect github.com/imdario/mergo v0.3.13 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-colorable v0.1.12 // indirect - github.com/mattn/go-isatty v0.0.14 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.16 // indirect github.com/mitchellh/cli v1.1.4 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect @@ -73,15 +72,16 @@ require ( github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect github.com/vmihailenco/tagparser v0.1.2 // indirect - github.com/zclconf/go-cty v1.10.0 // indirect - go.mongodb.org/mongo-driver v1.9.1 // indirect - golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect - golang.org/x/net v0.0.0-20220607020251-c690dde0001d // indirect - golang.org/x/sys v0.0.0-20220608164250-635b8c9b7f68 // indirect + github.com/zclconf/go-cty v1.11.0 // indirect + go.mongodb.org/mongo-driver v1.10.1 // indirect + golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect + golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c // indirect + golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac // indirect - google.golang.org/grpc v1.47.0 // indirect - google.golang.org/protobuf v1.28.0 // indirect + google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc // indirect + google.golang.org/grpc v1.49.0 // indirect + google.golang.org/protobuf v1.28.1 // 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 2bcc535e3..c5f0a31ec 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,3 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= @@ -18,12 +17,9 @@ github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbt github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= -github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I= github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= @@ -38,15 +34,6 @@ github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 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= @@ -54,18 +41,11 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= -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= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= @@ -76,41 +56,44 @@ github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6 github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4= github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc= github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= -github.com/go-openapi/analysis v0.21.3 h1:CPEa+B2oYCkb+lIKB4xP6Ork8Gvh0GNg9dm/twI3+QA= -github.com/go-openapi/analysis v0.21.3/go.mod h1:2rtHDVV21tLgvJd+eXu+ExiOhfMO4+dNb7496llyke0= +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.2 h1:dxy7PGTqEh94zj2E3h1cUmQQWiM1+aeCROfAr02EmK8= github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc= +github.com/go-openapi/errors v0.20.3/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.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= -github.com/go-openapi/loads v0.21.1 h1:Wb3nVZpdEzDTcly8S4HMkey6fjARRzb7iEaySimlDW0= 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.24.1 h1:Sml5cgQKGYQHF+M7yYSHaH1eOjvTykrddTE/KtQVjqo= github.com/go-openapi/runtime v0.24.1/go.mod h1:AKurw9fNre+h3ELZfk6ILsfvPN+bvvlaU/M9q/r9hpk= github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= -github.com/go-openapi/spec v0.20.6 h1:ich1RQ3WDbfoeTqTAb+5EIxNmpKVJZWBNah9RAT0jIQ= github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI= +github.com/go-openapi/spec v0.20.7/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.2 h1:5NDNgadiX1Vhemth/TH4gCGopWSTdDjxl60H3B7f+os= github.com/go-openapi/strfmt v0.21.2/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= +github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o= +github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.21.1 h1:wm0rhTb5z7qpJRHBdPOMuY4QjVUMbF6/kwoYeRAOrKU= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= +github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-openapi/validate v0.21.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-openapi/validate v0.22.0 h1:b0QecH6VslW/TxtpKgzpO1SNG7GU2FsaqKdP1E2T50Y= github.com/go-openapi/validate v0.22.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw= github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= -github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0= github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3/go.mod h1:3STtPUQYuzV0gBVOY3vy6CfMm/ljR4pABfrTeHNLHUY= github.com/gobuffalo/depgen v0.1.0/go.mod h1:+ifsuy7fhi15RWncXQQKjWS9JPkdah5sZvtHc2RXGlg= @@ -135,41 +118,24 @@ github.com/gobuffalo/packd v0.1.0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWe github.com/gobuffalo/packr/v2 v2.0.9/go.mod h1:emmyGweYTm6Kdper+iywB6YK5YzuKchGtJQZ0Odn4pQ= github.com/gobuffalo/packr/v2 v2.2.0/go.mod h1:CaAwI0GPIAv+5wKLtv8Afwl+Cm78K/I/VCm/3ptBN+0= github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754/go.mod h1:HhnNqWY95UYwwW3uSASeV7vtgYkT2t16hJgV3AEPUpw= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -181,44 +147,44 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= -github.com/hashicorp/go-hclog v1.2.1 h1:YQsLlGDJgwhXFpucSPyVbCBviQtjlHv3jLTlp8YmtEw= -github.com/hashicorp/go-hclog v1.2.1/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.2.2 h1:ihRI7YFwcZdiSD7SIenIhHfQH3OuDvWerAUBZbeQS3M= +github.com/hashicorp/go-hclog v1.2.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.4.4 h1:NVdrSdFRt3SkZtNckJ6tog7gbpRrcbOjQi/rgF7JYWQ= -github.com/hashicorp/go-plugin v1.4.4/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= +github.com/hashicorp/go-plugin v1.4.5 h1:oTE/oQR4eghggRg8VY7PAz3dr++VwDNBGCcOfIvHpBo= +github.com/hashicorp/go-plugin v1.4.5/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.4.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.5.0 h1:O293SZ2Eg+AAYijkVK3jR786Am1bhDEh2GHT0tIVE5E= github.com/hashicorp/go-version v1.5.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/hc-install v0.3.2 h1:oiQdJZvXmkNcRcEOOfM5n+VTsvNjWQeOjfAoO6dKSH8= -github.com/hashicorp/hc-install v0.3.2/go.mod h1:xMG6Tr8Fw1WFjlxH0A9v61cW15pFwgEGqEz0V4jisHs= -github.com/hashicorp/hcl/v2 v2.12.0 h1:PsYxySWpMD4KPaoJLnsHwtK5Qptvj/4Q6s0t4sUxZf4= -github.com/hashicorp/hcl/v2 v2.12.0/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hc-install v0.4.0 h1:cZkRFr1WVa0Ty6x5fTvL1TuO1flul231rWkGH92oYYk= +github.com/hashicorp/hc-install v0.4.0/go.mod h1:5d155H8EC5ewegao9A4PUTMNPZaq+TbOzkJJZ4vrXeI= +github.com/hashicorp/hcl/v2 v2.13.0 h1:0Apadu1w6M11dyGFxWnmhhcMjkbAiKCv7G1r/2QgCNc= +github.com/hashicorp/hcl/v2 v2.13.0/go.mod h1:e4z5nxYlWNPdDSNYX+ph14EvWYMFm3eP0zIUqPc2jr0= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/terraform-exec v0.16.1 h1:NAwZFJW2L2SaCBVZoVaH8LPImLOGbPLkSHy0IYbs2uE= -github.com/hashicorp/terraform-exec v0.16.1/go.mod h1:aj0lVshy8l+MHhFNoijNHtqTJQI3Xlowv5EOsEaGO7M= +github.com/hashicorp/terraform-exec v0.17.2 h1:EU7i3Fh7vDUI9nNRdMATCEfnm9axzTnad8zszYZ73Go= +github.com/hashicorp/terraform-exec v0.17.2/go.mod h1:tuIbsL2l4MlwwIZx9HPM+LOV9vVyEfBYu2GsO1uH3/8= github.com/hashicorp/terraform-json v0.14.0 h1:sh9iZ1Y8IFJLx+xQiKHGud6/TSUCM0N8e17dKDpqV7s= github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM= github.com/hashicorp/terraform-plugin-docs v0.10.1 h1:jiVYfhJ/hVXDAQN2XjLK3WH1A/YHgFCrFXPpxibvmjc= github.com/hashicorp/terraform-plugin-docs v0.10.1/go.mod h1:47ZcsxMUJxAjGzHf+dZ9q78oYf4PeJxO1N+i5XDtXBc= -github.com/hashicorp/terraform-plugin-go v0.9.1 h1:vXdHaQ6aqL+OF076nMSBV+JKPdmXlzG5mzVDD04WyPs= -github.com/hashicorp/terraform-plugin-go v0.9.1/go.mod h1:ItjVSlQs70otlzcCwlPcU8FRXLdO973oYFRZwAOxy8M= -github.com/hashicorp/terraform-plugin-log v0.4.1 h1:xpbmVhvuU3mgHzLetOmx9pkOL2rmgpu302XxddON6eo= -github.com/hashicorp/terraform-plugin-log v0.4.1/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 h1:Qr5fWNg1SPSfCRMtou67Y6Kcy9UnMYRNlIJTKRuUvXU= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0/go.mod h1:b+LFg8WpYgFgvEBP/6Htk5H9/pJp1V1E8NJAekfH2Ws= -github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27 h1:IOawOnLgKntezAV3oJs17rkhXha+h0EF5OMjb2KFlYc= -github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI= +github.com/hashicorp/terraform-plugin-go v0.14.0 h1:ttnSlS8bz3ZPYbMb84DpcPhY4F5DsQtcAS7cHo8uvP4= +github.com/hashicorp/terraform-plugin-go v0.14.0/go.mod h1:2nNCBeRLaenyQEi78xrGrs9hMbulveqG/zDMQSvVJTE= +github.com/hashicorp/terraform-plugin-log v0.7.0 h1:SDxJUyT8TwN4l5b5/VkiTIaQgY6R+Y2BQ0sRZftGKQs= +github.com/hashicorp/terraform-plugin-log v0.7.0/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.21.0 h1:eIJjFlI4k6BMso6Wq/bq56U0RukXc4JbwJJ8Oze2/tg= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.21.0/go.mod h1:mYPs/uchNcBq7AclQv9QUtSf9iNcfp1Ag21jqTlDf2M= +github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c h1:D8aRO6+mTqHfLsK/BC3j5OAoogv1WLRWzY1AaTo3rBg= +github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= -github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I= -github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -260,12 +226,14 @@ github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kN github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mitchellh/cli v1.1.4 h1:qj8czE26AU4PbiaPXK5uVmMSM+V5BYsFBiM9HhGRLUA= github.com/mitchellh/cli v1.1.4/go.mod h1:vTLESy5mRhKOs9KDp0/RATawxP1UqBmdrpVRMnpcvKQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= @@ -275,7 +243,6 @@ github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -304,8 +271,6 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 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= @@ -313,7 +278,6 @@ github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBO github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -322,26 +286,26 @@ github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFR 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= -github.com/smutel/go-netbox v3.1.2+incompatible h1:Ku7N3ZbaoUMuhSqp8jxsBy3uiNmRdvJUkeWUjDKE0PA= -github.com/smutel/go-netbox v3.1.2+incompatible/go.mod h1:UlNOimilX5qQkyVvFaDgajexiCRjVqzh1i0r9kQfr+M= github.com/smutel/go-netbox v3.2.0+incompatible h1:/O/Rg6qq+/memVmXe1yG2uTvqyavMPmFVRGtPiozHFo= github.com/smutel/go-netbox v3.2.0+incompatible/go.mod h1:UlNOimilX5qQkyVvFaDgajexiCRjVqzh1i0r9kQfr+M= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 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.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= 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/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -356,77 +320,65 @@ github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= 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/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= +github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= -github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.10.0 h1:mp9ZXQeIcN8kAwuqorjH+Q+njbJKjLrvB2yIh4q7U+0= github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= +github.com/zclconf/go-cty v1.11.0 h1:726SxLdi2SDnjY+BStqB9J1hNp4+2WlzyXLuimibIe0= +github.com/zclconf/go-cty v1.11.0/go.mod h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= 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.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= -go.mongodb.org/mongo-driver v1.9.1 h1:m078y9v7sBItkt1aaoe2YlvWEXcD263e1a4E1fBrJ1c= -go.mongodb.org/mongo-driver v1.9.1/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= +go.mongodb.org/mongo-driver v1.10.1 h1:NujsPveKwHaWuKUer/ceo9DzEe7HIj1SlJ6uvXZG0S4= +go.mongodb.org/mongo-driver v1.10.1/go.mod h1:z4XpeoU6w+9Vht+jAFyLgVrD+jGSQQe0+CBWFHNiHt8= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/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-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= -golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d h1:sK3txAijHtOK88l68nt020reeT1ZdKLIYetKl95FzVY= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/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-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-20190404232315-eb5bcb51f2a3/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-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -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-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-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 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-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220607020251-c690dde0001d h1:4SFsTMi4UahlKoloni7L4eYzhFRifURQLw+yv0QDCx8= -golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c h1:JVAXQ10yGGVbSyoer5VILysz6YKjdNT2bsvlayjqhes= +golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/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-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= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 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-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -434,23 +386,20 @@ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/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-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/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-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220608164250-635b8c9b7f68 h1:z8Hj/bl9cOV2grsOpEaQFUaly0JWN3i97mo3jXKJNp0= -golang.org/x/sys v0.0.0-20220608164250-635b8c9b7f68/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64 h1:UiNENfZ8gDvpiWw7IpOMQ27spWmThO1RwwdQVbJahJM= +golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -462,49 +411,24 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/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-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-20190329151228-23e29df326fe/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190416151739-9c9e1878f421/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190420181800-aa740d480789/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -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/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac h1:ByeiW1F67iV9o8ipGskA+HWzSkMbRJuKLlwCdPxzn7A= -google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.47.0 h1:9n77onPX5F3qfFCqjy9dhn8PbNQsIKeVU04J9G7umt8= -google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc h1:Nf+EdcTLHR8qDNN/KfkQL0u0ssxt9OhbaWCl5C0ucEI= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/grpc v1.49.0 h1:WTLtQzmQori5FUH25Pq4WT22oCsv8USpQ+F6rqtsmxw= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -515,7 +439,6 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= 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= @@ -528,5 +451,3 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0/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-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/vendor/github.com/go-openapi/analysis/.golangci.yml b/vendor/github.com/go-openapi/analysis/.golangci.yml index 8cad29879..e24a6c14e 100644 --- a/vendor/github.com/go-openapi/analysis/.golangci.yml +++ b/vendor/github.com/go-openapi/analysis/.golangci.yml @@ -51,3 +51,6 @@ linters: - forbidigo - cyclop - varnamelen + - exhaustruct + - nonamedreturns + - nosnakecase diff --git a/vendor/github.com/go-openapi/errors/.golangci.yml b/vendor/github.com/go-openapi/errors/.golangci.yml index 449a43c2b..4e1fc0c7d 100644 --- a/vendor/github.com/go-openapi/errors/.golangci.yml +++ b/vendor/github.com/go-openapi/errors/.golangci.yml @@ -44,3 +44,5 @@ linters: - cyclop - errname - varnamelen + - exhaustruct + - maintidx diff --git a/vendor/github.com/go-openapi/errors/api.go b/vendor/github.com/go-openapi/errors/api.go index 854d6eec1..77f1f92c5 100644 --- a/vendor/github.com/go-openapi/errors/api.go +++ b/vendor/github.com/go-openapi/errors/api.go @@ -99,6 +99,7 @@ func (m MethodNotAllowedError) MarshalJSON() ([]byte, error) { } func errorAsJSON(err Error) []byte { + //nolint:errchkjson b, _ := json.Marshal(struct { Code int32 `json:"code"` Message string `json:"message"` @@ -146,7 +147,7 @@ func ServeError(rw http.ResponseWriter, r *http.Request, err error) { ServeError(rw, r, nil) } case *MethodNotAllowedError: - rw.Header().Add("Allow", strings.Join(err.(*MethodNotAllowedError).Allowed, ",")) + rw.Header().Add("Allow", strings.Join(e.Allowed, ",")) rw.WriteHeader(asHTTPCode(int(e.Code()))) if r == nil || r.Method != http.MethodHead { _, _ = rw.Write(errorAsJSON(e)) diff --git a/vendor/github.com/go-openapi/errors/doc.go b/vendor/github.com/go-openapi/errors/doc.go index 963d42740..af01190ce 100644 --- a/vendor/github.com/go-openapi/errors/doc.go +++ b/vendor/github.com/go-openapi/errors/doc.go @@ -13,7 +13,6 @@ // limitations under the License. /* - Package errors provides an Error interface and several concrete types implementing this interface to manage API errors and JSON-schema validation errors. @@ -23,6 +22,5 @@ it defines. It is used throughout the various go-openapi toolkit libraries (https://github.com/go-openapi). - */ package errors diff --git a/vendor/github.com/go-openapi/errors/middleware.go b/vendor/github.com/go-openapi/errors/middleware.go index c26ad484e..963472d1f 100644 --- a/vendor/github.com/go-openapi/errors/middleware.go +++ b/vendor/github.com/go-openapi/errors/middleware.go @@ -28,7 +28,6 @@ type APIVerificationFailed struct { MissingRegistration []string `json:"missingRegistration,omitempty"` } -// func (v *APIVerificationFailed) Error() string { buf := bytes.NewBuffer(nil) diff --git a/vendor/github.com/go-openapi/spec/.travis.yml b/vendor/github.com/go-openapi/spec/.travis.yml deleted file mode 100644 index 2281a07b0..000000000 --- a/vendor/github.com/go-openapi/spec/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -after_success: -- bash <(curl -s https://codecov.io/bash) -go: -- 1.16.x -- 1.x -arch: - - amd64 -jobs: - include: - # only run fast tests on ppc64le - - go: 1.x - arch: ppc64le - script: - - gotestsum -f short-verbose -- ./... - - # include linting job, but only for latest go version and amd64 arch - - go: 1.x - arch: amd64 - install: - go get github.com/golangci/golangci-lint/cmd/golangci-lint - script: - - golangci-lint run --new-from-rev master - -install: -- GO111MODULE=off go get -u gotest.tools/gotestsum -language: go -notifications: - slack: - secure: QUWvCkBBK09GF7YtEvHHVt70JOkdlNBG0nIKu/5qc4/nW5HP8I2w0SEf/XR2je0eED1Qe3L/AfMCWwrEj+IUZc3l4v+ju8X8R3Lomhme0Eb0jd1MTMCuPcBT47YCj0M7RON7vXtbFfm1hFJ/jLe5+9FXz0hpXsR24PJc5ZIi/ogNwkaPqG4BmndzecpSh0vc2FJPZUD9LT0I09REY/vXR0oQAalLkW0asGD5taHZTUZq/kBpsNxaAFrLM23i4mUcf33M5fjLpvx5LRICrX/57XpBrDh2TooBU6Qj3CgoY0uPRYUmSNxbVx1czNzl2JtEpb5yjoxfVPQeg0BvQM00G8LJINISR+ohrjhkZmAqchDupAX+yFrxTtORa78CtnIL6z/aTNlgwwVD8kvL/1pFA/JWYmKDmz93mV/+6wubGzNSQCstzjkFA4/iZEKewKUoRIAi/fxyscP6L/rCpmY/4llZZvrnyTqVbt6URWpopUpH4rwYqreXAtJxJsfBJIeSmUIiDIOMGkCTvyTEW3fWGmGoqWtSHLoaWDyAIGb7azb+KvfpWtEcoPFWfSWU+LGee0A/YsUhBl7ADB9A0CJEuR8q4BPpKpfLwPKSiKSAXL7zDkyjExyhtgqbSl2jS+rKIHOZNL8JkCcTP2MKMVd563C5rC5FMKqu3S9m2b6380E= -script: -- gotestsum -f short-verbose -- -race -coverprofile=coverage.txt -covermode=atomic ./... diff --git a/vendor/github.com/go-openapi/spec/normalizer.go b/vendor/github.com/go-openapi/spec/normalizer.go index d6c483971..e8b600994 100644 --- a/vendor/github.com/go-openapi/spec/normalizer.go +++ b/vendor/github.com/go-openapi/spec/normalizer.go @@ -40,7 +40,7 @@ const fileScheme = "file" // // The base path argument is assumed to be canonicalized (e.g. using normalizeBase()). func normalizeURI(refPath, base string) string { - refURL, err := url.Parse(refPath) + refURL, err := parseURL(refPath) if err != nil { specLogger.Printf("warning: invalid URI in $ref %q: %v", refPath, err) refURL, refPath = repairURI(refPath) @@ -58,7 +58,7 @@ func normalizeURI(refPath, base string) string { return refURL.String() } - baseURL, _ := url.Parse(base) + baseURL, _ := parseURL(base) if path.IsAbs(refURL.Path) { baseURL.Path = refURL.Path } else if refURL.Path != "" { @@ -84,7 +84,6 @@ func normalizeURI(refPath, base string) string { // There is a special case for schemas that are anchored with an "id": // in that case, the rebasing is performed // against the id only if this is an anchor for the initial root document. // All other intermediate "id"'s found along the way are ignored for the purpose of rebasing. -// func denormalizeRef(ref *Ref, originalRelativeBase, id string) Ref { debugLog("denormalizeRef called:\n$ref: %q\noriginal: %s\nroot ID:%s", ref.String(), originalRelativeBase, id) @@ -94,7 +93,7 @@ func denormalizeRef(ref *Ref, originalRelativeBase, id string) Ref { } if id != "" { - idBaseURL, err := url.Parse(id) + idBaseURL, err := parseURL(id) if err == nil { // if the schema id is not usable as a URI, ignore it if ref, ok := rebase(ref, idBaseURL, true); ok { // rebase, but keep references to root unchaged (do not want $ref: "") // $ref relative to the ID of the schema in the root document @@ -103,7 +102,7 @@ func denormalizeRef(ref *Ref, originalRelativeBase, id string) Ref { } } - originalRelativeBaseURL, _ := url.Parse(originalRelativeBase) + originalRelativeBaseURL, _ := parseURL(originalRelativeBase) r, _ := rebase(ref, originalRelativeBaseURL, false) @@ -168,7 +167,7 @@ func normalizeRef(ref *Ref, relativeBase string) *Ref { // // See also: https://en.wikipedia.org/wiki/File_URI_scheme func normalizeBase(in string) string { - u, err := url.Parse(in) + u, err := parseURL(in) if err != nil { specLogger.Printf("warning: invalid URI in RelativeBase %q: %v", in, err) u, in = repairURI(in) diff --git a/vendor/github.com/go-openapi/spec/normalizer_nonwindows.go b/vendor/github.com/go-openapi/spec/normalizer_nonwindows.go index c8a064534..2df072315 100644 --- a/vendor/github.com/go-openapi/spec/normalizer_nonwindows.go +++ b/vendor/github.com/go-openapi/spec/normalizer_nonwindows.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows // Copyright 2015 go-swagger maintainers @@ -34,7 +35,7 @@ func absPath(in string) string { } func repairURI(in string) (*url.URL, string) { - u, _ := url.Parse("") + u, _ := parseURL("") debugLog("repaired URI: original: %q, repaired: %q", in, "") return u, "" } diff --git a/vendor/github.com/go-openapi/spec/normalizer_windows.go b/vendor/github.com/go-openapi/spec/normalizer_windows.go index fe2d1ecd4..a66c532db 100644 --- a/vendor/github.com/go-openapi/spec/normalizer_windows.go +++ b/vendor/github.com/go-openapi/spec/normalizer_windows.go @@ -60,13 +60,13 @@ func repairURI(in string) (*url.URL, string) { const prefix = fileScheme + "://" if !strings.HasPrefix(in, prefix) { // giving up: resolve to empty path - u, _ := url.Parse("") + u, _ := parseURL("") return u, "" } // attempt the repair, stripping the scheme should be sufficient - u, _ := url.Parse(strings.TrimPrefix(in, prefix)) + u, _ := parseURL(strings.TrimPrefix(in, prefix)) debugLog("repaired URI: original: %q, repaired: %q", in, u.String()) return u, u.String() diff --git a/vendor/github.com/go-openapi/spec/schema.go b/vendor/github.com/go-openapi/spec/schema.go index a8d0f737a..4e9be8576 100644 --- a/vendor/github.com/go-openapi/spec/schema.go +++ b/vendor/github.com/go-openapi/spec/schema.go @@ -17,7 +17,6 @@ package spec import ( "encoding/json" "fmt" - "net/url" "strings" "github.com/go-openapi/jsonpointer" @@ -145,7 +144,7 @@ func (r *SchemaURL) fromMap(v map[string]interface{}) error { } if vv, ok := v["$schema"]; ok { if str, ok := vv.(string); ok { - u, err := url.Parse(str) + u, err := parseURL(str) if err != nil { return err } diff --git a/vendor/github.com/go-openapi/spec/url_go18.go b/vendor/github.com/go-openapi/spec/url_go18.go new file mode 100644 index 000000000..60b785153 --- /dev/null +++ b/vendor/github.com/go-openapi/spec/url_go18.go @@ -0,0 +1,8 @@ +//go:build !go1.19 +// +build !go1.19 + +package spec + +import "net/url" + +var parseURL = url.Parse diff --git a/vendor/github.com/go-openapi/spec/url_go19.go b/vendor/github.com/go-openapi/spec/url_go19.go new file mode 100644 index 000000000..392e3e639 --- /dev/null +++ b/vendor/github.com/go-openapi/spec/url_go19.go @@ -0,0 +1,14 @@ +//go:build go1.19 +// +build go1.19 + +package spec + +import "net/url" + +func parseURL(s string) (*url.URL, error) { + u, err := url.Parse(s) + if err == nil { + u.OmitHost = false + } + return u, err +} diff --git a/vendor/github.com/go-openapi/strfmt/.golangci.yml b/vendor/github.com/go-openapi/strfmt/.golangci.yml index da12d5e3b..d36b25665 100644 --- a/vendor/github.com/go-openapi/strfmt/.golangci.yml +++ b/vendor/github.com/go-openapi/strfmt/.golangci.yml @@ -37,6 +37,7 @@ linters: - paralleltest - varnamelen - ireturn + - exhaustruct #- thelper issues: diff --git a/vendor/github.com/go-openapi/swag/.golangci.yml b/vendor/github.com/go-openapi/swag/.golangci.yml index 2a4a71f3a..bf503e400 100644 --- a/vendor/github.com/go-openapi/swag/.golangci.yml +++ b/vendor/github.com/go-openapi/swag/.golangci.yml @@ -48,3 +48,7 @@ linters: - goimports - tenv - golint + - exhaustruct + - nilnil + - nonamedreturns + - nosnakecase diff --git a/vendor/github.com/go-openapi/swag/doc.go b/vendor/github.com/go-openapi/swag/doc.go index 8d2c8c501..55094cb74 100644 --- a/vendor/github.com/go-openapi/swag/doc.go +++ b/vendor/github.com/go-openapi/swag/doc.go @@ -17,16 +17,15 @@ Package swag contains a bunch of helper functions for go-openapi and go-swagger You may also use it standalone for your projects. - * convert between value and pointers for builtin types - * convert from string to builtin types (wraps strconv) - * fast json concatenation - * search in path - * load from file or http - * name mangling - + - convert between value and pointers for builtin types + - convert from string to builtin types (wraps strconv) + - fast json concatenation + - search in path + - load from file or http + - name mangling This repo has only few dependencies outside of the standard library: - * YAML utilities depend on gopkg.in/yaml.v2 + - YAML utilities depend on gopkg.in/yaml.v2 */ package swag diff --git a/vendor/github.com/go-openapi/swag/loading.go b/vendor/github.com/go-openapi/swag/loading.go index 9a6040972..00038c377 100644 --- a/vendor/github.com/go-openapi/swag/loading.go +++ b/vendor/github.com/go-openapi/swag/loading.go @@ -16,10 +16,11 @@ package swag import ( "fmt" - "io/ioutil" + "io" "log" "net/http" "net/url" + "os" "path/filepath" "runtime" "strings" @@ -40,13 +41,13 @@ var LoadHTTPCustomHeaders = map[string]string{} // LoadFromFileOrHTTP loads the bytes from a file or a remote http server based on the path passed in func LoadFromFileOrHTTP(path string) ([]byte, error) { - return LoadStrategy(path, ioutil.ReadFile, loadHTTPBytes(LoadHTTPTimeout))(path) + return LoadStrategy(path, os.ReadFile, loadHTTPBytes(LoadHTTPTimeout))(path) } // LoadFromFileOrHTTPWithTimeout loads the bytes from a file or a remote http server based on the path passed in // timeout arg allows for per request overriding of the request timeout func LoadFromFileOrHTTPWithTimeout(path string, timeout time.Duration) ([]byte, error) { - return LoadStrategy(path, ioutil.ReadFile, loadHTTPBytes(timeout))(path) + return LoadStrategy(path, os.ReadFile, loadHTTPBytes(timeout))(path) } // LoadStrategy returns a loader function for a given path or uri @@ -86,7 +87,7 @@ func LoadStrategy(path string, local, remote func(string) ([]byte, error)) func( func loadHTTPBytes(timeout time.Duration) func(path string) ([]byte, error) { return func(path string) ([]byte, error) { client := &http.Client{Timeout: timeout} - req, err := http.NewRequest("GET", path, nil) // nolint: noctx + req, err := http.NewRequest(http.MethodGet, path, nil) //nolint:noctx if err != nil { return nil, err } @@ -115,6 +116,6 @@ func loadHTTPBytes(timeout time.Duration) func(path string) ([]byte, error) { return nil, fmt.Errorf("could not access document at %q [%s] ", path, resp.Status) } - return ioutil.ReadAll(resp.Body) + return io.ReadAll(resp.Body) } } diff --git a/vendor/github.com/go-openapi/swag/util.go b/vendor/github.com/go-openapi/swag/util.go index 193702f2c..f78ab684a 100644 --- a/vendor/github.com/go-openapi/swag/util.go +++ b/vendor/github.com/go-openapi/swag/util.go @@ -99,10 +99,11 @@ const ( ) // JoinByFormat joins a string array by a known format (e.g. swagger's collectionFormat attribute): -// ssv: space separated value -// tsv: tab separated value -// pipes: pipe (|) separated value -// csv: comma separated value (default) +// +// ssv: space separated value +// tsv: tab separated value +// pipes: pipe (|) separated value +// csv: comma separated value (default) func JoinByFormat(data []string, format string) []string { if len(data) == 0 { return data @@ -124,11 +125,11 @@ func JoinByFormat(data []string, format string) []string { } // SplitByFormat splits a string by a known format: -// ssv: space separated value -// tsv: tab separated value -// pipes: pipe (|) separated value -// csv: comma separated value (default) // +// ssv: space separated value +// tsv: tab separated value +// pipes: pipe (|) separated value +// csv: comma separated value (default) func SplitByFormat(data, format string) []string { if data == "" { return nil diff --git a/vendor/github.com/go-openapi/swag/yaml.go b/vendor/github.com/go-openapi/swag/yaml.go index ec9691440..f09ee609f 100644 --- a/vendor/github.com/go-openapi/swag/yaml.go +++ b/vendor/github.com/go-openapi/swag/yaml.go @@ -22,7 +22,7 @@ import ( "github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jwriter" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" ) // YAMLMatcher matches yaml @@ -43,16 +43,126 @@ func YAMLToJSON(data interface{}) (json.RawMessage, error) { // BytesToYAMLDoc converts a byte slice into a YAML document func BytesToYAMLDoc(data []byte) (interface{}, error) { - var canary map[interface{}]interface{} // validate this is an object and not a different type - if err := yaml.Unmarshal(data, &canary); err != nil { + var document yaml.Node // preserve order that is present in the document + if err := yaml.Unmarshal(data, &document); err != nil { return nil, err } + if document.Kind != yaml.DocumentNode || len(document.Content) != 1 || document.Content[0].Kind != yaml.MappingNode { + return nil, fmt.Errorf("only YAML documents that are objects are supported") + } + return &document, nil +} - var document yaml.MapSlice // preserve order that is present in the document - if err := yaml.Unmarshal(data, &document); err != nil { - return nil, err +func yamlNode(root *yaml.Node) (interface{}, error) { + switch root.Kind { + case yaml.DocumentNode: + return yamlDocument(root) + case yaml.SequenceNode: + return yamlSequence(root) + case yaml.MappingNode: + return yamlMapping(root) + case yaml.ScalarNode: + return yamlScalar(root) + case yaml.AliasNode: + return yamlNode(root.Alias) + default: + return nil, fmt.Errorf("unsupported YAML node type: %v", root.Kind) + } +} + +func yamlDocument(node *yaml.Node) (interface{}, error) { + if len(node.Content) != 1 { + return nil, fmt.Errorf("unexpected YAML Document node content length: %d", len(node.Content)) + } + return yamlNode(node.Content[0]) +} + +func yamlMapping(node *yaml.Node) (interface{}, error) { + m := make(JSONMapSlice, len(node.Content)/2) + + var j int + for i := 0; i < len(node.Content); i += 2 { + var nmi JSONMapItem + k, err := yamlStringScalarC(node.Content[i]) + if err != nil { + return nil, fmt.Errorf("unable to decode YAML map key: %w", err) + } + nmi.Key = k + v, err := yamlNode(node.Content[i+1]) + if err != nil { + return nil, fmt.Errorf("unable to process YAML map value for key %q: %w", k, err) + } + nmi.Value = v + m[j] = nmi + j++ + } + return m, nil +} + +func yamlSequence(node *yaml.Node) (interface{}, error) { + s := make([]interface{}, 0) + + for i := 0; i < len(node.Content); i++ { + + v, err := yamlNode(node.Content[i]) + if err != nil { + return nil, fmt.Errorf("unable to decode YAML sequence value: %w", err) + } + s = append(s, v) + } + return s, nil +} + +const ( // See https://yaml.org/type/ + yamlStringScalar = "tag:yaml.org,2002:str" + yamlIntScalar = "tag:yaml.org,2002:int" + yamlBoolScalar = "tag:yaml.org,2002:bool" + yamlFloatScalar = "tag:yaml.org,2002:float" + yamlTimestamp = "tag:yaml.org,2002:timestamp" + yamlNull = "tag:yaml.org,2002:null" +) + +func yamlScalar(node *yaml.Node) (interface{}, error) { + switch node.LongTag() { + case yamlStringScalar: + return node.Value, nil + case yamlBoolScalar: + b, err := strconv.ParseBool(node.Value) + if err != nil { + return nil, fmt.Errorf("unable to process scalar node. Got %q. Expecting bool content: %w", node.Value, err) + } + return b, nil + case yamlIntScalar: + i, err := strconv.ParseInt(node.Value, 10, 64) + if err != nil { + return nil, fmt.Errorf("unable to process scalar node. Got %q. Expecting integer content: %w", node.Value, err) + } + return i, nil + case yamlFloatScalar: + f, err := strconv.ParseFloat(node.Value, 64) + if err != nil { + return nil, fmt.Errorf("unable to process scalar node. Got %q. Expecting float content: %w", node.Value, err) + } + return f, nil + case yamlTimestamp: + return node.Value, nil + case yamlNull: + return nil, nil + default: + return nil, fmt.Errorf("YAML tag %q is not supported", node.LongTag()) + } +} + +func yamlStringScalarC(node *yaml.Node) (string, error) { + if node.Kind != yaml.ScalarNode { + return "", fmt.Errorf("expecting a string scalar but got %q", node.Kind) + } + switch node.LongTag() { + case yamlStringScalar, yamlIntScalar, yamlFloatScalar: + return node.Value, nil + default: + return "", fmt.Errorf("YAML tag %q is not supported as map key", node.LongTag()) } - return document, nil } // JSONMapSlice represent a JSON object, with the order of keys maintained @@ -105,6 +215,113 @@ func (s *JSONMapSlice) UnmarshalEasyJSON(in *jlexer.Lexer) { *s = result } +func (s JSONMapSlice) MarshalYAML() (interface{}, error) { + var n yaml.Node + n.Kind = yaml.DocumentNode + var nodes []*yaml.Node + for _, item := range s { + nn, err := json2yaml(item.Value) + if err != nil { + return nil, err + } + ns := []*yaml.Node{ + { + Kind: yaml.ScalarNode, + Tag: yamlStringScalar, + Value: item.Key, + }, + nn, + } + nodes = append(nodes, ns...) + } + + n.Content = []*yaml.Node{ + { + Kind: yaml.MappingNode, + Content: nodes, + }, + } + + return yaml.Marshal(&n) +} + +func json2yaml(item interface{}) (*yaml.Node, error) { + switch val := item.(type) { + case JSONMapSlice: + var n yaml.Node + n.Kind = yaml.MappingNode + for i := range val { + childNode, err := json2yaml(&val[i].Value) + if err != nil { + return nil, err + } + n.Content = append(n.Content, &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlStringScalar, + Value: val[i].Key, + }, childNode) + } + return &n, nil + case map[string]interface{}: + var n yaml.Node + n.Kind = yaml.MappingNode + for k, v := range val { + childNode, err := json2yaml(v) + if err != nil { + return nil, err + } + n.Content = append(n.Content, &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlStringScalar, + Value: k, + }, childNode) + } + return &n, nil + case []interface{}: + var n yaml.Node + n.Kind = yaml.SequenceNode + for i := range val { + childNode, err := json2yaml(val[i]) + if err != nil { + return nil, err + } + n.Content = append(n.Content, childNode) + } + return &n, nil + case string: + return &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlStringScalar, + Value: val, + }, nil + case float64: + return &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlFloatScalar, + Value: strconv.FormatFloat(val, 'f', -1, 64), + }, nil + case int64: + return &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlIntScalar, + Value: strconv.FormatInt(val, 10), + }, nil + case uint64: + return &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlIntScalar, + Value: strconv.FormatUint(val, 10), + }, nil + case bool: + return &yaml.Node{ + Kind: yaml.ScalarNode, + Tag: yamlBoolScalar, + Value: strconv.FormatBool(val), + }, nil + } + return nil, nil +} + // JSONMapItem represents the value of a key in a JSON object held by JSONMapSlice type JSONMapItem struct { Key string @@ -173,23 +390,10 @@ func transformData(input interface{}) (out interface{}, err error) { } switch in := input.(type) { - case yaml.MapSlice: - - o := make(JSONMapSlice, len(in)) - for i, mi := range in { - var nmi JSONMapItem - if nmi.Key, err = format(mi.Key); err != nil { - return nil, err - } - - v, ert := transformData(mi.Value) - if ert != nil { - return nil, ert - } - nmi.Value = v - o[i] = nmi - } - return o, nil + case yaml.Node: + return yamlNode(&in) + case *yaml.Node: + return yamlNode(in) case map[interface{}]interface{}: o := make(JSONMapSlice, 0, len(in)) for ke, va := range in { diff --git a/vendor/github.com/go-stack/stack/LICENSE.md b/vendor/github.com/go-stack/stack/LICENSE.md deleted file mode 100644 index 2abf98ea8..000000000 --- a/vendor/github.com/go-stack/stack/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Chris Hines - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/go-stack/stack/README.md b/vendor/github.com/go-stack/stack/README.md deleted file mode 100644 index f11ccccaa..000000000 --- a/vendor/github.com/go-stack/stack/README.md +++ /dev/null @@ -1,38 +0,0 @@ -[![GoDoc](https://godoc.org/github.com/go-stack/stack?status.svg)](https://godoc.org/github.com/go-stack/stack) -[![Go Report Card](https://goreportcard.com/badge/go-stack/stack)](https://goreportcard.com/report/go-stack/stack) -[![TravisCI](https://travis-ci.org/go-stack/stack.svg?branch=master)](https://travis-ci.org/go-stack/stack) -[![Coverage Status](https://coveralls.io/repos/github/go-stack/stack/badge.svg?branch=master)](https://coveralls.io/github/go-stack/stack?branch=master) - -# stack - -Package stack implements utilities to capture, manipulate, and format call -stacks. It provides a simpler API than package runtime. - -The implementation takes care of the minutia and special cases of interpreting -the program counter (pc) values returned by runtime.Callers. - -## Versioning - -Package stack publishes releases via [semver](http://semver.org/) compatible Git -tags prefixed with a single 'v'. The master branch always contains the latest -release. The develop branch contains unreleased commits. - -## Formatting - -Package stack's types implement fmt.Formatter, which provides a simple and -flexible way to declaratively configure formatting when used with logging or -error tracking packages. - -```go -func DoTheThing() { - c := stack.Caller(0) - log.Print(c) // "source.go:10" - log.Printf("%+v", c) // "pkg/path/source.go:10" - log.Printf("%n", c) // "DoTheThing" - - s := stack.Trace().TrimRuntime() - log.Print(s) // "[source.go:15 caller.go:42 main.go:14]" -} -``` - -See the docs for all of the supported formatting options. diff --git a/vendor/github.com/go-stack/stack/stack.go b/vendor/github.com/go-stack/stack/stack.go deleted file mode 100644 index ac3b93b14..000000000 --- a/vendor/github.com/go-stack/stack/stack.go +++ /dev/null @@ -1,400 +0,0 @@ -// +build go1.7 - -// Package stack implements utilities to capture, manipulate, and format call -// stacks. It provides a simpler API than package runtime. -// -// The implementation takes care of the minutia and special cases of -// interpreting the program counter (pc) values returned by runtime.Callers. -// -// Package stack's types implement fmt.Formatter, which provides a simple and -// flexible way to declaratively configure formatting when used with logging -// or error tracking packages. -package stack - -import ( - "bytes" - "errors" - "fmt" - "io" - "runtime" - "strconv" - "strings" -) - -// Call records a single function invocation from a goroutine stack. -type Call struct { - frame runtime.Frame -} - -// Caller returns a Call from the stack of the current goroutine. The argument -// skip is the number of stack frames to ascend, with 0 identifying the -// calling function. -func Caller(skip int) Call { - // As of Go 1.9 we need room for up to three PC entries. - // - // 0. An entry for the stack frame prior to the target to check for - // special handling needed if that prior entry is runtime.sigpanic. - // 1. A possible second entry to hold metadata about skipped inlined - // functions. If inline functions were not skipped the target frame - // PC will be here. - // 2. A third entry for the target frame PC when the second entry - // is used for skipped inline functions. - var pcs [3]uintptr - n := runtime.Callers(skip+1, pcs[:]) - frames := runtime.CallersFrames(pcs[:n]) - frame, _ := frames.Next() - frame, _ = frames.Next() - - return Call{ - frame: frame, - } -} - -// String implements fmt.Stinger. It is equivalent to fmt.Sprintf("%v", c). -func (c Call) String() string { - return fmt.Sprint(c) -} - -// MarshalText implements encoding.TextMarshaler. It formats the Call the same -// as fmt.Sprintf("%v", c). -func (c Call) MarshalText() ([]byte, error) { - if c.frame == (runtime.Frame{}) { - return nil, ErrNoFunc - } - - buf := bytes.Buffer{} - fmt.Fprint(&buf, c) - return buf.Bytes(), nil -} - -// ErrNoFunc means that the Call has a nil *runtime.Func. The most likely -// cause is a Call with the zero value. -var ErrNoFunc = errors.New("no call stack information") - -// Format implements fmt.Formatter with support for the following verbs. -// -// %s source file -// %d line number -// %n function name -// %k last segment of the package path -// %v equivalent to %s:%d -// -// It accepts the '+' and '#' flags for most of the verbs as follows. -// -// %+s path of source file relative to the compile time GOPATH, -// or the module path joined to the path of source file relative -// to module root -// %#s full path of source file -// %+n import path qualified function name -// %+k full package path -// %+v equivalent to %+s:%d -// %#v equivalent to %#s:%d -func (c Call) Format(s fmt.State, verb rune) { - if c.frame == (runtime.Frame{}) { - fmt.Fprintf(s, "%%!%c(NOFUNC)", verb) - return - } - - switch verb { - case 's', 'v': - file := c.frame.File - switch { - case s.Flag('#'): - // done - case s.Flag('+'): - file = pkgFilePath(&c.frame) - default: - const sep = "/" - if i := strings.LastIndex(file, sep); i != -1 { - file = file[i+len(sep):] - } - } - io.WriteString(s, file) - if verb == 'v' { - buf := [7]byte{':'} - s.Write(strconv.AppendInt(buf[:1], int64(c.frame.Line), 10)) - } - - case 'd': - buf := [6]byte{} - s.Write(strconv.AppendInt(buf[:0], int64(c.frame.Line), 10)) - - case 'k': - name := c.frame.Function - const pathSep = "/" - start, end := 0, len(name) - if i := strings.LastIndex(name, pathSep); i != -1 { - start = i + len(pathSep) - } - const pkgSep = "." - if i := strings.Index(name[start:], pkgSep); i != -1 { - end = start + i - } - if s.Flag('+') { - start = 0 - } - io.WriteString(s, name[start:end]) - - case 'n': - name := c.frame.Function - if !s.Flag('+') { - const pathSep = "/" - if i := strings.LastIndex(name, pathSep); i != -1 { - name = name[i+len(pathSep):] - } - const pkgSep = "." - if i := strings.Index(name, pkgSep); i != -1 { - name = name[i+len(pkgSep):] - } - } - io.WriteString(s, name) - } -} - -// Frame returns the call frame infomation for the Call. -func (c Call) Frame() runtime.Frame { - return c.frame -} - -// PC returns the program counter for this call frame; multiple frames may -// have the same PC value. -// -// Deprecated: Use Call.Frame instead. -func (c Call) PC() uintptr { - return c.frame.PC -} - -// CallStack records a sequence of function invocations from a goroutine -// stack. -type CallStack []Call - -// String implements fmt.Stinger. It is equivalent to fmt.Sprintf("%v", cs). -func (cs CallStack) String() string { - return fmt.Sprint(cs) -} - -var ( - openBracketBytes = []byte("[") - closeBracketBytes = []byte("]") - spaceBytes = []byte(" ") -) - -// MarshalText implements encoding.TextMarshaler. It formats the CallStack the -// same as fmt.Sprintf("%v", cs). -func (cs CallStack) MarshalText() ([]byte, error) { - buf := bytes.Buffer{} - buf.Write(openBracketBytes) - for i, pc := range cs { - if i > 0 { - buf.Write(spaceBytes) - } - fmt.Fprint(&buf, pc) - } - buf.Write(closeBracketBytes) - return buf.Bytes(), nil -} - -// Format implements fmt.Formatter by printing the CallStack as square brackets -// ([, ]) surrounding a space separated list of Calls each formatted with the -// supplied verb and options. -func (cs CallStack) Format(s fmt.State, verb rune) { - s.Write(openBracketBytes) - for i, pc := range cs { - if i > 0 { - s.Write(spaceBytes) - } - pc.Format(s, verb) - } - s.Write(closeBracketBytes) -} - -// Trace returns a CallStack for the current goroutine with element 0 -// identifying the calling function. -func Trace() CallStack { - var pcs [512]uintptr - n := runtime.Callers(1, pcs[:]) - - frames := runtime.CallersFrames(pcs[:n]) - cs := make(CallStack, 0, n) - - // Skip extra frame retrieved just to make sure the runtime.sigpanic - // special case is handled. - frame, more := frames.Next() - - for more { - frame, more = frames.Next() - cs = append(cs, Call{frame: frame}) - } - - return cs -} - -// TrimBelow returns a slice of the CallStack with all entries below c -// removed. -func (cs CallStack) TrimBelow(c Call) CallStack { - for len(cs) > 0 && cs[0] != c { - cs = cs[1:] - } - return cs -} - -// TrimAbove returns a slice of the CallStack with all entries above c -// removed. -func (cs CallStack) TrimAbove(c Call) CallStack { - for len(cs) > 0 && cs[len(cs)-1] != c { - cs = cs[:len(cs)-1] - } - return cs -} - -// pkgIndex returns the index that results in file[index:] being the path of -// file relative to the compile time GOPATH, and file[:index] being the -// $GOPATH/src/ portion of file. funcName must be the name of a function in -// file as returned by runtime.Func.Name. -func pkgIndex(file, funcName string) int { - // As of Go 1.6.2 there is no direct way to know the compile time GOPATH - // at runtime, but we can infer the number of path segments in the GOPATH. - // We note that runtime.Func.Name() returns the function name qualified by - // the import path, which does not include the GOPATH. Thus we can trim - // segments from the beginning of the file path until the number of path - // separators remaining is one more than the number of path separators in - // the function name. For example, given: - // - // GOPATH /home/user - // file /home/user/src/pkg/sub/file.go - // fn.Name() pkg/sub.Type.Method - // - // We want to produce: - // - // file[:idx] == /home/user/src/ - // file[idx:] == pkg/sub/file.go - // - // From this we can easily see that fn.Name() has one less path separator - // than our desired result for file[idx:]. We count separators from the - // end of the file path until it finds two more than in the function name - // and then move one character forward to preserve the initial path - // segment without a leading separator. - const sep = "/" - i := len(file) - for n := strings.Count(funcName, sep) + 2; n > 0; n-- { - i = strings.LastIndex(file[:i], sep) - if i == -1 { - i = -len(sep) - break - } - } - // get back to 0 or trim the leading separator - return i + len(sep) -} - -// pkgFilePath returns the frame's filepath relative to the compile-time GOPATH, -// or its module path joined to its path relative to the module root. -// -// As of Go 1.11 there is no direct way to know the compile time GOPATH or -// module paths at runtime, but we can piece together the desired information -// from available information. We note that runtime.Frame.Function contains the -// function name qualified by the package path, which includes the module path -// but not the GOPATH. We can extract the package path from that and append the -// last segments of the file path to arrive at the desired package qualified -// file path. For example, given: -// -// GOPATH /home/user -// import path pkg/sub -// frame.File /home/user/src/pkg/sub/file.go -// frame.Function pkg/sub.Type.Method -// Desired return pkg/sub/file.go -// -// It appears that we simply need to trim ".Type.Method" from frame.Function and -// append "/" + path.Base(file). -// -// But there are other wrinkles. Although it is idiomatic to do so, the internal -// name of a package is not required to match the last segment of its import -// path. In addition, the introduction of modules in Go 1.11 allows working -// without a GOPATH. So we also must make these work right: -// -// GOPATH /home/user -// import path pkg/go-sub -// package name sub -// frame.File /home/user/src/pkg/go-sub/file.go -// frame.Function pkg/sub.Type.Method -// Desired return pkg/go-sub/file.go -// -// Module path pkg/v2 -// import path pkg/v2/go-sub -// package name sub -// frame.File /home/user/cloned-pkg/go-sub/file.go -// frame.Function pkg/v2/sub.Type.Method -// Desired return pkg/v2/go-sub/file.go -// -// We can handle all of these situations by using the package path extracted -// from frame.Function up to, but not including, the last segment as the prefix -// and the last two segments of frame.File as the suffix of the returned path. -// This preserves the existing behavior when working in a GOPATH without modules -// and a semantically equivalent behavior when used in module aware project. -func pkgFilePath(frame *runtime.Frame) string { - pre := pkgPrefix(frame.Function) - post := pathSuffix(frame.File) - if pre == "" { - return post - } - return pre + "/" + post -} - -// pkgPrefix returns the import path of the function's package with the final -// segment removed. -func pkgPrefix(funcName string) string { - const pathSep = "/" - end := strings.LastIndex(funcName, pathSep) - if end == -1 { - return "" - } - return funcName[:end] -} - -// pathSuffix returns the last two segments of path. -func pathSuffix(path string) string { - const pathSep = "/" - lastSep := strings.LastIndex(path, pathSep) - if lastSep == -1 { - return path - } - return path[strings.LastIndex(path[:lastSep], pathSep)+1:] -} - -var runtimePath string - -func init() { - var pcs [3]uintptr - runtime.Callers(0, pcs[:]) - frames := runtime.CallersFrames(pcs[:]) - frame, _ := frames.Next() - file := frame.File - - idx := pkgIndex(frame.File, frame.Function) - - runtimePath = file[:idx] - if runtime.GOOS == "windows" { - runtimePath = strings.ToLower(runtimePath) - } -} - -func inGoroot(c Call) bool { - file := c.frame.File - if len(file) == 0 || file[0] == '?' { - return true - } - if runtime.GOOS == "windows" { - file = strings.ToLower(file) - } - return strings.HasPrefix(file, runtimePath) || strings.HasSuffix(file, "/_testmain.go") -} - -// TrimRuntime returns a slice of the CallStack with the topmost entries from -// the go runtime removed. It considers any calls originating from unknown -// files, files under GOROOT, or _testmain.go as part of the runtime. -func (cs CallStack) TrimRuntime() CallStack { - for len(cs) > 0 && inGoroot(cs[len(cs)-1]) { - cs = cs[:len(cs)-1] - } - return cs -} diff --git a/vendor/github.com/hashicorp/go-hclog/colorize_unix.go b/vendor/github.com/hashicorp/go-hclog/colorize_unix.go index 9635c838b..99cc176a4 100644 --- a/vendor/github.com/hashicorp/go-hclog/colorize_unix.go +++ b/vendor/github.com/hashicorp/go-hclog/colorize_unix.go @@ -8,7 +8,7 @@ import ( ) // setColorization will mutate the values of this logger -// to approperately configure colorization options. It provides +// to appropriately configure colorization options. It provides // a wrapper to the output stream on Windows systems. func (l *intLogger) setColorization(opts *LoggerOptions) { switch opts.Color { diff --git a/vendor/github.com/hashicorp/go-hclog/colorize_windows.go b/vendor/github.com/hashicorp/go-hclog/colorize_windows.go index 30859168e..26f8cef8d 100644 --- a/vendor/github.com/hashicorp/go-hclog/colorize_windows.go +++ b/vendor/github.com/hashicorp/go-hclog/colorize_windows.go @@ -11,7 +11,7 @@ import ( ) // setColorization will mutate the values of this logger -// to approperately configure colorization options. It provides +// to appropriately configure colorization options. It provides // a wrapper to the output stream on Windows systems. func (l *intLogger) setColorization(opts *LoggerOptions) { switch opts.Color { diff --git a/vendor/github.com/hashicorp/go-hclog/global.go b/vendor/github.com/hashicorp/go-hclog/global.go index b9f00217c..48ff1f3a4 100644 --- a/vendor/github.com/hashicorp/go-hclog/global.go +++ b/vendor/github.com/hashicorp/go-hclog/global.go @@ -20,13 +20,13 @@ var ( ) // Default returns a globally held logger. This can be a good starting -// place, and then you can use .With() and .Name() to create sub-loggers +// place, and then you can use .With() and .Named() to create sub-loggers // to be used in more specific contexts. // The value of the Default logger can be set via SetDefault() or by // changing the options in DefaultOptions. // // This method is goroutine safe, returning a global from memory, but -// cause should be used if SetDefault() is called it random times +// care should be used if SetDefault() is called it random times // in the program as that may result in race conditions and an unexpected // Logger being returned. func Default() Logger { diff --git a/vendor/github.com/hashicorp/go-hclog/intlogger.go b/vendor/github.com/hashicorp/go-hclog/intlogger.go index 83232f7a6..e2ebdb01a 100644 --- a/vendor/github.com/hashicorp/go-hclog/intlogger.go +++ b/vendor/github.com/hashicorp/go-hclog/intlogger.go @@ -160,7 +160,7 @@ func newLogger(opts *LoggerOptions) *intLogger { } // offsetIntLogger is the stack frame offset in the call stack for the caller to -// one of the Warn,Info,Log,etc methods. +// one of the Warn, Info, Log, etc methods. const offsetIntLogger = 3 // Log a message and a set of key/value pairs if the given level is at @@ -269,11 +269,14 @@ func (l *intLogger) logPlain(t time.Time, name string, level Level, msg string, if name != "" { l.writer.WriteString(name) - l.writer.WriteString(": ") + if msg != "" { + l.writer.WriteString(": ") + l.writer.WriteString(msg) + } + } else if msg != "" { + l.writer.WriteString(msg) } - l.writer.WriteString(msg) - args = append(l.implied, args...) var stacktrace CapturedStacktrace diff --git a/vendor/github.com/hashicorp/go-hclog/logger.go b/vendor/github.com/hashicorp/go-hclog/logger.go index 858143028..f37187401 100644 --- a/vendor/github.com/hashicorp/go-hclog/logger.go +++ b/vendor/github.com/hashicorp/go-hclog/logger.go @@ -9,7 +9,7 @@ import ( ) var ( - //DefaultOutput is used as the default log output. + // DefaultOutput is used as the default log output. DefaultOutput io.Writer = os.Stderr // DefaultLevel is used as the default log level. @@ -28,7 +28,7 @@ const ( // of actions in code, such as function enters/exits, etc. Trace Level = 1 - // Debug information for programmer lowlevel analysis. + // Debug information for programmer low-level analysis. Debug Level = 2 // Info information about steady state operations. @@ -44,13 +44,13 @@ const ( Off Level = 6 ) -// Format is a simple convience type for when formatting is required. When +// Format is a simple convenience type for when formatting is required. When // processing a value of this type, the logger automatically treats the first // argument as a Printf formatting string and passes the rest as the values // to be formatted. For example: L.Info(Fmt{"%d beans/day", beans}). type Format []interface{} -// Fmt returns a Format type. This is a convience function for creating a Format +// Fmt returns a Format type. This is a convenience function for creating a Format // type. func Fmt(str string, args ...interface{}) Format { return append(Format{str}, args...) @@ -134,7 +134,7 @@ func (l Level) String() string { } } -// Logger describes the interface that must be implemeted by all loggers. +// Logger describes the interface that must be implemented by all loggers. type Logger interface { // Args are alternating key, val pairs // keys must be strings @@ -236,7 +236,7 @@ type LoggerOptions struct { // Name of the subsystem to prefix logs with Name string - // The threshold for the logger. Anything less severe is supressed + // The threshold for the logger. Anything less severe is suppressed Level Level // Where to write the logs to. Defaults to os.Stderr if nil @@ -267,7 +267,7 @@ type LoggerOptions struct { // because setting TimeFormat to empty assumes the default format. DisableTime bool - // Color the output. On Windows, colored logs are only avaiable for io.Writers that + // Color the output. On Windows, colored logs are only available for io.Writers that // are concretely instances of *os.File. Color ColorOption @@ -282,8 +282,8 @@ type LoggerOptions struct { // IndependentLevels causes subloggers to be created with an independent // copy of this logger's level. This means that using SetLevel on this - // logger will not effect any subloggers, and SetLevel on any subloggers - // will not effect the parent or sibling loggers. + // logger will not affect any subloggers, and SetLevel on any subloggers + // will not affect the parent or sibling loggers. IndependentLevels bool } diff --git a/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md b/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md new file mode 100644 index 000000000..7463b2c0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md @@ -0,0 +1,19 @@ +## v1.4.5 + +ENHANCEMENTS: + +* client: log warning when SecureConfig is nil [[GH-207](https://github.com/hashicorp/go-plugin/pull/207)] + + +## v1.4.4 + +ENHANCEMENTS: + +* client: increase level of plugin exit logs [[GH-195](https://github.com/hashicorp/go-plugin/pull/195)] + +BUG FIXES: + +* Bidirectional communication: fix bidirectional communication when AutoMTLS is enabled [[GH-193](https://github.com/hashicorp/go-plugin/pull/193)] +* RPC: Trim a spurious log message for plugins using RPC [[GH-186](https://github.com/hashicorp/go-plugin/pull/186)] + + diff --git a/vendor/github.com/hashicorp/go-plugin/client.go b/vendor/github.com/hashicorp/go-plugin/client.go index e0bee88a1..2e86f6213 100644 --- a/vendor/github.com/hashicorp/go-plugin/client.go +++ b/vendor/github.com/hashicorp/go-plugin/client.go @@ -547,7 +547,9 @@ func (c *Client) Start() (addr net.Addr, err error) { return nil, err } - if c.config.SecureConfig != nil { + if c.config.SecureConfig == nil { + c.logger.Warn("plugin configured with a nil SecureConfig") + } else { if ok, err := c.config.SecureConfig.Check(cmd.Path); err != nil { return nil, fmt.Errorf("error verifying checksum: %s", err) } else if !ok { diff --git a/vendor/github.com/hashicorp/go-version/CHANGELOG.md b/vendor/github.com/hashicorp/go-version/CHANGELOG.md index 094550020..5f16dd140 100644 --- a/vendor/github.com/hashicorp/go-version/CHANGELOG.md +++ b/vendor/github.com/hashicorp/go-version/CHANGELOG.md @@ -1,3 +1,16 @@ +# 1.6.0 (June 28, 2022) + +FEATURES: + +- Add `Prerelease` function to `Constraint` to return true if the version includes a prerelease field ([#100](https://github.com/hashicorp/go-version/pull/100)) + +# 1.5.0 (May 18, 2022) + +FEATURES: + +- Use `encoding` `TextMarshaler` & `TextUnmarshaler` instead of JSON equivalents ([#95](https://github.com/hashicorp/go-version/pull/95)) +- Add JSON handlers to allow parsing from/to JSON ([#93](https://github.com/hashicorp/go-version/pull/93)) + # 1.4.0 (January 5, 2022) FEATURES: diff --git a/vendor/github.com/hashicorp/go-version/constraint.go b/vendor/github.com/hashicorp/go-version/constraint.go index 1d8809028..da5d1aca1 100644 --- a/vendor/github.com/hashicorp/go-version/constraint.go +++ b/vendor/github.com/hashicorp/go-version/constraint.go @@ -163,6 +163,12 @@ func (c *Constraint) Check(v *Version) bool { return c.f(v, c.check) } +// Prerelease returns true if the version underlying this constraint +// contains a prerelease field. +func (c *Constraint) Prerelease() bool { + return len(c.check.Prerelease()) > 0 +} + func (c *Constraint) String() string { return c.original } diff --git a/vendor/github.com/hashicorp/hc-install/README.md b/vendor/github.com/hashicorp/hc-install/README.md index 87c06a203..eb287ff0f 100644 --- a/vendor/github.com/hashicorp/hc-install/README.md +++ b/vendor/github.com/hashicorp/hc-install/README.md @@ -31,7 +31,7 @@ The `Installer` offers a few high-level methods: The `Installer` methods accept number of different `Source` types. Each comes with different trade-offs described below. - - `fs.{AnyVersion,ExactVersion}` - Finds a binary in `$PATH` (or additional paths) + - `fs.{AnyVersion,ExactVersion,Version}` - Finds a binary in `$PATH` (or additional paths) - **Pros:** - This is most convenient when you already have the product installed on your system which you already manage. diff --git a/vendor/github.com/hashicorp/hc-install/fs/version.go b/vendor/github.com/hashicorp/hc-install/fs/version.go new file mode 100644 index 000000000..26633b8af --- /dev/null +++ b/vendor/github.com/hashicorp/hc-install/fs/version.go @@ -0,0 +1,97 @@ +package fs + +import ( + "context" + "fmt" + "log" + "path/filepath" + "time" + + "github.com/hashicorp/go-version" + "github.com/hashicorp/hc-install/errors" + "github.com/hashicorp/hc-install/internal/src" + "github.com/hashicorp/hc-install/internal/validators" + "github.com/hashicorp/hc-install/product" +) + +// Version finds the first executable binary of the product name +// which matches the version constraint within system $PATH and any declared ExtraPaths +// (which are *appended* to any directories in $PATH) +type Version struct { + Product product.Product + Constraints version.Constraints + ExtraPaths []string + Timeout time.Duration + + logger *log.Logger +} + +func (*Version) IsSourceImpl() src.InstallSrcSigil { + return src.InstallSrcSigil{} +} + +func (v *Version) SetLogger(logger *log.Logger) { + v.logger = logger +} + +func (v *Version) log() *log.Logger { + if v.logger == nil { + return discardLogger + } + return v.logger +} + +func (v *Version) Validate() error { + if !validators.IsBinaryNameValid(v.Product.BinaryName()) { + return fmt.Errorf("invalid binary name: %q", v.Product.BinaryName()) + } + if len(v.Constraints) == 0 { + return fmt.Errorf("undeclared version constraints") + } + if v.Product.GetVersion == nil { + return fmt.Errorf("undeclared version getter") + } + return nil +} + +func (v *Version) Find(ctx context.Context) (string, error) { + timeout := defaultTimeout + if v.Timeout > 0 { + timeout = v.Timeout + } + ctx, cancelFunc := context.WithTimeout(ctx, timeout) + defer cancelFunc() + + execPath, err := findFile(lookupDirs(v.ExtraPaths), v.Product.BinaryName(), func(file string) error { + err := checkExecutable(file) + if err != nil { + return err + } + + ver, err := v.Product.GetVersion(ctx, file) + if err != nil { + return err + } + + for _, vc := range v.Constraints { + if !vc.Check(ver) { + return fmt.Errorf("version (%s) doesn't meet constraints %s", ver, vc.String()) + } + } + + return nil + }) + if err != nil { + return "", errors.SkippableErr(err) + } + + if !filepath.IsAbs(execPath) { + var err error + execPath, err = filepath.Abs(execPath) + if err != nil { + return "", errors.SkippableErr(err) + } + } + + return execPath, nil +} diff --git a/vendor/github.com/hashicorp/hc-install/product/vault.go b/vendor/github.com/hashicorp/hc-install/product/vault.go new file mode 100644 index 000000000..d03bc4fab --- /dev/null +++ b/vendor/github.com/hashicorp/hc-install/product/vault.go @@ -0,0 +1,54 @@ +package product + +import ( + "context" + "fmt" + "os/exec" + "regexp" + "runtime" + "strings" + + "github.com/hashicorp/go-version" + "github.com/hashicorp/hc-install/internal/build" +) + +var ( + vaultVersionOutputRe = regexp.MustCompile(`Vault ` + simpleVersionRe) + v1_17 = version.Must(version.NewVersion("1.17")) +) + +var Vault = Product{ + Name: "vault", + BinaryName: func() string { + if runtime.GOOS == "windows" { + return "vault.exe" + } + return "vault" + }, + GetVersion: func(ctx context.Context, path string) (*version.Version, error) { + cmd := exec.CommandContext(ctx, path, "version") + + out, err := cmd.Output() + if err != nil { + return nil, err + } + + stdout := strings.TrimSpace(string(out)) + + submatches := vaultVersionOutputRe.FindStringSubmatch(stdout) + if len(submatches) != 2 { + return nil, fmt.Errorf("unexpected number of version matches %d for %s", len(submatches), stdout) + } + v, err := version.NewVersion(submatches[1]) + if err != nil { + return nil, fmt.Errorf("unable to parse version %q: %w", submatches[1], err) + } + + return v, err + }, + BuildInstructions: &BuildInstructions{ + GitRepoURL: "https://github.com/hashicorp/vault.git", + PreCloneCheck: &build.GoIsInstalled{}, + Build: &build.GoBuild{Version: v1_17}, + }, +} diff --git a/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md b/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md index aa6faaf2f..9f6c23b1c 100644 --- a/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md +++ b/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md @@ -1,5 +1,16 @@ # HCL Changelog +## v2.13.0 (June 22, 2022) + +### Enhancements + +* hcl: `hcl.Diagnostic` how has an additional field `Extra` which is intended for carrying arbitrary supporting data ("extra information") related to the diagnostic message, intended to allow diagnostic renderers to optionally tailor the presentation of messages for particular situations. ([#539](https://github.com/hashicorp/hcl/pull/539)) +* hclsyntax: When an error occurs during a function call, the returned diagnostics will include _extra information_ (as described in the previous point) about which function was being called and, if the message is about an error returned by the function itself, that raw `error` value without any post-processing. ([#539](https://github.com/hashicorp/hcl/pull/539)) + +### Bugs Fixed + +* hclwrite: Fixed a potential data race for any situation where `hclwrite.Format` runs concurrently with itself. ([#534](https://github.com/hashicorp/hcl/pull/534)) + ## v2.12.0 (April 22, 2022) ### Enhancements diff --git a/vendor/github.com/hashicorp/hcl/v2/diagnostic.go b/vendor/github.com/hashicorp/hcl/v2/diagnostic.go index c80535b7a..bcf4eb39c 100644 --- a/vendor/github.com/hashicorp/hcl/v2/diagnostic.go +++ b/vendor/github.com/hashicorp/hcl/v2/diagnostic.go @@ -63,6 +63,28 @@ type Diagnostic struct { // case of colliding names. Expression Expression EvalContext *EvalContext + + // Extra is an extension point for additional machine-readable information + // about this problem. + // + // Recipients of diagnostic objects may type-assert this value with + // specific interface types they know about to discover if any additional + // information is available that is interesting for their use-case. + // + // Extra is always considered to be optional extra information and so a + // diagnostic message should still always be fully described (from the + // perspective of a human who understands the language the messages are + // written in) by the other fields in case a particular recipient. + // + // Functions that return diagnostics with Extra populated should typically + // document that they place values implementing a particular interface, + // rather than a concrete type, and define that interface such that its + // methods can dynamically indicate a lack of support at runtime even + // if the interface happens to be statically available. An Extra + // type that wraps other Extra values should additionally implement + // interface DiagnosticExtraUnwrapper to return the value they are wrapping + // so that callers can access inner values to type-assert against. + Extra interface{} } // Diagnostics is a list of Diagnostic instances. @@ -141,3 +163,24 @@ type DiagnosticWriter interface { WriteDiagnostic(*Diagnostic) error WriteDiagnostics(Diagnostics) error } + +// DiagnosticExtraUnwrapper is an interface implemented by values in the +// Extra field of Diagnostic when they are wrapping another "Extra" value that +// was generated downstream. +// +// Diagnostic recipients which want to examine "Extra" values to sniff for +// particular types of extra data can either type-assert this interface +// directly and repeatedly unwrap until they recieve nil, or can use the +// helper function DiagnosticExtra. +type DiagnosticExtraUnwrapper interface { + // If the reciever is wrapping another "diagnostic extra" value, returns + // that value. Otherwise returns nil to indicate dynamically that nothing + // is wrapped. + // + // The "nothing is wrapped" condition can be signalled either by this + // method returning nil or by a type not implementing this interface at all. + // + // Implementers should never create unwrap "cycles" where a nested extra + // value returns a value that was also wrapping it. + UnwrapDiagnosticExtra() interface{} +} diff --git a/vendor/github.com/hashicorp/hcl/v2/diagnostic_typeparams.go b/vendor/github.com/hashicorp/hcl/v2/diagnostic_typeparams.go new file mode 100644 index 000000000..6994e2336 --- /dev/null +++ b/vendor/github.com/hashicorp/hcl/v2/diagnostic_typeparams.go @@ -0,0 +1,39 @@ +//go:build go1.18 +// +build go1.18 + +package hcl + +// This file contains additional diagnostics-related symbols that use the +// Go 1.18 type parameters syntax and would therefore be incompatible with +// Go 1.17 and earlier. + +// DiagnosticExtra attempts to retrieve an "extra value" of type T from the +// given diagnostic, if either the diag.Extra field directly contains a value +// of that type or the value implements DiagnosticExtraUnwrapper and directly +// or indirectly returns a value of that type. +// +// Type T should typically be an interface type, so that code which generates +// diagnostics can potentially return different implementations of the same +// interface dynamically as needed. +// +// If a value of type T is found, returns that value and true to indicate +// success. Otherwise, returns the zero value of T and false to indicate +// failure. +func DiagnosticExtra[T any](diag *Diagnostic) (T, bool) { + extra := diag.Extra + var zero T + + for { + if ret, ok := extra.(T); ok { + return ret, true + } + + if unwrap, ok := extra.(DiagnosticExtraUnwrapper); ok { + // If our "extra" implements DiagnosticExtraUnwrapper then we'll + // unwrap one level and try this again. + extra = unwrap.UnwrapDiagnosticExtra() + } else { + return zero, false + } + } +} diff --git a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go index 2706998f8..358fd5d51 100644 --- a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go +++ b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go @@ -26,7 +26,7 @@ type Expression interface { } // Assert that Expression implements hcl.Expression -var assertExprImplExpr hcl.Expression = Expression(nil) +var _ hcl.Expression = Expression(nil) // ParenthesesExpr represents an expression written in grouping // parentheses. @@ -270,6 +270,10 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti } } + diagExtra := functionCallDiagExtra{ + calledFunctionName: e.Name, + } + params := f.Params() varParam := f.VarParam() @@ -297,6 +301,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: expandExpr, EvalContext: ctx, + Extra: &diagExtra, }) return cty.DynamicVal, diags } @@ -311,6 +316,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: expandExpr, EvalContext: ctx, + Extra: &diagExtra, }) return cty.DynamicVal, diags } @@ -342,6 +348,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: expandExpr, EvalContext: ctx, + Extra: &diagExtra, }) return cty.DynamicVal, diags } @@ -365,6 +372,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: e, EvalContext: ctx, + Extra: &diagExtra, }, } } @@ -382,6 +390,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: e, EvalContext: ctx, + Extra: &diagExtra, }, } } @@ -426,6 +435,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: argExpr, EvalContext: ctx, + Extra: &diagExtra, }) } } @@ -442,6 +452,10 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti resultVal, err := f.Call(argVals) if err != nil { + // For errors in the underlying call itself we also return the raw + // call error via an extra method on our "diagnostic extra" value. + diagExtra.functionCallError = err + switch terr := err.(type) { case function.ArgError: i := terr.Index @@ -479,6 +493,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Subject: e.Range().Ptr(), Expression: e, EvalContext: ctx, + Extra: &diagExtra, }) default: // This is the most degenerate case of all, where the @@ -497,6 +512,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: e, EvalContext: ctx, + Extra: &diagExtra, }) } } else { @@ -515,6 +531,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: argExpr, EvalContext: ctx, + Extra: &diagExtra, }) } @@ -530,6 +547,7 @@ func (e *FunctionCallExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnosti Context: e.Range().Ptr(), Expression: e, EvalContext: ctx, + Extra: &diagExtra, }) } @@ -562,6 +580,39 @@ func (e *FunctionCallExpr) ExprCall() *hcl.StaticCall { return ret } +// FunctionCallDiagExtra is an interface implemented by the value in the "Extra" +// field of some diagnostics returned by FunctionCallExpr.Value, giving +// cooperating callers access to some machine-readable information about the +// call that a diagnostic relates to. +type FunctionCallDiagExtra interface { + // CalledFunctionName returns the name of the function being called at + // the time the diagnostic was generated, if any. Returns an empty string + // if there is no known called function. + CalledFunctionName() string + + // FunctionCallError returns the error value returned by the implementation + // of the function being called, if any. Returns nil if the diagnostic was + // not returned in response to a call error. + // + // Some errors related to calling functions are generated by HCL itself + // rather than by the underlying function, in which case this method + // will return nil. + FunctionCallError() error +} + +type functionCallDiagExtra struct { + calledFunctionName string + functionCallError error +} + +func (e *functionCallDiagExtra) CalledFunctionName() string { + return e.calledFunctionName +} + +func (e *functionCallDiagExtra) FunctionCallError() error { + return e.functionCallError +} + type ConditionalExpr struct { Condition Expression TrueResult Expression diff --git a/vendor/github.com/hashicorp/terraform-exec/internal/version/version.go b/vendor/github.com/hashicorp/terraform-exec/internal/version/version.go index 2b19c59ea..164c0fd6b 100644 --- a/vendor/github.com/hashicorp/terraform-exec/internal/version/version.go +++ b/vendor/github.com/hashicorp/terraform-exec/internal/version/version.go @@ -1,6 +1,6 @@ package version -const version = "0.16.1" +const version = "0.17.2" // ModuleVersion returns the current version of the github.com/hashicorp/terraform-exec Go module. // This is a function to allow for future possible enhancement using debug.BuildInfo. diff --git a/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd.go b/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd.go index 83abd22d5..56393a006 100644 --- a/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd.go +++ b/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd.go @@ -1,9 +1,11 @@ package tfexec import ( + "bufio" "bytes" "context" "encoding/json" + "errors" "fmt" "io" "io/ioutil" @@ -17,10 +19,12 @@ import ( const ( checkpointDisableEnvVar = "CHECKPOINT_DISABLE" cliArgsEnvVar = "TF_CLI_ARGS" - logEnvVar = "TF_LOG" inputEnvVar = "TF_INPUT" automationEnvVar = "TF_IN_AUTOMATION" + logEnvVar = "TF_LOG" + logCoreEnvVar = "TF_LOG_CORE" logPathEnvVar = "TF_LOG_PATH" + logProviderEnvVar = "TF_LOG_PROVIDER" reattachEnvVar = "TF_REATTACH_PROVIDERS" appendUserAgentEnvVar = "TF_APPEND_USER_AGENT" workspaceEnvVar = "TF_WORKSPACE" @@ -35,8 +39,10 @@ var prohibitedEnvVars = []string{ cliArgsEnvVar, inputEnvVar, automationEnvVar, - logPathEnvVar, logEnvVar, + logCoreEnvVar, + logPathEnvVar, + logProviderEnvVar, reattachEnvVar, appendUserAgentEnvVar, workspaceEnvVar, @@ -146,11 +152,14 @@ func (tf *Terraform) buildEnv(mergeEnv map[string]string) []string { if tf.logPath == "" { // so logging can't pollute our stderr output env[logEnvVar] = "" + env[logCoreEnvVar] = "" env[logPathEnvVar] = "" + env[logProviderEnvVar] = "" } else { + env[logEnvVar] = tf.log + env[logCoreEnvVar] = tf.logCore env[logPathEnvVar] = tf.logPath - // Log levels other than TRACE are currently unreliable, the CLI recommends using TRACE only. - env[logEnvVar] = "TRACE" + env[logProviderEnvVar] = tf.logProvider } // constant automation override env vars @@ -171,7 +180,7 @@ func (tf *Terraform) buildEnv(mergeEnv map[string]string) []string { } func (tf *Terraform) buildTerraformCmd(ctx context.Context, mergeEnv map[string]string, args ...string) *exec.Cmd { - cmd := exec.Command(tf.execPath, args...) + cmd := exec.CommandContext(ctx, tf.execPath, args...) cmd.Env = tf.buildEnv(mergeEnv) cmd.Dir = tf.workingDir @@ -230,3 +239,36 @@ func mergeWriters(writers ...io.Writer) io.Writer { } return io.MultiWriter(compact...) } + +func writeOutput(ctx context.Context, r io.ReadCloser, w io.Writer) error { + // ReadBytes will block until bytes are read, which can cause a delay in + // returning even if the command's context has been canceled. Use a separate + // goroutine to prompt ReadBytes to return on cancel + closeCtx, closeCancel := context.WithCancel(ctx) + defer closeCancel() + go func() { + select { + case <-ctx.Done(): + r.Close() + case <-closeCtx.Done(): + return + } + }() + + buf := bufio.NewReader(r) + for { + line, err := buf.ReadBytes('\n') + if len(line) > 0 { + if _, err := w.Write(line); err != nil { + return err + } + } + if err != nil { + if errors.Is(err, io.EOF) { + return nil + } + + return err + } + } +} diff --git a/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go b/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go index 08a65bcde..6d7b768ee 100644 --- a/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go +++ b/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go @@ -7,26 +7,12 @@ import ( "context" "os/exec" "strings" + "sync" ) func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { var errBuf strings.Builder - cmd.Stdout = mergeWriters(cmd.Stdout, tf.stdout) - cmd.Stderr = mergeWriters(cmd.Stderr, tf.stderr, &errBuf) - - go func() { - <-ctx.Done() - if ctx.Err() == context.DeadlineExceeded || ctx.Err() == context.Canceled { - if cmd != nil && cmd.Process != nil && cmd.ProcessState != nil { - err := cmd.Process.Kill() - if err != nil { - tf.logger.Printf("error from kill: %s", err) - } - } - } - }() - // check for early cancellation select { case <-ctx.Done(): @@ -34,7 +20,52 @@ func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { default: } - err := cmd.Run() + // Read stdout / stderr logs from pipe instead of setting cmd.Stdout and + // cmd.Stderr because it can cause hanging when killing the command + // https://github.com/golang/go/issues/23019 + stdoutWriter := mergeWriters(cmd.Stdout, tf.stdout) + stderrWriter := mergeWriters(tf.stderr, &errBuf) + + cmd.Stderr = nil + cmd.Stdout = nil + + stdoutPipe, err := cmd.StdoutPipe() + if err != nil { + return err + } + + stderrPipe, err := cmd.StderrPipe() + if err != nil { + return err + } + + err = cmd.Start() + if err == nil && ctx.Err() != nil { + err = ctx.Err() + } + if err != nil { + return tf.wrapExitError(ctx, err, "") + } + + var errStdout, errStderr error + var wg sync.WaitGroup + wg.Add(1) + go func() { + defer wg.Done() + errStdout = writeOutput(ctx, stdoutPipe, stdoutWriter) + }() + + wg.Add(1) + go func() { + defer wg.Done() + errStderr = writeOutput(ctx, stderrPipe, stderrWriter) + }() + + // Reads from pipes must be completed before calling cmd.Wait(). Otherwise + // can cause a race condition + wg.Wait() + + err = cmd.Wait() if err == nil && ctx.Err() != nil { err = ctx.Err() } @@ -42,5 +73,13 @@ func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { return tf.wrapExitError(ctx, err, errBuf.String()) } + // Return error if there was an issue reading the std out/err + if errStdout != nil && ctx.Err() != nil { + return tf.wrapExitError(ctx, errStdout, errBuf.String()) + } + if errStderr != nil && ctx.Err() != nil { + return tf.wrapExitError(ctx, errStderr, errBuf.String()) + } + return nil } diff --git a/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_linux.go b/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_linux.go index 7cbdcb96f..6fa40e0aa 100644 --- a/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_linux.go +++ b/vendor/github.com/hashicorp/terraform-exec/tfexec/cmd_linux.go @@ -4,15 +4,13 @@ import ( "context" "os/exec" "strings" + "sync" "syscall" ) func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { var errBuf strings.Builder - cmd.Stdout = mergeWriters(cmd.Stdout, tf.stdout) - cmd.Stderr = mergeWriters(cmd.Stderr, tf.stderr, &errBuf) - cmd.SysProcAttr = &syscall.SysProcAttr{ // kill children if parent is dead Pdeathsig: syscall.SIGKILL, @@ -20,21 +18,6 @@ func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { Setpgid: true, } - go func() { - <-ctx.Done() - if ctx.Err() == context.DeadlineExceeded || ctx.Err() == context.Canceled { - if cmd != nil && cmd.Process != nil && cmd.ProcessState != nil { - // send SIGINT to process group - err := syscall.Kill(-cmd.Process.Pid, syscall.SIGINT) - if err != nil { - tf.logger.Printf("error from SIGINT: %s", err) - } - } - - // TODO: send a kill if it doesn't respond for a bit? - } - }() - // check for early cancellation select { case <-ctx.Done(): @@ -42,7 +25,52 @@ func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { default: } - err := cmd.Run() + // Read stdout / stderr logs from pipe instead of setting cmd.Stdout and + // cmd.Stderr because it can cause hanging when killing the command + // https://github.com/golang/go/issues/23019 + stdoutWriter := mergeWriters(cmd.Stdout, tf.stdout) + stderrWriter := mergeWriters(tf.stderr, &errBuf) + + cmd.Stderr = nil + cmd.Stdout = nil + + stdoutPipe, err := cmd.StdoutPipe() + if err != nil { + return err + } + + stderrPipe, err := cmd.StderrPipe() + if err != nil { + return err + } + + err = cmd.Start() + if err == nil && ctx.Err() != nil { + err = ctx.Err() + } + if err != nil { + return tf.wrapExitError(ctx, err, "") + } + + var errStdout, errStderr error + var wg sync.WaitGroup + wg.Add(1) + go func() { + defer wg.Done() + errStdout = writeOutput(ctx, stdoutPipe, stdoutWriter) + }() + + wg.Add(1) + go func() { + defer wg.Done() + errStderr = writeOutput(ctx, stderrPipe, stderrWriter) + }() + + // Reads from pipes must be completed before calling cmd.Wait(). Otherwise + // can cause a race condition + wg.Wait() + + err = cmd.Wait() if err == nil && ctx.Err() != nil { err = ctx.Err() } @@ -50,5 +78,13 @@ func (tf *Terraform) runTerraformCmd(ctx context.Context, cmd *exec.Cmd) error { return tf.wrapExitError(ctx, err, errBuf.String()) } + // Return error if there was an issue reading the std out/err + if errStdout != nil && ctx.Err() != nil { + return tf.wrapExitError(ctx, errStdout, errBuf.String()) + } + if errStderr != nil && ctx.Err() != nil { + return tf.wrapExitError(ctx, errStderr, errBuf.String()) + } + return nil } diff --git a/vendor/github.com/hashicorp/terraform-exec/tfexec/state_pull.go b/vendor/github.com/hashicorp/terraform-exec/tfexec/state_pull.go new file mode 100644 index 000000000..11b6b9c77 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-exec/tfexec/state_pull.go @@ -0,0 +1,55 @@ +package tfexec + +import ( + "bytes" + "context" + "os/exec" +) + +type statePullConfig struct { + reattachInfo ReattachInfo +} + +var defaultStatePullConfig = statePullConfig{} + +type StatePullOption interface { + configureShow(*statePullConfig) +} + +func (opt *ReattachOption) configureStatePull(conf *statePullConfig) { + conf.reattachInfo = opt.info +} + +func (tf *Terraform) StatePull(ctx context.Context, opts ...StatePullOption) (string, error) { + c := defaultStatePullConfig + + for _, o := range opts { + o.configureShow(&c) + } + + mergeEnv := map[string]string{} + if c.reattachInfo != nil { + reattachStr, err := c.reattachInfo.marshalString() + if err != nil { + return "", err + } + mergeEnv[reattachEnvVar] = reattachStr + } + + cmd := tf.statePullCmd(ctx, mergeEnv) + + var ret bytes.Buffer + cmd.Stdout = &ret + err := tf.runTerraformCmd(ctx, cmd) + if err != nil { + return "", err + } + + return ret.String(), nil +} + +func (tf *Terraform) statePullCmd(ctx context.Context, mergeEnv map[string]string) *exec.Cmd { + args := []string{"state", "pull"} + + return tf.buildTerraformCmd(ctx, mergeEnv, args...) +} diff --git a/vendor/github.com/hashicorp/terraform-exec/tfexec/state_push.go b/vendor/github.com/hashicorp/terraform-exec/tfexec/state_push.go new file mode 100644 index 000000000..14e55a2eb --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-exec/tfexec/state_push.go @@ -0,0 +1,67 @@ +package tfexec + +import ( + "context" + "os/exec" + "strconv" +) + +type statePushConfig struct { + force bool + lock bool + lockTimeout string +} + +var defaultStatePushOptions = statePushConfig{ + lock: false, + lockTimeout: "0s", +} + +// StatePushCmdOption represents options used in the Refresh method. +type StatePushCmdOption interface { + configureStatePush(*statePushConfig) +} + +func (opt *ForceOption) configureStatePush(conf *statePushConfig) { + conf.force = opt.force +} + +func (opt *LockOption) configureStatePush(conf *statePushConfig) { + conf.lock = opt.lock +} + +func (opt *LockTimeoutOption) configureStatePush(conf *statePushConfig) { + conf.lockTimeout = opt.timeout +} + +func (tf *Terraform) StatePush(ctx context.Context, path string, opts ...StatePushCmdOption) error { + cmd, err := tf.statePushCmd(ctx, path, opts...) + if err != nil { + return err + } + return tf.runTerraformCmd(ctx, cmd) +} + +func (tf *Terraform) statePushCmd(ctx context.Context, path string, opts ...StatePushCmdOption) (*exec.Cmd, error) { + c := defaultStatePushOptions + + for _, o := range opts { + o.configureStatePush(&c) + } + + args := []string{"state", "push"} + + if c.force { + args = append(args, "-force") + } + + args = append(args, "-lock="+strconv.FormatBool(c.lock)) + + if c.lockTimeout != "" { + args = append(args, "-lock-timeout="+c.lockTimeout) + } + + args = append(args, path) + + return tf.buildTerraformCmd(ctx, nil, args...), nil +} diff --git a/vendor/github.com/hashicorp/terraform-exec/tfexec/terraform.go b/vendor/github.com/hashicorp/terraform-exec/tfexec/terraform.go index 2ad143a41..bb8be17d5 100644 --- a/vendor/github.com/hashicorp/terraform-exec/tfexec/terraform.go +++ b/vendor/github.com/hashicorp/terraform-exec/tfexec/terraform.go @@ -48,11 +48,22 @@ type Terraform struct { skipProviderVerify bool env map[string]string - stdout io.Writer - stderr io.Writer - logger printfer + stdout io.Writer + stderr io.Writer + logger printfer + + // TF_LOG environment variable, defaults to TRACE if logPath is set. + log string + + // TF_LOG_CORE environment variable + logCore string + + // TF_LOG_PATH environment variable logPath string + // TF_LOG_PROVIDER environment variable + logProvider string + versionLock sync.Mutex execVersion *version.Version provVersions map[string]*version.Version @@ -122,10 +133,58 @@ func (tf *Terraform) SetStderr(w io.Writer) { tf.stderr = w } +// SetLog sets the TF_LOG environment variable for Terraform CLI execution. +// This must be combined with a call to SetLogPath to take effect. +// +// This is only compatible with Terraform CLI 0.15.0 or later as setting the +// log level was unreliable in earlier versions. It will default to TRACE when +// SetLogPath is called on versions 0.14.11 and earlier, or if SetLogCore and +// SetLogProvider have not been called before SetLogPath on versions 0.15.0 and +// later. +func (tf *Terraform) SetLog(log string) error { + err := tf.compatible(context.Background(), tf0_15_0, nil) + if err != nil { + return err + } + tf.log = log + return nil +} + +// SetLogCore sets the TF_LOG_CORE environment variable for Terraform CLI +// execution. This must be combined with a call to SetLogPath to take effect. +// +// This is only compatible with Terraform CLI 0.15.0 or later. +func (tf *Terraform) SetLogCore(logCore string) error { + err := tf.compatible(context.Background(), tf0_15_0, nil) + if err != nil { + return err + } + tf.logCore = logCore + return nil +} + // SetLogPath sets the TF_LOG_PATH environment variable for Terraform CLI // execution. func (tf *Terraform) SetLogPath(path string) error { tf.logPath = path + // Prevent setting the log path without enabling logging + if tf.log == "" && tf.logCore == "" && tf.logProvider == "" { + tf.log = "TRACE" + } + return nil +} + +// SetLogProvider sets the TF_LOG_PROVIDER environment variable for Terraform +// CLI execution. This must be combined with a call to SetLogPath to take +// effect. +// +// This is only compatible with Terraform CLI 0.15.0 or later. +func (tf *Terraform) SetLogProvider(logProvider string) error { + err := tf.compatible(context.Background(), tf0_15_0, nil) + if err != nil { + return err + } + tf.logProvider = logProvider return nil } diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go index a35258a8e..385283bb9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go @@ -10,9 +10,9 @@ import ( // DataSourceContext injects the data source type into logger contexts. func DataSourceContext(ctx context.Context, dataSource string) context.Context { - ctx = tfsdklog.With(ctx, KeyDataSourceType, dataSource) - ctx = tfsdklog.SubsystemWith(ctx, SubsystemProto, KeyDataSourceType, dataSource) - ctx = tflog.With(ctx, KeyDataSourceType, dataSource) + ctx = tfsdklog.SetField(ctx, KeyDataSourceType, dataSource) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyDataSourceType, dataSource) + ctx = tflog.SetField(ctx, KeyDataSourceType, dataSource) return ctx } @@ -22,28 +22,35 @@ func InitContext(ctx context.Context, sdkOpts tfsdklog.Options, providerOpts tfl ctx = tfsdklog.NewRootSDKLogger(ctx, append(tfsdklog.Options{ tfsdklog.WithLevelFromEnv(EnvTfLogSdk), }, sdkOpts...)...) + ctx = ProtoSubsystemContext(ctx, sdkOpts) + ctx = tfsdklog.NewRootProviderLogger(ctx, providerOpts...) + + return ctx +} + +// ProtoSubsystemContext adds the proto subsystem to the SDK logger context. +func ProtoSubsystemContext(ctx context.Context, sdkOpts tfsdklog.Options) context.Context { ctx = tfsdklog.NewSubsystem(ctx, SubsystemProto, append(tfsdklog.Options{ // All calls are through the Protocol* helper functions tfsdklog.WithAdditionalLocationOffset(1), tfsdklog.WithLevelFromEnv(EnvTfLogSdkProto), }, sdkOpts...)...) - ctx = tfsdklog.NewRootProviderLogger(ctx, providerOpts...) return ctx } // ProtocolVersionContext injects the protocol version into logger contexts. func ProtocolVersionContext(ctx context.Context, protocolVersion string) context.Context { - ctx = tfsdklog.SubsystemWith(ctx, SubsystemProto, KeyProtocolVersion, protocolVersion) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyProtocolVersion, protocolVersion) return ctx } // ProviderAddressContext injects the provider address into logger contexts. func ProviderAddressContext(ctx context.Context, providerAddress string) context.Context { - ctx = tfsdklog.With(ctx, KeyProviderAddress, providerAddress) - ctx = tfsdklog.SubsystemWith(ctx, SubsystemProto, KeyProviderAddress, providerAddress) - ctx = tflog.With(ctx, KeyProviderAddress, providerAddress) + ctx = tfsdklog.SetField(ctx, KeyProviderAddress, providerAddress) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyProviderAddress, providerAddress) + ctx = tflog.SetField(ctx, KeyProviderAddress, providerAddress) return ctx } @@ -56,27 +63,27 @@ func RequestIdContext(ctx context.Context) context.Context { reqID = "unable to assign request ID: " + err.Error() } - ctx = tfsdklog.With(ctx, KeyRequestID, reqID) - ctx = tfsdklog.SubsystemWith(ctx, SubsystemProto, KeyRequestID, reqID) - ctx = tflog.With(ctx, KeyRequestID, reqID) + ctx = tfsdklog.SetField(ctx, KeyRequestID, reqID) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyRequestID, reqID) + ctx = tflog.SetField(ctx, KeyRequestID, reqID) return ctx } // ResourceContext injects the resource type into logger contexts. func ResourceContext(ctx context.Context, resource string) context.Context { - ctx = tfsdklog.With(ctx, KeyResourceType, resource) - ctx = tfsdklog.SubsystemWith(ctx, SubsystemProto, KeyResourceType, resource) - ctx = tflog.With(ctx, KeyResourceType, resource) + ctx = tfsdklog.SetField(ctx, KeyResourceType, resource) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyResourceType, resource) + ctx = tflog.SetField(ctx, KeyResourceType, resource) return ctx } // RpcContext injects the RPC name into logger contexts. func RpcContext(ctx context.Context, rpc string) context.Context { - ctx = tfsdklog.With(ctx, KeyRPC, rpc) - ctx = tfsdklog.SubsystemWith(ctx, SubsystemProto, KeyRPC, rpc) - ctx = tflog.With(ctx, KeyRPC, rpc) + ctx = tfsdklog.SetField(ctx, KeyRPC, rpc) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyRPC, rpc) + ctx = tflog.SetField(ctx, KeyRPC, rpc) return ctx } diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go index 3d7af9611..ce803d752 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go @@ -5,9 +5,30 @@ package logging // Practitioners or tooling reading logs may be depending on these keys, so be // conscious of that when changing them. const ( + // Attribute of the diagnostic being logged. + KeyDiagnosticAttribute = "diagnostic_attribute" + + // Number of the error diagnostics. + KeyDiagnosticErrorCount = "diagnostic_error_count" + + // Severity of the diagnostic being logged. + KeyDiagnosticSeverity = "diagnostic_severity" + + // Detail of the diagnostic being logged. + KeyDiagnosticDetail = "diagnostic_detail" + + // Summary of the diagnostic being logged. + KeyDiagnosticSummary = "diagnostic_summary" + + // Number of the warning diagnostics. + KeyDiagnosticWarningCount = "diagnostic_warning_count" + // Underlying error string KeyError = "error" + // Duration in milliseconds for the RPC request + KeyRequestDurationMs = "tf_req_duration_ms" + // A unique ID for the RPC request KeyRequestID = "tf_req_id" diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol.go index 9f9c2808c..ee1247690 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol.go @@ -16,7 +16,18 @@ func ProtocolError(ctx context.Context, msg string, additionalFields ...map[stri tfsdklog.SubsystemError(ctx, SubsystemProto, msg, additionalFields...) } +// ProtocolWarn emits a protocol subsystem log at WARN level. +func ProtocolWarn(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { + tfsdklog.SubsystemWarn(ctx, SubsystemProto, msg, additionalFields...) +} + // ProtocolTrace emits a protocol subsystem log at TRACE level. func ProtocolTrace(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { tfsdklog.SubsystemTrace(ctx, SubsystemProto, msg, additionalFields...) } + +// ProtocolSetField returns a context with the additional protocol subsystem +// field set. +func ProtocolSetField(ctx context.Context, key string, value any) context.Context { + return tfsdklog.SubsystemSetField(ctx, SubsystemProto, key, value) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol_data.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol_data.go index 630358232..0e220f57c 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol_data.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/protocol_data.go @@ -55,20 +55,34 @@ func ProtocolData(ctx context.Context, dataDir string, rpc string, message strin return } - fileName := fmt.Sprintf("%d_%s_%s_%s.%s", time.Now().Unix(), rpc, message, field, fileExtension) - filePath := path.Join(dataDir, fileName) - logFields := map[string]interface{}{KeyProtocolDataFile: filePath} // should not be persisted using With() - - ProtocolTrace(ctx, "Writing protocol data file", logFields) + writeProtocolFile(ctx, dataDir, rpc, message, field, fileExtension, fileContents) +} - err := os.WriteFile(filePath, fileContents, 0644) +// ProtocolPrivateData emits raw protocol private data to a file, if given a +// directory. This data is "private" in the sense that it is provider-owned, +// rather than something managed by Terraform. +// +// The directory must exist and be writable, prior to invoking this function. +// +// File names are in the format: {TIME}_{RPC}_{MESSAGE}_{FIELD}(.empty) +func ProtocolPrivateData(ctx context.Context, dataDir string, rpc string, message string, field string, data []byte) { + if dataDir == "" { + // Write a log, only once, that explains how to enable this functionality. + protocolDataSkippedLog.Do(func() { + ProtocolTrace(ctx, "Skipping protocol data file writing because no data directory is set. "+ + fmt.Sprintf("Use the %s environment variable to enable this functionality.", EnvTfLogSdkProtoDataDir)) + }) - if err != nil { - ProtocolError(ctx, fmt.Sprintf("Unable to write protocol data file: %s", err), logFields) return } - ProtocolTrace(ctx, "Wrote protocol data file", logFields) + var fileExtension string + + if len(data) == 0 { + fileExtension = fileExtEmpty + } + + writeProtocolFile(ctx, dataDir, rpc, message, field, fileExtension, data) } func protocolDataDynamicValue5(_ context.Context, value *tfprotov5.DynamicValue) (string, []byte) { @@ -106,3 +120,25 @@ func protocolDataDynamicValue6(_ context.Context, value *tfprotov6.DynamicValue) return fileExtEmpty, nil } + +func writeProtocolFile(ctx context.Context, dataDir string, rpc string, message string, field string, fileExtension string, fileContents []byte) { + fileName := fmt.Sprintf("%d_%s_%s_%s", time.Now().Unix(), rpc, message, field) + + if fileExtension != "" { + fileName += "." + fileExtension + } + + filePath := path.Join(dataDir, fileName) + ctx = ProtocolSetField(ctx, KeyProtocolDataFile, filePath) + + ProtocolTrace(ctx, "Writing protocol data file") + + err := os.WriteFile(filePath, fileContents, 0644) + + if err != nil { + ProtocolError(ctx, "Unable to write protocol data file", map[string]any{KeyError: err.Error()}) + return + } + + ProtocolTrace(ctx, "Wrote protocol data file") +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/provider.go index 6c68504c1..b40763c6e 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/provider.go @@ -8,8 +8,7 @@ import ( ) func ProviderLoggerName(providerAddress string) string { - provider, err := tfaddr.ParseRawProviderSourceString(providerAddress) - + provider, err := tfaddr.ParseProviderSource(providerAddress) if err != nil { log.Printf("[ERROR] Error parsing provider name %q: %s", providerAddress, err) return "" diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/diagnostics.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/diagnostics.go new file mode 100644 index 000000000..9032b901f --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/diagnostics.go @@ -0,0 +1,81 @@ +package diag + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/internal/logging" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// Diagnostics is a collection of Diagnostic. +type Diagnostics []*tfprotov5.Diagnostic + +// ErrorCount returns the number of error severity diagnostics. +func (d Diagnostics) ErrorCount() int { + var result int + + for _, diagnostic := range d { + if diagnostic == nil { + continue + } + + if diagnostic.Severity != tfprotov5.DiagnosticSeverityError { + continue + } + + result++ + } + + return result +} + +// Log will log every diagnostic: +// +// - Error severity at ERROR level +// - Warning severity at WARN level +// - Invalid/Unknown severity at WARN level +func (d Diagnostics) Log(ctx context.Context) { + for _, diagnostic := range d { + if diagnostic == nil { + continue + } + + diagnosticFields := map[string]interface{}{ + logging.KeyDiagnosticDetail: diagnostic.Detail, + logging.KeyDiagnosticSeverity: diagnostic.Severity.String(), + logging.KeyDiagnosticSummary: diagnostic.Summary, + } + + if diagnostic.Attribute != nil { + diagnosticFields[logging.KeyDiagnosticAttribute] = diagnostic.Attribute.String() + } + + switch diagnostic.Severity { + case tfprotov5.DiagnosticSeverityError: + logging.ProtocolError(ctx, "Response contains error diagnostic", diagnosticFields) + case tfprotov5.DiagnosticSeverityWarning: + logging.ProtocolWarn(ctx, "Response contains warning diagnostic", diagnosticFields) + default: + logging.ProtocolWarn(ctx, "Response contains unknown diagnostic", diagnosticFields) + } + } +} + +// WarningCount returns the number of warning severity diagnostics. +func (d Diagnostics) WarningCount() int { + var result int + + for _, diagnostic := range d { + if diagnostic == nil { + continue + } + + if diagnostic.Severity != tfprotov5.DiagnosticSeverityWarning { + continue + } + + result++ + } + + return result +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/doc.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/doc.go new file mode 100644 index 000000000..0c73dab12 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/doc.go @@ -0,0 +1,3 @@ +// Package diag contains diagnostics helpers. These implementations are +// intentionally outside the public API. +package diag diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/context_keys.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/context_keys.go new file mode 100644 index 000000000..cc72fe4bb --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/context_keys.go @@ -0,0 +1,8 @@ +package tf5serverlogging + +// Context key types. +// Reference: https://staticcheck.io/docs/checks/#SA1029 + +// ContextKeyDownstreamRequestStartTime is a context.Context key to store the +// time.Time when the server began a downstream request. +type ContextKeyDownstreamRequestStartTime struct{} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/doc.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/doc.go new file mode 100644 index 000000000..e77a831c0 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/doc.go @@ -0,0 +1,3 @@ +// Package tf5serverlogging contains logging functionality specific to +// tf5server and tfprotov5 types. +package tf5serverlogging diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/downstream_request.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/downstream_request.go new file mode 100644 index 000000000..65ed70113 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/downstream_request.go @@ -0,0 +1,39 @@ +package tf5serverlogging + +import ( + "context" + "time" + + "github.com/hashicorp/terraform-plugin-go/internal/logging" + "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag" +) + +// DownstreamRequest sets a request duration start time context key and +// generates a TRACE "Sending request downstream" log. +func DownstreamRequest(ctx context.Context) context.Context { + requestStart := time.Now() + ctx = context.WithValue(ctx, ContextKeyDownstreamRequestStartTime{}, requestStart) + + logging.ProtocolTrace(ctx, "Sending request downstream") + + return ctx +} + +// DownstreamResponse generates the following logging: +// +// - TRACE "Received downstream response" log with request duration and +// diagnostic severity counts +// - Per-diagnostic logs +func DownstreamResponse(ctx context.Context, diagnostics diag.Diagnostics) { + responseFields := map[string]interface{}{ + logging.KeyDiagnosticErrorCount: diagnostics.ErrorCount(), + logging.KeyDiagnosticWarningCount: diagnostics.WarningCount(), + } + + if requestStart, ok := ctx.Value(ContextKeyDownstreamRequestStartTime{}).(time.Time); ok { + responseFields[logging.KeyRequestDurationMs] = time.Since(requestStart).Milliseconds() + } + + logging.ProtocolTrace(ctx, "Received downstream response", responseFields) + diagnostics.Log(ctx) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go index 326a58bba..45071cea7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go @@ -1,6 +1,6 @@ -// Terraform Plugin RPC protocol version 5.2 +// Terraform Plugin RPC protocol version 5.3 // -// This file defines version 5.2 of the RPC protocol. To implement a plugin +// This file defines version 5.3 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -13,13 +13,13 @@ // official protocol releases. Proto files taken from other commits may include // incomplete changes or features that did not make it into a final release. // In all reasonable cases, plugin developers should take the proto file from -// the tag of the most recent release of Terraform, and not from the master +// the tag of the most recent release of Terraform, and not from the main // branch or any other development branch. // // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.28.1 // protoc v3.19.4 // source: tfplugin5.proto @@ -1558,11 +1558,12 @@ type GetProviderSchema_Response struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Provider *Schema `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` - ResourceSchemas map[string]*Schema `protobuf:"bytes,2,rep,name=resource_schemas,json=resourceSchemas,proto3" json:"resource_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - DataSourceSchemas map[string]*Schema `protobuf:"bytes,3,rep,name=data_source_schemas,json=dataSourceSchemas,proto3" json:"data_source_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Diagnostics []*Diagnostic `protobuf:"bytes,4,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` - ProviderMeta *Schema `protobuf:"bytes,5,opt,name=provider_meta,json=providerMeta,proto3" json:"provider_meta,omitempty"` + Provider *Schema `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + ResourceSchemas map[string]*Schema `protobuf:"bytes,2,rep,name=resource_schemas,json=resourceSchemas,proto3" json:"resource_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + DataSourceSchemas map[string]*Schema `protobuf:"bytes,3,rep,name=data_source_schemas,json=dataSourceSchemas,proto3" json:"data_source_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Diagnostics []*Diagnostic `protobuf:"bytes,4,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` + ProviderMeta *Schema `protobuf:"bytes,5,opt,name=provider_meta,json=providerMeta,proto3" json:"provider_meta,omitempty"` + ServerCapabilities *GetProviderSchema_ServerCapabilities `protobuf:"bytes,6,opt,name=server_capabilities,json=serverCapabilities,proto3" json:"server_capabilities,omitempty"` } func (x *GetProviderSchema_Response) Reset() { @@ -1632,6 +1633,66 @@ func (x *GetProviderSchema_Response) GetProviderMeta() *Schema { return nil } +func (x *GetProviderSchema_Response) GetServerCapabilities() *GetProviderSchema_ServerCapabilities { + if x != nil { + return x.ServerCapabilities + } + return nil +} + +// ServerCapabilities allows providers to communicate extra information +// regarding supported protocol features. This is used to indicate +// availability of certain forward-compatible changes which may be optional +// in a major protocol version, but cannot be tested for directly. +type GetProviderSchema_ServerCapabilities struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The plan_destroy capability signals that a provider expects a call + // to PlanResourceChange when a resource is going to be destroyed. + PlanDestroy bool `protobuf:"varint,1,opt,name=plan_destroy,json=planDestroy,proto3" json:"plan_destroy,omitempty"` +} + +func (x *GetProviderSchema_ServerCapabilities) Reset() { + *x = GetProviderSchema_ServerCapabilities{} + if protoimpl.UnsafeEnabled { + mi := &file_tfplugin5_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProviderSchema_ServerCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProviderSchema_ServerCapabilities) ProtoMessage() {} + +func (x *GetProviderSchema_ServerCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProviderSchema_ServerCapabilities.ProtoReflect.Descriptor instead. +func (*GetProviderSchema_ServerCapabilities) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{6, 2} +} + +func (x *GetProviderSchema_ServerCapabilities) GetPlanDestroy() bool { + if x != nil { + return x.PlanDestroy + } + return false +} + type PrepareProviderConfig_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1643,7 +1704,7 @@ type PrepareProviderConfig_Request struct { func (x *PrepareProviderConfig_Request) Reset() { *x = PrepareProviderConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[31] + mi := &file_tfplugin5_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1656,7 +1717,7 @@ func (x *PrepareProviderConfig_Request) String() string { func (*PrepareProviderConfig_Request) ProtoMessage() {} func (x *PrepareProviderConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[31] + mi := &file_tfplugin5_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1691,7 +1752,7 @@ type PrepareProviderConfig_Response struct { func (x *PrepareProviderConfig_Response) Reset() { *x = PrepareProviderConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[32] + mi := &file_tfplugin5_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1704,7 +1765,7 @@ func (x *PrepareProviderConfig_Response) String() string { func (*PrepareProviderConfig_Response) ProtoMessage() {} func (x *PrepareProviderConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[32] + mi := &file_tfplugin5_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1753,7 +1814,7 @@ type UpgradeResourceState_Request struct { func (x *UpgradeResourceState_Request) Reset() { *x = UpgradeResourceState_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[33] + mi := &file_tfplugin5_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1766,7 +1827,7 @@ func (x *UpgradeResourceState_Request) String() string { func (*UpgradeResourceState_Request) ProtoMessage() {} func (x *UpgradeResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[33] + mi := &file_tfplugin5_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1821,7 +1882,7 @@ type UpgradeResourceState_Response struct { func (x *UpgradeResourceState_Response) Reset() { *x = UpgradeResourceState_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[34] + mi := &file_tfplugin5_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1834,7 +1895,7 @@ func (x *UpgradeResourceState_Response) String() string { func (*UpgradeResourceState_Response) ProtoMessage() {} func (x *UpgradeResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[34] + mi := &file_tfplugin5_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1876,7 +1937,7 @@ type ValidateResourceTypeConfig_Request struct { func (x *ValidateResourceTypeConfig_Request) Reset() { *x = ValidateResourceTypeConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[35] + mi := &file_tfplugin5_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1889,7 +1950,7 @@ func (x *ValidateResourceTypeConfig_Request) String() string { func (*ValidateResourceTypeConfig_Request) ProtoMessage() {} func (x *ValidateResourceTypeConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[35] + mi := &file_tfplugin5_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1930,7 +1991,7 @@ type ValidateResourceTypeConfig_Response struct { func (x *ValidateResourceTypeConfig_Response) Reset() { *x = ValidateResourceTypeConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[36] + mi := &file_tfplugin5_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1943,7 +2004,7 @@ func (x *ValidateResourceTypeConfig_Response) String() string { func (*ValidateResourceTypeConfig_Response) ProtoMessage() {} func (x *ValidateResourceTypeConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[36] + mi := &file_tfplugin5_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1978,7 +2039,7 @@ type ValidateDataSourceConfig_Request struct { func (x *ValidateDataSourceConfig_Request) Reset() { *x = ValidateDataSourceConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[37] + mi := &file_tfplugin5_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1991,7 +2052,7 @@ func (x *ValidateDataSourceConfig_Request) String() string { func (*ValidateDataSourceConfig_Request) ProtoMessage() {} func (x *ValidateDataSourceConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[37] + mi := &file_tfplugin5_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2032,7 +2093,7 @@ type ValidateDataSourceConfig_Response struct { func (x *ValidateDataSourceConfig_Response) Reset() { *x = ValidateDataSourceConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[38] + mi := &file_tfplugin5_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2045,7 +2106,7 @@ func (x *ValidateDataSourceConfig_Response) String() string { func (*ValidateDataSourceConfig_Response) ProtoMessage() {} func (x *ValidateDataSourceConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[38] + mi := &file_tfplugin5_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2080,7 +2141,7 @@ type Configure_Request struct { func (x *Configure_Request) Reset() { *x = Configure_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[39] + mi := &file_tfplugin5_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2093,7 +2154,7 @@ func (x *Configure_Request) String() string { func (*Configure_Request) ProtoMessage() {} func (x *Configure_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[39] + mi := &file_tfplugin5_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2134,7 +2195,7 @@ type Configure_Response struct { func (x *Configure_Response) Reset() { *x = Configure_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[40] + mi := &file_tfplugin5_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2147,7 +2208,7 @@ func (x *Configure_Response) String() string { func (*Configure_Response) ProtoMessage() {} func (x *Configure_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[40] + mi := &file_tfplugin5_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2184,7 +2245,7 @@ type ReadResource_Request struct { func (x *ReadResource_Request) Reset() { *x = ReadResource_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[41] + mi := &file_tfplugin5_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2197,7 +2258,7 @@ func (x *ReadResource_Request) String() string { func (*ReadResource_Request) ProtoMessage() {} func (x *ReadResource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[41] + mi := &file_tfplugin5_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2254,7 +2315,7 @@ type ReadResource_Response struct { func (x *ReadResource_Response) Reset() { *x = ReadResource_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[42] + mi := &file_tfplugin5_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2267,7 +2328,7 @@ func (x *ReadResource_Response) String() string { func (*ReadResource_Response) ProtoMessage() {} func (x *ReadResource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[42] + mi := &file_tfplugin5_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2320,7 +2381,7 @@ type PlanResourceChange_Request struct { func (x *PlanResourceChange_Request) Reset() { *x = PlanResourceChange_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[43] + mi := &file_tfplugin5_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2333,7 +2394,7 @@ func (x *PlanResourceChange_Request) String() string { func (*PlanResourceChange_Request) ProtoMessage() {} func (x *PlanResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[43] + mi := &file_tfplugin5_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2417,7 +2478,7 @@ type PlanResourceChange_Response struct { func (x *PlanResourceChange_Response) Reset() { *x = PlanResourceChange_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[44] + mi := &file_tfplugin5_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2430,7 +2491,7 @@ func (x *PlanResourceChange_Response) String() string { func (*PlanResourceChange_Response) ProtoMessage() {} func (x *PlanResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[44] + mi := &file_tfplugin5_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2497,7 +2558,7 @@ type ApplyResourceChange_Request struct { func (x *ApplyResourceChange_Request) Reset() { *x = ApplyResourceChange_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[45] + mi := &file_tfplugin5_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2510,7 +2571,7 @@ func (x *ApplyResourceChange_Request) String() string { func (*ApplyResourceChange_Request) ProtoMessage() {} func (x *ApplyResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[45] + mi := &file_tfplugin5_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2593,7 +2654,7 @@ type ApplyResourceChange_Response struct { func (x *ApplyResourceChange_Response) Reset() { *x = ApplyResourceChange_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[46] + mi := &file_tfplugin5_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2606,7 +2667,7 @@ func (x *ApplyResourceChange_Response) String() string { func (*ApplyResourceChange_Response) ProtoMessage() {} func (x *ApplyResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[46] + mi := &file_tfplugin5_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2662,7 +2723,7 @@ type ImportResourceState_Request struct { func (x *ImportResourceState_Request) Reset() { *x = ImportResourceState_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[47] + mi := &file_tfplugin5_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2675,7 +2736,7 @@ func (x *ImportResourceState_Request) String() string { func (*ImportResourceState_Request) ProtoMessage() {} func (x *ImportResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[47] + mi := &file_tfplugin5_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2718,7 +2779,7 @@ type ImportResourceState_ImportedResource struct { func (x *ImportResourceState_ImportedResource) Reset() { *x = ImportResourceState_ImportedResource{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[48] + mi := &file_tfplugin5_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2731,7 +2792,7 @@ func (x *ImportResourceState_ImportedResource) String() string { func (*ImportResourceState_ImportedResource) ProtoMessage() {} func (x *ImportResourceState_ImportedResource) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[48] + mi := &file_tfplugin5_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2780,7 +2841,7 @@ type ImportResourceState_Response struct { func (x *ImportResourceState_Response) Reset() { *x = ImportResourceState_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[49] + mi := &file_tfplugin5_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2793,7 +2854,7 @@ func (x *ImportResourceState_Response) String() string { func (*ImportResourceState_Response) ProtoMessage() {} func (x *ImportResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[49] + mi := &file_tfplugin5_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2836,7 +2897,7 @@ type ReadDataSource_Request struct { func (x *ReadDataSource_Request) Reset() { *x = ReadDataSource_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[50] + mi := &file_tfplugin5_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2849,7 +2910,7 @@ func (x *ReadDataSource_Request) String() string { func (*ReadDataSource_Request) ProtoMessage() {} func (x *ReadDataSource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[50] + mi := &file_tfplugin5_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2898,7 +2959,7 @@ type ReadDataSource_Response struct { func (x *ReadDataSource_Response) Reset() { *x = ReadDataSource_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[51] + mi := &file_tfplugin5_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2911,7 +2972,7 @@ func (x *ReadDataSource_Response) String() string { func (*ReadDataSource_Response) ProtoMessage() {} func (x *ReadDataSource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[51] + mi := &file_tfplugin5_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2950,7 +3011,7 @@ type GetProvisionerSchema_Request struct { func (x *GetProvisionerSchema_Request) Reset() { *x = GetProvisionerSchema_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[52] + mi := &file_tfplugin5_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2963,7 +3024,7 @@ func (x *GetProvisionerSchema_Request) String() string { func (*GetProvisionerSchema_Request) ProtoMessage() {} func (x *GetProvisionerSchema_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[52] + mi := &file_tfplugin5_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2991,7 +3052,7 @@ type GetProvisionerSchema_Response struct { func (x *GetProvisionerSchema_Response) Reset() { *x = GetProvisionerSchema_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[53] + mi := &file_tfplugin5_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3004,7 +3065,7 @@ func (x *GetProvisionerSchema_Response) String() string { func (*GetProvisionerSchema_Response) ProtoMessage() {} func (x *GetProvisionerSchema_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[53] + mi := &file_tfplugin5_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3045,7 +3106,7 @@ type ValidateProvisionerConfig_Request struct { func (x *ValidateProvisionerConfig_Request) Reset() { *x = ValidateProvisionerConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[54] + mi := &file_tfplugin5_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3058,7 +3119,7 @@ func (x *ValidateProvisionerConfig_Request) String() string { func (*ValidateProvisionerConfig_Request) ProtoMessage() {} func (x *ValidateProvisionerConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[54] + mi := &file_tfplugin5_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3092,7 +3153,7 @@ type ValidateProvisionerConfig_Response struct { func (x *ValidateProvisionerConfig_Response) Reset() { *x = ValidateProvisionerConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[55] + mi := &file_tfplugin5_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3105,7 +3166,7 @@ func (x *ValidateProvisionerConfig_Response) String() string { func (*ValidateProvisionerConfig_Response) ProtoMessage() {} func (x *ValidateProvisionerConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[55] + mi := &file_tfplugin5_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3140,7 +3201,7 @@ type ProvisionResource_Request struct { func (x *ProvisionResource_Request) Reset() { *x = ProvisionResource_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[56] + mi := &file_tfplugin5_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3153,7 +3214,7 @@ func (x *ProvisionResource_Request) String() string { func (*ProvisionResource_Request) ProtoMessage() {} func (x *ProvisionResource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[56] + mi := &file_tfplugin5_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3195,7 +3256,7 @@ type ProvisionResource_Response struct { func (x *ProvisionResource_Response) Reset() { *x = ProvisionResource_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[57] + mi := &file_tfplugin5_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3208,7 +3269,7 @@ func (x *ProvisionResource_Response) String() string { func (*ProvisionResource_Response) ProtoMessage() {} func (x *ProvisionResource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[57] + mi := &file_tfplugin5_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3348,9 +3409,9 @@ var file_tfplugin5_proto_rawDesc = []byte{ 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, - 0x04, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x05, 0x22, 0xd0, 0x04, 0x0a, + 0x04, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x05, 0x22, 0xeb, 0x05, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xaf, 0x04, + 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x91, 0x05, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, @@ -3374,63 +3435,61 @@ var file_tfplugin5_proto_rawDesc = []byte{ 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x36, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, - 0x55, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0xdb, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, - 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x52, 0x08, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, - 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x60, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x1a, 0x55, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x37, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x5f, + 0x64, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, + 0x6c, 0x61, 0x6e, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x22, 0xdb, 0x01, 0x0a, 0x15, 0x50, + 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, - 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, - 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb8, 0x01, - 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x1a, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, + 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x08, 0x72, 0x61, 0x77, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x64, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x1a, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, @@ -3440,295 +3499,306 @@ var file_tfplugin5_proto_rawDesc = []byte{ 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb9, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x1a, 0x67, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, - 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xbc, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, - 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x18, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, + 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, - 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x93, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, - 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0xf2, 0x04, 0x0a, 0x12, 0x50, - 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x1a, 0xbb, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, - 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, - 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, - 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, + 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x22, 0xb9, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x65, 0x1a, 0x67, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, + 0xe3, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x1a, 0xbc, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, - 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, - 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, - 0x9d, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0d, - 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x93, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, + 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0xf2, 0x04, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xbb, 0x02, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x45, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4e, 0x65, + 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x9d, 0x02, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, + 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, + 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, + 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x92, 0x04, 0x0a, 0x13, 0x41, + 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x1a, 0xb6, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, + 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, - 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0f, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, - 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, + 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, + 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0xc1, 0x01, 0x0a, 0x08, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, + 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, - 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb6, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0xed, 0x02, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x36, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x1a, + 0x78, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, - 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, - 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xa3, 0x01, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, + 0x9c, 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x1a, 0x95, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0d, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x72, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x9b, + 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, + 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x78, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, + 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, + 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x9c, 0x01, 0x0a, + 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x11, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x1a, 0x73, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, + 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, - 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, - 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, - 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, - 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x22, 0xed, 0x02, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x36, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x1a, 0x78, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xa3, - 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x69, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x95, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, - 0x72, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x22, 0x9b, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x78, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0b, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x22, 0xe5, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x73, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5b, 0x0a, 0x08, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, - 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, - 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, - 0x97, 0x09, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x58, 0x0a, 0x09, - 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, - 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x65, 0x70, - 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x75, 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, 0x2e, + 0x69, 0x63, 0x73, 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, + 0x64, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, + 0x4d, 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0x97, 0x09, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x58, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x6c, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x7b, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, - 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, 0x67, - 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, - 0x12, 0x1c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, - 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x18, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, + 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, + 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x12, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x6c, + 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x66, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x21, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, 0x6f, + 0x70, 0x12, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, + 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x86, 0x03, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x5e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, + 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x63, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, - 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, - 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x86, 0x03, 0x0a, 0x0b, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x5e, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, - 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x19, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, - 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x2d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, - 0x66, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x76, 0x35, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x30, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x47, 0x5a, + 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, + 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x2d, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x66, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x76, 0x35, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3744,7 +3814,7 @@ func file_tfplugin5_proto_rawDescGZIP() []byte { } var file_tfplugin5_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_tfplugin5_proto_msgTypes = make([]protoimpl.MessageInfo, 58) +var file_tfplugin5_proto_msgTypes = make([]protoimpl.MessageInfo, 59) var file_tfplugin5_proto_goTypes = []interface{}{ (StringKind)(0), // 0: tfplugin5.StringKind (Diagnostic_Severity)(0), // 1: tfplugin5.Diagnostic.Severity @@ -3778,35 +3848,36 @@ var file_tfplugin5_proto_goTypes = []interface{}{ (*Schema_NestedBlock)(nil), // 29: tfplugin5.Schema.NestedBlock (*GetProviderSchema_Request)(nil), // 30: tfplugin5.GetProviderSchema.Request (*GetProviderSchema_Response)(nil), // 31: tfplugin5.GetProviderSchema.Response - nil, // 32: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry - nil, // 33: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry - (*PrepareProviderConfig_Request)(nil), // 34: tfplugin5.PrepareProviderConfig.Request - (*PrepareProviderConfig_Response)(nil), // 35: tfplugin5.PrepareProviderConfig.Response - (*UpgradeResourceState_Request)(nil), // 36: tfplugin5.UpgradeResourceState.Request - (*UpgradeResourceState_Response)(nil), // 37: tfplugin5.UpgradeResourceState.Response - (*ValidateResourceTypeConfig_Request)(nil), // 38: tfplugin5.ValidateResourceTypeConfig.Request - (*ValidateResourceTypeConfig_Response)(nil), // 39: tfplugin5.ValidateResourceTypeConfig.Response - (*ValidateDataSourceConfig_Request)(nil), // 40: tfplugin5.ValidateDataSourceConfig.Request - (*ValidateDataSourceConfig_Response)(nil), // 41: tfplugin5.ValidateDataSourceConfig.Response - (*Configure_Request)(nil), // 42: tfplugin5.Configure.Request - (*Configure_Response)(nil), // 43: tfplugin5.Configure.Response - (*ReadResource_Request)(nil), // 44: tfplugin5.ReadResource.Request - (*ReadResource_Response)(nil), // 45: tfplugin5.ReadResource.Response - (*PlanResourceChange_Request)(nil), // 46: tfplugin5.PlanResourceChange.Request - (*PlanResourceChange_Response)(nil), // 47: tfplugin5.PlanResourceChange.Response - (*ApplyResourceChange_Request)(nil), // 48: tfplugin5.ApplyResourceChange.Request - (*ApplyResourceChange_Response)(nil), // 49: tfplugin5.ApplyResourceChange.Response - (*ImportResourceState_Request)(nil), // 50: tfplugin5.ImportResourceState.Request - (*ImportResourceState_ImportedResource)(nil), // 51: tfplugin5.ImportResourceState.ImportedResource - (*ImportResourceState_Response)(nil), // 52: tfplugin5.ImportResourceState.Response - (*ReadDataSource_Request)(nil), // 53: tfplugin5.ReadDataSource.Request - (*ReadDataSource_Response)(nil), // 54: tfplugin5.ReadDataSource.Response - (*GetProvisionerSchema_Request)(nil), // 55: tfplugin5.GetProvisionerSchema.Request - (*GetProvisionerSchema_Response)(nil), // 56: tfplugin5.GetProvisionerSchema.Response - (*ValidateProvisionerConfig_Request)(nil), // 57: tfplugin5.ValidateProvisionerConfig.Request - (*ValidateProvisionerConfig_Response)(nil), // 58: tfplugin5.ValidateProvisionerConfig.Response - (*ProvisionResource_Request)(nil), // 59: tfplugin5.ProvisionResource.Request - (*ProvisionResource_Response)(nil), // 60: tfplugin5.ProvisionResource.Response + (*GetProviderSchema_ServerCapabilities)(nil), // 32: tfplugin5.GetProviderSchema.ServerCapabilities + nil, // 33: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry + nil, // 34: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry + (*PrepareProviderConfig_Request)(nil), // 35: tfplugin5.PrepareProviderConfig.Request + (*PrepareProviderConfig_Response)(nil), // 36: tfplugin5.PrepareProviderConfig.Response + (*UpgradeResourceState_Request)(nil), // 37: tfplugin5.UpgradeResourceState.Request + (*UpgradeResourceState_Response)(nil), // 38: tfplugin5.UpgradeResourceState.Response + (*ValidateResourceTypeConfig_Request)(nil), // 39: tfplugin5.ValidateResourceTypeConfig.Request + (*ValidateResourceTypeConfig_Response)(nil), // 40: tfplugin5.ValidateResourceTypeConfig.Response + (*ValidateDataSourceConfig_Request)(nil), // 41: tfplugin5.ValidateDataSourceConfig.Request + (*ValidateDataSourceConfig_Response)(nil), // 42: tfplugin5.ValidateDataSourceConfig.Response + (*Configure_Request)(nil), // 43: tfplugin5.Configure.Request + (*Configure_Response)(nil), // 44: tfplugin5.Configure.Response + (*ReadResource_Request)(nil), // 45: tfplugin5.ReadResource.Request + (*ReadResource_Response)(nil), // 46: tfplugin5.ReadResource.Response + (*PlanResourceChange_Request)(nil), // 47: tfplugin5.PlanResourceChange.Request + (*PlanResourceChange_Response)(nil), // 48: tfplugin5.PlanResourceChange.Response + (*ApplyResourceChange_Request)(nil), // 49: tfplugin5.ApplyResourceChange.Request + (*ApplyResourceChange_Response)(nil), // 50: tfplugin5.ApplyResourceChange.Response + (*ImportResourceState_Request)(nil), // 51: tfplugin5.ImportResourceState.Request + (*ImportResourceState_ImportedResource)(nil), // 52: tfplugin5.ImportResourceState.ImportedResource + (*ImportResourceState_Response)(nil), // 53: tfplugin5.ImportResourceState.Response + (*ReadDataSource_Request)(nil), // 54: tfplugin5.ReadDataSource.Request + (*ReadDataSource_Response)(nil), // 55: tfplugin5.ReadDataSource.Response + (*GetProvisionerSchema_Request)(nil), // 56: tfplugin5.GetProvisionerSchema.Request + (*GetProvisionerSchema_Response)(nil), // 57: tfplugin5.GetProvisionerSchema.Response + (*ValidateProvisionerConfig_Request)(nil), // 58: tfplugin5.ValidateProvisionerConfig.Request + (*ValidateProvisionerConfig_Response)(nil), // 59: tfplugin5.ValidateProvisionerConfig.Response + (*ProvisionResource_Request)(nil), // 60: tfplugin5.ProvisionResource.Request + (*ProvisionResource_Response)(nil), // 61: tfplugin5.ProvisionResource.Response } var file_tfplugin5_proto_depIdxs = []int32{ 1, // 0: tfplugin5.Diagnostic.severity:type_name -> tfplugin5.Diagnostic.Severity @@ -3821,92 +3892,93 @@ var file_tfplugin5_proto_depIdxs = []int32{ 27, // 9: tfplugin5.Schema.NestedBlock.block:type_name -> tfplugin5.Schema.Block 2, // 10: tfplugin5.Schema.NestedBlock.nesting:type_name -> tfplugin5.Schema.NestedBlock.NestingMode 8, // 11: tfplugin5.GetProviderSchema.Response.provider:type_name -> tfplugin5.Schema - 32, // 12: tfplugin5.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry - 33, // 13: tfplugin5.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry + 33, // 12: tfplugin5.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry + 34, // 13: tfplugin5.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry 4, // 14: tfplugin5.GetProviderSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic 8, // 15: tfplugin5.GetProviderSchema.Response.provider_meta:type_name -> tfplugin5.Schema - 8, // 16: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin5.Schema - 8, // 17: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin5.Schema - 3, // 18: tfplugin5.PrepareProviderConfig.Request.config:type_name -> tfplugin5.DynamicValue - 3, // 19: tfplugin5.PrepareProviderConfig.Response.prepared_config:type_name -> tfplugin5.DynamicValue - 4, // 20: tfplugin5.PrepareProviderConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 7, // 21: tfplugin5.UpgradeResourceState.Request.raw_state:type_name -> tfplugin5.RawState - 3, // 22: tfplugin5.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin5.DynamicValue - 4, // 23: tfplugin5.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 24: tfplugin5.ValidateResourceTypeConfig.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 25: tfplugin5.ValidateResourceTypeConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 26: tfplugin5.ValidateDataSourceConfig.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 27: tfplugin5.ValidateDataSourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 28: tfplugin5.Configure.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 29: tfplugin5.Configure.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 30: tfplugin5.ReadResource.Request.current_state:type_name -> tfplugin5.DynamicValue - 3, // 31: tfplugin5.ReadResource.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 3, // 32: tfplugin5.ReadResource.Response.new_state:type_name -> tfplugin5.DynamicValue - 4, // 33: tfplugin5.ReadResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 34: tfplugin5.PlanResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue - 3, // 35: tfplugin5.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin5.DynamicValue - 3, // 36: tfplugin5.PlanResourceChange.Request.config:type_name -> tfplugin5.DynamicValue - 3, // 37: tfplugin5.PlanResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 3, // 38: tfplugin5.PlanResourceChange.Response.planned_state:type_name -> tfplugin5.DynamicValue - 5, // 39: tfplugin5.PlanResourceChange.Response.requires_replace:type_name -> tfplugin5.AttributePath - 4, // 40: tfplugin5.PlanResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 41: tfplugin5.ApplyResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue - 3, // 42: tfplugin5.ApplyResourceChange.Request.planned_state:type_name -> tfplugin5.DynamicValue - 3, // 43: tfplugin5.ApplyResourceChange.Request.config:type_name -> tfplugin5.DynamicValue - 3, // 44: tfplugin5.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 3, // 45: tfplugin5.ApplyResourceChange.Response.new_state:type_name -> tfplugin5.DynamicValue - 4, // 46: tfplugin5.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 47: tfplugin5.ImportResourceState.ImportedResource.state:type_name -> tfplugin5.DynamicValue - 51, // 48: tfplugin5.ImportResourceState.Response.imported_resources:type_name -> tfplugin5.ImportResourceState.ImportedResource - 4, // 49: tfplugin5.ImportResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 50: tfplugin5.ReadDataSource.Request.config:type_name -> tfplugin5.DynamicValue - 3, // 51: tfplugin5.ReadDataSource.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 3, // 52: tfplugin5.ReadDataSource.Response.state:type_name -> tfplugin5.DynamicValue - 4, // 53: tfplugin5.ReadDataSource.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 8, // 54: tfplugin5.GetProvisionerSchema.Response.provisioner:type_name -> tfplugin5.Schema - 4, // 55: tfplugin5.GetProvisionerSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 56: tfplugin5.ValidateProvisionerConfig.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 57: tfplugin5.ValidateProvisionerConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 3, // 58: tfplugin5.ProvisionResource.Request.config:type_name -> tfplugin5.DynamicValue - 3, // 59: tfplugin5.ProvisionResource.Request.connection:type_name -> tfplugin5.DynamicValue - 4, // 60: tfplugin5.ProvisionResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 30, // 61: tfplugin5.Provider.GetSchema:input_type -> tfplugin5.GetProviderSchema.Request - 34, // 62: tfplugin5.Provider.PrepareProviderConfig:input_type -> tfplugin5.PrepareProviderConfig.Request - 38, // 63: tfplugin5.Provider.ValidateResourceTypeConfig:input_type -> tfplugin5.ValidateResourceTypeConfig.Request - 40, // 64: tfplugin5.Provider.ValidateDataSourceConfig:input_type -> tfplugin5.ValidateDataSourceConfig.Request - 36, // 65: tfplugin5.Provider.UpgradeResourceState:input_type -> tfplugin5.UpgradeResourceState.Request - 42, // 66: tfplugin5.Provider.Configure:input_type -> tfplugin5.Configure.Request - 44, // 67: tfplugin5.Provider.ReadResource:input_type -> tfplugin5.ReadResource.Request - 46, // 68: tfplugin5.Provider.PlanResourceChange:input_type -> tfplugin5.PlanResourceChange.Request - 48, // 69: tfplugin5.Provider.ApplyResourceChange:input_type -> tfplugin5.ApplyResourceChange.Request - 50, // 70: tfplugin5.Provider.ImportResourceState:input_type -> tfplugin5.ImportResourceState.Request - 53, // 71: tfplugin5.Provider.ReadDataSource:input_type -> tfplugin5.ReadDataSource.Request - 24, // 72: tfplugin5.Provider.Stop:input_type -> tfplugin5.Stop.Request - 55, // 73: tfplugin5.Provisioner.GetSchema:input_type -> tfplugin5.GetProvisionerSchema.Request - 57, // 74: tfplugin5.Provisioner.ValidateProvisionerConfig:input_type -> tfplugin5.ValidateProvisionerConfig.Request - 59, // 75: tfplugin5.Provisioner.ProvisionResource:input_type -> tfplugin5.ProvisionResource.Request - 24, // 76: tfplugin5.Provisioner.Stop:input_type -> tfplugin5.Stop.Request - 31, // 77: tfplugin5.Provider.GetSchema:output_type -> tfplugin5.GetProviderSchema.Response - 35, // 78: tfplugin5.Provider.PrepareProviderConfig:output_type -> tfplugin5.PrepareProviderConfig.Response - 39, // 79: tfplugin5.Provider.ValidateResourceTypeConfig:output_type -> tfplugin5.ValidateResourceTypeConfig.Response - 41, // 80: tfplugin5.Provider.ValidateDataSourceConfig:output_type -> tfplugin5.ValidateDataSourceConfig.Response - 37, // 81: tfplugin5.Provider.UpgradeResourceState:output_type -> tfplugin5.UpgradeResourceState.Response - 43, // 82: tfplugin5.Provider.Configure:output_type -> tfplugin5.Configure.Response - 45, // 83: tfplugin5.Provider.ReadResource:output_type -> tfplugin5.ReadResource.Response - 47, // 84: tfplugin5.Provider.PlanResourceChange:output_type -> tfplugin5.PlanResourceChange.Response - 49, // 85: tfplugin5.Provider.ApplyResourceChange:output_type -> tfplugin5.ApplyResourceChange.Response - 52, // 86: tfplugin5.Provider.ImportResourceState:output_type -> tfplugin5.ImportResourceState.Response - 54, // 87: tfplugin5.Provider.ReadDataSource:output_type -> tfplugin5.ReadDataSource.Response - 25, // 88: tfplugin5.Provider.Stop:output_type -> tfplugin5.Stop.Response - 56, // 89: tfplugin5.Provisioner.GetSchema:output_type -> tfplugin5.GetProvisionerSchema.Response - 58, // 90: tfplugin5.Provisioner.ValidateProvisionerConfig:output_type -> tfplugin5.ValidateProvisionerConfig.Response - 60, // 91: tfplugin5.Provisioner.ProvisionResource:output_type -> tfplugin5.ProvisionResource.Response - 25, // 92: tfplugin5.Provisioner.Stop:output_type -> tfplugin5.Stop.Response - 77, // [77:93] is the sub-list for method output_type - 61, // [61:77] is the sub-list for method input_type - 61, // [61:61] is the sub-list for extension type_name - 61, // [61:61] is the sub-list for extension extendee - 0, // [0:61] is the sub-list for field type_name + 32, // 16: tfplugin5.GetProviderSchema.Response.server_capabilities:type_name -> tfplugin5.GetProviderSchema.ServerCapabilities + 8, // 17: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin5.Schema + 8, // 18: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin5.Schema + 3, // 19: tfplugin5.PrepareProviderConfig.Request.config:type_name -> tfplugin5.DynamicValue + 3, // 20: tfplugin5.PrepareProviderConfig.Response.prepared_config:type_name -> tfplugin5.DynamicValue + 4, // 21: tfplugin5.PrepareProviderConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 7, // 22: tfplugin5.UpgradeResourceState.Request.raw_state:type_name -> tfplugin5.RawState + 3, // 23: tfplugin5.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin5.DynamicValue + 4, // 24: tfplugin5.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 25: tfplugin5.ValidateResourceTypeConfig.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 26: tfplugin5.ValidateResourceTypeConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 27: tfplugin5.ValidateDataSourceConfig.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 28: tfplugin5.ValidateDataSourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 29: tfplugin5.Configure.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 30: tfplugin5.Configure.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 31: tfplugin5.ReadResource.Request.current_state:type_name -> tfplugin5.DynamicValue + 3, // 32: tfplugin5.ReadResource.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 3, // 33: tfplugin5.ReadResource.Response.new_state:type_name -> tfplugin5.DynamicValue + 4, // 34: tfplugin5.ReadResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 35: tfplugin5.PlanResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue + 3, // 36: tfplugin5.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin5.DynamicValue + 3, // 37: tfplugin5.PlanResourceChange.Request.config:type_name -> tfplugin5.DynamicValue + 3, // 38: tfplugin5.PlanResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 3, // 39: tfplugin5.PlanResourceChange.Response.planned_state:type_name -> tfplugin5.DynamicValue + 5, // 40: tfplugin5.PlanResourceChange.Response.requires_replace:type_name -> tfplugin5.AttributePath + 4, // 41: tfplugin5.PlanResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 42: tfplugin5.ApplyResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue + 3, // 43: tfplugin5.ApplyResourceChange.Request.planned_state:type_name -> tfplugin5.DynamicValue + 3, // 44: tfplugin5.ApplyResourceChange.Request.config:type_name -> tfplugin5.DynamicValue + 3, // 45: tfplugin5.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 3, // 46: tfplugin5.ApplyResourceChange.Response.new_state:type_name -> tfplugin5.DynamicValue + 4, // 47: tfplugin5.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 48: tfplugin5.ImportResourceState.ImportedResource.state:type_name -> tfplugin5.DynamicValue + 52, // 49: tfplugin5.ImportResourceState.Response.imported_resources:type_name -> tfplugin5.ImportResourceState.ImportedResource + 4, // 50: tfplugin5.ImportResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 51: tfplugin5.ReadDataSource.Request.config:type_name -> tfplugin5.DynamicValue + 3, // 52: tfplugin5.ReadDataSource.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 3, // 53: tfplugin5.ReadDataSource.Response.state:type_name -> tfplugin5.DynamicValue + 4, // 54: tfplugin5.ReadDataSource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 8, // 55: tfplugin5.GetProvisionerSchema.Response.provisioner:type_name -> tfplugin5.Schema + 4, // 56: tfplugin5.GetProvisionerSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 57: tfplugin5.ValidateProvisionerConfig.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 58: tfplugin5.ValidateProvisionerConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 3, // 59: tfplugin5.ProvisionResource.Request.config:type_name -> tfplugin5.DynamicValue + 3, // 60: tfplugin5.ProvisionResource.Request.connection:type_name -> tfplugin5.DynamicValue + 4, // 61: tfplugin5.ProvisionResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 30, // 62: tfplugin5.Provider.GetSchema:input_type -> tfplugin5.GetProviderSchema.Request + 35, // 63: tfplugin5.Provider.PrepareProviderConfig:input_type -> tfplugin5.PrepareProviderConfig.Request + 39, // 64: tfplugin5.Provider.ValidateResourceTypeConfig:input_type -> tfplugin5.ValidateResourceTypeConfig.Request + 41, // 65: tfplugin5.Provider.ValidateDataSourceConfig:input_type -> tfplugin5.ValidateDataSourceConfig.Request + 37, // 66: tfplugin5.Provider.UpgradeResourceState:input_type -> tfplugin5.UpgradeResourceState.Request + 43, // 67: tfplugin5.Provider.Configure:input_type -> tfplugin5.Configure.Request + 45, // 68: tfplugin5.Provider.ReadResource:input_type -> tfplugin5.ReadResource.Request + 47, // 69: tfplugin5.Provider.PlanResourceChange:input_type -> tfplugin5.PlanResourceChange.Request + 49, // 70: tfplugin5.Provider.ApplyResourceChange:input_type -> tfplugin5.ApplyResourceChange.Request + 51, // 71: tfplugin5.Provider.ImportResourceState:input_type -> tfplugin5.ImportResourceState.Request + 54, // 72: tfplugin5.Provider.ReadDataSource:input_type -> tfplugin5.ReadDataSource.Request + 24, // 73: tfplugin5.Provider.Stop:input_type -> tfplugin5.Stop.Request + 56, // 74: tfplugin5.Provisioner.GetSchema:input_type -> tfplugin5.GetProvisionerSchema.Request + 58, // 75: tfplugin5.Provisioner.ValidateProvisionerConfig:input_type -> tfplugin5.ValidateProvisionerConfig.Request + 60, // 76: tfplugin5.Provisioner.ProvisionResource:input_type -> tfplugin5.ProvisionResource.Request + 24, // 77: tfplugin5.Provisioner.Stop:input_type -> tfplugin5.Stop.Request + 31, // 78: tfplugin5.Provider.GetSchema:output_type -> tfplugin5.GetProviderSchema.Response + 36, // 79: tfplugin5.Provider.PrepareProviderConfig:output_type -> tfplugin5.PrepareProviderConfig.Response + 40, // 80: tfplugin5.Provider.ValidateResourceTypeConfig:output_type -> tfplugin5.ValidateResourceTypeConfig.Response + 42, // 81: tfplugin5.Provider.ValidateDataSourceConfig:output_type -> tfplugin5.ValidateDataSourceConfig.Response + 38, // 82: tfplugin5.Provider.UpgradeResourceState:output_type -> tfplugin5.UpgradeResourceState.Response + 44, // 83: tfplugin5.Provider.Configure:output_type -> tfplugin5.Configure.Response + 46, // 84: tfplugin5.Provider.ReadResource:output_type -> tfplugin5.ReadResource.Response + 48, // 85: tfplugin5.Provider.PlanResourceChange:output_type -> tfplugin5.PlanResourceChange.Response + 50, // 86: tfplugin5.Provider.ApplyResourceChange:output_type -> tfplugin5.ApplyResourceChange.Response + 53, // 87: tfplugin5.Provider.ImportResourceState:output_type -> tfplugin5.ImportResourceState.Response + 55, // 88: tfplugin5.Provider.ReadDataSource:output_type -> tfplugin5.ReadDataSource.Response + 25, // 89: tfplugin5.Provider.Stop:output_type -> tfplugin5.Stop.Response + 57, // 90: tfplugin5.Provisioner.GetSchema:output_type -> tfplugin5.GetProvisionerSchema.Response + 59, // 91: tfplugin5.Provisioner.ValidateProvisionerConfig:output_type -> tfplugin5.ValidateProvisionerConfig.Response + 61, // 92: tfplugin5.Provisioner.ProvisionResource:output_type -> tfplugin5.ProvisionResource.Response + 25, // 93: tfplugin5.Provisioner.Stop:output_type -> tfplugin5.Stop.Response + 78, // [78:94] is the sub-list for method output_type + 62, // [62:78] is the sub-list for method input_type + 62, // [62:62] is the sub-list for extension type_name + 62, // [62:62] is the sub-list for extension extendee + 0, // [0:62] is the sub-list for field type_name } func init() { file_tfplugin5_proto_init() } @@ -4251,8 +4323,8 @@ func file_tfplugin5_proto_init() { return nil } } - file_tfplugin5_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProviderConfig_Request); i { + file_tfplugin5_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProviderSchema_ServerCapabilities); i { case 0: return &v.state case 1: @@ -4264,7 +4336,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProviderConfig_Response); i { + switch v := v.(*PrepareProviderConfig_Request); i { case 0: return &v.state case 1: @@ -4276,7 +4348,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Request); i { + switch v := v.(*PrepareProviderConfig_Response); i { case 0: return &v.state case 1: @@ -4288,7 +4360,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Response); i { + switch v := v.(*UpgradeResourceState_Request); i { case 0: return &v.state case 1: @@ -4300,7 +4372,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceTypeConfig_Request); i { + switch v := v.(*UpgradeResourceState_Response); i { case 0: return &v.state case 1: @@ -4312,7 +4384,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceTypeConfig_Response); i { + switch v := v.(*ValidateResourceTypeConfig_Request); i { case 0: return &v.state case 1: @@ -4324,7 +4396,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataSourceConfig_Request); i { + switch v := v.(*ValidateResourceTypeConfig_Response); i { case 0: return &v.state case 1: @@ -4336,7 +4408,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataSourceConfig_Response); i { + switch v := v.(*ValidateDataSourceConfig_Request); i { case 0: return &v.state case 1: @@ -4348,7 +4420,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configure_Request); i { + switch v := v.(*ValidateDataSourceConfig_Response); i { case 0: return &v.state case 1: @@ -4360,7 +4432,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configure_Response); i { + switch v := v.(*Configure_Request); i { case 0: return &v.state case 1: @@ -4372,7 +4444,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Request); i { + switch v := v.(*Configure_Response); i { case 0: return &v.state case 1: @@ -4384,7 +4456,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Response); i { + switch v := v.(*ReadResource_Request); i { case 0: return &v.state case 1: @@ -4396,7 +4468,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Request); i { + switch v := v.(*ReadResource_Response); i { case 0: return &v.state case 1: @@ -4408,7 +4480,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Response); i { + switch v := v.(*PlanResourceChange_Request); i { case 0: return &v.state case 1: @@ -4420,7 +4492,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Request); i { + switch v := v.(*PlanResourceChange_Response); i { case 0: return &v.state case 1: @@ -4432,7 +4504,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Response); i { + switch v := v.(*ApplyResourceChange_Request); i { case 0: return &v.state case 1: @@ -4444,7 +4516,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Request); i { + switch v := v.(*ApplyResourceChange_Response); i { case 0: return &v.state case 1: @@ -4456,7 +4528,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_ImportedResource); i { + switch v := v.(*ImportResourceState_Request); i { case 0: return &v.state case 1: @@ -4468,7 +4540,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Response); i { + switch v := v.(*ImportResourceState_ImportedResource); i { case 0: return &v.state case 1: @@ -4480,7 +4552,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Request); i { + switch v := v.(*ImportResourceState_Response); i { case 0: return &v.state case 1: @@ -4492,7 +4564,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Response); i { + switch v := v.(*ReadDataSource_Request); i { case 0: return &v.state case 1: @@ -4504,7 +4576,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionerSchema_Request); i { + switch v := v.(*ReadDataSource_Response); i { case 0: return &v.state case 1: @@ -4516,7 +4588,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionerSchema_Response); i { + switch v := v.(*GetProvisionerSchema_Request); i { case 0: return &v.state case 1: @@ -4528,7 +4600,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProvisionerConfig_Request); i { + switch v := v.(*GetProvisionerSchema_Response); i { case 0: return &v.state case 1: @@ -4540,7 +4612,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProvisionerConfig_Response); i { + switch v := v.(*ValidateProvisionerConfig_Request); i { case 0: return &v.state case 1: @@ -4552,7 +4624,7 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProvisionResource_Request); i { + switch v := v.(*ValidateProvisionerConfig_Response); i { case 0: return &v.state case 1: @@ -4564,6 +4636,18 @@ func file_tfplugin5_proto_init() { } } file_tfplugin5_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProvisionResource_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_tfplugin5_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProvisionResource_Response); i { case 0: return &v.state @@ -4587,7 +4671,7 @@ func file_tfplugin5_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tfplugin5_proto_rawDesc, NumEnums: 3, - NumMessages: 58, + NumMessages: 59, NumExtensions: 0, NumServices: 2, }, diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto index 341bd2597..fdc123a85 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto @@ -1,6 +1,6 @@ -// Terraform Plugin RPC protocol version 5.2 +// Terraform Plugin RPC protocol version 5.3 // -// This file defines version 5.2 of the RPC protocol. To implement a plugin +// This file defines version 5.3 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -13,7 +13,7 @@ // official protocol releases. Proto files taken from other commits may include // incomplete changes or features that did not make it into a final release. // In all reasonable cases, plugin developers should take the proto file from -// the tag of the most recent release of Terraform, and not from the master +// the tag of the most recent release of Terraform, and not from the main // branch or any other development branch. // syntax = "proto3"; @@ -118,7 +118,7 @@ message Schema { // The version of the schema. // Schemas are versioned, so that providers can upgrade a saved resource - // state when the schema is changed. + // state when the schema is changed. int64 version = 1; // Block is the top level configuration block for this schema. @@ -157,6 +157,18 @@ message GetProviderSchema { map data_source_schemas = 3; repeated Diagnostic diagnostics = 4; Schema provider_meta = 5; + ServerCapabilities server_capabilities = 6; + } + + + // ServerCapabilities allows providers to communicate extra information + // regarding supported protocol features. This is used to indicate + // availability of certain forward-compatible changes which may be optional + // in a major protocol version, but cannot be tested for directly. + message ServerCapabilities { + // The plan_destroy capability signals that a provider expects a call + // to PlanResourceChange when a resource is going to be destroyed. + bool plan_destroy = 1; } } @@ -247,14 +259,14 @@ message PlanResourceChange { DynamicValue prior_state = 2; DynamicValue proposed_new_state = 3; DynamicValue config = 4; - bytes prior_private = 5; + bytes prior_private = 5; DynamicValue provider_meta = 6; } message Response { DynamicValue planned_state = 1; repeated AttributePath requires_replace = 2; - bytes planned_private = 3; + bytes planned_private = 3; repeated Diagnostic diagnostics = 4; @@ -279,12 +291,12 @@ message ApplyResourceChange { DynamicValue prior_state = 2; DynamicValue planned_state = 3; DynamicValue config = 4; - bytes planned_private = 5; + bytes planned_private = 5; DynamicValue provider_meta = 6; } message Response { DynamicValue new_state = 1; - bytes private = 2; + bytes private = 2; repeated Diagnostic diagnostics = 3; // This may be set only by the helper/schema "SDK" in the main Terraform @@ -365,5 +377,5 @@ message ProvisionResource { message Response { string output = 1; repeated Diagnostic diagnostics = 2; - } + } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go index a18430f5c..9b0d9ac25 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go @@ -12,7 +12,12 @@ func GetProviderSchema_Request(in *tfprotov5.GetProviderSchemaRequest) (*tfplugi } func GetProviderSchema_Response(in *tfprotov5.GetProviderSchemaResponse) (*tfplugin5.GetProviderSchema_Response, error) { - var resp tfplugin5.GetProviderSchema_Response + if in == nil { + return nil, nil + } + resp := tfplugin5.GetProviderSchema_Response{ + ServerCapabilities: GetProviderSchema_ServerCapabilities(in.ServerCapabilities), + } if in.Provider != nil { schema, err := Schema(in.Provider) if err != nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/server_capabilities.go new file mode 100644 index 000000000..c1ff45ae4 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/server_capabilities.go @@ -0,0 +1,16 @@ +package toproto + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" +) + +func GetProviderSchema_ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfplugin5.GetProviderSchema_ServerCapabilities { + if in == nil { + return nil + } + + return &tfplugin5.GetProviderSchema_ServerCapabilities{ + PlanDestroy: in.PlanDestroy, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go index c4b91cdcf..c7b95a5d1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go @@ -46,6 +46,10 @@ type GetProviderSchemaRequest struct{} // GetProviderSchemaResponse represents a Terraform RPC response containing the // provider's schemas. type GetProviderSchemaResponse struct { + // ServerCapabilities defines optionally supported protocol features, + // such as forward-compatible Terraform behavior changes. + ServerCapabilities *ServerCapabilities + // Provider defines the schema for the provider configuration, which // will be specified in the provider block of the user's configuration. Provider *Schema diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go index 5f9549965..b86a045e9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go @@ -128,6 +128,9 @@ type ReadResourceRequest struct { // Private is any provider-defined private state stored with the // resource. It is used for keeping state with the resource that is not // meant to be included when calculating diffs. + // + // To ensure private state data is preserved, copy any necessary data to + // the ReadResourceResponse type Private field. Private []byte // ProviderMeta supplies the provider metadata configuration for the @@ -215,6 +218,9 @@ type PlanResourceChangeRequest struct { // PriorPrivate is any provider-defined private state stored with the // resource. It is used for keeping state with the resource that is not // meant to be included when calculating diffs. + // + // To ensure private state data is preserved, copy any necessary data to + // the PlanResourceChangeResponse type PlannedPrivate field. PriorPrivate []byte // ProviderMeta supplies the provider metadata configuration for the @@ -283,6 +289,10 @@ type PlanResourceChangeResponse struct { // like sent with requests for this resource. This state will be // associated with the resource, but will not be considered when // calculating diffs. + // + // This private state data will be sent in the ApplyResourceChange RPC, in + // relation to the types of this package, the ApplyResourceChangeRequest + // type PlannedPrivate field. PlannedPrivate []byte // Diagnostics report errors or warnings related to determining the @@ -344,6 +354,13 @@ type ApplyResourceChangeRequest struct { // PlannedPrivate is any provider-defined private state stored with the // resource. It is used for keeping state with the resource that is not // meant to be included when calculating diffs. + // + // This private state data is sourced from the PlanResourceChange RPC, in + // relation to the types in this package, the PlanResourceChangeResponse + // type PlannedPrivate field. + // + // To ensure private state data is preserved, copy any necessary data to + // the ApplyResourceChangeResponse type Private field. PlannedPrivate []byte // ProviderMeta supplies the provider metadata configuration for the diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server_capabilities.go new file mode 100644 index 000000000..f87cf2f4a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server_capabilities.go @@ -0,0 +1,14 @@ +package tfprotov5 + +// ServerCapabilities allows providers to communicate optionally supported +// protocol features, such as forward-compatible Terraform behavior changes. +// +// This information is used in GetProviderSchemaResponse as capabilities are +// static features which must be known upfront in the provider server. +type ServerCapabilities struct { + // PlanDestroy signals that a provider expects a call to + // PlanResourceChange when a resource is going to be destroyed. This is + // opt-in to prevent unexpected errors or panics since the + // ProposedNewState in PlanResourceChangeRequest will be a null value. + PlanDestroy bool +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/state.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/state.go index 7b7de2f75..1f85dcad1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/state.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/state.go @@ -77,3 +77,22 @@ func (s RawState) Unmarshal(typ tftypes.Type) (tftypes.Value, error) { } return tftypes.Value{}, ErrUnknownRawStateType } + +// UnmarshalOpts contains options that can be used to modify the behaviour when +// unmarshalling. Currently, this only contains a struct for opts for JSON but +// could have a field for Flatmap in the future. +type UnmarshalOpts struct { + ValueFromJSONOpts tftypes.ValueFromJSONOpts +} + +// UnmarshalWithOpts is identical to Unmarshal but also accepts a tftypes.UnmarshalOpts which contains +// options that can be used to modify the behaviour when unmarshalling JSON or Flatmap. +func (s RawState) UnmarshalWithOpts(typ tftypes.Type, opts UnmarshalOpts) (tftypes.Value, error) { + if s.JSON != nil { + return tftypes.ValueFromJSONWithOpts(s.JSON, typ, opts.ValueFromJSONOpts) //nolint:staticcheck + } + if s.Flatmap != nil { + return tftypes.Value{}, fmt.Errorf("flatmap states cannot be unmarshaled, only states written by Terraform 0.12 and higher can be unmarshaled") + } + return tftypes.Value{}, ErrUnknownRawStateType +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go index 9ec7abefb..952b789f5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-go/internal/logging" "github.com/hashicorp/terraform-plugin-go/tfprotov5" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto" + "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto" "google.golang.org/grpc" @@ -44,7 +45,7 @@ const ( // // In the future, it may be possible to include this information directly // in the protocol buffers rather than recreating a constant here. - protocolVersionMinor uint = 2 + protocolVersionMinor uint = 3 ) // protocolVersion represents the combined major and minor version numbers of @@ -494,13 +495,13 @@ func (s *server) GetSchema(ctx context.Context, req *tfplugin5.GetProviderSchema logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.GetProviderSchema(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.GetProviderSchema_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -522,13 +523,13 @@ func (s *server) PrepareProviderConfig(ctx context.Context, req *tfplugin5.Prepa return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.PrepareProviderConfig(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "PreparedConfig", resp.PreparedConfig) ret, err := toproto.PrepareProviderConfig_Response(resp) if err != nil { @@ -551,13 +552,13 @@ func (s *server) Configure(ctx context.Context, req *tfplugin5.Configure_Request return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ConfigureProvider(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.Configure_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -591,13 +592,13 @@ func (s *server) Stop(ctx context.Context, req *tfplugin5.Stop_Request) (*tfplug logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.StopProvider(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, nil) logging.ProtocolTrace(ctx, "Closing all our contexts") s.stop() logging.ProtocolTrace(ctx, "Closed all our contexts") @@ -623,13 +624,13 @@ func (s *server) ValidateDataSourceConfig(ctx context.Context, req *tfplugin5.Va return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ValidateDataSourceConfig(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.ValidateDataSourceConfig_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -653,13 +654,13 @@ func (s *server) ReadDataSource(ctx context.Context, req *tfplugin5.ReadDataSour } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ReadDataSource(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "State", resp.State) ret, err := toproto.ReadDataSource_Response(resp) if err != nil { @@ -683,13 +684,13 @@ func (s *server) ValidateResourceTypeConfig(ctx context.Context, req *tfplugin5. return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ValidateResourceTypeConfig(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.ValidateResourceTypeConfig_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -711,13 +712,13 @@ func (s *server) UpgradeResourceState(ctx context.Context, req *tfplugin5.Upgrad logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.UpgradeResourceState(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "UpgradedState", resp.UpgradedState) ret, err := toproto.UpgradeResourceState_Response(resp) if err != nil { @@ -742,14 +743,16 @@ func (s *server) ReadResource(ctx context.Context, req *tfplugin5.ReadResource_R } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "CurrentState", r.CurrentState) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) - logging.ProtocolTrace(ctx, "Calling downstream") + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Request", "Private", r.Private) + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ReadResource(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "NewState", resp.NewState) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response", "Private", resp.Private) ret, err := toproto.ReadResource_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -775,14 +778,16 @@ func (s *server) PlanResourceChange(ctx context.Context, req *tfplugin5.PlanReso logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "PriorState", r.PriorState) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProposedNewState", r.ProposedNewState) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) - logging.ProtocolTrace(ctx, "Calling downstream") + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Request", "PriorPrivate", r.PriorPrivate) + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.PlanResourceChange(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "PlannedState", resp.PlannedState) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response", "PlannedPrivate", resp.PlannedPrivate) ret, err := toproto.PlanResourceChange_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -806,16 +811,18 @@ func (s *server) ApplyResourceChange(ctx context.Context, req *tfplugin5.ApplyRe } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "PlannedState", r.PlannedState) - logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "PriorState", r.PriorState) + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Request", "PlannedPrivate", r.PlannedPrivate) + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ApplyResourceChange(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "NewState", resp.NewState) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response", "Private", resp.Private) ret, err := toproto.ApplyResourceChange_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -837,15 +844,16 @@ func (s *server) ImportResourceState(ctx context.Context, req *tfplugin5.ImportR logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf5serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ImportResourceState(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) for _, importedResource := range resp.ImportedResources { logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response_ImportedResource", "State", importedResource.State) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response_ImportedResource", "Private", importedResource.Private) } ret, err := toproto.ImportResourceState_Response(resp) if err != nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/diagnostics.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/diagnostics.go new file mode 100644 index 000000000..fbec5677c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/diagnostics.go @@ -0,0 +1,81 @@ +package diag + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/internal/logging" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// Diagnostics is a collection of Diagnostic. +type Diagnostics []*tfprotov6.Diagnostic + +// ErrorCount returns the number of error severity diagnostics. +func (d Diagnostics) ErrorCount() int { + var result int + + for _, diagnostic := range d { + if diagnostic == nil { + continue + } + + if diagnostic.Severity != tfprotov6.DiagnosticSeverityError { + continue + } + + result++ + } + + return result +} + +// Log will log every diagnostic: +// +// - Error severity at ERROR level +// - Warning severity at WARN level +// - Invalid/Unknown severity at WARN level +func (d Diagnostics) Log(ctx context.Context) { + for _, diagnostic := range d { + if diagnostic == nil { + continue + } + + diagnosticFields := map[string]interface{}{ + logging.KeyDiagnosticDetail: diagnostic.Detail, + logging.KeyDiagnosticSeverity: diagnostic.Severity.String(), + logging.KeyDiagnosticSummary: diagnostic.Summary, + } + + if diagnostic.Attribute != nil { + diagnosticFields[logging.KeyDiagnosticAttribute] = diagnostic.Attribute.String() + } + + switch diagnostic.Severity { + case tfprotov6.DiagnosticSeverityError: + logging.ProtocolError(ctx, "Response contains error diagnostic", diagnosticFields) + case tfprotov6.DiagnosticSeverityWarning: + logging.ProtocolWarn(ctx, "Response contains warning diagnostic", diagnosticFields) + default: + logging.ProtocolWarn(ctx, "Response contains unknown diagnostic", diagnosticFields) + } + } +} + +// WarningCount returns the number of warning severity diagnostics. +func (d Diagnostics) WarningCount() int { + var result int + + for _, diagnostic := range d { + if diagnostic == nil { + continue + } + + if diagnostic.Severity != tfprotov6.DiagnosticSeverityWarning { + continue + } + + result++ + } + + return result +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/doc.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/doc.go new file mode 100644 index 000000000..0c73dab12 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/doc.go @@ -0,0 +1,3 @@ +// Package diag contains diagnostics helpers. These implementations are +// intentionally outside the public API. +package diag diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/context_keys.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/context_keys.go new file mode 100644 index 000000000..15386cd2c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/context_keys.go @@ -0,0 +1,8 @@ +package tf6serverlogging + +// Context key types. +// Reference: https://staticcheck.io/docs/checks/#SA1029 + +// ContextKeyDownstreamRequestStartTime is a context.Context key to store the +// time.Time when the server began a downstream request. +type ContextKeyDownstreamRequestStartTime struct{} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/doc.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/doc.go new file mode 100644 index 000000000..167a61825 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/doc.go @@ -0,0 +1,3 @@ +// Package tf5serverlogging contains logging functionality specific to +// tf5server and tfprotov5 types. +package tf6serverlogging diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/downstream_request.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/downstream_request.go new file mode 100644 index 000000000..31ce386ae --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/downstream_request.go @@ -0,0 +1,39 @@ +package tf6serverlogging + +import ( + "context" + "time" + + "github.com/hashicorp/terraform-plugin-go/internal/logging" + "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag" +) + +// DownstreamRequest sets a request duration start time context key and +// generates a TRACE "Sending request downstream" log. +func DownstreamRequest(ctx context.Context) context.Context { + requestStart := time.Now() + ctx = context.WithValue(ctx, ContextKeyDownstreamRequestStartTime{}, requestStart) + + logging.ProtocolTrace(ctx, "Sending request downstream") + + return ctx +} + +// DownstreamResponse generates the following logging: +// +// - TRACE "Received downstream response" log with request duration and +// diagnostic severity counts +// - Per-diagnostic logs +func DownstreamResponse(ctx context.Context, diagnostics diag.Diagnostics) { + responseFields := map[string]interface{}{ + logging.KeyDiagnosticErrorCount: diagnostics.ErrorCount(), + logging.KeyDiagnosticWarningCount: diagnostics.WarningCount(), + } + + if requestStart, ok := ctx.Value(ContextKeyDownstreamRequestStartTime{}).(time.Time); ok { + responseFields[logging.KeyRequestDurationMs] = time.Since(requestStart).Milliseconds() + } + + logging.ProtocolTrace(ctx, "Received downstream response", responseFields) + diagnostics.Log(ctx) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go index a61e1875c..338c96a53 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go @@ -1,6 +1,6 @@ -// Terraform Plugin RPC protocol version 6.2 +// Terraform Plugin RPC protocol version 6.3 // -// This file defines version 6.2 of the RPC protocol. To implement a plugin +// This file defines version 6.3 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -19,7 +19,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 +// protoc-gen-go v1.28.1 // protoc v3.19.4 // source: tfplugin6.proto @@ -1585,11 +1585,12 @@ type GetProviderSchema_Response struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Provider *Schema `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` - ResourceSchemas map[string]*Schema `protobuf:"bytes,2,rep,name=resource_schemas,json=resourceSchemas,proto3" json:"resource_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - DataSourceSchemas map[string]*Schema `protobuf:"bytes,3,rep,name=data_source_schemas,json=dataSourceSchemas,proto3" json:"data_source_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Diagnostics []*Diagnostic `protobuf:"bytes,4,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` - ProviderMeta *Schema `protobuf:"bytes,5,opt,name=provider_meta,json=providerMeta,proto3" json:"provider_meta,omitempty"` + Provider *Schema `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + ResourceSchemas map[string]*Schema `protobuf:"bytes,2,rep,name=resource_schemas,json=resourceSchemas,proto3" json:"resource_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + DataSourceSchemas map[string]*Schema `protobuf:"bytes,3,rep,name=data_source_schemas,json=dataSourceSchemas,proto3" json:"data_source_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Diagnostics []*Diagnostic `protobuf:"bytes,4,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` + ProviderMeta *Schema `protobuf:"bytes,5,opt,name=provider_meta,json=providerMeta,proto3" json:"provider_meta,omitempty"` + ServerCapabilities *GetProviderSchema_ServerCapabilities `protobuf:"bytes,6,opt,name=server_capabilities,json=serverCapabilities,proto3" json:"server_capabilities,omitempty"` } func (x *GetProviderSchema_Response) Reset() { @@ -1659,6 +1660,66 @@ func (x *GetProviderSchema_Response) GetProviderMeta() *Schema { return nil } +func (x *GetProviderSchema_Response) GetServerCapabilities() *GetProviderSchema_ServerCapabilities { + if x != nil { + return x.ServerCapabilities + } + return nil +} + +// ServerCapabilities allows providers to communicate extra information +// regarding supported protocol features. This is used to indicate +// availability of certain forward-compatible changes which may be optional +// in a major protocol version, but cannot be tested for directly. +type GetProviderSchema_ServerCapabilities struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The plan_destroy capability signals that a provider expects a call + // to PlanResourceChange when a resource is going to be destroyed. + PlanDestroy bool `protobuf:"varint,1,opt,name=plan_destroy,json=planDestroy,proto3" json:"plan_destroy,omitempty"` +} + +func (x *GetProviderSchema_ServerCapabilities) Reset() { + *x = GetProviderSchema_ServerCapabilities{} + if protoimpl.UnsafeEnabled { + mi := &file_tfplugin6_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProviderSchema_ServerCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProviderSchema_ServerCapabilities) ProtoMessage() {} + +func (x *GetProviderSchema_ServerCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProviderSchema_ServerCapabilities.ProtoReflect.Descriptor instead. +func (*GetProviderSchema_ServerCapabilities) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{6, 2} +} + +func (x *GetProviderSchema_ServerCapabilities) GetPlanDestroy() bool { + if x != nil { + return x.PlanDestroy + } + return false +} + type ValidateProviderConfig_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1670,7 +1731,7 @@ type ValidateProviderConfig_Request struct { func (x *ValidateProviderConfig_Request) Reset() { *x = ValidateProviderConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[29] + mi := &file_tfplugin6_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1683,7 +1744,7 @@ func (x *ValidateProviderConfig_Request) String() string { func (*ValidateProviderConfig_Request) ProtoMessage() {} func (x *ValidateProviderConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[29] + mi := &file_tfplugin6_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1717,7 +1778,7 @@ type ValidateProviderConfig_Response struct { func (x *ValidateProviderConfig_Response) Reset() { *x = ValidateProviderConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[30] + mi := &file_tfplugin6_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1730,7 +1791,7 @@ func (x *ValidateProviderConfig_Response) String() string { func (*ValidateProviderConfig_Response) ProtoMessage() {} func (x *ValidateProviderConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[30] + mi := &file_tfplugin6_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1772,7 +1833,7 @@ type UpgradeResourceState_Request struct { func (x *UpgradeResourceState_Request) Reset() { *x = UpgradeResourceState_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[31] + mi := &file_tfplugin6_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1785,7 +1846,7 @@ func (x *UpgradeResourceState_Request) String() string { func (*UpgradeResourceState_Request) ProtoMessage() {} func (x *UpgradeResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[31] + mi := &file_tfplugin6_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1840,7 +1901,7 @@ type UpgradeResourceState_Response struct { func (x *UpgradeResourceState_Response) Reset() { *x = UpgradeResourceState_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[32] + mi := &file_tfplugin6_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1853,7 +1914,7 @@ func (x *UpgradeResourceState_Response) String() string { func (*UpgradeResourceState_Response) ProtoMessage() {} func (x *UpgradeResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[32] + mi := &file_tfplugin6_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1895,7 +1956,7 @@ type ValidateResourceConfig_Request struct { func (x *ValidateResourceConfig_Request) Reset() { *x = ValidateResourceConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[33] + mi := &file_tfplugin6_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1908,7 +1969,7 @@ func (x *ValidateResourceConfig_Request) String() string { func (*ValidateResourceConfig_Request) ProtoMessage() {} func (x *ValidateResourceConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[33] + mi := &file_tfplugin6_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1949,7 +2010,7 @@ type ValidateResourceConfig_Response struct { func (x *ValidateResourceConfig_Response) Reset() { *x = ValidateResourceConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[34] + mi := &file_tfplugin6_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1962,7 +2023,7 @@ func (x *ValidateResourceConfig_Response) String() string { func (*ValidateResourceConfig_Response) ProtoMessage() {} func (x *ValidateResourceConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[34] + mi := &file_tfplugin6_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1997,7 +2058,7 @@ type ValidateDataResourceConfig_Request struct { func (x *ValidateDataResourceConfig_Request) Reset() { *x = ValidateDataResourceConfig_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[35] + mi := &file_tfplugin6_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2010,7 +2071,7 @@ func (x *ValidateDataResourceConfig_Request) String() string { func (*ValidateDataResourceConfig_Request) ProtoMessage() {} func (x *ValidateDataResourceConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[35] + mi := &file_tfplugin6_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2051,7 +2112,7 @@ type ValidateDataResourceConfig_Response struct { func (x *ValidateDataResourceConfig_Response) Reset() { *x = ValidateDataResourceConfig_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[36] + mi := &file_tfplugin6_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2064,7 +2125,7 @@ func (x *ValidateDataResourceConfig_Response) String() string { func (*ValidateDataResourceConfig_Response) ProtoMessage() {} func (x *ValidateDataResourceConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[36] + mi := &file_tfplugin6_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2099,7 +2160,7 @@ type ConfigureProvider_Request struct { func (x *ConfigureProvider_Request) Reset() { *x = ConfigureProvider_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[37] + mi := &file_tfplugin6_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2112,7 +2173,7 @@ func (x *ConfigureProvider_Request) String() string { func (*ConfigureProvider_Request) ProtoMessage() {} func (x *ConfigureProvider_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[37] + mi := &file_tfplugin6_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2153,7 +2214,7 @@ type ConfigureProvider_Response struct { func (x *ConfigureProvider_Response) Reset() { *x = ConfigureProvider_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[38] + mi := &file_tfplugin6_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2166,7 +2227,7 @@ func (x *ConfigureProvider_Response) String() string { func (*ConfigureProvider_Response) ProtoMessage() {} func (x *ConfigureProvider_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[38] + mi := &file_tfplugin6_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2203,7 +2264,7 @@ type ReadResource_Request struct { func (x *ReadResource_Request) Reset() { *x = ReadResource_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[39] + mi := &file_tfplugin6_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2216,7 +2277,7 @@ func (x *ReadResource_Request) String() string { func (*ReadResource_Request) ProtoMessage() {} func (x *ReadResource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[39] + mi := &file_tfplugin6_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2273,7 +2334,7 @@ type ReadResource_Response struct { func (x *ReadResource_Response) Reset() { *x = ReadResource_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[40] + mi := &file_tfplugin6_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2286,7 +2347,7 @@ func (x *ReadResource_Response) String() string { func (*ReadResource_Response) ProtoMessage() {} func (x *ReadResource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[40] + mi := &file_tfplugin6_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2339,7 +2400,7 @@ type PlanResourceChange_Request struct { func (x *PlanResourceChange_Request) Reset() { *x = PlanResourceChange_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[41] + mi := &file_tfplugin6_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2352,7 +2413,7 @@ func (x *PlanResourceChange_Request) String() string { func (*PlanResourceChange_Request) ProtoMessage() {} func (x *PlanResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[41] + mi := &file_tfplugin6_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2436,7 +2497,7 @@ type PlanResourceChange_Response struct { func (x *PlanResourceChange_Response) Reset() { *x = PlanResourceChange_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[42] + mi := &file_tfplugin6_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2449,7 +2510,7 @@ func (x *PlanResourceChange_Response) String() string { func (*PlanResourceChange_Response) ProtoMessage() {} func (x *PlanResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[42] + mi := &file_tfplugin6_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2516,7 +2577,7 @@ type ApplyResourceChange_Request struct { func (x *ApplyResourceChange_Request) Reset() { *x = ApplyResourceChange_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[43] + mi := &file_tfplugin6_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2529,7 +2590,7 @@ func (x *ApplyResourceChange_Request) String() string { func (*ApplyResourceChange_Request) ProtoMessage() {} func (x *ApplyResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[43] + mi := &file_tfplugin6_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2612,7 +2673,7 @@ type ApplyResourceChange_Response struct { func (x *ApplyResourceChange_Response) Reset() { *x = ApplyResourceChange_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[44] + mi := &file_tfplugin6_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2625,7 +2686,7 @@ func (x *ApplyResourceChange_Response) String() string { func (*ApplyResourceChange_Response) ProtoMessage() {} func (x *ApplyResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[44] + mi := &file_tfplugin6_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2681,7 +2742,7 @@ type ImportResourceState_Request struct { func (x *ImportResourceState_Request) Reset() { *x = ImportResourceState_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[45] + mi := &file_tfplugin6_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2694,7 +2755,7 @@ func (x *ImportResourceState_Request) String() string { func (*ImportResourceState_Request) ProtoMessage() {} func (x *ImportResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[45] + mi := &file_tfplugin6_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2737,7 +2798,7 @@ type ImportResourceState_ImportedResource struct { func (x *ImportResourceState_ImportedResource) Reset() { *x = ImportResourceState_ImportedResource{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[46] + mi := &file_tfplugin6_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2750,7 +2811,7 @@ func (x *ImportResourceState_ImportedResource) String() string { func (*ImportResourceState_ImportedResource) ProtoMessage() {} func (x *ImportResourceState_ImportedResource) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[46] + mi := &file_tfplugin6_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2799,7 +2860,7 @@ type ImportResourceState_Response struct { func (x *ImportResourceState_Response) Reset() { *x = ImportResourceState_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[47] + mi := &file_tfplugin6_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2812,7 +2873,7 @@ func (x *ImportResourceState_Response) String() string { func (*ImportResourceState_Response) ProtoMessage() {} func (x *ImportResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[47] + mi := &file_tfplugin6_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2855,7 +2916,7 @@ type ReadDataSource_Request struct { func (x *ReadDataSource_Request) Reset() { *x = ReadDataSource_Request{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[48] + mi := &file_tfplugin6_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2868,7 +2929,7 @@ func (x *ReadDataSource_Request) String() string { func (*ReadDataSource_Request) ProtoMessage() {} func (x *ReadDataSource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[48] + mi := &file_tfplugin6_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2917,7 +2978,7 @@ type ReadDataSource_Response struct { func (x *ReadDataSource_Response) Reset() { *x = ReadDataSource_Response{} if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[49] + mi := &file_tfplugin6_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2930,7 +2991,7 @@ func (x *ReadDataSource_Response) String() string { func (*ReadDataSource_Response) ProtoMessage() {} func (x *ReadDataSource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[49] + mi := &file_tfplugin6_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3091,10 +3152,10 @@ var file_tfplugin6_proto_rawDesc = []byte{ 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, - 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x22, 0xd0, 0x04, + 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x22, 0xeb, 0x05, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xaf, - 0x04, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x70, + 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x91, + 0x05, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x65, 0x0a, 0x10, 0x72, 0x65, @@ -3118,299 +3179,310 @@ var file_tfplugin6_proto_rawDesc = []byte{ 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, - 0x1a, 0x55, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x99, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, 0x0a, - 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x08, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, - 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, - 0xb6, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, - 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x67, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x0c, 0x52, 0x65, - 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xbc, 0x01, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, - 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x93, 0x01, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, + 0x12, 0x60, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x1a, 0x55, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 0x37, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x6e, + 0x5f, 0x64, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, + 0x70, 0x6c, 0x61, 0x6e, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x16, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, + 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, + 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x08, 0x72, 0x61, 0x77, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, - 0xf2, 0x04, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xbb, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, - 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x50, + 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x16, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, + 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, + 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x22, 0xc1, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x67, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, + 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, + 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xbc, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, + 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x9d, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x93, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, + 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0xf2, 0x04, 0x0a, 0x12, 0x50, + 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x1a, 0xbb, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, + 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, + 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, + 0x9d, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0d, + 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0f, + 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, + 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, + 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, + 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, + 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb6, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, + 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, + 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x43, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, - 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, - 0x61, 0x74, 0x68, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, 0x70, - 0x6c, 0x61, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, - 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, + 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, + 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, + 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, + 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x22, 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb6, 0x02, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x74, 0x65, 0x6d, 0x22, 0xed, 0x02, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x36, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x1a, 0x78, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xa3, + 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x95, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, + 0x72, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, - 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, - 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, - 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, - 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0xed, 0x02, 0x0a, 0x13, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x1a, 0x36, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, - 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x1a, 0x78, 0x0a, 0x10, 0x49, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x1a, 0xa3, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5e, 0x0a, 0x12, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x69, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x0e, 0x52, 0x65, - 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x95, 0x01, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, - 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x61, 0x1a, 0x72, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, - 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, - 0xcc, 0x09, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x11, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, - 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, + 0x64, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, + 0x4d, 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0xcc, 0x09, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6f, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x7b, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, - 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, - 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, - 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, - 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x53, - 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, - 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, - 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1a, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, + 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, + 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, + 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0x21, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, + 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, + 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x2d, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x66, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x76, 0x36, 0x2f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3426,7 +3498,7 @@ func file_tfplugin6_proto_rawDescGZIP() []byte { } var file_tfplugin6_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_tfplugin6_proto_msgTypes = make([]protoimpl.MessageInfo, 50) +var file_tfplugin6_proto_msgTypes = make([]protoimpl.MessageInfo, 51) var file_tfplugin6_proto_goTypes = []interface{}{ (StringKind)(0), // 0: tfplugin6.StringKind (Diagnostic_Severity)(0), // 1: tfplugin6.Diagnostic.Severity @@ -3459,29 +3531,30 @@ var file_tfplugin6_proto_goTypes = []interface{}{ (*Schema_Object)(nil), // 28: tfplugin6.Schema.Object (*GetProviderSchema_Request)(nil), // 29: tfplugin6.GetProviderSchema.Request (*GetProviderSchema_Response)(nil), // 30: tfplugin6.GetProviderSchema.Response - nil, // 31: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry - nil, // 32: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry - (*ValidateProviderConfig_Request)(nil), // 33: tfplugin6.ValidateProviderConfig.Request - (*ValidateProviderConfig_Response)(nil), // 34: tfplugin6.ValidateProviderConfig.Response - (*UpgradeResourceState_Request)(nil), // 35: tfplugin6.UpgradeResourceState.Request - (*UpgradeResourceState_Response)(nil), // 36: tfplugin6.UpgradeResourceState.Response - (*ValidateResourceConfig_Request)(nil), // 37: tfplugin6.ValidateResourceConfig.Request - (*ValidateResourceConfig_Response)(nil), // 38: tfplugin6.ValidateResourceConfig.Response - (*ValidateDataResourceConfig_Request)(nil), // 39: tfplugin6.ValidateDataResourceConfig.Request - (*ValidateDataResourceConfig_Response)(nil), // 40: tfplugin6.ValidateDataResourceConfig.Response - (*ConfigureProvider_Request)(nil), // 41: tfplugin6.ConfigureProvider.Request - (*ConfigureProvider_Response)(nil), // 42: tfplugin6.ConfigureProvider.Response - (*ReadResource_Request)(nil), // 43: tfplugin6.ReadResource.Request - (*ReadResource_Response)(nil), // 44: tfplugin6.ReadResource.Response - (*PlanResourceChange_Request)(nil), // 45: tfplugin6.PlanResourceChange.Request - (*PlanResourceChange_Response)(nil), // 46: tfplugin6.PlanResourceChange.Response - (*ApplyResourceChange_Request)(nil), // 47: tfplugin6.ApplyResourceChange.Request - (*ApplyResourceChange_Response)(nil), // 48: tfplugin6.ApplyResourceChange.Response - (*ImportResourceState_Request)(nil), // 49: tfplugin6.ImportResourceState.Request - (*ImportResourceState_ImportedResource)(nil), // 50: tfplugin6.ImportResourceState.ImportedResource - (*ImportResourceState_Response)(nil), // 51: tfplugin6.ImportResourceState.Response - (*ReadDataSource_Request)(nil), // 52: tfplugin6.ReadDataSource.Request - (*ReadDataSource_Response)(nil), // 53: tfplugin6.ReadDataSource.Response + (*GetProviderSchema_ServerCapabilities)(nil), // 31: tfplugin6.GetProviderSchema.ServerCapabilities + nil, // 32: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry + nil, // 33: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry + (*ValidateProviderConfig_Request)(nil), // 34: tfplugin6.ValidateProviderConfig.Request + (*ValidateProviderConfig_Response)(nil), // 35: tfplugin6.ValidateProviderConfig.Response + (*UpgradeResourceState_Request)(nil), // 36: tfplugin6.UpgradeResourceState.Request + (*UpgradeResourceState_Response)(nil), // 37: tfplugin6.UpgradeResourceState.Response + (*ValidateResourceConfig_Request)(nil), // 38: tfplugin6.ValidateResourceConfig.Request + (*ValidateResourceConfig_Response)(nil), // 39: tfplugin6.ValidateResourceConfig.Response + (*ValidateDataResourceConfig_Request)(nil), // 40: tfplugin6.ValidateDataResourceConfig.Request + (*ValidateDataResourceConfig_Response)(nil), // 41: tfplugin6.ValidateDataResourceConfig.Response + (*ConfigureProvider_Request)(nil), // 42: tfplugin6.ConfigureProvider.Request + (*ConfigureProvider_Response)(nil), // 43: tfplugin6.ConfigureProvider.Response + (*ReadResource_Request)(nil), // 44: tfplugin6.ReadResource.Request + (*ReadResource_Response)(nil), // 45: tfplugin6.ReadResource.Response + (*PlanResourceChange_Request)(nil), // 46: tfplugin6.PlanResourceChange.Request + (*PlanResourceChange_Response)(nil), // 47: tfplugin6.PlanResourceChange.Response + (*ApplyResourceChange_Request)(nil), // 48: tfplugin6.ApplyResourceChange.Request + (*ApplyResourceChange_Response)(nil), // 49: tfplugin6.ApplyResourceChange.Response + (*ImportResourceState_Request)(nil), // 50: tfplugin6.ImportResourceState.Request + (*ImportResourceState_ImportedResource)(nil), // 51: tfplugin6.ImportResourceState.ImportedResource + (*ImportResourceState_Response)(nil), // 52: tfplugin6.ImportResourceState.Response + (*ReadDataSource_Request)(nil), // 53: tfplugin6.ReadDataSource.Request + (*ReadDataSource_Response)(nil), // 54: tfplugin6.ReadDataSource.Response } var file_tfplugin6_proto_depIdxs = []int32{ 1, // 0: tfplugin6.Diagnostic.severity:type_name -> tfplugin6.Diagnostic.Severity @@ -3499,76 +3572,77 @@ var file_tfplugin6_proto_depIdxs = []int32{ 26, // 12: tfplugin6.Schema.Object.attributes:type_name -> tfplugin6.Schema.Attribute 3, // 13: tfplugin6.Schema.Object.nesting:type_name -> tfplugin6.Schema.Object.NestingMode 9, // 14: tfplugin6.GetProviderSchema.Response.provider:type_name -> tfplugin6.Schema - 31, // 15: tfplugin6.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry - 32, // 16: tfplugin6.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry + 32, // 15: tfplugin6.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry + 33, // 16: tfplugin6.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry 5, // 17: tfplugin6.GetProviderSchema.Response.diagnostics:type_name -> tfplugin6.Diagnostic 9, // 18: tfplugin6.GetProviderSchema.Response.provider_meta:type_name -> tfplugin6.Schema - 9, // 19: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin6.Schema - 9, // 20: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin6.Schema - 4, // 21: tfplugin6.ValidateProviderConfig.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 22: tfplugin6.ValidateProviderConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 8, // 23: tfplugin6.UpgradeResourceState.Request.raw_state:type_name -> tfplugin6.RawState - 4, // 24: tfplugin6.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin6.DynamicValue - 5, // 25: tfplugin6.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 26: tfplugin6.ValidateResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 27: tfplugin6.ValidateResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 28: tfplugin6.ValidateDataResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 29: tfplugin6.ValidateDataResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 30: tfplugin6.ConfigureProvider.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 31: tfplugin6.ConfigureProvider.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 32: tfplugin6.ReadResource.Request.current_state:type_name -> tfplugin6.DynamicValue - 4, // 33: tfplugin6.ReadResource.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 4, // 34: tfplugin6.ReadResource.Response.new_state:type_name -> tfplugin6.DynamicValue - 5, // 35: tfplugin6.ReadResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 36: tfplugin6.PlanResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue - 4, // 37: tfplugin6.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin6.DynamicValue - 4, // 38: tfplugin6.PlanResourceChange.Request.config:type_name -> tfplugin6.DynamicValue - 4, // 39: tfplugin6.PlanResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 4, // 40: tfplugin6.PlanResourceChange.Response.planned_state:type_name -> tfplugin6.DynamicValue - 6, // 41: tfplugin6.PlanResourceChange.Response.requires_replace:type_name -> tfplugin6.AttributePath - 5, // 42: tfplugin6.PlanResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 43: tfplugin6.ApplyResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue - 4, // 44: tfplugin6.ApplyResourceChange.Request.planned_state:type_name -> tfplugin6.DynamicValue - 4, // 45: tfplugin6.ApplyResourceChange.Request.config:type_name -> tfplugin6.DynamicValue - 4, // 46: tfplugin6.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 4, // 47: tfplugin6.ApplyResourceChange.Response.new_state:type_name -> tfplugin6.DynamicValue - 5, // 48: tfplugin6.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 49: tfplugin6.ImportResourceState.ImportedResource.state:type_name -> tfplugin6.DynamicValue - 50, // 50: tfplugin6.ImportResourceState.Response.imported_resources:type_name -> tfplugin6.ImportResourceState.ImportedResource - 5, // 51: tfplugin6.ImportResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 4, // 52: tfplugin6.ReadDataSource.Request.config:type_name -> tfplugin6.DynamicValue - 4, // 53: tfplugin6.ReadDataSource.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 4, // 54: tfplugin6.ReadDataSource.Response.state:type_name -> tfplugin6.DynamicValue - 5, // 55: tfplugin6.ReadDataSource.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 29, // 56: tfplugin6.Provider.GetProviderSchema:input_type -> tfplugin6.GetProviderSchema.Request - 33, // 57: tfplugin6.Provider.ValidateProviderConfig:input_type -> tfplugin6.ValidateProviderConfig.Request - 37, // 58: tfplugin6.Provider.ValidateResourceConfig:input_type -> tfplugin6.ValidateResourceConfig.Request - 39, // 59: tfplugin6.Provider.ValidateDataResourceConfig:input_type -> tfplugin6.ValidateDataResourceConfig.Request - 35, // 60: tfplugin6.Provider.UpgradeResourceState:input_type -> tfplugin6.UpgradeResourceState.Request - 41, // 61: tfplugin6.Provider.ConfigureProvider:input_type -> tfplugin6.ConfigureProvider.Request - 43, // 62: tfplugin6.Provider.ReadResource:input_type -> tfplugin6.ReadResource.Request - 45, // 63: tfplugin6.Provider.PlanResourceChange:input_type -> tfplugin6.PlanResourceChange.Request - 47, // 64: tfplugin6.Provider.ApplyResourceChange:input_type -> tfplugin6.ApplyResourceChange.Request - 49, // 65: tfplugin6.Provider.ImportResourceState:input_type -> tfplugin6.ImportResourceState.Request - 52, // 66: tfplugin6.Provider.ReadDataSource:input_type -> tfplugin6.ReadDataSource.Request - 22, // 67: tfplugin6.Provider.StopProvider:input_type -> tfplugin6.StopProvider.Request - 30, // 68: tfplugin6.Provider.GetProviderSchema:output_type -> tfplugin6.GetProviderSchema.Response - 34, // 69: tfplugin6.Provider.ValidateProviderConfig:output_type -> tfplugin6.ValidateProviderConfig.Response - 38, // 70: tfplugin6.Provider.ValidateResourceConfig:output_type -> tfplugin6.ValidateResourceConfig.Response - 40, // 71: tfplugin6.Provider.ValidateDataResourceConfig:output_type -> tfplugin6.ValidateDataResourceConfig.Response - 36, // 72: tfplugin6.Provider.UpgradeResourceState:output_type -> tfplugin6.UpgradeResourceState.Response - 42, // 73: tfplugin6.Provider.ConfigureProvider:output_type -> tfplugin6.ConfigureProvider.Response - 44, // 74: tfplugin6.Provider.ReadResource:output_type -> tfplugin6.ReadResource.Response - 46, // 75: tfplugin6.Provider.PlanResourceChange:output_type -> tfplugin6.PlanResourceChange.Response - 48, // 76: tfplugin6.Provider.ApplyResourceChange:output_type -> tfplugin6.ApplyResourceChange.Response - 51, // 77: tfplugin6.Provider.ImportResourceState:output_type -> tfplugin6.ImportResourceState.Response - 53, // 78: tfplugin6.Provider.ReadDataSource:output_type -> tfplugin6.ReadDataSource.Response - 23, // 79: tfplugin6.Provider.StopProvider:output_type -> tfplugin6.StopProvider.Response - 68, // [68:80] is the sub-list for method output_type - 56, // [56:68] is the sub-list for method input_type - 56, // [56:56] is the sub-list for extension type_name - 56, // [56:56] is the sub-list for extension extendee - 0, // [0:56] is the sub-list for field type_name + 31, // 19: tfplugin6.GetProviderSchema.Response.server_capabilities:type_name -> tfplugin6.GetProviderSchema.ServerCapabilities + 9, // 20: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin6.Schema + 9, // 21: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin6.Schema + 4, // 22: tfplugin6.ValidateProviderConfig.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 23: tfplugin6.ValidateProviderConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 8, // 24: tfplugin6.UpgradeResourceState.Request.raw_state:type_name -> tfplugin6.RawState + 4, // 25: tfplugin6.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin6.DynamicValue + 5, // 26: tfplugin6.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 27: tfplugin6.ValidateResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 28: tfplugin6.ValidateResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 29: tfplugin6.ValidateDataResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 30: tfplugin6.ValidateDataResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 31: tfplugin6.ConfigureProvider.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 32: tfplugin6.ConfigureProvider.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 33: tfplugin6.ReadResource.Request.current_state:type_name -> tfplugin6.DynamicValue + 4, // 34: tfplugin6.ReadResource.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 4, // 35: tfplugin6.ReadResource.Response.new_state:type_name -> tfplugin6.DynamicValue + 5, // 36: tfplugin6.ReadResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 37: tfplugin6.PlanResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue + 4, // 38: tfplugin6.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin6.DynamicValue + 4, // 39: tfplugin6.PlanResourceChange.Request.config:type_name -> tfplugin6.DynamicValue + 4, // 40: tfplugin6.PlanResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 4, // 41: tfplugin6.PlanResourceChange.Response.planned_state:type_name -> tfplugin6.DynamicValue + 6, // 42: tfplugin6.PlanResourceChange.Response.requires_replace:type_name -> tfplugin6.AttributePath + 5, // 43: tfplugin6.PlanResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 44: tfplugin6.ApplyResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue + 4, // 45: tfplugin6.ApplyResourceChange.Request.planned_state:type_name -> tfplugin6.DynamicValue + 4, // 46: tfplugin6.ApplyResourceChange.Request.config:type_name -> tfplugin6.DynamicValue + 4, // 47: tfplugin6.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 4, // 48: tfplugin6.ApplyResourceChange.Response.new_state:type_name -> tfplugin6.DynamicValue + 5, // 49: tfplugin6.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 50: tfplugin6.ImportResourceState.ImportedResource.state:type_name -> tfplugin6.DynamicValue + 51, // 51: tfplugin6.ImportResourceState.Response.imported_resources:type_name -> tfplugin6.ImportResourceState.ImportedResource + 5, // 52: tfplugin6.ImportResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 4, // 53: tfplugin6.ReadDataSource.Request.config:type_name -> tfplugin6.DynamicValue + 4, // 54: tfplugin6.ReadDataSource.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 4, // 55: tfplugin6.ReadDataSource.Response.state:type_name -> tfplugin6.DynamicValue + 5, // 56: tfplugin6.ReadDataSource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 29, // 57: tfplugin6.Provider.GetProviderSchema:input_type -> tfplugin6.GetProviderSchema.Request + 34, // 58: tfplugin6.Provider.ValidateProviderConfig:input_type -> tfplugin6.ValidateProviderConfig.Request + 38, // 59: tfplugin6.Provider.ValidateResourceConfig:input_type -> tfplugin6.ValidateResourceConfig.Request + 40, // 60: tfplugin6.Provider.ValidateDataResourceConfig:input_type -> tfplugin6.ValidateDataResourceConfig.Request + 36, // 61: tfplugin6.Provider.UpgradeResourceState:input_type -> tfplugin6.UpgradeResourceState.Request + 42, // 62: tfplugin6.Provider.ConfigureProvider:input_type -> tfplugin6.ConfigureProvider.Request + 44, // 63: tfplugin6.Provider.ReadResource:input_type -> tfplugin6.ReadResource.Request + 46, // 64: tfplugin6.Provider.PlanResourceChange:input_type -> tfplugin6.PlanResourceChange.Request + 48, // 65: tfplugin6.Provider.ApplyResourceChange:input_type -> tfplugin6.ApplyResourceChange.Request + 50, // 66: tfplugin6.Provider.ImportResourceState:input_type -> tfplugin6.ImportResourceState.Request + 53, // 67: tfplugin6.Provider.ReadDataSource:input_type -> tfplugin6.ReadDataSource.Request + 22, // 68: tfplugin6.Provider.StopProvider:input_type -> tfplugin6.StopProvider.Request + 30, // 69: tfplugin6.Provider.GetProviderSchema:output_type -> tfplugin6.GetProviderSchema.Response + 35, // 70: tfplugin6.Provider.ValidateProviderConfig:output_type -> tfplugin6.ValidateProviderConfig.Response + 39, // 71: tfplugin6.Provider.ValidateResourceConfig:output_type -> tfplugin6.ValidateResourceConfig.Response + 41, // 72: tfplugin6.Provider.ValidateDataResourceConfig:output_type -> tfplugin6.ValidateDataResourceConfig.Response + 37, // 73: tfplugin6.Provider.UpgradeResourceState:output_type -> tfplugin6.UpgradeResourceState.Response + 43, // 74: tfplugin6.Provider.ConfigureProvider:output_type -> tfplugin6.ConfigureProvider.Response + 45, // 75: tfplugin6.Provider.ReadResource:output_type -> tfplugin6.ReadResource.Response + 47, // 76: tfplugin6.Provider.PlanResourceChange:output_type -> tfplugin6.PlanResourceChange.Response + 49, // 77: tfplugin6.Provider.ApplyResourceChange:output_type -> tfplugin6.ApplyResourceChange.Response + 52, // 78: tfplugin6.Provider.ImportResourceState:output_type -> tfplugin6.ImportResourceState.Response + 54, // 79: tfplugin6.Provider.ReadDataSource:output_type -> tfplugin6.ReadDataSource.Response + 23, // 80: tfplugin6.Provider.StopProvider:output_type -> tfplugin6.StopProvider.Response + 69, // [69:81] is the sub-list for method output_type + 57, // [57:69] is the sub-list for method input_type + 57, // [57:57] is the sub-list for extension type_name + 57, // [57:57] is the sub-list for extension extendee + 0, // [0:57] is the sub-list for field type_name } func init() { file_tfplugin6_proto_init() } @@ -3889,8 +3963,8 @@ func file_tfplugin6_proto_init() { return nil } } - file_tfplugin6_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProviderConfig_Request); i { + file_tfplugin6_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProviderSchema_ServerCapabilities); i { case 0: return &v.state case 1: @@ -3902,7 +3976,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProviderConfig_Response); i { + switch v := v.(*ValidateProviderConfig_Request); i { case 0: return &v.state case 1: @@ -3914,7 +3988,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Request); i { + switch v := v.(*ValidateProviderConfig_Response); i { case 0: return &v.state case 1: @@ -3926,7 +4000,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Response); i { + switch v := v.(*UpgradeResourceState_Request); i { case 0: return &v.state case 1: @@ -3938,7 +4012,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceConfig_Request); i { + switch v := v.(*UpgradeResourceState_Response); i { case 0: return &v.state case 1: @@ -3950,7 +4024,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceConfig_Response); i { + switch v := v.(*ValidateResourceConfig_Request); i { case 0: return &v.state case 1: @@ -3962,7 +4036,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataResourceConfig_Request); i { + switch v := v.(*ValidateResourceConfig_Response); i { case 0: return &v.state case 1: @@ -3974,7 +4048,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataResourceConfig_Response); i { + switch v := v.(*ValidateDataResourceConfig_Request); i { case 0: return &v.state case 1: @@ -3986,7 +4060,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigureProvider_Request); i { + switch v := v.(*ValidateDataResourceConfig_Response); i { case 0: return &v.state case 1: @@ -3998,7 +4072,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigureProvider_Response); i { + switch v := v.(*ConfigureProvider_Request); i { case 0: return &v.state case 1: @@ -4010,7 +4084,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Request); i { + switch v := v.(*ConfigureProvider_Response); i { case 0: return &v.state case 1: @@ -4022,7 +4096,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Response); i { + switch v := v.(*ReadResource_Request); i { case 0: return &v.state case 1: @@ -4034,7 +4108,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Request); i { + switch v := v.(*ReadResource_Response); i { case 0: return &v.state case 1: @@ -4046,7 +4120,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Response); i { + switch v := v.(*PlanResourceChange_Request); i { case 0: return &v.state case 1: @@ -4058,7 +4132,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Request); i { + switch v := v.(*PlanResourceChange_Response); i { case 0: return &v.state case 1: @@ -4070,7 +4144,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Response); i { + switch v := v.(*ApplyResourceChange_Request); i { case 0: return &v.state case 1: @@ -4082,7 +4156,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Request); i { + switch v := v.(*ApplyResourceChange_Response); i { case 0: return &v.state case 1: @@ -4094,7 +4168,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_ImportedResource); i { + switch v := v.(*ImportResourceState_Request); i { case 0: return &v.state case 1: @@ -4106,7 +4180,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Response); i { + switch v := v.(*ImportResourceState_ImportedResource); i { case 0: return &v.state case 1: @@ -4118,7 +4192,7 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Request); i { + switch v := v.(*ImportResourceState_Response); i { case 0: return &v.state case 1: @@ -4130,6 +4204,18 @@ func file_tfplugin6_proto_init() { } } file_tfplugin6_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadDataSource_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_tfplugin6_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReadDataSource_Response); i { case 0: return &v.state @@ -4153,7 +4239,7 @@ func file_tfplugin6_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tfplugin6_proto_rawDesc, NumEnums: 4, - NumMessages: 50, + NumMessages: 51, NumExtensions: 0, NumServices: 1, }, diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto index da5e58eaf..b6d05bb74 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto @@ -1,6 +1,6 @@ -// Terraform Plugin RPC protocol version 6.2 +// Terraform Plugin RPC protocol version 6.3 // -// This file defines version 6.2 of the RPC protocol. To implement a plugin +// This file defines version 6.3 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -17,7 +17,7 @@ // branch or any other development branch. // syntax = "proto3"; -option go_package = "github.com/hashicorp/terraform/internal/tfplugin6"; +option go_package = "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6"; package tfplugin6; @@ -176,6 +176,18 @@ message GetProviderSchema { map data_source_schemas = 3; repeated Diagnostic diagnostics = 4; Schema provider_meta = 5; + ServerCapabilities server_capabilities = 6; + } + + + // ServerCapabilities allows providers to communicate extra information + // regarding supported protocol features. This is used to indicate + // availability of certain forward-compatible changes which may be optional + // in a major protocol version, but cannot be tested for directly. + message ServerCapabilities { + // The plan_destroy capability signals that a provider expects a call + // to PlanResourceChange when a resource is going to be destroyed. + bool plan_destroy = 1; } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go index 503ba4e2b..ce37207f9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go @@ -12,7 +12,12 @@ func GetProviderSchema_Request(in *tfprotov6.GetProviderSchemaRequest) (*tfplugi } func GetProviderSchema_Response(in *tfprotov6.GetProviderSchemaResponse) (*tfplugin6.GetProviderSchema_Response, error) { - var resp tfplugin6.GetProviderSchema_Response + if in == nil { + return nil, nil + } + resp := tfplugin6.GetProviderSchema_Response{ + ServerCapabilities: GetProviderSchema_ServerCapabilities(in.ServerCapabilities), + } if in.Provider != nil { schema, err := Schema(in.Provider) if err != nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/server_capabilities.go new file mode 100644 index 000000000..fa335d691 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/server_capabilities.go @@ -0,0 +1,16 @@ +package toproto + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" +) + +func GetProviderSchema_ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfplugin6.GetProviderSchema_ServerCapabilities { + if in == nil { + return nil + } + + return &tfplugin6.GetProviderSchema_ServerCapabilities{ + PlanDestroy: in.PlanDestroy, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go index f2b8b3add..21f81f7a1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go @@ -46,6 +46,10 @@ type GetProviderSchemaRequest struct{} // GetProviderSchemaResponse represents a Terraform RPC response containing the // provider's schemas. type GetProviderSchemaResponse struct { + // ServerCapabilities defines optionally supported protocol features, + // such as forward-compatible Terraform behavior changes. + ServerCapabilities *ServerCapabilities + // Provider defines the schema for the provider configuration, which // will be specified in the provider block of the user's configuration. Provider *Schema diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go index 3250f1954..2768bb526 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go @@ -125,6 +125,9 @@ type ReadResourceRequest struct { // Private is any provider-defined private state stored with the // resource. It is used for keeping state with the resource that is not // meant to be included when calculating diffs. + // + // To ensure private state data is preserved, copy any necessary data to + // the ReadResourceResponse type Private field. Private []byte // ProviderMeta supplies the provider metadata configuration for the @@ -212,6 +215,9 @@ type PlanResourceChangeRequest struct { // PriorPrivate is any provider-defined private state stored with the // resource. It is used for keeping state with the resource that is not // meant to be included when calculating diffs. + // + // To ensure private state data is preserved, copy any necessary data to + // the PlanResourceChangeResponse type PlannedPrivate field. PriorPrivate []byte // ProviderMeta supplies the provider metadata configuration for the @@ -280,6 +286,10 @@ type PlanResourceChangeResponse struct { // like sent with requests for this resource. This state will be // associated with the resource, but will not be considered when // calculating diffs. + // + // This private state data will be sent in the ApplyResourceChange RPC, in + // relation to the types of this package, the ApplyResourceChangeRequest + // type PlannedPrivate field. PlannedPrivate []byte // Diagnostics report errors or warnings related to determining the @@ -341,6 +351,13 @@ type ApplyResourceChangeRequest struct { // PlannedPrivate is any provider-defined private state stored with the // resource. It is used for keeping state with the resource that is not // meant to be included when calculating diffs. + // + // This private state data is sourced from the PlanResourceChange RPC, in + // relation to the types in this package, the PlanResourceChangeResponse + // type PlannedPrivate field. + // + // To ensure private state data is preserved, copy any necessary data to + // the ApplyResourceChangeResponse type Private field. PlannedPrivate []byte // ProviderMeta supplies the provider metadata configuration for the diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/server_capabilities.go new file mode 100644 index 000000000..eed59219d --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/server_capabilities.go @@ -0,0 +1,14 @@ +package tfprotov6 + +// ServerCapabilities allows providers to communicate optionally supported +// protocol features, such as forward-compatible Terraform behavior changes. +// +// This information is used in GetProviderSchemaResponse as capabilities are +// static features which must be known upfront in the provider server. +type ServerCapabilities struct { + // PlanDestroy signals that a provider expects a call to + // PlanResourceChange when a resource is going to be destroyed. This is + // opt-in to prevent unexpected errors or panics since the + // ProposedNewState in PlanResourceChangeRequest will be a null value. + PlanDestroy bool +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/state.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/state.go index 3b5d9b11c..41506b8d7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/state.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/state.go @@ -77,3 +77,22 @@ func (s RawState) Unmarshal(typ tftypes.Type) (tftypes.Value, error) { } return tftypes.Value{}, ErrUnknownRawStateType } + +// UnmarshalOpts contains options that can be used to modify the behaviour when +// unmarshalling. Currently, this only contains a struct for opts for JSON but +// could have a field for Flatmap in the future. +type UnmarshalOpts struct { + ValueFromJSONOpts tftypes.ValueFromJSONOpts +} + +// UnmarshalWithOpts is identical to Unmarshal but also accepts a tftypes.UnmarshalOpts which contains +// options that can be used to modify the behaviour when unmarshalling JSON or Flatmap. +func (s RawState) UnmarshalWithOpts(typ tftypes.Type, opts UnmarshalOpts) (tftypes.Value, error) { + if s.JSON != nil { + return tftypes.ValueFromJSONWithOpts(s.JSON, typ, opts.ValueFromJSONOpts) //nolint:staticcheck + } + if s.Flatmap != nil { + return tftypes.Value{}, fmt.Errorf("flatmap states cannot be unmarshaled, only states written by Terraform 0.12 and higher can be unmarshaled") + } + return tftypes.Value{}, ErrUnknownRawStateType +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go index 4ed9ece60..9889a93e6 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-go/internal/logging" "github.com/hashicorp/terraform-plugin-go/tfprotov6" "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto" + "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging" "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto" "google.golang.org/grpc" @@ -44,7 +45,7 @@ const ( // // In the future, it may be possible to include this information directly // in the protocol buffers rather than recreating a constant here. - protocolVersionMinor uint = 0 + protocolVersionMinor uint = 3 ) // protocolVersion represents the combined major and minor version numbers of @@ -494,13 +495,13 @@ func (s *server) GetProviderSchema(ctx context.Context, req *tfplugin6.GetProvid logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.GetProviderSchema(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.GetProviderSchema_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -522,13 +523,13 @@ func (s *server) ConfigureProvider(ctx context.Context, req *tfplugin6.Configure return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ConfigureProvider(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.Configure_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -549,13 +550,13 @@ func (s *server) ValidateProviderConfig(ctx context.Context, req *tfplugin6.Vali return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ValidateProviderConfig(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.ValidateProviderConfig_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -589,13 +590,13 @@ func (s *server) Stop(ctx context.Context, req *tfplugin6.StopProvider_Request) logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.StopProvider(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, nil) logging.ProtocolTrace(ctx, "Closing all our contexts") s.stop() logging.ProtocolTrace(ctx, "Closed all our contexts") @@ -621,13 +622,13 @@ func (s *server) ValidateDataResourceConfig(ctx context.Context, req *tfplugin6. return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ValidateDataResourceConfig(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.ValidateDataResourceConfig_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -651,13 +652,13 @@ func (s *server) ReadDataSource(ctx context.Context, req *tfplugin6.ReadDataSour } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ReadDataSource(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "State", resp.State) ret, err := toproto.ReadDataSource_Response(resp) if err != nil { @@ -681,13 +682,13 @@ func (s *server) ValidateResourceConfig(ctx context.Context, req *tfplugin6.Vali return nil, err } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ValidateResourceConfig(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) ret, err := toproto.ValidateResourceConfig_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -709,13 +710,13 @@ func (s *server) UpgradeResourceState(ctx context.Context, req *tfplugin6.Upgrad logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.UpgradeResourceState(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "UpgradedState", resp.UpgradedState) ret, err := toproto.UpgradeResourceState_Response(resp) if err != nil { @@ -740,14 +741,16 @@ func (s *server) ReadResource(ctx context.Context, req *tfplugin6.ReadResource_R } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "CurrentState", r.CurrentState) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) - logging.ProtocolTrace(ctx, "Calling downstream") + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Request", "Private", r.Private) + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ReadResource(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "NewState", resp.NewState) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response", "Private", resp.Private) ret, err := toproto.ReadResource_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -773,14 +776,16 @@ func (s *server) PlanResourceChange(ctx context.Context, req *tfplugin6.PlanReso logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "PriorState", r.PriorState) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProposedNewState", r.ProposedNewState) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) - logging.ProtocolTrace(ctx, "Calling downstream") + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Request", "PriorPrivate", r.PriorPrivate) + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.PlanResourceChange(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "PlannedState", resp.PlannedState) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response", "PlannedPrivate", resp.PlannedPrivate) ret, err := toproto.PlanResourceChange_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -804,16 +809,18 @@ func (s *server) ApplyResourceChange(ctx context.Context, req *tfplugin6.ApplyRe } logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "PlannedState", r.PlannedState) - logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", r.Config) - logging.ProtocolTrace(ctx, "Calling downstream") + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "PriorState", r.PriorState) + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "ProviderMeta", r.ProviderMeta) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Request", "PlannedPrivate", r.PlannedPrivate) + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ApplyResourceChange(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "NewState", resp.NewState) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response", "Private", resp.Private) ret, err := toproto.ApplyResourceChange_Response(resp) if err != nil { logging.ProtocolError(ctx, "Error converting response to protobuf", map[string]interface{}{logging.KeyError: err}) @@ -835,15 +842,16 @@ func (s *server) ImportResourceState(ctx context.Context, req *tfplugin6.ImportR logging.ProtocolError(ctx, "Error converting request from protobuf", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Calling downstream") + ctx = tf6serverlogging.DownstreamRequest(ctx) resp, err := s.downstream.ImportResourceState(ctx, r) if err != nil { logging.ProtocolError(ctx, "Error from downstream", map[string]interface{}{logging.KeyError: err}) return nil, err } - logging.ProtocolTrace(ctx, "Called downstream") + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) for _, importedResource := range resp.ImportedResources { logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response_ImportedResource", "State", importedResource.State) + logging.ProtocolPrivateData(ctx, s.protocolDataDir, rpc, "Response_ImportedResource", "Private", importedResource.Private) } ret, err := toproto.ImportResourceState_Response(resp) if err != nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value.go b/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value.go index 4d7b74989..f997347e2 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value.go @@ -260,17 +260,13 @@ func (val Value) Copy() Value { // // The builtin Value representations are: // -// * String: string, *string -// -// * Number: *big.Float, int64, *int64, int32, *int32, int16, *int16, int8, -// *int8, int, *int, uint64, *uint64, uint32, *uint32, uint16, -// *uint16, uint8, *uint8, uint, *uint, float64, *float64 -// -// * Bool: bool, *bool -// -// * Map and Object: map[string]Value -// -// * Tuple, List, and Set: []Value +// - String: string, *string +// - Number: *big.Float, int64, *int64, int32, *int32, int16, *int16, int8, +// *int8, int, *int, uint64, *uint64, uint32, *uint32, uint16, +// *uint16, uint8, *uint8, uint, *uint, float64, *float64 +// - Bool: bool, *bool +// - Map and Object: map[string]Value +// - Tuple, List, and Set: []Value func NewValue(t Type, val interface{}) Value { v, err := newValue(t, val) if err != nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value_json.go b/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value_json.go index 308434776..b889b3beb 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value_json.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value_json.go @@ -16,7 +16,24 @@ import ( // terraform-plugin-go. Third parties should not use it, and its behavior is // not covered under the API compatibility guarantees. Don't use this. func ValueFromJSON(data []byte, typ Type) (Value, error) { - return jsonUnmarshal(data, typ, NewAttributePath()) + return jsonUnmarshal(data, typ, NewAttributePath(), ValueFromJSONOpts{}) +} + +// ValueFromJSONOpts contains options that can be used to modify the behaviour when +// unmarshalling JSON. +type ValueFromJSONOpts struct { + // IgnoreUndefinedAttributes is used to ignore any attributes which appear in the + // JSON but do not have a corresponding entry in the schema. For example, raw state + // where an attribute has been removed from the schema. + IgnoreUndefinedAttributes bool +} + +// ValueFromJSONWithOpts is identical to ValueFromJSON with the exception that it +// accepts ValueFromJSONOpts which can be used to modify the unmarshalling behaviour, such +// as ignoring undefined attributes, for instance. This can occur when the JSON +// being unmarshalled does not have a corresponding attribute in the schema. +func ValueFromJSONWithOpts(data []byte, typ Type, opts ValueFromJSONOpts) (Value, error) { + return jsonUnmarshal(data, typ, NewAttributePath(), opts) } func jsonByteDecoder(buf []byte) *json.Decoder { @@ -26,7 +43,7 @@ func jsonByteDecoder(buf []byte) *json.Decoder { return dec } -func jsonUnmarshal(buf []byte, typ Type, p *AttributePath) (Value, error) { +func jsonUnmarshal(buf []byte, typ Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() @@ -46,18 +63,17 @@ func jsonUnmarshal(buf []byte, typ Type, p *AttributePath) (Value, error) { case typ.Is(Bool): return jsonUnmarshalBool(buf, typ, p) case typ.Is(DynamicPseudoType): - return jsonUnmarshalDynamicPseudoType(buf, typ, p) + return jsonUnmarshalDynamicPseudoType(buf, typ, p, opts) case typ.Is(List{}): - return jsonUnmarshalList(buf, typ.(List).ElementType, p) + return jsonUnmarshalList(buf, typ.(List).ElementType, p, opts) case typ.Is(Set{}): - return jsonUnmarshalSet(buf, typ.(Set).ElementType, p) - + return jsonUnmarshalSet(buf, typ.(Set).ElementType, p, opts) case typ.Is(Map{}): - return jsonUnmarshalMap(buf, typ.(Map).ElementType, p) + return jsonUnmarshalMap(buf, typ.(Map).ElementType, p, opts) case typ.Is(Tuple{}): - return jsonUnmarshalTuple(buf, typ.(Tuple).ElementTypes, p) + return jsonUnmarshalTuple(buf, typ.(Tuple).ElementTypes, p, opts) case typ.Is(Object{}): - return jsonUnmarshalObject(buf, typ.(Object).AttributeTypes, p) + return jsonUnmarshalObject(buf, typ.(Object).AttributeTypes, p, opts) } return Value{}, p.NewErrorf("unknown type %s", typ) } @@ -140,7 +156,7 @@ func jsonUnmarshalBool(buf []byte, _ Type, p *AttributePath) (Value, error) { return Value{}, p.NewErrorf("unsupported type %T sent as %s", tok, Bool) } -func jsonUnmarshalDynamicPseudoType(buf []byte, _ Type, p *AttributePath) (Value, error) { +func jsonUnmarshalDynamicPseudoType(buf []byte, _ Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() if err != nil { @@ -190,10 +206,10 @@ func jsonUnmarshalDynamicPseudoType(buf []byte, _ Type, p *AttributePath) (Value if valBody == nil { return Value{}, p.NewErrorf("missing value in dynamically-typed value") } - return jsonUnmarshal(valBody, t, p) + return jsonUnmarshal(valBody, t, p, opts) } -func jsonUnmarshalList(buf []byte, elementType Type, p *AttributePath) (Value, error) { +func jsonUnmarshalList(buf []byte, elementType Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() @@ -227,7 +243,7 @@ func jsonUnmarshalList(buf []byte, elementType Type, p *AttributePath) (Value, e if err != nil { return Value{}, innerPath.NewErrorf("error decoding value: %w", err) } - val, err := jsonUnmarshal(rawVal, elementType, innerPath) + val, err := jsonUnmarshal(rawVal, elementType, innerPath, opts) if err != nil { return Value{}, err } @@ -254,7 +270,7 @@ func jsonUnmarshalList(buf []byte, elementType Type, p *AttributePath) (Value, e }, vals), nil } -func jsonUnmarshalSet(buf []byte, elementType Type, p *AttributePath) (Value, error) { +func jsonUnmarshalSet(buf []byte, elementType Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() @@ -284,7 +300,7 @@ func jsonUnmarshalSet(buf []byte, elementType Type, p *AttributePath) (Value, er if err != nil { return Value{}, innerPath.NewErrorf("error decoding value: %w", err) } - val, err := jsonUnmarshal(rawVal, elementType, innerPath) + val, err := jsonUnmarshal(rawVal, elementType, innerPath, opts) if err != nil { return Value{}, err } @@ -310,7 +326,7 @@ func jsonUnmarshalSet(buf []byte, elementType Type, p *AttributePath) (Value, er }, vals), nil } -func jsonUnmarshalMap(buf []byte, attrType Type, p *AttributePath) (Value, error) { +func jsonUnmarshalMap(buf []byte, attrType Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() @@ -341,7 +357,7 @@ func jsonUnmarshalMap(buf []byte, attrType Type, p *AttributePath) (Value, error if err != nil { return Value{}, innerPath.NewErrorf("error decoding value: %w", err) } - val, err := jsonUnmarshal(rawVal, attrType, innerPath) + val, err := jsonUnmarshal(rawVal, attrType, innerPath, opts) if err != nil { return Value{}, err } @@ -360,7 +376,7 @@ func jsonUnmarshalMap(buf []byte, attrType Type, p *AttributePath) (Value, error }, vals), nil } -func jsonUnmarshalTuple(buf []byte, elementTypes []Type, p *AttributePath) (Value, error) { +func jsonUnmarshalTuple(buf []byte, elementTypes []Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() @@ -398,7 +414,7 @@ func jsonUnmarshalTuple(buf []byte, elementTypes []Type, p *AttributePath) (Valu if err != nil { return Value{}, innerPath.NewErrorf("error decoding value: %w", err) } - val, err := jsonUnmarshal(rawVal, elementType, innerPath) + val, err := jsonUnmarshal(rawVal, elementType, innerPath, opts) if err != nil { return Value{}, err } @@ -422,7 +438,9 @@ func jsonUnmarshalTuple(buf []byte, elementTypes []Type, p *AttributePath) (Valu }, vals), nil } -func jsonUnmarshalObject(buf []byte, attrTypes map[string]Type, p *AttributePath) (Value, error) { +// jsonUnmarshalObject attempts to decode JSON object structure to tftypes.Value object. +// opts contains fields that can be used to modify the behaviour of JSON unmarshalling. +func jsonUnmarshalObject(buf []byte, attrTypes map[string]Type, p *AttributePath, opts ValueFromJSONOpts) (Value, error) { dec := jsonByteDecoder(buf) tok, err := dec.Token() @@ -435,27 +453,32 @@ func jsonUnmarshalObject(buf []byte, attrTypes map[string]Type, p *AttributePath vals := map[string]Value{} for dec.More() { - innerPath := p.WithElementKeyValue(NewValue(String, UnknownValue)) tok, err := dec.Token() if err != nil { - return Value{}, innerPath.NewErrorf("error reading token: %w", err) + return Value{}, p.NewErrorf("error reading object attribute key token: %w", err) } key, ok := tok.(string) if !ok { - return Value{}, innerPath.NewErrorf("object attribute key was %T, not string", tok) + return Value{}, p.NewErrorf("object attribute key was %T with value %v, not string", tok, tok) } + innerPath := p.WithAttributeName(key) attrType, ok := attrTypes[key] if !ok { + if opts.IgnoreUndefinedAttributes { + // We are trying to ignore the key and value of any unsupported attribute. + _ = dec.Decode(new(json.RawMessage)) + continue + } + return Value{}, innerPath.NewErrorf("unsupported attribute %q", key) } - innerPath = p.WithAttributeName(key) var rawVal json.RawMessage err = dec.Decode(&rawVal) if err != nil { return Value{}, innerPath.NewErrorf("error decoding value: %w", err) } - val, err := jsonUnmarshal(rawVal, attrType, innerPath) + val, err := jsonUnmarshal(rawVal, attrType, innerPath, opts) if err != nil { return Value{}, err } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/fieldutils/field_maps.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/fieldutils/field_maps.go new file mode 100644 index 000000000..ac78d6da7 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/fieldutils/field_maps.go @@ -0,0 +1,45 @@ +package fieldutils + +// MergeFieldMaps takes a slice of field maps, +// and merges all the key/value pairs into a new single field map. +// +// Input order matters: in case two or more maps use the same key, +// the last one to set that key will have the corresponding value +// persisted. +func MergeFieldMaps(maps ...map[string]interface{}) map[string]interface{} { + // Pre-allocate a map to merge all the maps into, + // that has at least the capacity equivalent to the number + // of maps to merge + result := make(map[string]interface{}, len(maps)) + + // Merge all the maps into one; + // in case of clash, only the last key is preserved + for _, m := range maps { + for k, v := range m { + result[k] = v + } + } + + return result +} + +// FieldMapsToKeys will extract all the field maps keys, avoiding repetitions +// in case two or more maps contained the same key. +func FieldMapsToKeys(maps ...map[string]interface{}) []string { + switch len(maps) { + case 0: + return nil + case 1: + result := make([]string, 0, len(maps[0])) + + for k := range maps[0] { + result = append(result, k) + } + + return result + default: + // As we merge all maps into one, we can use this + // same function recursively, falling back on the `switch case 1`. + return FieldMapsToKeys(MergeFieldMaps(maps...)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/hclogutils/args.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/hclogutils/args.go index 220120f77..44c81ab8e 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/internal/hclogutils/args.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/hclogutils/args.go @@ -1,8 +1,12 @@ package hclogutils -// MapsToArgs will shallow merge field maps into the slice of key1, value1, -// key2, value2, ... arguments expected by hc-log.Logger methods. -func MapsToArgs(maps ...map[string]interface{}) []interface{} { +import ( + "github.com/hashicorp/terraform-plugin-log/internal/fieldutils" +) + +// FieldMapsToArgs will shallow merge field maps into a slice of key/value pairs +// arguments (i.e. `[k1, v1, k2, v2, ...]`) expected by hc-log.Logger methods. +func FieldMapsToArgs(maps ...map[string]interface{}) []interface{} { switch len(maps) { case 0: return nil @@ -10,27 +14,13 @@ func MapsToArgs(maps ...map[string]interface{}) []interface{} { result := make([]interface{}, 0, len(maps[0])*2) for k, v := range maps[0] { - result = append(result, k) - result = append(result, v) + result = append(result, k, v) } return result default: - mergedMap := make(map[string]interface{}, 0) - - for _, m := range maps { - for k, v := range m { - mergedMap[k] = v - } - } - - result := make([]interface{}, 0, len(mergedMap)*2) - - for k, v := range mergedMap { - result = append(result, k) - result = append(result, v) - } - - return result + // As we merge all maps into one, we can use this + // same function recursively, falling back on the `switch case 1`. + return FieldMapsToArgs(fieldutils.MergeFieldMaps(maps...)) } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/filtering.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/filtering.go new file mode 100644 index 000000000..c7b9c450a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/filtering.go @@ -0,0 +1,133 @@ +package logging + +import ( + "strings" + + "github.com/hashicorp/terraform-plugin-log/internal/fieldutils" + "github.com/hashicorp/terraform-plugin-log/internal/hclogutils" +) + +const logMaskingReplacementString = "***" + +// ShouldOmit takes a log's *string message and slices of fields, +// and determines, based on the LoggerOpts configuration, if the +// log should be omitted (i.e. prevent it to be printed on the final writer). +func (lo LoggerOpts) ShouldOmit(msg *string, fieldMaps ...map[string]interface{}) bool { + // Omit log if any of the configured keys is found in the given fields + if len(lo.OmitLogWithFieldKeys) > 0 { + fieldsKeys := fieldutils.FieldMapsToKeys(fieldMaps...) + if argKeysContain(fieldsKeys, lo.OmitLogWithFieldKeys) { + return true + } + } + + // Omit log if any of the configured regexp matches the log message + if len(lo.OmitLogWithMessageRegexes) > 0 { + for _, r := range lo.OmitLogWithMessageRegexes { + if r.MatchString(*msg) { + return true + } + } + } + + // Omit log if any of the configured strings is contained in the log message + if len(lo.OmitLogWithMessageStrings) > 0 { + for _, s := range lo.OmitLogWithMessageStrings { + if strings.Contains(*msg, s) { + return true + } + } + } + + return false +} + +// ApplyMask takes a log's *string message and slices of fields, +// and applies masking to fields keys' values and/or to log message, +// based on the LoggerOpts configuration. +// +// Note that the given input is changed-in-place by this method. +func (lo LoggerOpts) ApplyMask(msg *string, fieldMaps ...map[string]interface{}) { + // Replace any log field value with the corresponding field key equal to the configured strings + if len(lo.MaskFieldValuesWithFieldKeys) > 0 { + for _, k := range lo.MaskFieldValuesWithFieldKeys { + for _, f := range fieldMaps { + for fk := range f { + if k == fk { + f[k] = logMaskingReplacementString + } + } + } + } + } + + // Replace any part of any log field matching any of the configured regexp + if len(lo.MaskAllFieldValuesRegexes) > 0 { + for _, r := range lo.MaskAllFieldValuesRegexes { + for _, f := range fieldMaps { + for fk, fv := range f { + // Can apply the regexp replacement, only if the field value is indeed a string + fvStr, ok := fv.(string) + if ok { + f[fk] = r.ReplaceAllString(fvStr, logMaskingReplacementString) + } + } + } + } + } + + // Replace any part of any log field matching any of the configured strings + if len(lo.MaskAllFieldValuesStrings) > 0 { + for _, s := range lo.MaskAllFieldValuesStrings { + for _, f := range fieldMaps { + for fk, fv := range f { + // Can apply the regexp replacement, only if the field value is indeed a string + fvStr, ok := fv.(string) + if ok { + f[fk] = strings.ReplaceAll(fvStr, s, logMaskingReplacementString) + } + } + } + } + } + + // Replace any part of the log message matching any of the configured regexp + if len(lo.MaskMessageRegexes) > 0 { + for _, r := range lo.MaskMessageRegexes { + *msg = r.ReplaceAllString(*msg, logMaskingReplacementString) + } + } + + // Replace any part of the log message equal to any of the configured strings + if len(lo.MaskMessageStrings) > 0 { + for _, s := range lo.MaskMessageStrings { + *msg = strings.ReplaceAll(*msg, s, logMaskingReplacementString) + } + } +} + +func OmitOrMask(tfLoggerOpts LoggerOpts, msg *string, additionalFields []map[string]interface{}) ([]interface{}, bool) { + additionalFieldsMap := fieldutils.MergeFieldMaps(additionalFields...) + + // Apply the provider root LoggerOpts to determine if this log should be omitted + if tfLoggerOpts.ShouldOmit(msg, tfLoggerOpts.Fields, additionalFieldsMap) { + return nil, true + } + + // Apply the provider root LoggerOpts to apply masking to this log + tfLoggerOpts.ApplyMask(msg, tfLoggerOpts.Fields, additionalFieldsMap) + + return hclogutils.FieldMapsToArgs(tfLoggerOpts.Fields, additionalFieldsMap), false +} + +func argKeysContain(haystack []string, needles []string) bool { + for _, h := range haystack { + for _, n := range needles { + if n == h { + return true + } + } + } + + return false +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/log.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/log.go index 983bc874d..4aa80bb98 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/log.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/log.go @@ -6,10 +6,10 @@ import ( ) const ( - // Default provider root logger name. + // DefaultProviderRootLoggerName is the default provider root logger name. DefaultProviderRootLoggerName string = "provider" - // Default SDK root logger name. + // DefaultSDKRootLoggerName is the default SDK root logger name. DefaultSDKRootLoggerName string = "sdk" ) @@ -47,8 +47,52 @@ const ( // assist creating subsystem loggers, as most options cannot be fetched and // a logger does not provide set methods for these options. SinkOptionsKey loggerKey = "sink-options" + + // TFLoggerOpts is the loggerKey that will hold the LoggerOpts associated + // with the provider root logger (at `provider.tf-logger-opts`), and the + // provider sub-system logger (at `provider.SUBSYSTEM.tf-logger-opts`), + // in the context.Context. + // Note that only some LoggerOpts require to be stored this way, + // while others use the underlying *hclog.LoggerOptions of hclog.Logger. + TFLoggerOpts loggerKey = "tf-logger-opts" ) +// providerSubsystemLoggerKey is the loggerKey that will hold the subsystem logger +// for writing logs from within a provider subsystem. +func providerSubsystemLoggerKey(subsystem string) loggerKey { + return ProviderRootLoggerKey + loggerKey("."+subsystem) +} + +// providerRootTFLoggerOptsKey is the loggerKey that will hold +// the LoggerOpts of the provider. +func providerRootTFLoggerOptsKey() loggerKey { + return ProviderRootLoggerKey + "." + TFLoggerOpts +} + +// providerRootTFLoggerOptsKey is the loggerKey that will hold +// the LoggerOpts of a provider subsystem. +func providerSubsystemTFLoggerOptsKey(subsystem string) loggerKey { + return providerSubsystemLoggerKey(subsystem) + "." + TFLoggerOpts +} + +// providerSubsystemLoggerKey is the loggerKey that will hold the subsystem logger +// for writing logs from within an SDK subsystem. +func sdkSubsystemLoggerKey(subsystem string) loggerKey { + return SDKRootLoggerKey + loggerKey("."+subsystem) +} + +// sdkRootTFLoggerOptsKey is the loggerKey that will hold +// the LoggerOpts of the SDK. +func sdkRootTFLoggerOptsKey() loggerKey { + return SDKRootLoggerKey + "." + TFLoggerOpts +} + +// sdkSubsystemTFLoggerOptsKey is the loggerKey that will hold +// the LoggerOpts of an SDK subsystem. +func sdkSubsystemTFLoggerOptsKey(subsystem string) loggerKey { + return sdkSubsystemLoggerKey(subsystem) + "." + TFLoggerOpts +} + var ( // Stderr caches the original os.Stderr when the process is started. // diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/options.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/options.go index 02891a330..8040699e4 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/options.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/options.go @@ -3,6 +3,7 @@ package logging import ( "io" "os" + "regexp" "github.com/hashicorp/go-hclog" ) @@ -34,16 +35,126 @@ type LoggerOpts struct { // easy to mess up on accident. Output io.Writer - // IncludeTime indicates whether logs should incude the time they were + // IncludeTime indicates whether logs should include the time they were // written or not. It should only be set to true when testing tflog or // tfsdklog; providers and SDKs should always include the time logs // were written as part of the log. IncludeTime bool + // Fields indicates the key/value pairs to be added to each of its log output. + Fields map[string]interface{} + // IncludeRootFields indicates whether a new subsystem logger should // copy existing fields from the root logger. This is only performed // at the time of new subsystem creation. IncludeRootFields bool + + // OmitLogWithFieldKeys indicates that the logger should omit to write + // any log when any of the given keys is found within the fields. + // + // Example: + // + // OmitLogWithFieldKeys = `['foo', 'baz']` + // + // log1 = `{ msg = "...", fields = { 'foo': '...', 'bar': '...' }` -> omitted + // log2 = `{ msg = "...", fields = { 'bar': '...' }` -> printed + // log3 = `{ msg = "...", fields = { 'baz': '...', 'boo': '...' }` -> omitted + // + OmitLogWithFieldKeys []string + + // OmitLogWithMessageRegexes indicates that the logger should omit to write + // any log that matches any of the given *regexp.Regexp. + // + // Example: + // + // OmitLogWithMessageRegexes = `[regexp.MustCompile("(foo|bar)")]` + // + // log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted + // log2 = `{ msg = "pineapple mango", fields = {...}` -> printed + // log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted + // + OmitLogWithMessageRegexes []*regexp.Regexp + + // OmitLogWithMessageStrings indicates that the logger should omit to write + // any log that matches any of the given string. + // + // Example: + // + // OmitLogWithMessageStrings = `['foo', 'bar']` + // + // log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted + // log2 = `{ msg = "pineapple mango", fields = {...}` -> printed + // log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted + // + OmitLogWithMessageStrings []string + + // MaskFieldValuesWithFieldKeys indicates that the logger should mask with asterisks (`*`) + // any field value where the key matches one of the given keys. + // + // Example: + // + // MaskFieldValuesWithFieldKeys = `['foo', 'baz']` + // + // log1 = `{ msg = "...", fields = { 'foo': '***', 'bar': '...' }` -> masked value + // log2 = `{ msg = "...", fields = { 'bar': '...' }` -> as-is value + // log3 = `{ msg = "...", fields = { 'baz': '***', 'boo': '...' }` -> masked value + // + MaskFieldValuesWithFieldKeys []string + + // MaskAllFieldValuesRegexes indicates that the logger should replace, within + // all the log field values, the portion matching one of the given *regexp.Regexp. + // + // Note that the replacement will happen, only for field values that are of type string. + // + // Example: + // + // MaskAllFieldValuesRegexes = `[regexp.MustCompile("(foo|bar)")]` + // + // log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value + // log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value + // log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value + // + MaskAllFieldValuesRegexes []*regexp.Regexp + + // MaskAllFieldValuesStrings indicates that the logger should replace, within + // all the log field values, the portion equal to one of the given strings. + // + // Note that the replacement will happen, only for field values that are of type string. + // + // Example: + // + // MaskAllFieldValuesStrings = `['foo', 'baz']` + // + // log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': 'bar', 'k3': '***' }` -> masked value + // log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': '***' }` -> as-is value + // log2 = `{ msg = "...", fields = { 'k1': '*** bar ***' }` -> masked value + MaskAllFieldValuesStrings []string + + // MaskMessageRegexes indicates that the logger should replace, within + // a log message, the portion matching one of the given *regexp.Regexp. + // + // Example: + // + // MaskMessageRegexes = `[regexp.MustCompile("(foo|bar)")]` + // + // log1 = `{ msg = "banana apple ***", fields = {...}` -> masked portion + // log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is + // log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion + // + MaskMessageRegexes []*regexp.Regexp + + // MaskMessageStrings indicates that the logger should replace, within + // a log message, the portion equal to one of the given strings. + // + // Example: + // + // MaskMessageStrings = `['foo', 'bar']` + // + // log1 = `{ msg = "banana apple ***", fields = {...}` -> masked portion + // log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is + // log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion + // + MaskMessageStrings []string } // ApplyLoggerOpts generates a LoggerOpts out of a list of Option @@ -86,6 +197,43 @@ func WithOutput(output io.Writer) Option { } } +// WithField sets the provided key/value pair, onto the LoggerOpts.Fields field. +// +// Behind the scene, fields are stored in a map[string]interface{}: +// this means that in case the same key is used multiple times (key collision), +// the last one set is the one that gets persisted and then outputted with the logs. +func WithField(key string, value interface{}) Option { + return func(l LoggerOpts) LoggerOpts { + // Lazily create this map, on first assignment + if l.Fields == nil { + l.Fields = make(map[string]interface{}) + } + + l.Fields[key] = value + return l + } +} + +// WithFields sets all the provided key/value pairs, onto the LoggerOpts.Fields field. +// +// Behind the scene, fields are stored in a map[string]interface{}: +// this means that in case the same key is used multiple times (key collision), +// the last one set is the one that gets persisted and then outputted with the logs. +func WithFields(fields map[string]interface{}) Option { + return func(l LoggerOpts) LoggerOpts { + // Lazily create this map, on first assignment + if l.Fields == nil { + l.Fields = make(map[string]interface{}) + } + + for k, v := range fields { + l.Fields[k] = v + } + + return l + } +} + // WithRootFields enables the copying of root logger fields to a new subsystem // logger during creation. func WithRootFields() Option { @@ -114,3 +262,67 @@ func WithoutTimestamp() Option { return l } } + +// WithOmitLogWithFieldKeys appends keys to the LoggerOpts.OmitLogWithFieldKeys field. +func WithOmitLogWithFieldKeys(keys ...string) Option { + return func(l LoggerOpts) LoggerOpts { + l.OmitLogWithFieldKeys = append(l.OmitLogWithFieldKeys, keys...) + return l + } +} + +// WithOmitLogWithMessageRegexes appends *regexp.Regexp to the LoggerOpts.OmitLogWithMessageRegexes field. +func WithOmitLogWithMessageRegexes(expressions ...*regexp.Regexp) Option { + return func(l LoggerOpts) LoggerOpts { + l.OmitLogWithMessageRegexes = append(l.OmitLogWithMessageRegexes, expressions...) + return l + } +} + +// WithOmitLogWithMessageStrings appends string to the LoggerOpts.OmitLogWithMessageStrings field. +func WithOmitLogWithMessageStrings(matchingStrings ...string) Option { + return func(l LoggerOpts) LoggerOpts { + l.OmitLogWithMessageStrings = append(l.OmitLogWithMessageStrings, matchingStrings...) + return l + } +} + +// WithMaskFieldValuesWithFieldKeys appends keys to the LoggerOpts.MaskFieldValuesWithFieldKeys field. +func WithMaskFieldValuesWithFieldKeys(keys ...string) Option { + return func(l LoggerOpts) LoggerOpts { + l.MaskFieldValuesWithFieldKeys = append(l.MaskFieldValuesWithFieldKeys, keys...) + return l + } +} + +// WithMaskAllFieldValuesRegexes appends keys to the LoggerOpts.MaskAllFieldValuesRegexes field. +func WithMaskAllFieldValuesRegexes(expressions ...*regexp.Regexp) Option { + return func(l LoggerOpts) LoggerOpts { + l.MaskAllFieldValuesRegexes = append(l.MaskAllFieldValuesRegexes, expressions...) + return l + } +} + +// WithMaskAllFieldValuesStrings appends keys to the LoggerOpts.MaskAllFieldValuesStrings field. +func WithMaskAllFieldValuesStrings(matchingStrings ...string) Option { + return func(l LoggerOpts) LoggerOpts { + l.MaskAllFieldValuesStrings = append(l.MaskAllFieldValuesStrings, matchingStrings...) + return l + } +} + +// WithMaskMessageRegexes appends *regexp.Regexp to the LoggerOpts.MaskMessageRegexes field. +func WithMaskMessageRegexes(expressions ...*regexp.Regexp) Option { + return func(l LoggerOpts) LoggerOpts { + l.MaskMessageRegexes = append(l.MaskMessageRegexes, expressions...) + return l + } +} + +// WithMaskMessageStrings appends string to the LoggerOpts.MaskMessageStrings field. +func WithMaskMessageStrings(matchingStrings ...string) Option { + return func(l LoggerOpts) LoggerOpts { + l.MaskMessageStrings = append(l.MaskMessageStrings, matchingStrings...) + return l + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/provider.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/provider.go index b40a12f83..0e6e8f50f 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/provider.go @@ -60,7 +60,7 @@ const NewProviderSubsystemLoggerWarning = "This log was generated by a subsystem // subsystem in provider space. If no such subsystem logger has been created, // it will return nil. func GetProviderSubsystemLogger(ctx context.Context, subsystem string) hclog.Logger { - logger := ctx.Value(ProviderRootLoggerKey + loggerKey("."+subsystem)) + logger := ctx.Value(providerSubsystemLoggerKey(subsystem)) if logger == nil { return nil } @@ -70,5 +70,37 @@ func GetProviderSubsystemLogger(ctx context.Context, subsystem string) hclog.Log // SetProviderSubsystemLogger sets `logger` as the logger for the named // subsystem in provider space. func SetProviderSubsystemLogger(ctx context.Context, subsystem string, logger hclog.Logger) context.Context { - return context.WithValue(ctx, ProviderRootLoggerKey+loggerKey("."+subsystem), logger) + return context.WithValue(ctx, providerSubsystemLoggerKey(subsystem), logger) +} + +// GetProviderRootTFLoggerOpts retrieves the LoggerOpts of the provider root logger. +// The value is stored in the context.Context: if none is found, a new one will be created. +func GetProviderRootTFLoggerOpts(ctx context.Context) LoggerOpts { + lOpts, ok := ctx.Value(providerRootTFLoggerOptsKey()).(LoggerOpts) + if !ok { + lOpts = LoggerOpts{} + } + + return lOpts +} + +// SetProviderRootTFLoggerOpts sets the LoggerOpts of the provider root logger, in the context. +func SetProviderRootTFLoggerOpts(ctx context.Context, lOpts LoggerOpts) context.Context { + return context.WithValue(ctx, providerRootTFLoggerOptsKey(), lOpts) +} + +// GetProviderSubsystemTFLoggerOpts retrieves the LoggerOpts of the logger for the named provider subsystem. +// The value is stored in the context.Context: if none is found, a new one will be created. +func GetProviderSubsystemTFLoggerOpts(ctx context.Context, subsystem string) LoggerOpts { + lOpts, ok := ctx.Value(providerSubsystemTFLoggerOptsKey(subsystem)).(LoggerOpts) + if !ok { + lOpts = LoggerOpts{} + } + + return lOpts +} + +// SetProviderSubsystemTFLoggerOpts sets the LoggerOpts of the logger for the named provider subsystem, in the context. +func SetProviderSubsystemTFLoggerOpts(ctx context.Context, subsystem string, lOpts LoggerOpts) context.Context { + return context.WithValue(ctx, providerSubsystemTFLoggerOptsKey(subsystem), lOpts) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/sdk.go b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/sdk.go index 3c6772b53..034e92827 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/sdk.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/internal/logging/sdk.go @@ -51,6 +51,22 @@ func SetSDKRootLoggerOptions(ctx context.Context, loggerOptions *hclog.LoggerOpt return context.WithValue(ctx, SDKRootLoggerOptionsKey, loggerOptions) } +// GetSDKRootTFLoggerOpts retrieves the LoggerOpts of the SDK root logger. +// The value is stored in the context.Context: if none is found, a new one will be created. +func GetSDKRootTFLoggerOpts(ctx context.Context) LoggerOpts { + lOpts, ok := ctx.Value(sdkRootTFLoggerOptsKey()).(LoggerOpts) + if !ok { + lOpts = LoggerOpts{} + } + + return lOpts +} + +// SetSDKRootTFLoggerOpts sets the LoggerOpts of the SDK root logger, in the context. +func SetSDKRootTFLoggerOpts(ctx context.Context, lOpts LoggerOpts) context.Context { + return context.WithValue(ctx, sdkRootTFLoggerOptsKey(), lOpts) +} + // NewSDKSubsystemLoggerWarning is the text included in log output when a // subsystem is auto-generated by terraform-plugin-log because it was used // before the SDK instantiated it. @@ -60,7 +76,7 @@ const NewSDKSubsystemLoggerWarning = "This log was generated by an SDK subsystem // in SDK space. If no such subsystem logger has been created, it will return // nil. func GetSDKSubsystemLogger(ctx context.Context, subsystem string) hclog.Logger { - logger := ctx.Value(SDKRootLoggerKey + loggerKey("."+subsystem)) + logger := ctx.Value(sdkSubsystemLoggerKey(subsystem)) if logger == nil { return nil } @@ -70,5 +86,21 @@ func GetSDKSubsystemLogger(ctx context.Context, subsystem string) hclog.Logger { // SetSDKSubsystemLogger sets `logger` as the logger for the named subsystem in // SDK space. func SetSDKSubsystemLogger(ctx context.Context, subsystem string, logger hclog.Logger) context.Context { - return context.WithValue(ctx, SDKRootLoggerKey+loggerKey("."+subsystem), logger) + return context.WithValue(ctx, sdkSubsystemLoggerKey(subsystem), logger) +} + +// GetSDKSubsystemTFLoggerOpts retrieves the LoggerOpts of the logger for the named SDK subsystem. +// The value is stored in the context.Context: if none is found, a new one will be created. +func GetSDKSubsystemTFLoggerOpts(ctx context.Context, subsystem string) LoggerOpts { + lOpts, ok := ctx.Value(sdkSubsystemTFLoggerOptsKey(subsystem)).(LoggerOpts) + if !ok { + lOpts = LoggerOpts{} + } + + return lOpts +} + +// SetSDKSubsystemTFLoggerOpts sets the LoggerOpts of the logger for the named SDK subsystem, in the context. +func SetSDKSubsystemTFLoggerOpts(ctx context.Context, subsystem string, lOpts LoggerOpts) context.Context { + return context.WithValue(ctx, sdkSubsystemTFLoggerOptsKey(subsystem), lOpts) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/tflog/provider.go b/vendor/github.com/hashicorp/terraform-plugin-log/tflog/provider.go index e450e3bb6..bc3897e32 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/tflog/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/tflog/provider.go @@ -2,29 +2,27 @@ package tflog import ( "context" + "regexp" - "github.com/hashicorp/terraform-plugin-log/internal/hclogutils" "github.com/hashicorp/terraform-plugin-log/internal/logging" ) -// With returns a new context.Context that has a modified logger in it which -// will include key and value as arguments in all its log output. -func With(ctx context.Context, key string, value interface{}) context.Context { - logger := logging.GetProviderRootLogger(ctx) - if logger == nil { - // this essentially should never happen in production - // the root logger for provider code should be injected - // by whatever SDK the provider developer is using, so - // really this is only likely in unit tests, at most - // so just making this a no-op is fine - return ctx - } - return logging.SetProviderRootLogger(ctx, logger.With(key, value)) +// SetField returns a new context.Context that has a modified logger in it which +// will include key and value as fields in all its log output. +// +// In case of the same key is used multiple times (i.e. key collision), +// the last one set is the one that gets persisted and then outputted with the logs. +func SetField(ctx context.Context, key string, value interface{}) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithField(key, value)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) } // Trace logs `msg` at the trace level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Trace(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderRootLogger(ctx) @@ -36,12 +34,18 @@ func Trace(ctx context.Context, msg string, additionalFields ...map[string]inter // so just making this a no-op is fine return } - logger.Trace(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Trace(msg, additionalArgs...) } // Debug logs `msg` at the debug level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Debug(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderRootLogger(ctx) @@ -53,12 +57,18 @@ func Debug(ctx context.Context, msg string, additionalFields ...map[string]inter // so just making this a no-op is fine return } - logger.Debug(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Debug(msg, additionalArgs...) } // Info logs `msg` at the info level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Info(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderRootLogger(ctx) @@ -70,12 +80,18 @@ func Info(ctx context.Context, msg string, additionalFields ...map[string]interf // so just making this a no-op is fine return } - logger.Info(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Info(msg, additionalArgs...) } // Warn logs `msg` at the warn level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Warn(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderRootLogger(ctx) @@ -87,12 +103,18 @@ func Warn(ctx context.Context, msg string, additionalFields ...map[string]interf // so just making this a no-op is fine return } - logger.Warn(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Warn(msg, additionalArgs...) } // Error logs `msg` at the error level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Error(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderRootLogger(ctx) @@ -104,5 +126,210 @@ func Error(ctx context.Context, msg string, additionalFields ...map[string]inter // so just making this a no-op is fine return } - logger.Error(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Error(msg, additionalArgs...) +} + +// OmitLogWithFieldKeys returns a new context.Context that has a modified logger +// that will omit to write any log when any of the given keys is found +// within its fields. +// +// Each call to this function is additive: +// the keys to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '...', 'bar': '...' }` -> omitted +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> printed +// log3 = `{ msg = "...", fields = { 'baz': '...', 'boo': '...' }` -> omitted +// +func OmitLogWithFieldKeys(ctx context.Context, keys ...string) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithOmitLogWithFieldKeys(keys...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// OmitLogWithMessageRegexes returns a new context.Context that has a modified logger +// that will omit to write any log that has a message matching any of the +// given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func OmitLogWithMessageRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithOmitLogWithMessageRegexes(expressions...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// OmitLogWithMessageStrings returns a new context.Context that has a modified logger +// that will omit to write any log that matches any of the given string. +// +// Each call to this function is additive: +// the string to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func OmitLogWithMessageStrings(ctx context.Context, matchingStrings ...string) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithOmitLogWithMessageStrings(matchingStrings...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// MaskFieldValuesWithFieldKeys returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) any field value where the +// key matches one of the given keys. +// +// Each call to this function is additive: +// the keys to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '***', 'bar': '...' }` -> masked value +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> as-is value +// log3 = `{ msg = "...", fields = { 'baz': '***', 'boo': '...' }` -> masked value +// +func MaskFieldValuesWithFieldKeys(ctx context.Context, keys ...string) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskFieldValuesWithFieldKeys(keys...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// MaskAllFieldValuesRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// matching one of the given *regexp.Regexp. +// +// Note that the replacement will happen, only for field values that are of type string. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func MaskAllFieldValuesRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskAllFieldValuesRegexes(expressions...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// MaskAllFieldValuesStrings returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// equal to one of the given strings. +// +// Note that the replacement will happen, only for field values that are of type string. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func MaskAllFieldValuesStrings(ctx context.Context, matchingStrings ...string) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskAllFieldValuesStrings(matchingStrings...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// MaskMessageRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all message substrings, +// matching one of the given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple ***", fields = {...}` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func MaskMessageRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskMessageRegexes(expressions...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// MaskMessageStrings returns a new context.Context that has a modified logger +// that masks (replace) with asterisks (`***`) all message substrings, +// equal to one of the given strings. +// +// Each call to this function is additive: +// the string to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple ***", fields = { 'k1': 'foo, bar, baz' }` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func MaskMessageStrings(ctx context.Context, matchingStrings ...string) context.Context { + lOpts := logging.GetProviderRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskMessageStrings(matchingStrings...)(lOpts) + + return logging.SetProviderRootTFLoggerOpts(ctx, lOpts) +} + +// MaskLogRegexes is a shortcut to invoke MaskMessageRegexes and MaskAllFieldValuesRegexes using the same input. +// Refer to those functions for details. +func MaskLogRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + return MaskMessageRegexes(MaskAllFieldValuesRegexes(ctx, expressions...), expressions...) +} + +// MaskLogStrings is a shortcut to invoke MaskMessageStrings and MaskAllFieldValuesStrings using the same input. +// Refer to those functions for details. +func MaskLogStrings(ctx context.Context, matchingStrings ...string) context.Context { + return MaskMessageStrings(MaskAllFieldValuesStrings(ctx, matchingStrings...), matchingStrings...) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/tflog/subsystem.go b/vendor/github.com/hashicorp/terraform-plugin-log/tflog/subsystem.go index 5cf08f22b..b49195876 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/tflog/subsystem.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/tflog/subsystem.go @@ -2,6 +2,7 @@ package tflog import ( "context" + "regexp" "github.com/hashicorp/go-hclog" "github.com/hashicorp/terraform-plugin-log/internal/hclogutils" @@ -31,68 +32,67 @@ func NewSubsystem(ctx context.Context, subsystem string, options ...logging.Opti return ctx } - loggerOptions := logging.GetProviderRootLoggerOptions(ctx) - opts := logging.ApplyLoggerOpts(options...) + rootLoggerOptions := logging.GetProviderRootLoggerOptions(ctx) + subLoggerTFLoggerOpts := logging.ApplyLoggerOpts(options...) - // On the off-chance that the logger options are not available, fallback - // to creating a named logger. This will preserve the root logger options, - // but cannot make changes beyond the level due to the hclog.Logger - // interface. - if loggerOptions == nil { - subLogger := logger.Named(subsystem) + // If root logger options are not available, + // fallback to creating a logger named like the given subsystem. + // This will preserve the root logger options, + // but cannot make changes beyond setting the level + // due to limitations with the hclog.Logger interface. + var subLogger hclog.Logger + if rootLoggerOptions == nil { + subLogger = logger.Named(subsystem) - if opts.AdditionalLocationOffset != 1 { + if subLoggerTFLoggerOpts.AdditionalLocationOffset != 1 { logger.Warn("Unable to create logging subsystem with AdditionalLocationOffset due to missing root logger options") } + } else { + subLoggerOptions := hclogutils.LoggerOptionsCopy(rootLoggerOptions) + subLoggerOptions.Name = subLoggerOptions.Name + "." + subsystem - if opts.Level != hclog.NoLevel { - subLogger.SetLevel(opts.Level) + if subLoggerTFLoggerOpts.AdditionalLocationOffset != 1 { + subLoggerOptions.AdditionalLocationOffset = subLoggerTFLoggerOpts.AdditionalLocationOffset } - return logging.SetProviderSubsystemLogger(ctx, subsystem, subLogger) + subLogger = hclog.New(subLoggerOptions) } - subLoggerOptions := hclogutils.LoggerOptionsCopy(loggerOptions) - subLoggerOptions.Name = subLoggerOptions.Name + "." + subsystem - - if opts.AdditionalLocationOffset != 1 { - subLoggerOptions.AdditionalLocationOffset = opts.AdditionalLocationOffset + // Set the configured log level + if subLoggerTFLoggerOpts.Level != hclog.NoLevel { + subLogger.SetLevel(subLoggerTFLoggerOpts.Level) } - if opts.Level != hclog.NoLevel { - subLoggerOptions.Level = opts.Level + // Propagate root fields to the subsystem logger + if subLoggerTFLoggerOpts.IncludeRootFields { + loggerTFOpts := logging.GetProviderRootTFLoggerOpts(ctx) + subLoggerTFLoggerOpts = logging.WithFields(loggerTFOpts.Fields)(subLoggerTFLoggerOpts) } - subLogger := hclog.New(subLoggerOptions) - - if opts.IncludeRootFields { - subLogger = subLogger.With(logger.ImpliedArgs()...) - } + // Set the subsystem LoggerOpts in the context + ctx = logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, subLoggerTFLoggerOpts) return logging.SetProviderSubsystemLogger(ctx, subsystem, subLogger) } -// SubsystemWith returns a new context.Context that has a modified logger for -// the specified subsystem in it which will include key and value as arguments +// SubsystemSetField returns a new context.Context that has a modified logger for +// the specified subsystem in it which will include key and value as fields // in all its log output. -func SubsystemWith(ctx context.Context, subsystem, key string, value interface{}) context.Context { - logger := logging.GetProviderSubsystemLogger(ctx, subsystem) - if logger == nil { - if logging.GetProviderRootLogger(ctx) == nil { - // logging isn't set up, nothing we can do, just silently fail - // this should basically never happen in production - return ctx - } - // create a new logger if one doesn't exist - logger = logging.GetProviderSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewProviderSubsystemLoggerWarning) - } - return logging.SetProviderSubsystemLogger(ctx, subsystem, logger.With(key, value)) +// +// In case of the same key is used multiple times (i.e. key collision), +// the last one set is the one that gets persisted and then outputted with the logs. +func SubsystemSetField(ctx context.Context, subsystem, key string, value interface{}) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithField(key, value)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) } // SubsystemTrace logs `msg` at the trace level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemTrace(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderSubsystemLogger(ctx, subsystem) @@ -105,13 +105,19 @@ func SubsystemTrace(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetProviderSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewProviderSubsystemLoggerWarning) } - logger.Trace(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Trace(msg, additionalArgs...) } // SubsystemDebug logs `msg` at the debug level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemDebug(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderSubsystemLogger(ctx, subsystem) @@ -124,13 +130,19 @@ func SubsystemDebug(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetProviderSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewProviderSubsystemLoggerWarning) } - logger.Debug(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Debug(msg, additionalArgs...) } // SubsystemInfo logs `msg` at the info level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemInfo(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderSubsystemLogger(ctx, subsystem) @@ -143,13 +155,19 @@ func SubsystemInfo(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetProviderSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewProviderSubsystemLoggerWarning) } - logger.Info(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Info(msg, additionalArgs...) } // SubsystemWarn logs `msg` at the warn level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemWarn(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderSubsystemLogger(ctx, subsystem) @@ -162,13 +180,19 @@ func SubsystemWarn(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetProviderSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewProviderSubsystemLoggerWarning) } - logger.Warn(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Warn(msg, additionalArgs...) } // SubsystemError logs `msg` at the error level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemError(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetProviderSubsystemLogger(ctx, subsystem) @@ -181,5 +205,210 @@ func SubsystemError(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetProviderSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewProviderSubsystemLoggerWarning) } - logger.Error(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Error(msg, additionalArgs...) +} + +// SubsystemOmitLogWithFieldKeys returns a new context.Context that has a modified logger +// that will omit to write any log when any of the given keys is found +// within its fields. +// +// Each call to this function is additive: +// the keys to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '...', 'bar': '...' }` -> omitted +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> printed +// log3 = `{ msg = "...", fields = { 'baz': '...', 'boo': '...' }` -> omitted +// +func SubsystemOmitLogWithFieldKeys(ctx context.Context, subsystem string, keys ...string) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithOmitLogWithFieldKeys(keys...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemOmitLogWithMessageRegexes returns a new context.Context that has a modified logger +// that will omit to write any log that has a message matching any of the +// given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func SubsystemOmitLogWithMessageRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithOmitLogWithMessageRegexes(expressions...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemOmitLogWithMessageStrings returns a new context.Context that has a modified logger +// that will omit to write any log that matches any of the given string. +// +// Each call to this function is additive: +// the string to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func SubsystemOmitLogWithMessageStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithOmitLogWithMessageStrings(matchingStrings...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskFieldValuesWithFieldKeys returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) any argument value where the +// key matches one of the given keys. +// +// Each call to this function is additive: +// the keys to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '***', 'bar': '...' }` -> masked value +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> as-is value +// log3 = `{ msg = "...", fields = { 'baz': '***', 'boo': '...' }` -> masked value +// +func SubsystemMaskFieldValuesWithFieldKeys(ctx context.Context, subsystem string, keys ...string) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskFieldValuesWithFieldKeys(keys...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskAllFieldValuesRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// matching one of the given *regexp.Regexp. +// +// Note that the replacement will happen, only for field values that are of type string. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func SubsystemMaskAllFieldValuesRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskAllFieldValuesRegexes(expressions...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskAllFieldValuesStrings returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// equal to one of the given strings. +// +// Note that the replacement will happen, only for field values that are of type string. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func SubsystemMaskAllFieldValuesStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskAllFieldValuesStrings(matchingStrings...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskMessageRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all message substrings, +// matching one of the given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple ***", fields = {...}` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func SubsystemMaskMessageRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskMessageRegexes(expressions...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskMessageStrings returns a new context.Context that has a modified logger +// that masks (replace) with asterisks (`***`) all message substrings, +// equal to one of the given strings. +// +// Each call to this function is additive: +// the string to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple ***", fields = { 'k1': 'foo, bar, baz' }` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func SubsystemMaskMessageStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + lOpts := logging.GetProviderSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskMessageStrings(matchingStrings...)(lOpts) + + return logging.SetProviderSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskLogRegexes is a shortcut to invoke SubsystemMaskMessageRegexes and SubsystemMaskAllFieldValuesRegexes using the same input. +// Refer to those functions for details. +func SubsystemMaskLogRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + return SubsystemMaskMessageRegexes(SubsystemMaskAllFieldValuesRegexes(ctx, subsystem, expressions...), subsystem, expressions...) +} + +// SubsystemMaskLogStrings is a shortcut to invoke SubsystemMaskMessageStrings and SubsystemMaskAllFieldValuesStrings using the same input. +// Refer to those functions for details. +func SubsystemMaskLogStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + return SubsystemMaskMessageStrings(SubsystemMaskAllFieldValuesStrings(ctx, subsystem, matchingStrings...), subsystem, matchingStrings...) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/sdk.go b/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/sdk.go index a27b7f3b0..3a749834c 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/sdk.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/sdk.go @@ -2,6 +2,7 @@ package tfsdklog import ( "context" + "regexp" "github.com/hashicorp/go-hclog" "github.com/hashicorp/terraform-plugin-log/internal/hclogutils" @@ -94,23 +95,22 @@ func NewRootProviderLogger(ctx context.Context, options ...logging.Option) conte return ctx } -// With returns a new context.Context that has a modified logger in it which -// will include key and value as arguments in all its log output. -func With(ctx context.Context, key string, value interface{}) context.Context { - logger := logging.GetSDKRootLogger(ctx) - if logger == nil { - // this essentially should never happen in production the root - // logger for code should be injected by the in - // question, so really this is only likely in unit tests, at - // most so just making this a no-op is fine - return ctx - } - return logging.SetSDKRootLogger(ctx, logger.With(key, value)) +// SetField returns a new context.Context that has a modified logger in it which +// will include key and value as fields in all its log output. +// +// In case of the same key is used multiple times (i.e. key collision), +// the last one set is the one that gets persisted and then outputted with the logs. +func SetField(ctx context.Context, key string, value interface{}) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithField(key, value)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) } // Trace logs `msg` at the trace level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Trace(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKRootLogger(ctx) @@ -121,12 +121,18 @@ func Trace(ctx context.Context, msg string, additionalFields ...map[string]inter // most so just making this a no-op is fine return } - logger.Trace(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Trace(msg, additionalArgs...) } // Debug logs `msg` at the debug level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Debug(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKRootLogger(ctx) @@ -137,12 +143,18 @@ func Debug(ctx context.Context, msg string, additionalFields ...map[string]inter // most so just making this a no-op is fine return } - logger.Debug(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Debug(msg, additionalArgs...) } // Info logs `msg` at the info level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Info(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKRootLogger(ctx) @@ -153,12 +165,18 @@ func Info(ctx context.Context, msg string, additionalFields ...map[string]interf // most so just making this a no-op is fine return } - logger.Info(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Info(msg, additionalArgs...) } // Warn logs `msg` at the warn level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Warn(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKRootLogger(ctx) @@ -169,12 +187,18 @@ func Warn(ctx context.Context, msg string, additionalFields ...map[string]interf // most so just making this a no-op is fine return } - logger.Warn(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Warn(msg, additionalArgs...) } // Error logs `msg` at the error level to the logger in `ctx`, with optional // `additionalFields` structured key-value fields in the log output. Fields are -// shallow merged with any defined on the logger, e.g. by the `With()` function, +// shallow merged with any defined on the logger, e.g. by the `SetField()` function, // and across multiple maps. func Error(ctx context.Context, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKRootLogger(ctx) @@ -185,5 +209,210 @@ func Error(ctx context.Context, msg string, additionalFields ...map[string]inter // most so just making this a no-op is fine return } - logger.Error(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKRootTFLoggerOpts(ctx), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Error(msg, additionalArgs...) +} + +// OmitLogWithFieldKeys returns a new context.Context that has a modified logger +// that will omit to write any log when any of the given keys is found +// within its fields. +// +// Each call to this function is additive: +// the keys to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '...', 'bar': '...' }` -> omitted +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> printed +// log3 = `{ msg = "...", fields = { 'baz': '...', 'boo': '...' }` -> omitted +// +func OmitLogWithFieldKeys(ctx context.Context, keys ...string) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithOmitLogWithFieldKeys(keys...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// OmitLogWithMessageRegexes returns a new context.Context that has a modified logger +// that will omit to write any log that has a message matching any of the +// given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func OmitLogWithMessageRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithOmitLogWithMessageRegexes(expressions...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// OmitLogWithMessageStrings returns a new context.Context that has a modified logger +// that will omit to write any log that matches any of the given string. +// +// Each call to this function is additive: +// the string to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func OmitLogWithMessageStrings(ctx context.Context, matchingStrings ...string) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithOmitLogWithMessageStrings(matchingStrings...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// MaskFieldValuesWithFieldKeys returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) any field value where the +// key matches one of the given keys. +// +// Each call to this function is additive: +// the keys to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '***', 'bar': '...' }` -> masked value +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> as-is value +// log3 = `{ msg = "...", fields = { 'baz': '***', 'boo': '...' }` -> masked value +// +func MaskFieldValuesWithFieldKeys(ctx context.Context, keys ...string) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskFieldValuesWithFieldKeys(keys...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// MaskAllFieldValuesRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// matching one of the given *regexp.Regexp. +// +// Note that the replacement will happen, only for field values that are of type string. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func MaskAllFieldValuesRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskAllFieldValuesRegexes(expressions...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// MaskAllFieldValuesStrings returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// equal to one of the given strings. +// +// Note that the replacement will happen, only for field values that are of type string. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func MaskAllFieldValuesStrings(ctx context.Context, matchingStrings ...string) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskAllFieldValuesStrings(matchingStrings...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// MaskMessageRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all message substrings, +// matching one of the given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple ***", fields = {...}` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func MaskMessageRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskMessageRegexes(expressions...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// MaskMessageStrings returns a new context.Context that has a modified logger +// that masks (replace) with asterisks (`***`) all message substrings, +// equal to one of the given strings. +// +// Each call to this function is additive: +// the string to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple ***", fields = { 'k1': 'foo, bar, baz' }` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func MaskMessageStrings(ctx context.Context, matchingStrings ...string) context.Context { + lOpts := logging.GetSDKRootTFLoggerOpts(ctx) + + lOpts = logging.WithMaskMessageStrings(matchingStrings...)(lOpts) + + return logging.SetSDKRootTFLoggerOpts(ctx, lOpts) +} + +// MaskLogRegexes is a shortcut to invoke MaskMessageRegexes and MaskAllFieldValuesRegexes using the same input. +// Refer to those functions for details. +func MaskLogRegexes(ctx context.Context, expressions ...*regexp.Regexp) context.Context { + return MaskMessageRegexes(MaskAllFieldValuesRegexes(ctx, expressions...), expressions...) +} + +// MaskLogStrings is a shortcut to invoke MaskMessageStrings and MaskAllFieldValuesStrings using the same input. +// Refer to those functions for details. +func MaskLogStrings(ctx context.Context, matchingStrings ...string) context.Context { + return MaskMessageStrings(MaskAllFieldValuesStrings(ctx, matchingStrings...), matchingStrings...) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/subsystem.go b/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/subsystem.go index 3445288bc..bfad8d926 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/subsystem.go +++ b/vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/subsystem.go @@ -2,6 +2,7 @@ package tfsdklog import ( "context" + "regexp" "github.com/hashicorp/go-hclog" "github.com/hashicorp/terraform-plugin-log/internal/hclogutils" @@ -31,68 +32,67 @@ func NewSubsystem(ctx context.Context, subsystem string, options ...logging.Opti return ctx } - loggerOptions := logging.GetSDKRootLoggerOptions(ctx) - opts := logging.ApplyLoggerOpts(options...) + rootLoggerOptions := logging.GetSDKRootLoggerOptions(ctx) + subLoggerTFLoggerOpts := logging.ApplyLoggerOpts(options...) - // On the off-chance that the logger options are not available, fallback - // to creating a named logger. This will preserve the root logger options, - // but cannot make changes beyond the level due to the hclog.Logger - // interface. - if loggerOptions == nil { - subLogger := logger.Named(subsystem) + // If root logger options are not available, + // fallback to creating a logger named like the given subsystem. + // This will preserve the root logger options, + // but cannot make changes beyond setting the level + // due to limitations with the hclog.Logger interface. + var subLogger hclog.Logger + if rootLoggerOptions == nil { + subLogger = logger.Named(subsystem) - if opts.AdditionalLocationOffset != 1 { + if subLoggerTFLoggerOpts.AdditionalLocationOffset != 1 { logger.Warn("Unable to create logging subsystem with AdditionalLocationOffset due to missing root logger options") } + } else { + subLoggerOptions := hclogutils.LoggerOptionsCopy(rootLoggerOptions) + subLoggerOptions.Name = subLoggerOptions.Name + "." + subsystem - if opts.Level != hclog.NoLevel { - subLogger.SetLevel(opts.Level) + if subLoggerTFLoggerOpts.AdditionalLocationOffset != 1 { + subLoggerOptions.AdditionalLocationOffset = subLoggerTFLoggerOpts.AdditionalLocationOffset } - return logging.SetSDKSubsystemLogger(ctx, subsystem, subLogger) + subLogger = hclog.New(subLoggerOptions) } - subLoggerOptions := hclogutils.LoggerOptionsCopy(loggerOptions) - subLoggerOptions.Name = subLoggerOptions.Name + "." + subsystem - - if opts.AdditionalLocationOffset != 1 { - subLoggerOptions.AdditionalLocationOffset = opts.AdditionalLocationOffset + // Set the configured log level + if subLoggerTFLoggerOpts.Level != hclog.NoLevel { + subLogger.SetLevel(subLoggerTFLoggerOpts.Level) } - if opts.Level != hclog.NoLevel { - subLoggerOptions.Level = opts.Level + // Propagate root fields to the subsystem logger + if subLoggerTFLoggerOpts.IncludeRootFields { + loggerTFOpts := logging.GetSDKRootTFLoggerOpts(ctx) + subLoggerTFLoggerOpts = logging.WithFields(loggerTFOpts.Fields)(subLoggerTFLoggerOpts) } - subLogger := hclog.New(subLoggerOptions) - - if opts.IncludeRootFields { - subLogger = subLogger.With(logger.ImpliedArgs()...) - } + // Set the subsystem LoggerOpts in the context + ctx = logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, subLoggerTFLoggerOpts) return logging.SetSDKSubsystemLogger(ctx, subsystem, subLogger) } -// SubsystemWith returns a new context.Context that has a modified logger for -// the specified subsystem in it which will include key and value as arguments +// SubsystemSetField returns a new context.Context that has a modified logger for +// the specified subsystem in it which will include key and value as fields // in all its log output. -func SubsystemWith(ctx context.Context, subsystem, key string, value interface{}) context.Context { - logger := logging.GetSDKSubsystemLogger(ctx, subsystem) - if logger == nil { - if logging.GetSDKRootLogger(ctx) == nil { - // logging isn't set up, nothing we can do, just silently fail - // this should basically never happen in production - return ctx - } - // create a new logger if one doesn't exist - logger = logging.GetSDKSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewSDKSubsystemLoggerWarning) - } - return logging.SetSDKSubsystemLogger(ctx, subsystem, logger.With(key, value)) +// +// In case of the same key is used multiple times (i.e. key collision), +// the last one set is the one that gets persisted and then outputted with the logs. +func SubsystemSetField(ctx context.Context, subsystem, key string, value interface{}) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithField(key, value)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) } // SubsystemTrace logs `msg` at the trace level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemTrace(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKSubsystemLogger(ctx, subsystem) @@ -105,13 +105,19 @@ func SubsystemTrace(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetSDKSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewSDKSubsystemLoggerWarning) } - logger.Trace(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Trace(msg, additionalArgs...) } // SubsystemDebug logs `msg` at the debug level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemDebug(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKSubsystemLogger(ctx, subsystem) @@ -124,13 +130,19 @@ func SubsystemDebug(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetSDKSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewSDKSubsystemLoggerWarning) } - logger.Debug(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Debug(msg, additionalArgs...) } // SubsystemInfo logs `msg` at the info level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemInfo(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKSubsystemLogger(ctx, subsystem) @@ -143,13 +155,19 @@ func SubsystemInfo(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetSDKSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewSDKSubsystemLoggerWarning) } - logger.Info(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Info(msg, additionalArgs...) } // SubsystemWarn logs `msg` at the warn level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemWarn(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKSubsystemLogger(ctx, subsystem) @@ -162,13 +180,19 @@ func SubsystemWarn(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetSDKSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewSDKSubsystemLoggerWarning) } - logger.Warn(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Warn(msg, additionalArgs...) } // SubsystemError logs `msg` at the error level to the subsystem logger // specified in `ctx`, with optional `additionalFields` structured key-value // fields in the log output. Fields are shallow merged with any defined on the -// subsystem logger, e.g. by the `SubsystemWith()` function, and across +// subsystem logger, e.g. by the `SubsystemSetField()` function, and across // multiple maps. func SubsystemError(ctx context.Context, subsystem, msg string, additionalFields ...map[string]interface{}) { logger := logging.GetSDKSubsystemLogger(ctx, subsystem) @@ -181,5 +205,206 @@ func SubsystemError(ctx context.Context, subsystem, msg string, additionalFields // create a new logger if one doesn't exist logger = logging.GetSDKSubsystemLogger(NewSubsystem(ctx, subsystem), subsystem).With("new_logger_warning", logging.NewSDKSubsystemLoggerWarning) } - logger.Error(msg, hclogutils.MapsToArgs(additionalFields...)...) + + additionalArgs, shouldOmit := logging.OmitOrMask(logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem), &msg, additionalFields) + if shouldOmit { + return + } + + logger.Error(msg, additionalArgs...) +} + +// SubsystemOmitLogWithFieldKeys returns a new context.Context that has a modified logger +// that will omit to write any log when any of the given keys is found +// within its fields. +// +// Each call to this function is additive: +// the keys to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '...', 'bar': '...' }` -> omitted +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> printed +// log3 = `{ msg = "...", fields = { 'baz': '...', 'boo': '...' }` -> omitted +// +func SubsystemOmitLogWithFieldKeys(ctx context.Context, subsystem string, keys ...string) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithOmitLogWithFieldKeys(keys...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemOmitLogWithMessageRegexes returns a new context.Context that has a modified logger +// that will omit to write any log that has a message matching any of the +// given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func SubsystemOmitLogWithMessageRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithOmitLogWithMessageRegexes(expressions...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemOmitLogWithMessageStrings returns a new context.Context that has a modified logger +// that will omit to write any log that matches any of the given string. +// +// Each call to this function is additive: +// the string to omit by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple foo", fields = {...}` -> omitted +// log2 = `{ msg = "pineapple mango", fields = {...}` -> printed +// log3 = `{ msg = "pineapple mango bar", fields = {...}` -> omitted +// +func SubsystemOmitLogWithMessageStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithOmitLogWithMessageStrings(matchingStrings...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskFieldValuesWithFieldKeys returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) any field value where the +// key matches one of the given keys. +// +// Each call to this function is additive: +// the keys to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'baz']` +// +// log1 = `{ msg = "...", fields = { 'foo': '***', 'bar': '...' }` -> masked value +// log2 = `{ msg = "...", fields = { 'bar': '...' }` -> as-is value +// log3 = `{ msg = "...", fields = { 'baz': '***', 'boo': '...' }` -> masked value +// +func SubsystemMaskFieldValuesWithFieldKeys(ctx context.Context, subsystem string, keys ...string) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskFieldValuesWithFieldKeys(keys...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskAllFieldValuesRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// matching one of the given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func SubsystemMaskAllFieldValuesRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskAllFieldValuesRegexes(expressions...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskAllFieldValuesStrings returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all field value substrings, +// equal to one of the given strings. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "...", fields = { 'k1': '***', 'k2': '***', 'k3': 'baz' }` -> masked value +// log2 = `{ msg = "...", fields = { 'k1': 'boo', 'k2': 'far', 'k3': 'baz' }` -> as-is value +// log2 = `{ msg = "...", fields = { 'k1': '*** *** baz' }` -> masked value +// +func SubsystemMaskAllFieldValuesStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskAllFieldValuesStrings(matchingStrings...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskMessageRegexes returns a new context.Context that has a modified logger +// that masks (replaces) with asterisks (`***`) all message substrings, +// matching one of the given *regexp.Regexp. +// +// Each call to this function is additive: +// the regexp to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `[regexp.MustCompile("(foo|bar)")]` +// +// log1 = `{ msg = "banana apple ***", fields = {...}` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func SubsystemMaskMessageRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskMessageRegexes(expressions...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskMessageStrings returns a new context.Context that has a modified logger +// that masks (replace) with asterisks (`***`) all message substrings, +// equal to one of the given strings. +// +// Each call to this function is additive: +// the string to mask by are added to the existing configuration. +// +// Example: +// +// configuration = `['foo', 'bar']` +// +// log1 = `{ msg = "banana apple ***", fields = { 'k1': 'foo, bar, baz' }` -> masked portion +// log2 = `{ msg = "pineapple mango", fields = {...}` -> as-is +// log3 = `{ msg = "pineapple mango ***", fields = {...}` -> masked portion +// +func SubsystemMaskMessageStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + lOpts := logging.GetSDKSubsystemTFLoggerOpts(ctx, subsystem) + + lOpts = logging.WithMaskMessageStrings(matchingStrings...)(lOpts) + + return logging.SetSDKSubsystemTFLoggerOpts(ctx, subsystem, lOpts) +} + +// SubsystemMaskLogRegexes is a shortcut to invoke SubsystemMaskMessageRegexes and SubsystemMaskAllFieldValuesRegexes using the same input. +// Refer to those functions for details. +func SubsystemMaskLogRegexes(ctx context.Context, subsystem string, expressions ...*regexp.Regexp) context.Context { + return SubsystemMaskMessageRegexes(SubsystemMaskAllFieldValuesRegexes(ctx, subsystem, expressions...), subsystem, expressions...) +} + +// SubsystemMaskLogStrings is a shortcut to invoke SubsystemMaskMessageStrings and SubsystemMaskAllFieldValuesStrings using the same input. +// Refer to those functions for details. +func SubsystemMaskLogStrings(ctx context.Context, subsystem string, matchingStrings ...string) context.Context { + return SubsystemMaskMessageStrings(SubsystemMaskAllFieldValuesStrings(ctx, subsystem, matchingStrings...), subsystem, matchingStrings...) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/diag/helpers.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/diag/helpers.go index d43eab324..08e929178 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/diag/helpers.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/diag/helpers.go @@ -6,9 +6,9 @@ import "fmt" // as the most common use case in Go will be handling a single error // returned from a function. // -// if err != nil { -// return diag.FromErr(err) -// } +// if err != nil { +// return diag.FromErr(err) +// } func FromErr(err error) Diagnostics { if err == nil { return nil @@ -26,9 +26,9 @@ func FromErr(err error) Diagnostics { // values. This returns a single error in a Diagnostics as errors typically // do not occur in multiples as warnings may. // -// if unexpectedCondition { -// return diag.Errorf("unexpected: %s", someValue) -// } +// if unexpectedCondition { +// return diag.Errorf("unexpected: %s", someValue) +// } func Errorf(format string, a ...interface{}) Diagnostics { return Diagnostics{ Diagnostic{ diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging_http_transport.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging_http_transport.go new file mode 100644 index 000000000..335e1784e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging_http_transport.go @@ -0,0 +1,288 @@ +package logging + +import ( + "bufio" + "bytes" + "context" + "errors" + "io" + "net/http" + "net/http/httputil" + "net/textproto" + "strings" + + "github.com/hashicorp/go-uuid" + "github.com/hashicorp/terraform-plugin-log/tflog" +) + +// NewLoggingHTTPTransport creates a wrapper around an *http.RoundTripper, +// designed to be used for the `Transport` field of http.Client. +// +// This logs each pair of HTTP request/response that it handles. +// The logging is done via `tflog`, that is part of the terraform-plugin-log +// library, included by this SDK. +// +// The request/response is logged via tflog.Debug, using the context.Context +// attached to the http.Request that the transport receives as input +// of http.RoundTripper RoundTrip method. +// +// It's responsibility of the developer using this transport, to ensure that each +// http.Request it handles is configured with the SDK-initialized Provider Root Logger +// context.Context, that it's passed to all resources/data-sources/provider entry-points +// (i.e. schema.Resource fields like `CreateContext`, `ReadContext`, etc.). +// +// This also gives the developer the flexibility to further configure the +// logging behaviour via the above-mentioned context: please see +// https://www.terraform.io/plugin/log/writing. +func NewLoggingHTTPTransport(t http.RoundTripper) *loggingHttpTransport { + return &loggingHttpTransport{"", t} +} + +// NewSubsystemLoggingHTTPTransport creates a wrapper around an *http.RoundTripper, +// designed to be used for the `Transport` field of http.Client. +// +// This logs each pair of HTTP request/response that it handles. +// The logging is done via `tflog`, that is part of the terraform-plugin-log +// library, included by this SDK. +// +// The request/response is logged via tflog.SubsystemDebug, using the context.Context +// attached to the http.Request that the transport receives as input +// of http.RoundTripper RoundTrip method, as well as the `subsystem` string +// provided at construction time. +// +// It's responsibility of the developer using this transport, to ensure that each +// http.Request it handles is configured with a Subsystem Logger +// context.Context that was initialized via tflog.NewSubsystem. +// +// This also gives the developer the flexibility to further configure the +// logging behaviour via the above-mentioned context: please see +// https://www.terraform.io/plugin/log/writing. +// +// Please note: setting `subsystem` to an empty string it's equivalent to +// using NewLoggingHTTPTransport. +func NewSubsystemLoggingHTTPTransport(subsystem string, t http.RoundTripper) *loggingHttpTransport { + return &loggingHttpTransport{subsystem, t} +} + +const ( + // FieldHttpOperationType is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging the type of HTTP operation via tflog. + FieldHttpOperationType = "tf_http_op_type" + + // OperationHttpRequest is the field value used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP request via tflog. + OperationHttpRequest = "request" + + // OperationHttpResponse is the field value used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP response via tflog. + OperationHttpResponse = "response" + + // FieldHttpRequestMethod is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP request method via tflog. + FieldHttpRequestMethod = "tf_http_req_method" + + // FieldHttpRequestUri is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP request URI via tflog. + FieldHttpRequestUri = "tf_http_req_uri" + + // FieldHttpRequestProtoVersion is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP request HTTP version via tflog. + FieldHttpRequestProtoVersion = "tf_http_req_version" + + // FieldHttpRequestBody is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP request body via tflog. + FieldHttpRequestBody = "tf_http_req_body" + + // FieldHttpResponseProtoVersion is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP response protocol version via tflog. + FieldHttpResponseProtoVersion = "tf_http_res_version" + + // FieldHttpResponseStatusCode is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP response status code via tflog. + FieldHttpResponseStatusCode = "tf_http_res_status_code" + + // FieldHttpResponseStatusReason is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP response status reason phrase via tflog. + FieldHttpResponseStatusReason = "tf_http_res_status_reason" + + // FieldHttpResponseBody is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP response body via tflog. + FieldHttpResponseBody = "tf_http_res_body" + + // FieldHttpTransactionId is the field key used by NewLoggingHTTPTransport + // and NewSubsystemLoggingHTTPTransport when logging an HTTP transaction via tflog. + FieldHttpTransactionId = "tf_http_trans_id" +) + +type loggingHttpTransport struct { + subsystem string + transport http.RoundTripper +} + +func (t *loggingHttpTransport) RoundTrip(req *http.Request) (*http.Response, error) { + ctx := req.Context() + ctx = t.AddTransactionIdField(ctx) + + // Decompose the request bytes in a message (HTTP body) and fields (HTTP headers), then log it + fields, err := decomposeRequestForLogging(req) + if err != nil { + t.Error(ctx, "Failed to parse request bytes for logging", map[string]interface{}{ + "error": err, + }) + } else { + t.Debug(ctx, "Sending HTTP Request", fields) + } + + // Invoke the wrapped RoundTrip now + res, err := t.transport.RoundTrip(req) + if err != nil { + return res, err + } + + // Decompose the response bytes in a message (HTTP body) and fields (HTTP headers), then log it + fields, err = decomposeResponseForLogging(res) + if err != nil { + t.Error(ctx, "Failed to parse response bytes for logging", map[string]interface{}{ + "error": err, + }) + } else { + t.Debug(ctx, "Received HTTP Response", fields) + } + + return res, nil +} + +func (t *loggingHttpTransport) Debug(ctx context.Context, msg string, fields ...map[string]interface{}) { + if t.subsystem != "" { + tflog.SubsystemDebug(ctx, t.subsystem, msg, fields...) + } else { + tflog.Debug(ctx, msg, fields...) + } +} + +func (t *loggingHttpTransport) Error(ctx context.Context, msg string, fields ...map[string]interface{}) { + if t.subsystem != "" { + tflog.SubsystemError(ctx, t.subsystem, msg, fields...) + } else { + tflog.Error(ctx, msg, fields...) + } +} + +func (t *loggingHttpTransport) AddTransactionIdField(ctx context.Context) context.Context { + tId, err := uuid.GenerateUUID() + + if err != nil { + tId = "Unable to assign Transaction ID: " + err.Error() + } + + if t.subsystem != "" { + return tflog.SubsystemSetField(ctx, t.subsystem, FieldHttpTransactionId, tId) + } else { + return tflog.SetField(ctx, FieldHttpTransactionId, tId) + + } +} + +func decomposeRequestForLogging(req *http.Request) (map[string]interface{}, error) { + fields := make(map[string]interface{}, len(req.Header)+4) + fields[FieldHttpOperationType] = OperationHttpRequest + + fields[FieldHttpRequestMethod] = req.Method + fields[FieldHttpRequestUri] = req.URL.RequestURI() + fields[FieldHttpRequestProtoVersion] = req.Proto + + // Get the full body of the request, including headers appended by http.Transport: + // this is necessary because the http.Request at this stage doesn't contain + // all the headers that will be eventually sent. + // We rely on `httputil.DumpRequestOut` to obtain the actual bytes that will be sent out. + reqBytes, err := httputil.DumpRequestOut(req, true) + if err != nil { + return nil, err + } + + // Create a reader around the request full body + reqReader := textproto.NewReader(bufio.NewReader(bytes.NewReader(reqBytes))) + + err = fieldHeadersFromRequestReader(reqReader, fields) + if err != nil { + return nil, err + } + + // Read the rest of the body content + fields[FieldHttpRequestBody] = bodyFromRestOfRequestReader(reqReader) + return fields, nil +} + +func fieldHeadersFromRequestReader(reader *textproto.Reader, fields map[string]interface{}) error { + // Ignore the first line: it contains non-header content + // that we have already captured. + // Skipping this step, would cause the following call to `ReadMIMEHeader()` + // to fail as it cannot parse the first line. + _, err := reader.ReadLine() + if err != nil { + return err + } + + // Read the MIME-style headers + mimeHeader, err := reader.ReadMIMEHeader() + if err != nil { + return err + } + + // Set the headers as fields to log + for k, v := range mimeHeader { + if len(v) == 1 { + fields[k] = v[0] + } else { + fields[k] = v + } + } + + return nil +} + +func bodyFromRestOfRequestReader(reader *textproto.Reader) string { + var builder strings.Builder + for { + line, err := reader.ReadContinuedLine() + if errors.Is(err, io.EOF) { + break + } + builder.WriteString(line) + } + + return builder.String() +} + +func decomposeResponseForLogging(res *http.Response) (map[string]interface{}, error) { + fields := make(map[string]interface{}, len(res.Header)+4) + fields[FieldHttpOperationType] = OperationHttpResponse + + fields[FieldHttpResponseProtoVersion] = res.Proto + fields[FieldHttpResponseStatusCode] = res.StatusCode + fields[FieldHttpResponseStatusReason] = res.Status + + // Set the headers as fields to log + for k, v := range res.Header { + if len(v) == 1 { + fields[k] = v[0] + } else { + fields[k] = v + } + } + + // Read the whole response body + resBody, err := io.ReadAll(res.Body) + if err != nil { + return nil, err + } + + // Wrap the bytes from the response body, back into an io.ReadCloser, + // to respect the interface of http.Response, as expected by users of the + // http.Client + res.Body = io.NopCloser(bytes.NewBuffer(resBody)) + + fields[FieldHttpResponseBody] = string(resBody) + + return fields, nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/transport.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/transport.go index 6419605e7..bda3813d9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/transport.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/transport.go @@ -41,6 +41,15 @@ func (t *transport) RoundTrip(req *http.Request) (*http.Response, error) { return resp, nil } +// NewTransport creates a wrapper around a *http.RoundTripper, +// designed to be used for the `Transport` field of http.Client. +// +// This logs each pair of HTTP request/response that it handles. +// The logging is done via Go standard library `log` package. +// +// Deprecated: This will log the content of every http request/response +// at `[DEBUG]` level, without any filtering. Any sensitive information +// will appear as-is in your logs. Please use NewSubsystemLoggingHTTPTransport instead. func NewTransport(name string, t http.RoundTripper) *transport { return &transport{name, t} } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go index 5b40bec89..28a7600b0 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go @@ -33,16 +33,16 @@ var ReservedResourceFields = []string{ // Resource is an abstraction for multiple Terraform concepts: // -// - Managed Resource: An infrastructure component with a schema, lifecycle -// operations such as create, read, update, and delete -// (CRUD), and optional implementation details such as -// import support, upgrade state support, and difference -// customization. -// - Data Resource: Also known as a data source. An infrastructure component -// with a schema and only the read lifecycle operation. -// - Block: When implemented within a Schema type Elem field, a configuration -// block that contains nested schema information such as attributes -// and blocks. +// - Managed Resource: An infrastructure component with a schema, lifecycle +// operations such as create, read, update, and delete +// (CRUD), and optional implementation details such as +// import support, upgrade state support, and difference +// customization. +// - Data Resource: Also known as a data source. An infrastructure component +// with a schema and only the read lifecycle operation. +// - Block: When implemented within a Schema type Elem field, a configuration +// block that contains nested schema information such as attributes +// and blocks. // // To fully implement managed resources, the Provider type ResourcesMap field // should include a reference to an implementation of this type. To fully @@ -666,13 +666,13 @@ type StateUpgrader struct { // or block names mapped to values that can be type asserted similar to // fetching values using the ResourceData Get* methods: // -// - TypeBool: bool -// - TypeFloat: float -// - TypeInt: int -// - TypeList: []interface{} -// - TypeMap: map[string]interface{} -// - TypeSet: *Set -// - TypeString: string +// - TypeBool: bool +// - TypeFloat: float +// - TypeInt: int +// - TypeList: []interface{} +// - TypeMap: map[string]interface{} +// - TypeSet: *Set +// - TypeString: string // // In certain scenarios, the map may be nil, so checking for that condition // upfront is recommended to prevent potential panics. diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go index 2594677f5..93f6fc243 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go @@ -160,7 +160,6 @@ func unsupportedTimeoutKeyError(key string) error { // // StateEncode encodes the timeout into the ResourceData's InstanceState for // saving to state -// func (t *ResourceTimeout) DiffEncode(id *terraform.InstanceDiff) error { return t.metaEncode(id) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go index 7cbd58589..fc955ce16 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go @@ -311,11 +311,33 @@ type Schema struct { // "parent_block_name.0.child_attribute_name". RequiredWith []string - // Deprecated indicates the message to include in a warning diagnostic to - // practitioners when this attribute is configured. Typically this is used - // to signal that this attribute will be removed in the future and provide - // next steps to the practitioner, such as using a different attribute, - // different resource, or if it should just be removed. + // Deprecated defines warning diagnostic details to display when + // practitioner configurations use this attribute or block. The warning + // diagnostic summary is automatically set to "Argument is deprecated" + // along with configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a known value for this + // attribute and certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the attribute is Required or Optional, and if the + // practitioner configuration attempts to set the attribute value to a + // known value. It cannot detect practitioner configuration values that + // are unknown ("known after apply"). + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 Deprecated string // ValidateFunc allows individual fields to define arbitrary validation @@ -700,6 +722,9 @@ func (m schemaMap) Diff( // Preserve the DestroyTainted flag result2.DestroyTainted = result.DestroyTainted + result2.RawConfig = result.RawConfig + result2.RawPlan = result.RawPlan + result2.RawState = result.RawState // Reset the data to not contain state. We have to call init() // again in order to reset the FieldReaders. diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/context.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/context.go index 5bce8140f..6036b0d04 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/context.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/context.go @@ -48,28 +48,28 @@ func InitTestContext(ctx context.Context, t testing.T) context.Context { // TestNameContext adds the current test name to loggers. func TestNameContext(ctx context.Context, testName string) context.Context { - ctx = tfsdklog.SubsystemWith(ctx, SubsystemHelperResource, KeyTestName, testName) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemHelperResource, KeyTestName, testName) return ctx } // TestStepNumberContext adds the current test step number to loggers. func TestStepNumberContext(ctx context.Context, stepNumber int) context.Context { - ctx = tfsdklog.SubsystemWith(ctx, SubsystemHelperResource, KeyTestStepNumber, stepNumber) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemHelperResource, KeyTestStepNumber, stepNumber) return ctx } // TestTerraformPathContext adds the current test Terraform CLI path to loggers. func TestTerraformPathContext(ctx context.Context, terraformPath string) context.Context { - ctx = tfsdklog.SubsystemWith(ctx, SubsystemHelperResource, KeyTestTerraformPath, terraformPath) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemHelperResource, KeyTestTerraformPath, terraformPath) return ctx } // TestWorkingDirectoryContext adds the current test working directory to loggers. func TestWorkingDirectoryContext(ctx context.Context, workingDirectory string) context.Context { - ctx = tfsdklog.SubsystemWith(ctx, SubsystemHelperResource, KeyTestWorkingDirectory, workingDirectory) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemHelperResource, KeyTestWorkingDirectory, workingDirectory) return ctx } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go index 2ba548f61..03931b024 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go @@ -31,6 +31,15 @@ const ( // The TestStep number of the test being executed. Starts at 1. KeyTestStepNumber = "test_step_number" + // The Terraform CLI logging level (TF_LOG) used for an acceptance test. + KeyTestTerraformLogLevel = "test_terraform_log_level" + + // The Terraform CLI logging level (TF_LOG_CORE) used for an acceptance test. + KeyTestTerraformLogCoreLevel = "test_terraform_log_core_level" + + // The Terraform CLI logging level (TF_LOG_PROVIDER) used for an acceptance test. + KeyTestTerraformLogProviderLevel = "test_terraform_log_provider_level" + // The path to the Terraform CLI logging file used for an acceptance test. // // This should match where the rest of the acceptance test logs are going diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostics.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostics.go index 925c14fa7..5d313e79d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostics.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostics.go @@ -52,7 +52,7 @@ func (diags Diagnostics) ForRPC() Diagnostics { // that aren't accompanied by at least one error) since such APIs have no // mechanism through which to report these. // -// return result, diags.Error() +// return result, diags.Error() func (diags Diagnostics) Err() error { if !diags.HasErrors() { return nil diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go index 170e20cd0..1a4d3d6d1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go @@ -14,8 +14,8 @@ import ( "sync" "github.com/hashicorp/go-cty/cty" - multierror "github.com/hashicorp/go-multierror" - uuid "github.com/hashicorp/go-uuid" + "github.com/hashicorp/go-multierror" + "github.com/hashicorp/go-uuid" "github.com/mitchellh/copystructure" "github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs" @@ -1145,7 +1145,6 @@ func parseResourceStateKey(k string) (*ResourceStateKey, error) { // // Extra is just extra data that a provider can return that we store // for later, but is not exposed in any way to the user. -// type ResourceState struct { // This is filled in and managed by Terraform, and is the resource // type itself such as "mycloud_instance". If a resource provider sets @@ -1226,26 +1225,6 @@ func (s *ResourceState) Equal(other *ResourceState) bool { return s.Primary.Equal(other.Primary) } -// Taint marks a resource as tainted. -func (s *ResourceState) Taint() { - s.Lock() - defer s.Unlock() - - if s.Primary != nil { - s.Primary.Tainted = true - } -} - -// Untaint unmarks a resource as tainted. -func (s *ResourceState) Untaint() { - s.Lock() - defer s.Unlock() - - if s.Primary != nil { - s.Primary.Tainted = false - } -} - func (s *ResourceState) init() { s.Lock() defer s.Unlock() diff --git a/vendor/github.com/hashicorp/terraform-registry-address/README.md b/vendor/github.com/hashicorp/terraform-registry-address/README.md index 091ff7014..27db81f7c 100644 --- a/vendor/github.com/hashicorp/terraform-registry-address/README.md +++ b/vendor/github.com/hashicorp/terraform-registry-address/README.md @@ -1,48 +1,149 @@ # terraform-registry-address -This package helps with representation, comparison and parsing of -Terraform Registry addresses, such as -`registry.terraform.io/grafana/grafana` or `hashicorp/aws`. +This module enables parsing, comparison and canonical representation of +[Terraform Registry](https://registry.terraform.io/) **provider** addresses +(such as `registry.terraform.io/grafana/grafana` or `hashicorp/aws`) +and **module** addresses (such as `hashicorp/subnets/cidr`). -The most common source of these addresses outside of Terraform Core -is JSON representation of state, plan, or schemas as obtained -via [`hashicorp/terraform-exec`](https://github.com/hashicorp/terraform-exec). +**Provider** addresses can be found in -## Parsing Provider Addresses + - [`terraform show -json `](https://www.terraform.io/internals/json-format#configuration-representation) (`full_name`) + - [`terraform version -json`](https://www.terraform.io/cli/commands/version#example) (`provider_selections`) + - [`terraform providers schema -json`](https://www.terraform.io/cli/commands/providers/schema#providers-schema-representation) (keys of `provider_schemas`) + - within `required_providers` block in Terraform configuration (`*.tf`) + - Terraform [CLI configuration file](https://www.terraform.io/cli/config/config-file#provider-installation) + - Plugin [reattach configurations](https://www.terraform.io/plugin/debugging#running-terraform-with-a-provider-in-debug-mode) -### Example +**Module** addresses can be found within `source` argument +of `module` block in Terraform configuration (`*.tf`) +and parts of the address (namespace and name) in the Registry API. + +## Compatibility + +The module assumes compatibility with Terraform v0.12 and later, +which have the mentioned JSON output produced by corresponding CLI flags. + +We recommend carefully reading the [ambigouous provider addresses](#Ambiguous-Provider-Addresses) +section below which may impact versions `0.12` and `0.13`. + +## Related Libraries + +Other libraries which may help with consuming most of the above Terraform +outputs in automation: + + - [`hashicorp/terraform-exec`](https://github.com/hashicorp/terraform-exec) + - [`hashicorp/terraform-json`](https://github.com/hashicorp/terraform-json) + +## Usage + +### Provider ```go -p, err := ParseRawProviderSourceString("hashicorp/aws") +pAddr, err := ParseProviderSource("hashicorp/aws") if err != nil { // deal with error } -// p == Provider{ +// pAddr == Provider{ // Type: "aws", // Namespace: "hashicorp", -// Hostname: svchost.Hostname("registry.terraform.io"), +// Hostname: DefaultProviderRegistryHost, // } ``` -### Legacy address +### Module + +```go +mAddr, err := ParseModuleSource("hashicorp/consul/aws//modules/consul-cluster") +if err != nil { + // deal with error +} + +// mAddr == Module{ +// Package: ModulePackage{ +// Host: DefaultProviderRegistryHost, +// Namespace: "hashicorp", +// Name: "consul", +// TargetSystem: "aws", +// }, +// Subdir: "modules/consul-cluster", +// }, +``` + +## Other Module Address Formats + +Modules can also be sourced from [other sources](https://www.terraform.io/language/modules/sources) +and these other sources (outside of Terraform Registry) +have different address formats, such as `./local` or +`github.com/hashicorp/example`. + +This library does _not_ recognize such other address formats +and it will return error upon parsing these. + +## Ambiguous Provider Addresses + +Qualified addresses with namespace (such as `hashicorp/aws`) +are used exclusively in all recent versions (`0.14+`) of Terraform. +If you only work with Terraform `v0.14.0+` configuration/output, you may +safely ignore the rest of this section and related part of the API. + +There are a few types of ambiguous addresses you may comes accross: + + - Terraform `v0.12` uses "namespace-less address", such as `aws`. + - Terraform `v0.13` may use `-` as a placeholder for the unknown namespace, + resulting in address such as `-/aws`. + - Terraform `v0.14+` _configuration_ still allows ambiguous providers + through `provider "" {}` block _without_ corresponding + entry inside `required_providers`, but these providers are always + resolved as `hashicorp/` and all JSON outputs only use that + resolved address. + +Both ambiguous address formats are accepted by `ParseProviderSource()` + +```go +pAddr, err := ParseProviderSource("aws") +if err != nil { + // deal with error +} + +// pAddr == Provider{ +// Type: "aws", +// Namespace: UnknownProviderNamespace, // "?" +// Hostname: DefaultProviderRegistryHost, // "registry.terraform.io" +// } +pAddr.HasKnownNamespace() // == false +pAddr.IsLegacy() // == false +``` +```go +pAddr, err := ParseProviderSource("-/aws") +if err != nil { + // deal with error +} -A legacy address is by itself (without more context) ambiguous. -For example `aws` may represent either the official `hashicorp/aws` -or just any custom-built provider called `aws`. +// pAddr == Provider{ +// Type: "aws", +// Namespace: LegacyProviderNamespace, // "-" +// Hostname: DefaultProviderRegistryHost, // "registry.terraform.io" +// } +pAddr.HasKnownNamespace() // == true +pAddr.IsLegacy() // == true +``` -Such ambiguous address can be produced by Terraform `<=0.12`. You can -just use `ImpliedProviderForUnqualifiedType` if you know for sure -the address was produced by an affected version. +However `NewProvider()` will panic if you pass an empty namespace +or any placeholder indicating unknown namespace. -If you do not have that context you should parse the string via -`ParseRawProviderSourceString` and then check `addr.IsLegacy()`. +```go +NewProvider(DefaultProviderRegistryHost, "", "aws") // panic +NewProvider(DefaultProviderRegistryHost, "-", "aws") // panic +NewProvider(DefaultProviderRegistryHost, "?", "aws") // panic +``` -#### What to do with a legacy address? +If you come across an ambiguous address, you should resolve +it to a fully qualified one and use that one instead. -Ask the Registry API whether and where the provider was moved to +### Resolving Ambiguous Address -(`-` represents the legacy, basically unknown namespace) +The Registry API provides the safest way of resolving an ambiguous address. ```sh # grafana (redirected to its own namespace) @@ -56,28 +157,15 @@ $ curl -s https://registry.terraform.io/v1/providers/-/aws/versions | jq '(.id, null ``` -Then: - - - Reparse the _new_ address (`moved_to`) of any _moved_ provider (e.g. `grafana/grafana`) via `ParseRawProviderSourceString` - - Reparse the full address (`id`) of any other provider (e.g. `hashicorp/aws`) - -Depending on context (legacy) `terraform` may need to be parsed separately. -Read more about this provider below. - -If for some reason you cannot ask the Registry API you may also use -`ParseAndInferProviderSourceString` which assumes that any legacy address -(including `terraform`) belongs to the `hashicorp` namespace. - -If you cache results (which you should), ensure you have invalidation -mechanism in place because target (migrated) namespace may change. -Hard-coding migrations anywhere in code is strongly discouraged. +When you cache results, ensure you have invalidation +mechanism in place as target (migrated) namespace may change. #### `terraform` provider Like any other legacy address `terraform` is also ambiguous. Such address may (most unlikely) represent a custom-built provider called `terraform`, or the now archived [`hashicorp/terraform` provider in the registry](https://registry.terraform.io/providers/hashicorp/terraform/latest), -or (most likely) the `terraform` provider built into 0.12+, which is +or (most likely) the `terraform` provider built into 0.11+, which is represented via a dedicated FQN of `terraform.io/builtin/terraform` in 0.13+. You may be able to differentiate between these different providers if you @@ -87,25 +175,7 @@ Alternatively you may just treat the address as the builtin provider, i.e. assume all of its logic including schema is contained within Terraform Core. -In such case you should just use `NewBuiltInProvider("terraform")`. - -## Parsing Module Addresses - -### Example - +In such case you should construct the address in the following way ```go -registry, err := ParseRawModuleSourceRegistry("hashicorp/subnets/cidr") -if err != nil { - // deal with error -} - -// registry == ModuleSourceRegistry{ -// PackageAddr: ModuleRegistryPackage{ -// Host: svchost.Hostname("registry.terraform.io"), -// Namespace: "hashicorp", -// Name: "subnets", -// TargetSystem: "cidr", -// }, -// Subdir: "", -// }, +pAddr := NewProvider(BuiltInProviderHost, BuiltInProviderNamespace, "terraform") ``` diff --git a/vendor/github.com/hashicorp/terraform-registry-address/module.go b/vendor/github.com/hashicorp/terraform-registry-address/module.go index f90279ec2..6af0c5976 100644 --- a/vendor/github.com/hashicorp/terraform-registry-address/module.go +++ b/vendor/github.com/hashicorp/terraform-registry-address/module.go @@ -9,14 +9,14 @@ import ( svchost "github.com/hashicorp/terraform-svchost" ) -// ModuleSourceRegistry is representing a module listed in a Terraform module +// Module is representing a module listed in a Terraform module // registry. -type ModuleSourceRegistry struct { - // PackageAddr is the registry package that the target module belongs to. +type Module struct { + // Package is the registry package that the target module belongs to. // The module installer must translate this into a ModuleSourceRemote // using the registry API and then take that underlying address's - // PackageAddr in order to find the actual package location. - PackageAddr ModuleRegistryPackage + // Package in order to find the actual package location. + Package ModulePackage // If Subdir is non-empty then it represents a sub-directory within the // remote package that the registry address eventually resolves to. @@ -36,22 +36,22 @@ const DefaultModuleRegistryHost = svchost.Hostname("registry.terraform.io") var moduleRegistryNamePattern = regexp.MustCompile("^[0-9A-Za-z](?:[0-9A-Za-z-_]{0,62}[0-9A-Za-z])?$") var moduleRegistryTargetSystemPattern = regexp.MustCompile("^[0-9a-z]{1,64}$") -// ParseRawModuleSourceRegistry only accepts module registry addresses, and +// ParseModuleSource only accepts module registry addresses, and // will reject any other address type. -func ParseRawModuleSourceRegistry(raw string) (ModuleSourceRegistry, error) { +func ParseModuleSource(raw string) (Module, error) { var err error var subDir string raw, subDir = splitPackageSubdir(raw) if strings.HasPrefix(subDir, "../") { - return ModuleSourceRegistry{}, fmt.Errorf("subdirectory path %q leads outside of the module package", subDir) + return Module{}, fmt.Errorf("subdirectory path %q leads outside of the module package", subDir) } parts := strings.Split(raw, "/") // A valid registry address has either three or four parts, because the // leading hostname part is optional. if len(parts) != 3 && len(parts) != 4 { - return ModuleSourceRegistry{}, fmt.Errorf("a module registry source address must have either three or four slash-separated components") + return Module{}, fmt.Errorf("a module registry source address must have either three or four slash-separated components") } host := DefaultModuleRegistryHost @@ -64,20 +64,20 @@ func ParseRawModuleSourceRegistry(raw string) (ModuleSourceRegistry, error) { case strings.Contains(parts[0], "--"): // Looks like possibly punycode, which we don't allow here // to ensure that source addresses are written readably. - return ModuleSourceRegistry{}, fmt.Errorf("invalid module registry hostname %q; internationalized domain names must be given as direct unicode characters, not in punycode", parts[0]) + return Module{}, fmt.Errorf("invalid module registry hostname %q; internationalized domain names must be given as direct unicode characters, not in punycode", parts[0]) default: - return ModuleSourceRegistry{}, fmt.Errorf("invalid module registry hostname %q", parts[0]) + return Module{}, fmt.Errorf("invalid module registry hostname %q", parts[0]) } } if !strings.Contains(host.String(), ".") { - return ModuleSourceRegistry{}, fmt.Errorf("invalid module registry hostname: must contain at least one dot") + return Module{}, fmt.Errorf("invalid module registry hostname: must contain at least one dot") } // Discard the hostname prefix now that we've processed it parts = parts[1:] } - ret := ModuleSourceRegistry{ - PackageAddr: ModuleRegistryPackage{ + ret := Module{ + Package: ModulePackage{ Host: host, }, @@ -88,7 +88,7 @@ func ParseRawModuleSourceRegistry(raw string) (ModuleSourceRegistry, error) { return ret, fmt.Errorf("can't use %q as a module registry host, because it's reserved for installing directly from version control repositories", host) } - if ret.PackageAddr.Namespace, err = parseModuleRegistryName(parts[0]); err != nil { + if ret.Package.Namespace, err = parseModuleRegistryName(parts[0]); err != nil { if strings.Contains(parts[0], ".") { // Seems like the user omitted one of the latter components in // an address with an explicit hostname. @@ -96,10 +96,10 @@ func ParseRawModuleSourceRegistry(raw string) (ModuleSourceRegistry, error) { } return ret, fmt.Errorf("invalid namespace %q: %s", parts[0], err) } - if ret.PackageAddr.Name, err = parseModuleRegistryName(parts[1]); err != nil { + if ret.Package.Name, err = parseModuleRegistryName(parts[1]); err != nil { return ret, fmt.Errorf("invalid module name %q: %s", parts[1], err) } - if ret.PackageAddr.TargetSystem, err = parseModuleRegistryTargetSystem(parts[2]); err != nil { + if ret.Package.TargetSystem, err = parseModuleRegistryTargetSystem(parts[2]); err != nil { if strings.Contains(parts[2], "?") { // The user was trying to include a query string, probably? return ret, fmt.Errorf("module registry addresses may not include a query string portion") @@ -110,6 +110,16 @@ func ParseRawModuleSourceRegistry(raw string) (ModuleSourceRegistry, error) { return ret, nil } +// MustParseModuleSource is a wrapper around ParseModuleSource that panics if +// it returns an error. +func MustParseModuleSource(raw string) (Module) { + mod, err := ParseModuleSource(raw) + if err != nil { + panic(err) + } + return mod +} + // parseModuleRegistryName validates and normalizes a string in either the // "namespace" or "name" position of a module registry source address. func parseModuleRegistryName(given string) (string, error) { @@ -163,11 +173,11 @@ func parseModuleRegistryTargetSystem(given string) (string, error) { // We typically use this longer representation in error message, in case // the inclusion of normally-omitted components is helpful in debugging // unexpected behavior. -func (s ModuleSourceRegistry) String() string { +func (s Module) String() string { if s.Subdir != "" { - return s.PackageAddr.String() + "//" + s.Subdir + return s.Package.String() + "//" + s.Subdir } - return s.PackageAddr.String() + return s.Package.String() } // ForDisplay is similar to String but instead returns a representation of @@ -177,11 +187,11 @@ func (s ModuleSourceRegistry) String() string { // // We typically use this shorter representation in informational messages, // such as the note that we're about to start downloading a package. -func (s ModuleSourceRegistry) ForDisplay() string { +func (s Module) ForDisplay() string { if s.Subdir != "" { - return s.PackageAddr.ForDisplay() + "//" + s.Subdir + return s.Package.ForDisplay() + "//" + s.Subdir } - return s.PackageAddr.ForDisplay() + return s.Package.ForDisplay() } // splitPackageSubdir detects whether the given address string has a diff --git a/vendor/github.com/hashicorp/terraform-registry-address/module_package.go b/vendor/github.com/hashicorp/terraform-registry-address/module_package.go index cba03a7fd..d8ad2534a 100644 --- a/vendor/github.com/hashicorp/terraform-registry-address/module_package.go +++ b/vendor/github.com/hashicorp/terraform-registry-address/module_package.go @@ -6,53 +6,24 @@ import ( svchost "github.com/hashicorp/terraform-svchost" ) -// A ModulePackage represents a physical location where Terraform can retrieve -// a module package, which is an archive, repository, or other similar -// container which delivers the source code for one or more Terraform modules. -// -// A ModulePackage is a string in go-getter's address syntax. By convention, -// we use ModulePackage-typed values only for the result of successfully -// running the go-getter "detectors", which produces an address string which -// includes an explicit installation method prefix along with an address -// string in the format expected by that installation method. -// -// Note that although the "detector" phase of go-getter does do some simple -// normalization in certain cases, it isn't generally possible to compare -// two ModulePackage values to decide if they refer to the same package. Two -// equal ModulePackage values represent the same package, but there might be -// other non-equal ModulePackage values that also refer to that package, and -// there is no reliable way to determine that. -// -// Don't convert a user-provided string directly to ModulePackage. Instead, -// use ParseModuleSource with a remote module address and then access the -// ModulePackage value from the result, making sure to also handle the -// selected subdirectory if any. You should convert directly to ModulePackage -// only for a string that is hard-coded into the program (e.g. in a unit test) -// where you've ensured that it's already in the expected syntax. -type ModulePackage string - -func (p ModulePackage) String() string { - return string(p) -} - -// A ModuleRegistryPackage is an extra indirection over a ModulePackage where +// A ModulePackage is an extra indirection over a ModulePackage where // we use a module registry to translate a more symbolic address (and // associated version constraint given out of band) into a physical source // location. // -// ModuleRegistryPackage is distinct from ModulePackage because they have +// ModulePackage is distinct from ModulePackage because they have // disjoint use-cases: registry package addresses are only used to query a // registry in order to find a real module package address. These being // distinct is intended to help future maintainers more easily follow the // series of steps in the module installer, with the help of the type checker. -type ModuleRegistryPackage struct { +type ModulePackage struct { Host svchost.Hostname Namespace string Name string TargetSystem string } -func (s ModuleRegistryPackage) String() string { +func (s ModulePackage) String() string { // Note: we're using the "display" form of the hostname here because // for our service hostnames "for display" means something different: // it means to render non-ASCII characters directly as Unicode @@ -62,7 +33,7 @@ func (s ModuleRegistryPackage) String() string { return s.Host.ForDisplay() + "/" + s.ForRegistryProtocol() } -func (s ModuleRegistryPackage) ForDisplay() string { +func (s ModulePackage) ForDisplay() string { if s.Host == DefaultModuleRegistryHost { return s.ForRegistryProtocol() } @@ -76,7 +47,7 @@ func (s ModuleRegistryPackage) ForDisplay() string { // This is primarily intended for generating addresses to send to the // registry in question via the registry protocol, since the protocol // skips sending the registry its own hostname as part of identifiers. -func (s ModuleRegistryPackage) ForRegistryProtocol() string { +func (s ModulePackage) ForRegistryProtocol() string { var buf strings.Builder buf.WriteString(s.Namespace) buf.WriteByte('/') diff --git a/vendor/github.com/hashicorp/terraform-registry-address/provider.go b/vendor/github.com/hashicorp/terraform-registry-address/provider.go index 4dd0a5b78..23e1e221f 100644 --- a/vendor/github.com/hashicorp/terraform-registry-address/provider.go +++ b/vendor/github.com/hashicorp/terraform-registry-address/provider.go @@ -16,9 +16,9 @@ type Provider struct { Hostname svchost.Hostname } -// DefaultRegistryHost is the hostname used for provider addresses that do +// DefaultProviderRegistryHost is the hostname used for provider addresses that do // not have an explicit hostname. -const DefaultRegistryHost = svchost.Hostname("registry.terraform.io") +const DefaultProviderRegistryHost = svchost.Hostname("registry.terraform.io") // BuiltInProviderHost is the pseudo-hostname used for the "built-in" provider // namespace. Built-in provider addresses must also have their namespace set @@ -34,11 +34,18 @@ const BuiltInProviderHost = svchost.Hostname("terraform.io") // special, even if they haven't encountered the concept formally yet. const BuiltInProviderNamespace = "builtin" +// UnknownProviderNamespace is the special string used to indicate +// unknown namespace, e.g. in "aws". This is equivalent to +// LegacyProviderNamespace for <0.12 style address. This namespace +// would never be produced by Terraform itself explicitly, it is +// only an internal placeholder. +const UnknownProviderNamespace = "?" + // LegacyProviderNamespace is the special string used in the Namespace field // of type Provider to mark a legacy provider address. This special namespace // value would normally be invalid, and can be used only when the hostname is -// DefaultRegistryHost because that host owns the mapping from legacy name to -// FQN. +// DefaultProviderRegistryHost because that host owns the mapping from legacy name to +// FQN. This may be produced by Terraform 0.13. const LegacyProviderNamespace = "-" // String returns an FQN string, indended for use in machine-readable output. @@ -56,7 +63,7 @@ func (pt Provider) ForDisplay() string { panic("called ForDisplay on zero-value addrs.Provider") } - if pt.Hostname == DefaultRegistryHost { + if pt.Hostname == DefaultProviderRegistryHost { return pt.Namespace + "/" + pt.Type } return pt.Hostname.ForDisplay() + "/" + pt.Namespace + "/" + pt.Type @@ -75,10 +82,18 @@ func (pt Provider) ForDisplay() string { // ParseProviderPart first to check that the given value is valid. func NewProvider(hostname svchost.Hostname, namespace, typeName string) Provider { if namespace == LegacyProviderNamespace { - // Legacy provider addresses must always be created via - // NewLegacyProvider so that we can use static analysis to find - // codepaths still working with those. - panic("attempt to create legacy provider address using NewProvider; use NewLegacyProvider instead") + // Legacy provider addresses must always be created via struct + panic("attempt to create legacy provider address using NewProvider; use Provider{} instead") + } + if namespace == UnknownProviderNamespace { + // Provider addresses with unknown namespace must always + // be created via struct + panic("attempt to create provider address with unknown namespace using NewProvider; use Provider{} instead") + } + if namespace == "" { + // This case is already handled by MustParseProviderPart() below, + // but we catch it early to provide more helpful message. + panic("attempt to create provider address with empty namespace") } return Provider{ @@ -88,63 +103,6 @@ func NewProvider(hostname svchost.Hostname, namespace, typeName string) Provider } } -// ImpliedProviderForUnqualifiedType represents the rules for inferring what -// provider FQN a user intended when only a naked type name is available. -// -// For all except the type name "terraform" this returns a so-called "default" -// provider, which is under the registry.terraform.io/hashicorp/ namespace. -// -// As a special case, the string "terraform" maps to -// "terraform.io/builtin/terraform" because that is the more likely user -// intent than the now-unmaintained "registry.terraform.io/hashicorp/terraform" -// which remains only for compatibility with older Terraform versions. -func ImpliedProviderForUnqualifiedType(typeName string) Provider { - switch typeName { - case "terraform": - // Note for future maintainers: any additional strings we add here - // as implied to be builtin must never also be use as provider names - // in the registry.terraform.io/hashicorp/... namespace, because - // otherwise older versions of Terraform could implicitly select - // the registry name instead of the internal one. - return NewBuiltInProvider(typeName) - default: - return NewDefaultProvider(typeName) - } -} - -// NewDefaultProvider returns the default address of a HashiCorp-maintained, -// Registry-hosted provider. -func NewDefaultProvider(name string) Provider { - return Provider{ - Type: MustParseProviderPart(name), - Namespace: "hashicorp", - Hostname: DefaultRegistryHost, - } -} - -// NewBuiltInProvider returns the address of a "built-in" provider. See -// the docs for Provider.IsBuiltIn for more information. -func NewBuiltInProvider(name string) Provider { - return Provider{ - Type: MustParseProviderPart(name), - Namespace: BuiltInProviderNamespace, - Hostname: BuiltInProviderHost, - } -} - -// NewLegacyProvider returns a mock address for a provider. -// This will be removed when ProviderType is fully integrated. -func NewLegacyProvider(name string) Provider { - return Provider{ - // We intentionally don't normalize and validate the legacy names, - // because existing code expects legacy provider names to pass through - // verbatim, even if not compliant with our new naming rules. - Type: name, - Namespace: LegacyProviderNamespace, - Hostname: DefaultRegistryHost, - } -} - // LegacyString returns the provider type, which is frequently used // interchangeably with provider name. This function can and should be removed // when provider type is fully integrated. As a safeguard for future @@ -167,6 +125,12 @@ func (pt Provider) IsZero() bool { return pt == Provider{} } +// HasKnownNamespace returns true if the provider namespace is known +// (also if it is legacy namespace) +func (pt Provider) HasKnownNamespace() bool { + return pt.Namespace != UnknownProviderNamespace +} + // IsBuiltIn returns true if the receiver is the address of a "built-in" // provider. That is, a provider under terraform.io/builtin/ which is // included as part of the Terraform binary itself rather than one to be @@ -201,25 +165,16 @@ func (pt Provider) IsLegacy() bool { panic("called IsLegacy() on zero-value addrs.Provider") } - return pt.Hostname == DefaultRegistryHost && pt.Namespace == LegacyProviderNamespace + return pt.Hostname == DefaultProviderRegistryHost && pt.Namespace == LegacyProviderNamespace } -// IsDefault returns true if the provider is a default hashicorp provider -func (pt Provider) IsDefault() bool { - if pt.IsZero() { - panic("called IsDefault() on zero-value addrs.Provider") - } - - return pt.Hostname == DefaultRegistryHost && pt.Namespace == "hashicorp" -} - // Equals returns true if the receiver and other provider have the same attributes. func (pt Provider) Equals(other Provider) bool { return pt == other } -// ParseRawProviderSourceString parses the source attribute and returns a provider. +// ParseProviderSource parses the source attribute and returns a provider. // This is intended primarily to parse the FQN-like strings returned by // terraform-config-inspect. // @@ -230,7 +185,7 @@ func (pt Provider) Equals(other Provider) bool { // // "name"-only format is parsed as -/name (i.e. legacy namespace) // requiring further identification of the namespace via Registry API -func ParseRawProviderSourceString(str string) (Provider, error) { +func ParseProviderSource(str string) (Provider, error) { var ret Provider parts, err := parseSourceStringParts(str) if err != nil { @@ -239,10 +194,14 @@ func ParseRawProviderSourceString(str string) (Provider, error) { name := parts[len(parts)-1] ret.Type = name - ret.Hostname = DefaultRegistryHost + ret.Hostname = DefaultProviderRegistryHost if len(parts) == 1 { - return NewLegacyProvider(name), nil + return Provider{ + Hostname: DefaultProviderRegistryHost, + Namespace: UnknownProviderNamespace, + Type: name, + }, nil } if len(parts) >= 2 { @@ -278,13 +237,13 @@ func ParseRawProviderSourceString(str string) (Provider, error) { ret.Hostname = hn } - if ret.Namespace == LegacyProviderNamespace && ret.Hostname != DefaultRegistryHost { + if ret.Namespace == LegacyProviderNamespace && ret.Hostname != DefaultProviderRegistryHost { // Legacy provider addresses must always be on the default registry // host, because the default registry host decides what actual FQN // each one maps to. return Provider{}, &ParserError{ Summary: "Invalid provider namespace", - Detail: "The legacy provider namespace \"-\" can be used only with hostname " + DefaultRegistryHost.ForDisplay() + ".", + Detail: "The legacy provider namespace \"-\" can be used only with hostname " + DefaultProviderRegistryHost.ForDisplay() + ".", } } @@ -332,28 +291,52 @@ func ParseRawProviderSourceString(str string) (Provider, error) { return ret, nil } -// ParseAndInferProviderSourceString parses the source attribute and returns a provider. -// This is intended primarily to parse the FQN-like strings returned by -// terraform-config-inspect. -// -// The following are valid source string formats: -// name -// namespace/name -// hostname/namespace/name -// -// "name" format is assumed to be hashicorp/name -func ParseAndInferProviderSourceString(str string) (Provider, error) { - var ret Provider - parts, err := parseSourceStringParts(str) +// MustParseProviderSource is a wrapper around ParseProviderSource that panics if +// it returns an error. +func MustParseProviderSource(raw string) (Provider) { + p, err := ParseProviderSource(raw) if err != nil { - return ret, err + panic(err) } + return p +} - if len(parts) == 1 { - return NewDefaultProvider(parts[0]), nil +// ValidateProviderAddress returns error if the given address is not FQN, +// that is if it is missing any of the three components from +// hostname/namespace/name. +func ValidateProviderAddress(raw string) error { + parts, err := parseSourceStringParts(raw) + if err != nil { + return err + } + + if len(parts) != 3 { + return &ParserError{ + Summary: "Invalid provider address format", + Detail: `Expected FQN in the format "hostname/namespace/name"`, + } + } + + p, err := ParseProviderSource(raw) + if err != nil { + return err + } + + if !p.HasKnownNamespace() { + return &ParserError{ + Summary: "Unknown provider namespace", + Detail: `Expected FQN in the format "hostname/namespace/name"`, + } + } + + if !p.IsLegacy() { + return &ParserError{ + Summary: "Invalid legacy provider namespace", + Detail: `Expected FQN in the format "hostname/namespace/name"`, + } } - return ParseRawProviderSourceString(str) + return nil } func parseSourceStringParts(str string) ([]string, error) { @@ -390,16 +373,6 @@ func parseSourceStringParts(str string) ([]string, error) { return parts, nil } -// MustParseRawProviderSourceString is a wrapper around ParseRawProviderSourceString that panics if -// it returns an error. -func MustParseRawProviderSourceString(str string) Provider { - result, err := ParseRawProviderSourceString(str) - if err != nil { - panic(err) - } - return result -} - // ParseProviderPart processes an addrs.Provider namespace or type string // provided by an end-user, producing a normalized version if possible or // an error if the string contains invalid characters. @@ -468,15 +441,3 @@ func MustParseProviderPart(given string) string { } return result } - -// IsProviderPartNormalized compares a given string to the result of ParseProviderPart(string) -func IsProviderPartNormalized(str string) (bool, error) { - normalized, err := ParseProviderPart(str) - if err != nil { - return false, err - } - if str == normalized { - return true, nil - } - return false, nil -} diff --git a/vendor/github.com/hashicorp/yamux/session.go b/vendor/github.com/hashicorp/yamux/session.go index 046a3d301..38fe3ed1f 100644 --- a/vendor/github.com/hashicorp/yamux/session.go +++ b/vendor/github.com/hashicorp/yamux/session.go @@ -2,6 +2,7 @@ package yamux import ( "bufio" + "bytes" "fmt" "io" "io/ioutil" @@ -63,23 +64,26 @@ type Session struct { // sendCh is used to mark a stream as ready to send, // or to send a header out directly. - sendCh chan sendReady + sendCh chan *sendReady // recvDoneCh is closed when recv() exits to avoid a race // between stream registration and stream shutdown recvDoneCh chan struct{} + sendDoneCh chan struct{} // shutdown is used to safely close a session - shutdown bool - shutdownErr error - shutdownCh chan struct{} - shutdownLock sync.Mutex + shutdown bool + shutdownErr error + shutdownCh chan struct{} + shutdownLock sync.Mutex + shutdownErrLock sync.Mutex } // sendReady is used to either mark a stream as ready // or to directly send a header type sendReady struct { Hdr []byte + mu sync.Mutex // Protects Body from unsafe reads. Body []byte Err chan error } @@ -101,8 +105,9 @@ func newSession(config *Config, conn io.ReadWriteCloser, client bool) *Session { inflight: make(map[uint32]struct{}), synCh: make(chan struct{}, config.AcceptBacklog), acceptCh: make(chan *Stream, config.AcceptBacklog), - sendCh: make(chan sendReady, 64), + sendCh: make(chan *sendReady, 64), recvDoneCh: make(chan struct{}), + sendDoneCh: make(chan struct{}), shutdownCh: make(chan struct{}), } if client { @@ -255,10 +260,15 @@ func (s *Session) Close() error { return nil } s.shutdown = true + + s.shutdownErrLock.Lock() if s.shutdownErr == nil { s.shutdownErr = ErrSessionShutdown } + s.shutdownErrLock.Unlock() + close(s.shutdownCh) + s.conn.Close() <-s.recvDoneCh @@ -267,17 +277,18 @@ func (s *Session) Close() error { for _, stream := range s.streams { stream.forceClose() } + <-s.sendDoneCh return nil } // exitErr is used to handle an error that is causing the // session to terminate. func (s *Session) exitErr(err error) { - s.shutdownLock.Lock() + s.shutdownErrLock.Lock() if s.shutdownErr == nil { s.shutdownErr = err } - s.shutdownLock.Unlock() + s.shutdownErrLock.Unlock() s.Close() } @@ -373,7 +384,7 @@ func (s *Session) waitForSendErr(hdr header, body []byte, errCh chan error) erro timerPool.Put(t) }() - ready := sendReady{Hdr: hdr, Body: body, Err: errCh} + ready := &sendReady{Hdr: hdr, Body: body, Err: errCh} select { case s.sendCh <- ready: case <-s.shutdownCh: @@ -382,12 +393,34 @@ func (s *Session) waitForSendErr(hdr header, body []byte, errCh chan error) erro return ErrConnectionWriteTimeout } + bodyCopy := func() { + if body == nil { + return // A nil body is ignored. + } + + // In the event of session shutdown or connection write timeout, + // we need to prevent `send` from reading the body buffer after + // returning from this function since the caller may re-use the + // underlying array. + ready.mu.Lock() + defer ready.mu.Unlock() + + if ready.Body == nil { + return // Body was already copied in `send`. + } + newBody := make([]byte, len(body)) + copy(newBody, body) + ready.Body = newBody + } + select { case err := <-errCh: return err case <-s.shutdownCh: + bodyCopy() return ErrSessionShutdown case <-timer.C: + bodyCopy() return ErrConnectionWriteTimeout } } @@ -409,7 +442,7 @@ func (s *Session) sendNoWait(hdr header) error { }() select { - case s.sendCh <- sendReady{Hdr: hdr}: + case s.sendCh <- &sendReady{Hdr: hdr}: return nil case <-s.shutdownCh: return ErrSessionShutdown @@ -420,39 +453,59 @@ func (s *Session) sendNoWait(hdr header) error { // send is a long running goroutine that sends data func (s *Session) send() { + if err := s.sendLoop(); err != nil { + s.exitErr(err) + } +} + +func (s *Session) sendLoop() error { + defer close(s.sendDoneCh) + var bodyBuf bytes.Buffer for { + bodyBuf.Reset() + select { case ready := <-s.sendCh: // Send a header if ready if ready.Hdr != nil { - sent := 0 - for sent < len(ready.Hdr) { - n, err := s.conn.Write(ready.Hdr[sent:]) - if err != nil { - s.logger.Printf("[ERR] yamux: Failed to write header: %v", err) - asyncSendErr(ready.Err, err) - s.exitErr(err) - return - } - sent += n + _, err := s.conn.Write(ready.Hdr) + if err != nil { + s.logger.Printf("[ERR] yamux: Failed to write header: %v", err) + asyncSendErr(ready.Err, err) + return err } } - // Send data from a body if given + ready.mu.Lock() if ready.Body != nil { - _, err := s.conn.Write(ready.Body) + // Copy the body into the buffer to avoid + // holding a mutex lock during the write. + _, err := bodyBuf.Write(ready.Body) + if err != nil { + ready.Body = nil + ready.mu.Unlock() + s.logger.Printf("[ERR] yamux: Failed to copy body into buffer: %v", err) + asyncSendErr(ready.Err, err) + return err + } + ready.Body = nil + } + ready.mu.Unlock() + + if bodyBuf.Len() > 0 { + // Send data from a body if given + _, err := s.conn.Write(bodyBuf.Bytes()) if err != nil { s.logger.Printf("[ERR] yamux: Failed to write body: %v", err) asyncSendErr(ready.Err, err) - s.exitErr(err) - return + return err } } // No error, successful send asyncSendErr(ready.Err, nil) case <-s.shutdownCh: - return + return nil } } } @@ -639,8 +692,9 @@ func (s *Session) incomingStream(id uint32) error { // Backlog exceeded! RST the stream s.logger.Printf("[WARN] yamux: backlog exceeded, forcing connection reset") delete(s.streams, id) - stream.sendHdr.encode(typeWindowUpdate, flagRST, id, 0) - return s.sendNoWait(stream.sendHdr) + hdr := header(make([]byte, headerSize)) + hdr.encode(typeWindowUpdate, flagRST, id, 0) + return s.sendNoWait(hdr) } } diff --git a/vendor/github.com/hashicorp/yamux/stream.go b/vendor/github.com/hashicorp/yamux/stream.go index f444bdc3c..23d08fcc8 100644 --- a/vendor/github.com/hashicorp/yamux/stream.go +++ b/vendor/github.com/hashicorp/yamux/stream.go @@ -2,6 +2,7 @@ package yamux import ( "bytes" + "errors" "io" "sync" "sync/atomic" @@ -127,6 +128,9 @@ START: // Send a window update potentially err = s.sendWindowUpdate() + if err == ErrSessionShutdown { + err = nil + } return n, err WAIT: @@ -200,6 +204,10 @@ START: // Send the header s.sendHdr.encode(typeData, flags, s.id, max) if err = s.session.waitForSendErr(s.sendHdr, body, s.sendErr); err != nil { + if errors.Is(err, ErrSessionShutdown) || errors.Is(err, ErrConnectionWriteTimeout) { + // Message left in ready queue, header re-use is unsafe. + s.sendHdr = header(make([]byte, headerSize)) + } return 0, err } @@ -273,6 +281,10 @@ func (s *Stream) sendWindowUpdate() error { // Send the header s.controlHdr.encode(typeWindowUpdate, flags, s.id, delta) if err := s.session.waitForSendErr(s.controlHdr, nil, s.controlErr); err != nil { + if errors.Is(err, ErrSessionShutdown) || errors.Is(err, ErrConnectionWriteTimeout) { + // Message left in ready queue, header re-use is unsafe. + s.controlHdr = header(make([]byte, headerSize)) + } return err } return nil @@ -287,6 +299,10 @@ func (s *Stream) sendClose() error { flags |= flagFIN s.controlHdr.encode(typeWindowUpdate, flags, s.id, 0) if err := s.session.waitForSendErr(s.controlHdr, nil, s.controlErr); err != nil { + if errors.Is(err, ErrSessionShutdown) || errors.Is(err, ErrConnectionWriteTimeout) { + // Message left in ready queue, header re-use is unsafe. + s.controlHdr = header(make([]byte, headerSize)) + } return err } return nil @@ -362,8 +378,9 @@ func (s *Stream) closeTimeout() { // Send a RST so the remote side closes too. s.sendLock.Lock() defer s.sendLock.Unlock() - s.sendHdr.encode(typeWindowUpdate, flagRST, s.id, 0) - s.session.sendNoWait(s.sendHdr) + hdr := header(make([]byte, headerSize)) + hdr.encode(typeWindowUpdate, flagRST, s.id, 0) + s.session.sendNoWait(hdr) } // forceClose is used for when the session is exiting @@ -465,6 +482,7 @@ func (s *Stream) readData(hdr header, flags uint16, conn io.Reader) error { if length > s.recvWindow { s.session.logger.Printf("[ERR] yamux: receive window exceeded (stream: %d, remain: %d, recv: %d)", s.id, s.recvWindow, length) + s.recvLock.Unlock() return ErrRecvWindowExceeded } @@ -473,14 +491,15 @@ func (s *Stream) readData(hdr header, flags uint16, conn io.Reader) error { // This way we can read in the whole packet without further allocations. s.recvBuf = bytes.NewBuffer(make([]byte, 0, length)) } - if _, err := io.Copy(s.recvBuf, conn); err != nil { + copiedLength, err := io.Copy(s.recvBuf, conn) + if err != nil { s.session.logger.Printf("[ERR] yamux: Failed to read stream data: %v", err) s.recvLock.Unlock() return err } // Decrement the receive window - s.recvWindow -= length + s.recvWindow -= uint32(copiedLength) s.recvLock.Unlock() // Unblock any readers diff --git a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/bug.md b/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/bug.md deleted file mode 100644 index 7d523074a..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/bug.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -name: Bug Report -about: Create a bug report to help us improve this project -title: "[Main title for your issue here]" -labels: bug -assignees: smutel ---- - - - - -## Summary - - -## Version - -### Netbox version - -```paste below - -``` - -### go-netbox version - -```paste below - -``` - -## Issue details - -### Piece of code using go-netbox wich is not working - - -### Affected library call - - -### Program output - -```paste below - -``` - -## Behaviors - -### Actual Behavior - - -### Expected Behavior - diff --git a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/config.yml b/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 3ba13e0ce..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1 +0,0 @@ -blank_issues_enabled: false diff --git a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/feature.md b/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/feature.md deleted file mode 100644 index a8f945a20..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/feature.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: New feature -about: Need a new feature not yet implemented -title: "[Main title for your issue here]" -labels: enhancement -assignees: smutel ---- - - - -## Summary - - -## Example - - -## Usage - diff --git a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/help.md b/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/help.md deleted file mode 100644 index 16c5458d6..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/ISSUE_TEMPLATE/help.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -name: Help Needed -about: I need some help to use this project -title: "[I am not able to do ...]" -labels: help wanted -assignees: smutel ---- - - - -## Issue description - -### What I want to do - - -### What I already test - -1. `Read the README` - -### Other important information - -## Version - -### Netbox version - -```paste below - -``` - -### go-netbox version - -```paste below - -``` diff --git a/vendor/github.com/smutel/go-netbox/.github/auto_assign.yml b/vendor/github.com/smutel/go-netbox/.github/auto_assign.yml deleted file mode 100644 index 5aceade1d..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/auto_assign.yml +++ /dev/null @@ -1,18 +0,0 @@ -# Set to true to add reviewers to pull requests -addReviewers: true - -# Set to true to add assignees to pull requests -addAssignees: true - -# A list of reviewers to be added to pull requests (GitHub user name) -reviewers: - - smutel - -# A list of keywords to be skipped the process that add reviewers if pull requests include it -skipKeywords: - - wip - - draft - -# A number of reviewers added to the pull request -# Set 0 to add all the reviewers (default: 0) -numberOfReviewers: 0 diff --git a/vendor/github.com/smutel/go-netbox/.github/workflows/main.yml b/vendor/github.com/smutel/go-netbox/.github/workflows/main.yml deleted file mode 100644 index 89eadaf56..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/workflows/main.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -name: Main - -on: - push: - branches: - - main - -jobs: - Build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - steps: - - name: Checkout - uses: actions/checkout@v3.0.2 - with: - fetch-depth: 0 - - - name: Lint - uses: reviewdog/action-golangci-lint@v2.1.5 - with: - github_token: ${{ secrets.github_token }} - golangci_lint_flags: "--config=.golangci.yml" - - - name: Setup env - run: | - echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV - echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH - mkdir -p "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel" - ln -sf "$GITHUB_WORKSPACE/" "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox" - shell: bash - - - name: Generate netbox client - run: | - sudo apt-get -q install python3-demjson - cd "$GITHUB_WORKSPACE/utils" - ./netbox_generate_client - shell: bash - - - name: Commit library - uses: EndBug/add-and-commit@v9.0.1 - with: - add: 'netbox swagger' - author_name: smutel - default_author: github_actor - message: 'ci: Autogeneration of go-netbox library' diff --git a/vendor/github.com/smutel/go-netbox/.github/workflows/pr.yml b/vendor/github.com/smutel/go-netbox/.github/workflows/pr.yml deleted file mode 100644 index ac705725b..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/workflows/pr.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -name: PR - -on: - pull_request: - -jobs: - Build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - steps: - - name: Check conventional commits in PR - uses: Namchee/conventional-pr@v0.10.1 - with: - access_token: ${{ secrets.github_token }} - close: false - strict: false - report: false - - - name: Checkout - uses: actions/checkout@v3.0.2 - with: - fetch-depth: 0 - - - name: Setup env - run: | - echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV - echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH - mkdir -p "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel" - ln -sf "$GITHUB_WORKSPACE/" "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox" - shell: bash - - - name: Generate netbox client - run: | - sudo apt-get -q install python3-demjson - cd "$GITHUB_WORKSPACE/utils" - ./netbox_generate_client - shell: bash - - - name: Show git diff - run: | - git add -N . - git diff - shell: bash diff --git a/vendor/github.com/smutel/go-netbox/.github/workflows/release.yml b/vendor/github.com/smutel/go-netbox/.github/workflows/release.yml deleted file mode 100644 index 944dd4c38..000000000 --- a/vendor/github.com/smutel/go-netbox/.github/workflows/release.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -name: Release - -on: - push: - tags: - - "v*" - -jobs: - Release: - runs-on: ubuntu-latest - strategy: - fail-fast: false - steps: - - name: Checkout - uses: actions/checkout@v3.0.2 - with: - fetch-depth: 0 - - - name: Get tag - id: tag - uses: dawidd6/action-get-tag@v1.1.0 - - - name: Generate CHANGELOG for this version - run: ./utils/getChangelogRelease CHANGELOG.md ${{ steps.tag.outputs.tag }} > /tmp/RELEASE_CHANGELOG.md - - - name: Release - uses: actions/create-release@v1.1.4 - with: - draft: true - prerelease: false - release_name: ${{ steps.tag.outputs.tag }} - tag_name: ${{ github.ref }} - body_path: /tmp/RELEASE_CHANGELOG.md - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/vendor/github.com/smutel/go-netbox/.gitignore b/vendor/github.com/smutel/go-netbox/.gitignore deleted file mode 100644 index 66fd13c90..000000000 --- a/vendor/github.com/smutel/go-netbox/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -# Binaries for programs and plugins -*.exe -*.exe~ -*.dll -*.so -*.dylib - -# Test binary, built with `go test -c` -*.test - -# Output of the go coverage tool, specifically when used with LiteIDE -*.out - -# Dependency directories (remove the comment below to include it) -# vendor/ diff --git a/vendor/github.com/smutel/go-netbox/CHANGELOG.md b/vendor/github.com/smutel/go-netbox/CHANGELOG.md deleted file mode 100644 index 8b94235a5..000000000 --- a/vendor/github.com/smutel/go-netbox/CHANGELOG.md +++ /dev/null @@ -1,62 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [3.1.2](https://github.com/smutel/go-netbox/compare/v3.1.1...v3.1.2) (2022-06-16) - - -### Bug Fixes - -* Scope as object in vlangroup ([4b65d2a](https://github.com/smutel/go-netbox/commit/4b65d2ad4ef61d51236fb491c33af9fab5a351e2)) - -### [3.1.1](https://github.com/smutel/go-netbox/compare/v3.1.0...v3.1.1) (2022-06-07) - - -### Bug Fixes - -* Object as JSON objects in contact assignment ([9d7758d](https://github.com/smutel/go-netbox/commit/9d7758d392cb519d67b4aee3058f71d321f6a243)) - -## [3.1.0](https://github.com/smutel/go-netbox/compare/v3.0.1...v3.1.0) (2022-05-17) - - -### Features - -* Update from Netbox 3.1 swagger ([8882546](https://github.com/smutel/go-netbox/commit/888254651a55451de78cf7c91a1625f99460e831)) - -### [3.0.1](https://github.com/smutel/go-netbox/compare/v3.0.0...v3.0.1) (2022-04-24) - - -### Bug Fixes - -* local_context_data and config_context as JSON objects ([9d3b627](https://github.com/smutel/go-netbox/commit/9d3b62739a002df6ce6a69c68baebc30023f1be2)), closes [#25](https://github.com/smutel/go-netbox/issues/25) - -## [3.0.0](https://github.com/smutel/go-netbox/compare/v2.11.0...v3.0.0) (2022-03-11) - - -### Features - -* Add patch to vcpus required ([41d2380](https://github.com/smutel/go-netbox/commit/41d2380bdfbe7a7771562663f3abfdec0f7b0018)) -* Update from Netbox 3.0 swagger ([7744a95](https://github.com/smutel/go-netbox/commit/7744a95bfa8136640b2f4c86531fc43f0370f754)) -* Update go-swagger to v0.28.0 ([ea5160b](https://github.com/smutel/go-netbox/commit/ea5160bfbbc26cd780d17f643e2dbaa62ab02f87)) - - -### Bug Fixes - -* Rollback on vcpus patch ([8ac0c3c](https://github.com/smutel/go-netbox/commit/8ac0c3c91ff2e66ea159609c883b540365b8406c)) - -## 2.11.0 (2021-09-23) - - -### Features - -* Add first swagger patch ([b5f1123](https://github.com/smutel/go-netbox/commit/b5f1123f77aa2b1a64539a3a8e8c84723ac70023)) -* Add patch to ipaddress assignedobject ([e1b5746](https://github.com/smutel/go-netbox/commit/e1b574625ef04207b417ff816b6b584447568225)) -* Init the project ([07fb3e1](https://github.com/smutel/go-netbox/commit/07fb3e1cced9502d91fba7babcaf2361a2779f54)) - - -### Bug Fixes - -* Client generation is not done anymore ([4372ce2](https://github.com/smutel/go-netbox/commit/4372ce2c7da78d0751236baa6bf8807d15f1ed1b)) -* Fix patch to ipaddress assignedobject ([3b540e3](https://github.com/smutel/go-netbox/commit/3b540e3dac9a3f2b675f360501a23605b515b576)) -* Remove additional v from swagger filename ([01b6671](https://github.com/smutel/go-netbox/commit/01b667184a70880c792ca52391940d1826768f55)) -* Rename master to main ([b063a64](https://github.com/smutel/go-netbox/commit/b063a6467716970bfe6790790f408c2caeb68b3d)) diff --git a/vendor/github.com/smutel/go-netbox/NOTE b/vendor/github.com/smutel/go-netbox/NOTE deleted file mode 100644 index de0184f74..000000000 --- a/vendor/github.com/smutel/go-netbox/NOTE +++ /dev/null @@ -1,8 +0,0 @@ -git clone https://github.com/netbox-community/netbox-docker.git -mv docker-compose.override.yml.example docker-compose.override.yml -docker-compose up -curl http://127.0.0.1:8000/api/swagger.json -o swagger.json -curl -L https://github.com/go-swagger/go-swagger/releases/download/v0.27.0/swagger_linux_amd64 -o swagger -chmod 755 swagger -mkdir -p ~/go/src/github.com/smutel/go-netbox -./swagger generate client -f swagger.json -A go-netbox --with-flatten=full -t ~/go/src/github.com/smutel/go-netbox diff --git a/vendor/github.com/smutel/go-netbox/README.md b/vendor/github.com/smutel/go-netbox/README.md deleted file mode 100644 index d10dd5d47..000000000 --- a/vendor/github.com/smutel/go-netbox/README.md +++ /dev/null @@ -1,111 +0,0 @@ -# go-netbox - -[![Lisence](https://img.shields.io/badge/license-ISC-informational?style=flat-square)](https://github.com/smutel/go-netbox/blob/main/LICENSE) -[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-informational.svg?style=flat-square&logo=git)](https://conventionalcommits.org) -[![Build Status](https://img.shields.io/github/workflow/status/smutel/go-netbox/Main/main?style=flat-square&logo=github-actions)](https://github.com/smutel/go-netbox/actions) - -Go library to interact with NetBox IPAM and DCIM service. - -## Compatibility with Netbox - -The version for Netbox and go-netbox will the same except for the last digit. - -Example: -* go-netbox v1.10.x is working with Netbox v1.10 -* go-netbox v1.11.x is working with Netbox v1.11 - -## Using the client - -The `github.com/smutel/go-netbox/netbox` package has some convenience functions for creating clients with the most common -configurations you likely need while connecting to NetBox. `NewNetboxAt` allows you to specify a hostname -(including port, if you need it), and `NewNetboxWithAPIKey` allows you to specify both a hostname:port and API token. - -```go -import ( - "github.com/smutel/go-netbox/netbox" -) -... - c := netbox.NewNetboxAt("your.netbox.host:8000") - // OR - c := netbox.NewNetboxWithAPIKey("your.netbox.host:8000", "your_netbox_token") -``` - -If you specify the API key, you do not need to pass an additional `authInfo` to operations that need authentication, and -can pass `nil`: -```go - c.Dcim.DcimDeviceTypesCreate(createRequest, nil) -``` - -If you connect to netbox via HTTPS you have to create an HTTPS configured transport: -```go -package main - -import ( - "os" - - httptransport "github.com/go-openapi/runtime/client" - "github.com/smutel/go-netbox/netbox/client" - "github.com/smutel/go-netbox/netbox/client/dcim" - - log "github.com/sirupsen/logrus" -) - -func main() { - token := os.Getenv("NETBOX_TOKEN") - if token == "" { - log.Fatalf("Please provide netbox API token via env var NETBOX_TOKEN") - } - - netboxHost := os.Getenv("NETBOX_HOST") - if netboxHost == "" { - log.Fatalf("Please provide netbox host via env var NETBOX_HOST") - } - - transport := httptransport.New(netboxHost, client.DefaultBasePath, []string{"https"}) - transport.DefaultAuthentication = httptransport.APIKeyAuth("Authorization", "header", "Token "+token) - - c := client.New(transport, nil) - - req := dcim.NewDcimSitesListParams() - res, err := c.Dcim.DcimSitesList(req, nil) - if err != nil { - log.Fatalf("Cannot get sites list: %v", err) - } - log.Infof("res: %v", res) -} -``` - -## How to contribute to this project - -* To contribute to this project, please follow the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) rules. -* Most of the code of this project will be generated using the swagger spec of Netbox and the [go-swagger](https://github.com/go-swagger/go-swagger) program. -* You can change the behavior of the generated library by pushing patchs in the `patchs` folder. -* The best is to see if the bug is due to a wrong swagger definition and to report this bug to the [Netbox](https://github.com/netbox-community/netbox) project. -* If the bug is due to the go-swagger program the best is to create a bug here [go-swagger](https://github.com/go-swagger/go-swagger). - -## How to test your work locally - -### Requirements - -* docker -* docker-compose -* [swagger](https://github.com/go-swagger/go-swagger) installed somewhere (/usr/local/bin) -* [netbox-docker](https://github.com/netbox-community/netbox-docker.git) project installed somewhere - -### Installing the go-netbox - -```sh -$ # Install jsonlint -$ apt-get install python3-demjson -$ mkdir -p ~/go/src/github.com/smutel -$ cd ~/go/src/github.com/smutel -$ git clone git@github.com:smutel/go-netbox.git -$ export GITHUB_WORKSPACE=~/go/src -``` - -### Regenerating the library - -```sh -$ cd ~/go/src/github.com/smutel/go-netbox/utils -$ ./netbox_generate_client -``` diff --git a/vendor/github.com/smutel/go-netbox/netbox/.gitkeep b/vendor/github.com/smutel/go-netbox/netbox/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go index 34ac9148f..c9071aae6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go @@ -96,9 +96,6 @@ type CircuitsCircuitTerminationsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -231,9 +228,6 @@ type CircuitsCircuitTerminationsListParams struct { // XconnectID. XconnectID *string - // XconnectIDEmpty. - XconnectIDEmpty *string - // XconnectIDIc. XconnectIDIc *string @@ -391,17 +385,6 @@ func (o *CircuitsCircuitTerminationsListParams) SetDescription(description *stri o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the circuits circuit terminations list params -func (o *CircuitsCircuitTerminationsListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsCircuitTerminationsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the circuits circuit terminations list params -func (o *CircuitsCircuitTerminationsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithDescriptionIc(descriptionIc *string) *CircuitsCircuitTerminationsListParams { o.SetDescriptionIc(descriptionIc) @@ -864,17 +847,6 @@ func (o *CircuitsCircuitTerminationsListParams) SetXconnectID(xconnectID *string o.XconnectID = xconnectID } -// WithXconnectIDEmpty adds the xconnectIDEmpty to the circuits circuit terminations list params -func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDEmpty(xconnectIDEmpty *string) *CircuitsCircuitTerminationsListParams { - o.SetXconnectIDEmpty(xconnectIDEmpty) - return o -} - -// SetXconnectIDEmpty adds the xconnectIdEmpty to the circuits circuit terminations list params -func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDEmpty(xconnectIDEmpty *string) { - o.XconnectIDEmpty = xconnectIDEmpty -} - // WithXconnectIDIc adds the xconnectIDIc to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIc(xconnectIDIc *string) *CircuitsCircuitTerminationsListParams { o.SetXconnectIDIc(xconnectIDIc) @@ -1101,23 +1073,6 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1832,23 +1787,6 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } } - if o.XconnectIDEmpty != nil { - - // query param xconnect_id__empty - var qrXconnectIDEmpty string - - if o.XconnectIDEmpty != nil { - qrXconnectIDEmpty = *o.XconnectIDEmpty - } - qXconnectIDEmpty := qrXconnectIDEmpty - if qXconnectIDEmpty != "" { - - if err := r.SetQueryParam("xconnect_id__empty", qXconnectIDEmpty); err != nil { - return err - } - } - } - if o.XconnectIDIc != nil { // query param xconnect_id__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go index 00a3bd8d9..593e1ff10 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go @@ -87,9 +87,6 @@ type CircuitsCircuitTypesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type CircuitsCircuitTypesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -195,9 +189,6 @@ type CircuitsCircuitTypesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -328,17 +319,6 @@ func (o *CircuitsCircuitTypesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the circuits circuit types list params -func (o *CircuitsCircuitTypesListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsCircuitTypesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the circuits circuit types list params -func (o *CircuitsCircuitTypesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithDescriptionIc(descriptionIc *string) *CircuitsCircuitTypesListParams { o.SetDescriptionIc(descriptionIc) @@ -559,17 +539,6 @@ func (o *CircuitsCircuitTypesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the circuits circuit types list params -func (o *CircuitsCircuitTypesListParams) WithNameEmpty(nameEmpty *string) *CircuitsCircuitTypesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the circuits circuit types list params -func (o *CircuitsCircuitTypesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithNameIc(nameIc *string) *CircuitsCircuitTypesListParams { o.SetNameIc(nameIc) @@ -702,17 +671,6 @@ func (o *CircuitsCircuitTypesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the circuits circuit types list params -func (o *CircuitsCircuitTypesListParams) WithSlugEmpty(slugEmpty *string) *CircuitsCircuitTypesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the circuits circuit types list params -func (o *CircuitsCircuitTypesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithSlugIc(slugIc *string) *CircuitsCircuitTypesListParams { o.SetSlugIc(slugIc) @@ -910,23 +868,6 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1267,23 +1208,6 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1488,23 +1412,6 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go index 5dc843408..c441ceb7b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go @@ -78,9 +78,6 @@ type CircuitsCircuitsListParams struct { // Cid. Cid *string - // CidEmpty. - CidEmpty *string - // CidIc. CidIc *string @@ -132,6 +129,12 @@ type CircuitsCircuitsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -150,9 +153,6 @@ type CircuitsCircuitsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -406,17 +406,6 @@ func (o *CircuitsCircuitsListParams) SetCid(cid *string) { o.Cid = cid } -// WithCidEmpty adds the cidEmpty to the circuits circuits list params -func (o *CircuitsCircuitsListParams) WithCidEmpty(cidEmpty *string) *CircuitsCircuitsListParams { - o.SetCidEmpty(cidEmpty) - return o -} - -// SetCidEmpty adds the cidEmpty to the circuits circuits list params -func (o *CircuitsCircuitsListParams) SetCidEmpty(cidEmpty *string) { - o.CidEmpty = cidEmpty -} - // WithCidIc adds the cidIc to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithCidIc(cidIc *string) *CircuitsCircuitsListParams { o.SetCidIc(cidIc) @@ -604,6 +593,28 @@ func (o *CircuitsCircuitsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithContactGroup(contactGroup *string) *CircuitsCircuitsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithContactGroupn(contactGroupn *string) *CircuitsCircuitsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithContactRole(contactRole *string) *CircuitsCircuitsListParams { o.SetContactRole(contactRole) @@ -670,17 +681,6 @@ func (o *CircuitsCircuitsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the circuits circuits list params -func (o *CircuitsCircuitsListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsCircuitsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the circuits circuits list params -func (o *CircuitsCircuitsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithDescriptionIc(descriptionIc *string) *CircuitsCircuitsListParams { o.SetDescriptionIc(descriptionIc) @@ -1377,23 +1377,6 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.CidEmpty != nil { - - // query param cid__empty - var qrCidEmpty string - - if o.CidEmpty != nil { - qrCidEmpty = *o.CidEmpty - } - qCidEmpty := qrCidEmpty - if qCidEmpty != "" { - - if err := r.SetQueryParam("cid__empty", qCidEmpty); err != nil { - return err - } - } - } - if o.CidIc != nil { // query param cid__ic @@ -1683,6 +1666,40 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1785,23 +1802,6 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_provider_networks_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_provider_networks_list_parameters.go index 3fc16ea89..598b612be 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_provider_networks_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_provider_networks_list_parameters.go @@ -87,9 +87,6 @@ type CircuitsProviderNetworksListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type CircuitsProviderNetworksListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -204,6 +198,36 @@ type CircuitsProviderNetworksListParams struct { // Q. Q *string + // ServiceID. + ServiceID *string + + // ServiceIDIc. + ServiceIDIc *string + + // ServiceIDIe. + ServiceIDIe *string + + // ServiceIDIew. + ServiceIDIew *string + + // ServiceIDIsw. + ServiceIDIsw *string + + // ServiceIDn. + ServiceIDn *string + + // ServiceIDNic. + ServiceIDNic *string + + // ServiceIDNie. + ServiceIDNie *string + + // ServiceIDNiew. + ServiceIDNiew *string + + // ServiceIDNisw. + ServiceIDNisw *string + // Tag. Tag *string @@ -307,17 +331,6 @@ func (o *CircuitsProviderNetworksListParams) SetDescription(description *string) o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the circuits provider networks list params -func (o *CircuitsProviderNetworksListParams) WithDescriptionEmpty(descriptionEmpty *string) *CircuitsProviderNetworksListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the circuits provider networks list params -func (o *CircuitsProviderNetworksListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the circuits provider networks list params func (o *CircuitsProviderNetworksListParams) WithDescriptionIc(descriptionIc *string) *CircuitsProviderNetworksListParams { o.SetDescriptionIc(descriptionIc) @@ -538,17 +551,6 @@ func (o *CircuitsProviderNetworksListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the circuits provider networks list params -func (o *CircuitsProviderNetworksListParams) WithNameEmpty(nameEmpty *string) *CircuitsProviderNetworksListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the circuits provider networks list params -func (o *CircuitsProviderNetworksListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the circuits provider networks list params func (o *CircuitsProviderNetworksListParams) WithNameIc(nameIc *string) *CircuitsProviderNetworksListParams { o.SetNameIc(nameIc) @@ -714,6 +716,116 @@ func (o *CircuitsProviderNetworksListParams) SetQ(q *string) { o.Q = q } +// WithServiceID adds the serviceID to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceID(serviceID *string) *CircuitsProviderNetworksListParams { + o.SetServiceID(serviceID) + return o +} + +// SetServiceID adds the serviceId to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceID(serviceID *string) { + o.ServiceID = serviceID +} + +// WithServiceIDIc adds the serviceIDIc to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDIc(serviceIDIc *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDIc(serviceIDIc) + return o +} + +// SetServiceIDIc adds the serviceIdIc to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDIc(serviceIDIc *string) { + o.ServiceIDIc = serviceIDIc +} + +// WithServiceIDIe adds the serviceIDIe to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDIe(serviceIDIe *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDIe(serviceIDIe) + return o +} + +// SetServiceIDIe adds the serviceIdIe to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDIe(serviceIDIe *string) { + o.ServiceIDIe = serviceIDIe +} + +// WithServiceIDIew adds the serviceIDIew to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDIew(serviceIDIew *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDIew(serviceIDIew) + return o +} + +// SetServiceIDIew adds the serviceIdIew to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDIew(serviceIDIew *string) { + o.ServiceIDIew = serviceIDIew +} + +// WithServiceIDIsw adds the serviceIDIsw to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDIsw(serviceIDIsw *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDIsw(serviceIDIsw) + return o +} + +// SetServiceIDIsw adds the serviceIdIsw to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDIsw(serviceIDIsw *string) { + o.ServiceIDIsw = serviceIDIsw +} + +// WithServiceIDn adds the serviceIDn to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDn(serviceIDn *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDn(serviceIDn) + return o +} + +// SetServiceIDn adds the serviceIdN to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDn(serviceIDn *string) { + o.ServiceIDn = serviceIDn +} + +// WithServiceIDNic adds the serviceIDNic to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDNic(serviceIDNic *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDNic(serviceIDNic) + return o +} + +// SetServiceIDNic adds the serviceIdNic to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDNic(serviceIDNic *string) { + o.ServiceIDNic = serviceIDNic +} + +// WithServiceIDNie adds the serviceIDNie to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDNie(serviceIDNie *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDNie(serviceIDNie) + return o +} + +// SetServiceIDNie adds the serviceIdNie to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDNie(serviceIDNie *string) { + o.ServiceIDNie = serviceIDNie +} + +// WithServiceIDNiew adds the serviceIDNiew to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDNiew(serviceIDNiew *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDNiew(serviceIDNiew) + return o +} + +// SetServiceIDNiew adds the serviceIdNiew to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDNiew(serviceIDNiew *string) { + o.ServiceIDNiew = serviceIDNiew +} + +// WithServiceIDNisw adds the serviceIDNisw to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) WithServiceIDNisw(serviceIDNisw *string) *CircuitsProviderNetworksListParams { + o.SetServiceIDNisw(serviceIDNisw) + return o +} + +// SetServiceIDNisw adds the serviceIdNisw to the circuits provider networks list params +func (o *CircuitsProviderNetworksListParams) SetServiceIDNisw(serviceIDNisw *string) { + o.ServiceIDNisw = serviceIDNisw +} + // WithTag adds the tag to the circuits provider networks list params func (o *CircuitsProviderNetworksListParams) WithTag(tag *string) *CircuitsProviderNetworksListParams { o.SetTag(tag) @@ -812,23 +924,6 @@ func (o *CircuitsProviderNetworksListParams) WriteToRequest(r runtime.ClientRequ } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1169,23 +1264,6 @@ func (o *CircuitsProviderNetworksListParams) WriteToRequest(r runtime.ClientRequ } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1441,6 +1519,176 @@ func (o *CircuitsProviderNetworksListParams) WriteToRequest(r runtime.ClientRequ } } + if o.ServiceID != nil { + + // query param service_id + var qrServiceID string + + if o.ServiceID != nil { + qrServiceID = *o.ServiceID + } + qServiceID := qrServiceID + if qServiceID != "" { + + if err := r.SetQueryParam("service_id", qServiceID); err != nil { + return err + } + } + } + + if o.ServiceIDIc != nil { + + // query param service_id__ic + var qrServiceIDIc string + + if o.ServiceIDIc != nil { + qrServiceIDIc = *o.ServiceIDIc + } + qServiceIDIc := qrServiceIDIc + if qServiceIDIc != "" { + + if err := r.SetQueryParam("service_id__ic", qServiceIDIc); err != nil { + return err + } + } + } + + if o.ServiceIDIe != nil { + + // query param service_id__ie + var qrServiceIDIe string + + if o.ServiceIDIe != nil { + qrServiceIDIe = *o.ServiceIDIe + } + qServiceIDIe := qrServiceIDIe + if qServiceIDIe != "" { + + if err := r.SetQueryParam("service_id__ie", qServiceIDIe); err != nil { + return err + } + } + } + + if o.ServiceIDIew != nil { + + // query param service_id__iew + var qrServiceIDIew string + + if o.ServiceIDIew != nil { + qrServiceIDIew = *o.ServiceIDIew + } + qServiceIDIew := qrServiceIDIew + if qServiceIDIew != "" { + + if err := r.SetQueryParam("service_id__iew", qServiceIDIew); err != nil { + return err + } + } + } + + if o.ServiceIDIsw != nil { + + // query param service_id__isw + var qrServiceIDIsw string + + if o.ServiceIDIsw != nil { + qrServiceIDIsw = *o.ServiceIDIsw + } + qServiceIDIsw := qrServiceIDIsw + if qServiceIDIsw != "" { + + if err := r.SetQueryParam("service_id__isw", qServiceIDIsw); err != nil { + return err + } + } + } + + if o.ServiceIDn != nil { + + // query param service_id__n + var qrServiceIDn string + + if o.ServiceIDn != nil { + qrServiceIDn = *o.ServiceIDn + } + qServiceIDn := qrServiceIDn + if qServiceIDn != "" { + + if err := r.SetQueryParam("service_id__n", qServiceIDn); err != nil { + return err + } + } + } + + if o.ServiceIDNic != nil { + + // query param service_id__nic + var qrServiceIDNic string + + if o.ServiceIDNic != nil { + qrServiceIDNic = *o.ServiceIDNic + } + qServiceIDNic := qrServiceIDNic + if qServiceIDNic != "" { + + if err := r.SetQueryParam("service_id__nic", qServiceIDNic); err != nil { + return err + } + } + } + + if o.ServiceIDNie != nil { + + // query param service_id__nie + var qrServiceIDNie string + + if o.ServiceIDNie != nil { + qrServiceIDNie = *o.ServiceIDNie + } + qServiceIDNie := qrServiceIDNie + if qServiceIDNie != "" { + + if err := r.SetQueryParam("service_id__nie", qServiceIDNie); err != nil { + return err + } + } + } + + if o.ServiceIDNiew != nil { + + // query param service_id__niew + var qrServiceIDNiew string + + if o.ServiceIDNiew != nil { + qrServiceIDNiew = *o.ServiceIDNiew + } + qServiceIDNiew := qrServiceIDNiew + if qServiceIDNiew != "" { + + if err := r.SetQueryParam("service_id__niew", qServiceIDNiew); err != nil { + return err + } + } + } + + if o.ServiceIDNisw != nil { + + // query param service_id__nisw + var qrServiceIDNisw string + + if o.ServiceIDNisw != nil { + qrServiceIDNisw = *o.ServiceIDNisw + } + qServiceIDNisw := qrServiceIDNisw + if qServiceIDNisw != "" { + + if err := r.SetQueryParam("service_id__nisw", qServiceIDNisw); err != nil { + return err + } + } + } + if o.Tag != nil { // query param tag diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_partial_update_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_partial_update_parameters.go index 5efcdece3..31f671f77 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_partial_update_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_partial_update_parameters.go @@ -77,7 +77,7 @@ func NewCircuitsProvidersBulkPartialUpdateParamsWithHTTPClient(client *http.Clie type CircuitsProvidersBulkPartialUpdateParams struct { // Data. - Data *models.Provider + Data *models.WritableProvider timeout time.Duration Context context.Context @@ -133,13 +133,13 @@ func (o *CircuitsProvidersBulkPartialUpdateParams) SetHTTPClient(client *http.Cl } // WithData adds the data to the circuits providers bulk partial update params -func (o *CircuitsProvidersBulkPartialUpdateParams) WithData(data *models.Provider) *CircuitsProvidersBulkPartialUpdateParams { +func (o *CircuitsProvidersBulkPartialUpdateParams) WithData(data *models.WritableProvider) *CircuitsProvidersBulkPartialUpdateParams { o.SetData(data) return o } // SetData adds the data to the circuits providers bulk partial update params -func (o *CircuitsProvidersBulkPartialUpdateParams) SetData(data *models.Provider) { +func (o *CircuitsProvidersBulkPartialUpdateParams) SetData(data *models.WritableProvider) { o.Data = data } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_update_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_update_parameters.go index 6a9f624a9..11394066f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_update_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_bulk_update_parameters.go @@ -77,7 +77,7 @@ func NewCircuitsProvidersBulkUpdateParamsWithHTTPClient(client *http.Client) *Ci type CircuitsProvidersBulkUpdateParams struct { // Data. - Data *models.Provider + Data *models.WritableProvider timeout time.Duration Context context.Context @@ -133,13 +133,13 @@ func (o *CircuitsProvidersBulkUpdateParams) SetHTTPClient(client *http.Client) { } // WithData adds the data to the circuits providers bulk update params -func (o *CircuitsProvidersBulkUpdateParams) WithData(data *models.Provider) *CircuitsProvidersBulkUpdateParams { +func (o *CircuitsProvidersBulkUpdateParams) WithData(data *models.WritableProvider) *CircuitsProvidersBulkUpdateParams { o.SetData(data) return o } // SetData adds the data to the circuits providers bulk update params -func (o *CircuitsProvidersBulkUpdateParams) SetData(data *models.Provider) { +func (o *CircuitsProvidersBulkUpdateParams) SetData(data *models.WritableProvider) { o.Data = data } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go index f3d7836af..94f007d6d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go @@ -77,7 +77,7 @@ func NewCircuitsProvidersCreateParamsWithHTTPClient(client *http.Client) *Circui type CircuitsProvidersCreateParams struct { // Data. - Data *models.Provider + Data *models.WritableProvider timeout time.Duration Context context.Context @@ -133,13 +133,13 @@ func (o *CircuitsProvidersCreateParams) SetHTTPClient(client *http.Client) { } // WithData adds the data to the circuits providers create params -func (o *CircuitsProvidersCreateParams) WithData(data *models.Provider) *CircuitsProvidersCreateParams { +func (o *CircuitsProvidersCreateParams) WithData(data *models.WritableProvider) *CircuitsProvidersCreateParams { o.SetData(data) return o } // SetData adds the data to the circuits providers create params -func (o *CircuitsProvidersCreateParams) SetData(data *models.Provider) { +func (o *CircuitsProvidersCreateParams) SetData(data *models.WritableProvider) { o.Data = data } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go index ee9f7c71d..c6155d1fd 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go @@ -78,9 +78,6 @@ type CircuitsProvidersListParams struct { // Account. Account *string - // AccountEmpty. - AccountEmpty *string - // AccountIc. AccountIc *string @@ -126,12 +123,24 @@ type CircuitsProvidersListParams struct { // Asnn. Asnn *string + // AsnID. + AsnID *string + + // AsnIDn. + AsnIDn *string + // Contact. Contact *string // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -183,9 +192,6 @@ type CircuitsProvidersListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -261,9 +267,6 @@ type CircuitsProvidersListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -361,17 +364,6 @@ func (o *CircuitsProvidersListParams) SetAccount(account *string) { o.Account = account } -// WithAccountEmpty adds the accountEmpty to the circuits providers list params -func (o *CircuitsProvidersListParams) WithAccountEmpty(accountEmpty *string) *CircuitsProvidersListParams { - o.SetAccountEmpty(accountEmpty) - return o -} - -// SetAccountEmpty adds the accountEmpty to the circuits providers list params -func (o *CircuitsProvidersListParams) SetAccountEmpty(accountEmpty *string) { - o.AccountEmpty = accountEmpty -} - // WithAccountIc adds the accountIc to the circuits providers list params func (o *CircuitsProvidersListParams) WithAccountIc(accountIc *string) *CircuitsProvidersListParams { o.SetAccountIc(accountIc) @@ -537,6 +529,28 @@ func (o *CircuitsProvidersListParams) SetAsnn(asnn *string) { o.Asnn = asnn } +// WithAsnID adds the asnID to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnID(asnID *string) *CircuitsProvidersListParams { + o.SetAsnID(asnID) + return o +} + +// SetAsnID adds the asnId to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnID(asnID *string) { + o.AsnID = asnID +} + +// WithAsnIDn adds the asnIDn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnIDn(asnIDn *string) *CircuitsProvidersListParams { + o.SetAsnIDn(asnIDn) + return o +} + +// SetAsnIDn adds the asnIdN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnIDn(asnIDn *string) { + o.AsnIDn = asnIDn +} + // WithContact adds the contact to the circuits providers list params func (o *CircuitsProvidersListParams) WithContact(contact *string) *CircuitsProvidersListParams { o.SetContact(contact) @@ -559,6 +573,28 @@ func (o *CircuitsProvidersListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the circuits providers list params +func (o *CircuitsProvidersListParams) WithContactGroup(contactGroup *string) *CircuitsProvidersListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the circuits providers list params +func (o *CircuitsProvidersListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithContactGroupn(contactGroupn *string) *CircuitsProvidersListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the circuits providers list params func (o *CircuitsProvidersListParams) WithContactRole(contactRole *string) *CircuitsProvidersListParams { o.SetContactRole(contactRole) @@ -735,17 +771,6 @@ func (o *CircuitsProvidersListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the circuits providers list params -func (o *CircuitsProvidersListParams) WithNameEmpty(nameEmpty *string) *CircuitsProvidersListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the circuits providers list params -func (o *CircuitsProvidersListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the circuits providers list params func (o *CircuitsProvidersListParams) WithNameIc(nameIc *string) *CircuitsProvidersListParams { o.SetNameIc(nameIc) @@ -1010,17 +1035,6 @@ func (o *CircuitsProvidersListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the circuits providers list params -func (o *CircuitsProvidersListParams) WithSlugEmpty(slugEmpty *string) *CircuitsProvidersListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the circuits providers list params -func (o *CircuitsProvidersListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the circuits providers list params func (o *CircuitsProvidersListParams) WithSlugIc(slugIc *string) *CircuitsProvidersListParams { o.SetSlugIc(slugIc) @@ -1167,23 +1181,6 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.AccountEmpty != nil { - - // query param account__empty - var qrAccountEmpty string - - if o.AccountEmpty != nil { - qrAccountEmpty = *o.AccountEmpty - } - qAccountEmpty := qrAccountEmpty - if qAccountEmpty != "" { - - if err := r.SetQueryParam("account__empty", qAccountEmpty); err != nil { - return err - } - } - } - if o.AccountIc != nil { // query param account__ic @@ -1439,6 +1436,40 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.AsnID != nil { + + // query param asn_id + var qrAsnID string + + if o.AsnID != nil { + qrAsnID = *o.AsnID + } + qAsnID := qrAsnID + if qAsnID != "" { + + if err := r.SetQueryParam("asn_id", qAsnID); err != nil { + return err + } + } + } + + if o.AsnIDn != nil { + + // query param asn_id__n + var qrAsnIDn string + + if o.AsnIDn != nil { + qrAsnIDn = *o.AsnIDn + } + qAsnIDn := qrAsnIDn + if qAsnIDn != "" { + + if err := r.SetQueryParam("asn_id__n", qAsnIDn); err != nil { + return err + } + } + } + if o.Contact != nil { // query param contact @@ -1473,6 +1504,40 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1745,23 +1810,6 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -2170,23 +2218,6 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go index 23555d023..60c81377d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go @@ -78,7 +78,7 @@ func NewCircuitsProvidersPartialUpdateParamsWithHTTPClient(client *http.Client) type CircuitsProvidersPartialUpdateParams struct { // Data. - Data *models.Provider + Data *models.WritableProvider /* ID. @@ -140,13 +140,13 @@ func (o *CircuitsProvidersPartialUpdateParams) SetHTTPClient(client *http.Client } // WithData adds the data to the circuits providers partial update params -func (o *CircuitsProvidersPartialUpdateParams) WithData(data *models.Provider) *CircuitsProvidersPartialUpdateParams { +func (o *CircuitsProvidersPartialUpdateParams) WithData(data *models.WritableProvider) *CircuitsProvidersPartialUpdateParams { o.SetData(data) return o } // SetData adds the data to the circuits providers partial update params -func (o *CircuitsProvidersPartialUpdateParams) SetData(data *models.Provider) { +func (o *CircuitsProvidersPartialUpdateParams) SetData(data *models.WritableProvider) { o.Data = data } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go index 39225e3d1..8a52e0704 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go @@ -78,7 +78,7 @@ func NewCircuitsProvidersUpdateParamsWithHTTPClient(client *http.Client) *Circui type CircuitsProvidersUpdateParams struct { // Data. - Data *models.Provider + Data *models.WritableProvider /* ID. @@ -140,13 +140,13 @@ func (o *CircuitsProvidersUpdateParams) SetHTTPClient(client *http.Client) { } // WithData adds the data to the circuits providers update params -func (o *CircuitsProvidersUpdateParams) WithData(data *models.Provider) *CircuitsProvidersUpdateParams { +func (o *CircuitsProvidersUpdateParams) WithData(data *models.WritableProvider) *CircuitsProvidersUpdateParams { o.SetData(data) return o } // SetData adds the data to the circuits providers update params -func (o *CircuitsProvidersUpdateParams) SetData(data *models.Provider) { +func (o *CircuitsProvidersUpdateParams) SetData(data *models.WritableProvider) { o.Data = data } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go index dec086578..a235494cb 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go @@ -117,9 +117,6 @@ type DcimCablesListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -504,17 +501,6 @@ func (o *DcimCablesListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim cables list params -func (o *DcimCablesListParams) WithLabelEmpty(labelEmpty *string) *DcimCablesListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim cables list params -func (o *DcimCablesListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim cables list params func (o *DcimCablesListParams) WithLabelIc(labelIc *string) *DcimCablesListParams { o.SetLabelIc(labelIc) @@ -1388,23 +1374,6 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_client.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_client.go index 9fd923a9b..f2bf30e30 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_client.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_client.go @@ -309,6 +309,42 @@ type ClientService interface { DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesUpdateOK, error) + DcimInventoryItemRolesBulkDelete(params *DcimInventoryItemRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesBulkDeleteNoContent, error) + + DcimInventoryItemRolesBulkPartialUpdate(params *DcimInventoryItemRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesBulkPartialUpdateOK, error) + + DcimInventoryItemRolesBulkUpdate(params *DcimInventoryItemRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesBulkUpdateOK, error) + + DcimInventoryItemRolesCreate(params *DcimInventoryItemRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesCreateCreated, error) + + DcimInventoryItemRolesDelete(params *DcimInventoryItemRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesDeleteNoContent, error) + + DcimInventoryItemRolesList(params *DcimInventoryItemRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesListOK, error) + + DcimInventoryItemRolesPartialUpdate(params *DcimInventoryItemRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesPartialUpdateOK, error) + + DcimInventoryItemRolesRead(params *DcimInventoryItemRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesReadOK, error) + + DcimInventoryItemRolesUpdate(params *DcimInventoryItemRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesUpdateOK, error) + + DcimInventoryItemTemplatesBulkDelete(params *DcimInventoryItemTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesBulkDeleteNoContent, error) + + DcimInventoryItemTemplatesBulkPartialUpdate(params *DcimInventoryItemTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesBulkPartialUpdateOK, error) + + DcimInventoryItemTemplatesBulkUpdate(params *DcimInventoryItemTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesBulkUpdateOK, error) + + DcimInventoryItemTemplatesCreate(params *DcimInventoryItemTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesCreateCreated, error) + + DcimInventoryItemTemplatesDelete(params *DcimInventoryItemTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesDeleteNoContent, error) + + DcimInventoryItemTemplatesList(params *DcimInventoryItemTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesListOK, error) + + DcimInventoryItemTemplatesPartialUpdate(params *DcimInventoryItemTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesPartialUpdateOK, error) + + DcimInventoryItemTemplatesRead(params *DcimInventoryItemTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesReadOK, error) + + DcimInventoryItemTemplatesUpdate(params *DcimInventoryItemTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesUpdateOK, error) + DcimInventoryItemsBulkDelete(params *DcimInventoryItemsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkDeleteNoContent, error) DcimInventoryItemsBulkPartialUpdate(params *DcimInventoryItemsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkPartialUpdateOK, error) @@ -363,6 +399,78 @@ type ClientService interface { DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersUpdateOK, error) + DcimModuleBayTemplatesBulkDelete(params *DcimModuleBayTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesBulkDeleteNoContent, error) + + DcimModuleBayTemplatesBulkPartialUpdate(params *DcimModuleBayTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesBulkPartialUpdateOK, error) + + DcimModuleBayTemplatesBulkUpdate(params *DcimModuleBayTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesBulkUpdateOK, error) + + DcimModuleBayTemplatesCreate(params *DcimModuleBayTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesCreateCreated, error) + + DcimModuleBayTemplatesDelete(params *DcimModuleBayTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesDeleteNoContent, error) + + DcimModuleBayTemplatesList(params *DcimModuleBayTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesListOK, error) + + DcimModuleBayTemplatesPartialUpdate(params *DcimModuleBayTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesPartialUpdateOK, error) + + DcimModuleBayTemplatesRead(params *DcimModuleBayTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesReadOK, error) + + DcimModuleBayTemplatesUpdate(params *DcimModuleBayTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesUpdateOK, error) + + DcimModuleBaysBulkDelete(params *DcimModuleBaysBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysBulkDeleteNoContent, error) + + DcimModuleBaysBulkPartialUpdate(params *DcimModuleBaysBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysBulkPartialUpdateOK, error) + + DcimModuleBaysBulkUpdate(params *DcimModuleBaysBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysBulkUpdateOK, error) + + DcimModuleBaysCreate(params *DcimModuleBaysCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysCreateCreated, error) + + DcimModuleBaysDelete(params *DcimModuleBaysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysDeleteNoContent, error) + + DcimModuleBaysList(params *DcimModuleBaysListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysListOK, error) + + DcimModuleBaysPartialUpdate(params *DcimModuleBaysPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysPartialUpdateOK, error) + + DcimModuleBaysRead(params *DcimModuleBaysReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysReadOK, error) + + DcimModuleBaysUpdate(params *DcimModuleBaysUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysUpdateOK, error) + + DcimModuleTypesBulkDelete(params *DcimModuleTypesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesBulkDeleteNoContent, error) + + DcimModuleTypesBulkPartialUpdate(params *DcimModuleTypesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesBulkPartialUpdateOK, error) + + DcimModuleTypesBulkUpdate(params *DcimModuleTypesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesBulkUpdateOK, error) + + DcimModuleTypesCreate(params *DcimModuleTypesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesCreateCreated, error) + + DcimModuleTypesDelete(params *DcimModuleTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesDeleteNoContent, error) + + DcimModuleTypesList(params *DcimModuleTypesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesListOK, error) + + DcimModuleTypesPartialUpdate(params *DcimModuleTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesPartialUpdateOK, error) + + DcimModuleTypesRead(params *DcimModuleTypesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesReadOK, error) + + DcimModuleTypesUpdate(params *DcimModuleTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesUpdateOK, error) + + DcimModulesBulkDelete(params *DcimModulesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesBulkDeleteNoContent, error) + + DcimModulesBulkPartialUpdate(params *DcimModulesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesBulkPartialUpdateOK, error) + + DcimModulesBulkUpdate(params *DcimModulesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesBulkUpdateOK, error) + + DcimModulesCreate(params *DcimModulesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesCreateCreated, error) + + DcimModulesDelete(params *DcimModulesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesDeleteNoContent, error) + + DcimModulesList(params *DcimModulesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesListOK, error) + + DcimModulesPartialUpdate(params *DcimModulesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesPartialUpdateOK, error) + + DcimModulesRead(params *DcimModulesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesReadOK, error) + + DcimModulesUpdate(params *DcimModulesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesUpdateOK, error) + DcimPlatformsBulkDelete(params *DcimPlatformsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkDeleteNoContent, error) DcimPlatformsBulkPartialUpdate(params *DcimPlatformsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkPartialUpdateOK, error) @@ -5818,22 +5926,22 @@ func (a *Client) DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authIn } /* - DcimInventoryItemsBulkDelete dcim inventory items bulk delete API + DcimInventoryItemRolesBulkDelete dcim inventory item roles bulk delete API */ -func (a *Client) DcimInventoryItemsBulkDelete(params *DcimInventoryItemsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkDeleteNoContent, error) { +func (a *Client) DcimInventoryItemRolesBulkDelete(params *DcimInventoryItemRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesBulkDeleteNoContent, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsBulkDeleteParams() + params = NewDcimInventoryItemRolesBulkDeleteParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_bulk_delete", + ID: "dcim_inventory-item-roles_bulk_delete", Method: "DELETE", - PathPattern: "/dcim/inventory-items/", + PathPattern: "/dcim/inventory-item-roles/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsBulkDeleteReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesBulkDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -5846,33 +5954,33 @@ func (a *Client) DcimInventoryItemsBulkDelete(params *DcimInventoryItemsBulkDele if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsBulkDeleteNoContent) + success, ok := result.(*DcimInventoryItemRolesBulkDeleteNoContent) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsBulkPartialUpdate dcim inventory items bulk partial update API + DcimInventoryItemRolesBulkPartialUpdate dcim inventory item roles bulk partial update API */ -func (a *Client) DcimInventoryItemsBulkPartialUpdate(params *DcimInventoryItemsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkPartialUpdateOK, error) { +func (a *Client) DcimInventoryItemRolesBulkPartialUpdate(params *DcimInventoryItemRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesBulkPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsBulkPartialUpdateParams() + params = NewDcimInventoryItemRolesBulkPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_bulk_partial_update", + ID: "dcim_inventory-item-roles_bulk_partial_update", Method: "PATCH", - PathPattern: "/dcim/inventory-items/", + PathPattern: "/dcim/inventory-item-roles/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsBulkPartialUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesBulkPartialUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -5885,33 +5993,33 @@ func (a *Client) DcimInventoryItemsBulkPartialUpdate(params *DcimInventoryItemsB if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsBulkPartialUpdateOK) + success, ok := result.(*DcimInventoryItemRolesBulkPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsBulkUpdate dcim inventory items bulk update API + DcimInventoryItemRolesBulkUpdate dcim inventory item roles bulk update API */ -func (a *Client) DcimInventoryItemsBulkUpdate(params *DcimInventoryItemsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkUpdateOK, error) { +func (a *Client) DcimInventoryItemRolesBulkUpdate(params *DcimInventoryItemRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesBulkUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsBulkUpdateParams() + params = NewDcimInventoryItemRolesBulkUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_bulk_update", + ID: "dcim_inventory-item-roles_bulk_update", Method: "PUT", - PathPattern: "/dcim/inventory-items/", + PathPattern: "/dcim/inventory-item-roles/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsBulkUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesBulkUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -5924,33 +6032,33 @@ func (a *Client) DcimInventoryItemsBulkUpdate(params *DcimInventoryItemsBulkUpda if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsBulkUpdateOK) + success, ok := result.(*DcimInventoryItemRolesBulkUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsCreate dcim inventory items create API + DcimInventoryItemRolesCreate dcim inventory item roles create API */ -func (a *Client) DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsCreateCreated, error) { +func (a *Client) DcimInventoryItemRolesCreate(params *DcimInventoryItemRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesCreateCreated, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsCreateParams() + params = NewDcimInventoryItemRolesCreateParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_create", + ID: "dcim_inventory-item-roles_create", Method: "POST", - PathPattern: "/dcim/inventory-items/", + PathPattern: "/dcim/inventory-item-roles/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsCreateReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesCreateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -5963,33 +6071,33 @@ func (a *Client) DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsCreateCreated) + success, ok := result.(*DcimInventoryItemRolesCreateCreated) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsDelete dcim inventory items delete API + DcimInventoryItemRolesDelete dcim inventory item roles delete API */ -func (a *Client) DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsDeleteNoContent, error) { +func (a *Client) DcimInventoryItemRolesDelete(params *DcimInventoryItemRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesDeleteNoContent, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsDeleteParams() + params = NewDcimInventoryItemRolesDeleteParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_delete", + ID: "dcim_inventory-item-roles_delete", Method: "DELETE", - PathPattern: "/dcim/inventory-items/{id}/", + PathPattern: "/dcim/inventory-item-roles/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsDeleteReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6002,33 +6110,33 @@ func (a *Client) DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsDeleteNoContent) + success, ok := result.(*DcimInventoryItemRolesDeleteNoContent) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsList Overrides ListModelMixin to allow processing ExportTemplates. + DcimInventoryItemRolesList Overrides ListModelMixin to allow processing ExportTemplates. */ -func (a *Client) DcimInventoryItemsList(params *DcimInventoryItemsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsListOK, error) { +func (a *Client) DcimInventoryItemRolesList(params *DcimInventoryItemRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesListOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsListParams() + params = NewDcimInventoryItemRolesListParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_list", + ID: "dcim_inventory-item-roles_list", Method: "GET", - PathPattern: "/dcim/inventory-items/", + PathPattern: "/dcim/inventory-item-roles/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsListReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesListReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6041,33 +6149,33 @@ func (a *Client) DcimInventoryItemsList(params *DcimInventoryItemsListParams, au if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsListOK) + success, ok := result.(*DcimInventoryItemRolesListOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsPartialUpdate dcim inventory items partial update API + DcimInventoryItemRolesPartialUpdate dcim inventory item roles partial update API */ -func (a *Client) DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsPartialUpdateOK, error) { +func (a *Client) DcimInventoryItemRolesPartialUpdate(params *DcimInventoryItemRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsPartialUpdateParams() + params = NewDcimInventoryItemRolesPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_partial_update", + ID: "dcim_inventory-item-roles_partial_update", Method: "PATCH", - PathPattern: "/dcim/inventory-items/{id}/", + PathPattern: "/dcim/inventory-item-roles/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsPartialUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesPartialUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6080,33 +6188,33 @@ func (a *Client) DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsParti if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsPartialUpdateOK) + success, ok := result.(*DcimInventoryItemRolesPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsRead dcim inventory items read API + DcimInventoryItemRolesRead dcim inventory item roles read API */ -func (a *Client) DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsReadOK, error) { +func (a *Client) DcimInventoryItemRolesRead(params *DcimInventoryItemRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesReadOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsReadParams() + params = NewDcimInventoryItemRolesReadParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_read", + ID: "dcim_inventory-item-roles_read", Method: "GET", - PathPattern: "/dcim/inventory-items/{id}/", + PathPattern: "/dcim/inventory-item-roles/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsReadReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesReadReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6119,33 +6227,33 @@ func (a *Client) DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, au if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsReadOK) + success, ok := result.(*DcimInventoryItemRolesReadOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimInventoryItemsUpdate dcim inventory items update API + DcimInventoryItemRolesUpdate dcim inventory item roles update API */ -func (a *Client) DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsUpdateOK, error) { +func (a *Client) DcimInventoryItemRolesUpdate(params *DcimInventoryItemRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemRolesUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimInventoryItemsUpdateParams() + params = NewDcimInventoryItemRolesUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_inventory-items_update", + ID: "dcim_inventory-item-roles_update", Method: "PUT", - PathPattern: "/dcim/inventory-items/{id}/", + PathPattern: "/dcim/inventory-item-roles/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimInventoryItemsUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemRolesUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6158,33 +6266,33 @@ func (a *Client) DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams if err != nil { return nil, err } - success, ok := result.(*DcimInventoryItemsUpdateOK) + success, ok := result.(*DcimInventoryItemRolesUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-roles_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsBulkDelete dcim locations bulk delete API + DcimInventoryItemTemplatesBulkDelete dcim inventory item templates bulk delete API */ -func (a *Client) DcimLocationsBulkDelete(params *DcimLocationsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkDeleteNoContent, error) { +func (a *Client) DcimInventoryItemTemplatesBulkDelete(params *DcimInventoryItemTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesBulkDeleteNoContent, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsBulkDeleteParams() + params = NewDcimInventoryItemTemplatesBulkDeleteParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_bulk_delete", + ID: "dcim_inventory-item-templates_bulk_delete", Method: "DELETE", - PathPattern: "/dcim/locations/", + PathPattern: "/dcim/inventory-item-templates/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsBulkDeleteReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesBulkDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6197,33 +6305,33 @@ func (a *Client) DcimLocationsBulkDelete(params *DcimLocationsBulkDeleteParams, if err != nil { return nil, err } - success, ok := result.(*DcimLocationsBulkDeleteNoContent) + success, ok := result.(*DcimInventoryItemTemplatesBulkDeleteNoContent) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsBulkPartialUpdate dcim locations bulk partial update API + DcimInventoryItemTemplatesBulkPartialUpdate dcim inventory item templates bulk partial update API */ -func (a *Client) DcimLocationsBulkPartialUpdate(params *DcimLocationsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkPartialUpdateOK, error) { +func (a *Client) DcimInventoryItemTemplatesBulkPartialUpdate(params *DcimInventoryItemTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesBulkPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsBulkPartialUpdateParams() + params = NewDcimInventoryItemTemplatesBulkPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_bulk_partial_update", + ID: "dcim_inventory-item-templates_bulk_partial_update", Method: "PATCH", - PathPattern: "/dcim/locations/", + PathPattern: "/dcim/inventory-item-templates/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsBulkPartialUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesBulkPartialUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6236,33 +6344,33 @@ func (a *Client) DcimLocationsBulkPartialUpdate(params *DcimLocationsBulkPartial if err != nil { return nil, err } - success, ok := result.(*DcimLocationsBulkPartialUpdateOK) + success, ok := result.(*DcimInventoryItemTemplatesBulkPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsBulkUpdate dcim locations bulk update API + DcimInventoryItemTemplatesBulkUpdate dcim inventory item templates bulk update API */ -func (a *Client) DcimLocationsBulkUpdate(params *DcimLocationsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkUpdateOK, error) { +func (a *Client) DcimInventoryItemTemplatesBulkUpdate(params *DcimInventoryItemTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesBulkUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsBulkUpdateParams() + params = NewDcimInventoryItemTemplatesBulkUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_bulk_update", + ID: "dcim_inventory-item-templates_bulk_update", Method: "PUT", - PathPattern: "/dcim/locations/", + PathPattern: "/dcim/inventory-item-templates/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsBulkUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesBulkUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6275,33 +6383,33 @@ func (a *Client) DcimLocationsBulkUpdate(params *DcimLocationsBulkUpdateParams, if err != nil { return nil, err } - success, ok := result.(*DcimLocationsBulkUpdateOK) + success, ok := result.(*DcimInventoryItemTemplatesBulkUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsCreate dcim locations create API + DcimInventoryItemTemplatesCreate dcim inventory item templates create API */ -func (a *Client) DcimLocationsCreate(params *DcimLocationsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsCreateCreated, error) { +func (a *Client) DcimInventoryItemTemplatesCreate(params *DcimInventoryItemTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesCreateCreated, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsCreateParams() + params = NewDcimInventoryItemTemplatesCreateParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_create", + ID: "dcim_inventory-item-templates_create", Method: "POST", - PathPattern: "/dcim/locations/", + PathPattern: "/dcim/inventory-item-templates/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsCreateReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesCreateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6314,33 +6422,33 @@ func (a *Client) DcimLocationsCreate(params *DcimLocationsCreateParams, authInfo if err != nil { return nil, err } - success, ok := result.(*DcimLocationsCreateCreated) + success, ok := result.(*DcimInventoryItemTemplatesCreateCreated) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsDelete dcim locations delete API + DcimInventoryItemTemplatesDelete dcim inventory item templates delete API */ -func (a *Client) DcimLocationsDelete(params *DcimLocationsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsDeleteNoContent, error) { +func (a *Client) DcimInventoryItemTemplatesDelete(params *DcimInventoryItemTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsDeleteParams() + params = NewDcimInventoryItemTemplatesDeleteParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_delete", + ID: "dcim_inventory-item-templates_delete", Method: "DELETE", - PathPattern: "/dcim/locations/{id}/", + PathPattern: "/dcim/inventory-item-templates/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsDeleteReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6353,33 +6461,33 @@ func (a *Client) DcimLocationsDelete(params *DcimLocationsDeleteParams, authInfo if err != nil { return nil, err } - success, ok := result.(*DcimLocationsDeleteNoContent) + success, ok := result.(*DcimInventoryItemTemplatesDeleteNoContent) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsList Overrides ListModelMixin to allow processing ExportTemplates. + DcimInventoryItemTemplatesList Overrides ListModelMixin to allow processing ExportTemplates. */ -func (a *Client) DcimLocationsList(params *DcimLocationsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsListOK, error) { +func (a *Client) DcimInventoryItemTemplatesList(params *DcimInventoryItemTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesListOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsListParams() + params = NewDcimInventoryItemTemplatesListParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_list", + ID: "dcim_inventory-item-templates_list", Method: "GET", - PathPattern: "/dcim/locations/", + PathPattern: "/dcim/inventory-item-templates/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsListReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesListReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6392,33 +6500,33 @@ func (a *Client) DcimLocationsList(params *DcimLocationsListParams, authInfo run if err != nil { return nil, err } - success, ok := result.(*DcimLocationsListOK) + success, ok := result.(*DcimInventoryItemTemplatesListOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsPartialUpdate dcim locations partial update API + DcimInventoryItemTemplatesPartialUpdate dcim inventory item templates partial update API */ -func (a *Client) DcimLocationsPartialUpdate(params *DcimLocationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsPartialUpdateOK, error) { +func (a *Client) DcimInventoryItemTemplatesPartialUpdate(params *DcimInventoryItemTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsPartialUpdateParams() + params = NewDcimInventoryItemTemplatesPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_partial_update", + ID: "dcim_inventory-item-templates_partial_update", Method: "PATCH", - PathPattern: "/dcim/locations/{id}/", + PathPattern: "/dcim/inventory-item-templates/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsPartialUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesPartialUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6431,33 +6539,33 @@ func (a *Client) DcimLocationsPartialUpdate(params *DcimLocationsPartialUpdatePa if err != nil { return nil, err } - success, ok := result.(*DcimLocationsPartialUpdateOK) + success, ok := result.(*DcimInventoryItemTemplatesPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsRead dcim locations read API + DcimInventoryItemTemplatesRead dcim inventory item templates read API */ -func (a *Client) DcimLocationsRead(params *DcimLocationsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsReadOK, error) { +func (a *Client) DcimInventoryItemTemplatesRead(params *DcimInventoryItemTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesReadOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsReadParams() + params = NewDcimInventoryItemTemplatesReadParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_read", + ID: "dcim_inventory-item-templates_read", Method: "GET", - PathPattern: "/dcim/locations/{id}/", + PathPattern: "/dcim/inventory-item-templates/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsReadReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesReadReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6470,33 +6578,33 @@ func (a *Client) DcimLocationsRead(params *DcimLocationsReadParams, authInfo run if err != nil { return nil, err } - success, ok := result.(*DcimLocationsReadOK) + success, ok := result.(*DcimInventoryItemTemplatesReadOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimLocationsUpdate dcim locations update API + DcimInventoryItemTemplatesUpdate dcim inventory item templates update API */ -func (a *Client) DcimLocationsUpdate(params *DcimLocationsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsUpdateOK, error) { +func (a *Client) DcimInventoryItemTemplatesUpdate(params *DcimInventoryItemTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemTemplatesUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimLocationsUpdateParams() + params = NewDcimInventoryItemTemplatesUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_locations_update", + ID: "dcim_inventory-item-templates_update", Method: "PUT", - PathPattern: "/dcim/locations/{id}/", + PathPattern: "/dcim/inventory-item-templates/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimLocationsUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemTemplatesUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6509,33 +6617,33 @@ func (a *Client) DcimLocationsUpdate(params *DcimLocationsUpdateParams, authInfo if err != nil { return nil, err } - success, ok := result.(*DcimLocationsUpdateOK) + success, ok := result.(*DcimInventoryItemTemplatesUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_locations_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-item-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersBulkDelete dcim manufacturers bulk delete API + DcimInventoryItemsBulkDelete dcim inventory items bulk delete API */ -func (a *Client) DcimManufacturersBulkDelete(params *DcimManufacturersBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkDeleteNoContent, error) { +func (a *Client) DcimInventoryItemsBulkDelete(params *DcimInventoryItemsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkDeleteNoContent, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersBulkDeleteParams() + params = NewDcimInventoryItemsBulkDeleteParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_bulk_delete", + ID: "dcim_inventory-items_bulk_delete", Method: "DELETE", - PathPattern: "/dcim/manufacturers/", + PathPattern: "/dcim/inventory-items/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersBulkDeleteReader{formats: a.formats}, + Reader: &DcimInventoryItemsBulkDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6548,33 +6656,33 @@ func (a *Client) DcimManufacturersBulkDelete(params *DcimManufacturersBulkDelete if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersBulkDeleteNoContent) + success, ok := result.(*DcimInventoryItemsBulkDeleteNoContent) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersBulkPartialUpdate dcim manufacturers bulk partial update API + DcimInventoryItemsBulkPartialUpdate dcim inventory items bulk partial update API */ -func (a *Client) DcimManufacturersBulkPartialUpdate(params *DcimManufacturersBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkPartialUpdateOK, error) { +func (a *Client) DcimInventoryItemsBulkPartialUpdate(params *DcimInventoryItemsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersBulkPartialUpdateParams() + params = NewDcimInventoryItemsBulkPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_bulk_partial_update", + ID: "dcim_inventory-items_bulk_partial_update", Method: "PATCH", - PathPattern: "/dcim/manufacturers/", + PathPattern: "/dcim/inventory-items/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersBulkPartialUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemsBulkPartialUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6587,33 +6695,33 @@ func (a *Client) DcimManufacturersBulkPartialUpdate(params *DcimManufacturersBul if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersBulkPartialUpdateOK) + success, ok := result.(*DcimInventoryItemsBulkPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersBulkUpdate dcim manufacturers bulk update API + DcimInventoryItemsBulkUpdate dcim inventory items bulk update API */ -func (a *Client) DcimManufacturersBulkUpdate(params *DcimManufacturersBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkUpdateOK, error) { +func (a *Client) DcimInventoryItemsBulkUpdate(params *DcimInventoryItemsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersBulkUpdateParams() + params = NewDcimInventoryItemsBulkUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_bulk_update", + ID: "dcim_inventory-items_bulk_update", Method: "PUT", - PathPattern: "/dcim/manufacturers/", + PathPattern: "/dcim/inventory-items/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersBulkUpdateReader{formats: a.formats}, + Reader: &DcimInventoryItemsBulkUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6626,28 +6734,730 @@ func (a *Client) DcimManufacturersBulkUpdate(params *DcimManufacturersBulkUpdate if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersBulkUpdateOK) + success, ok := result.(*DcimInventoryItemsBulkUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersCreate dcim manufacturers create API + DcimInventoryItemsCreate dcim inventory items create API */ -func (a *Client) DcimManufacturersCreate(params *DcimManufacturersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersCreateCreated, error) { +func (a *Client) DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsCreateCreated, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersCreateParams() + params = NewDcimInventoryItemsCreateParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_create", + ID: "dcim_inventory-items_create", Method: "POST", - PathPattern: "/dcim/manufacturers/", + PathPattern: "/dcim/inventory-items/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimInventoryItemsCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimInventoryItemsCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimInventoryItemsDelete dcim inventory items delete API +*/ +func (a *Client) DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimInventoryItemsDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_inventory-items_delete", + Method: "DELETE", + PathPattern: "/dcim/inventory-items/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimInventoryItemsDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimInventoryItemsDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimInventoryItemsList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimInventoryItemsList(params *DcimInventoryItemsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimInventoryItemsListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_inventory-items_list", + Method: "GET", + PathPattern: "/dcim/inventory-items/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimInventoryItemsListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimInventoryItemsListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimInventoryItemsPartialUpdate dcim inventory items partial update API +*/ +func (a *Client) DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimInventoryItemsPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_inventory-items_partial_update", + Method: "PATCH", + PathPattern: "/dcim/inventory-items/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimInventoryItemsPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimInventoryItemsPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimInventoryItemsRead dcim inventory items read API +*/ +func (a *Client) DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimInventoryItemsReadParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_inventory-items_read", + Method: "GET", + PathPattern: "/dcim/inventory-items/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimInventoryItemsReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimInventoryItemsReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimInventoryItemsUpdate dcim inventory items update API +*/ +func (a *Client) DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimInventoryItemsUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_inventory-items_update", + Method: "PUT", + PathPattern: "/dcim/inventory-items/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimInventoryItemsUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimInventoryItemsUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsBulkDelete dcim locations bulk delete API +*/ +func (a *Client) DcimLocationsBulkDelete(params *DcimLocationsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_bulk_delete", + Method: "DELETE", + PathPattern: "/dcim/locations/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsBulkPartialUpdate dcim locations bulk partial update API +*/ +func (a *Client) DcimLocationsBulkPartialUpdate(params *DcimLocationsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/locations/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsBulkUpdate dcim locations bulk update API +*/ +func (a *Client) DcimLocationsBulkUpdate(params *DcimLocationsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_bulk_update", + Method: "PUT", + PathPattern: "/dcim/locations/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsCreate dcim locations create API +*/ +func (a *Client) DcimLocationsCreate(params *DcimLocationsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_create", + Method: "POST", + PathPattern: "/dcim/locations/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsDelete dcim locations delete API +*/ +func (a *Client) DcimLocationsDelete(params *DcimLocationsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_delete", + Method: "DELETE", + PathPattern: "/dcim/locations/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimLocationsList(params *DcimLocationsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_list", + Method: "GET", + PathPattern: "/dcim/locations/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsPartialUpdate dcim locations partial update API +*/ +func (a *Client) DcimLocationsPartialUpdate(params *DcimLocationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_partial_update", + Method: "PATCH", + PathPattern: "/dcim/locations/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsRead dcim locations read API +*/ +func (a *Client) DcimLocationsRead(params *DcimLocationsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsReadParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_read", + Method: "GET", + PathPattern: "/dcim/locations/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimLocationsUpdate dcim locations update API +*/ +func (a *Client) DcimLocationsUpdate(params *DcimLocationsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimLocationsUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_locations_update", + Method: "PUT", + PathPattern: "/dcim/locations/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimLocationsUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimLocationsUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_locations_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersBulkDelete dcim manufacturers bulk delete API +*/ +func (a *Client) DcimManufacturersBulkDelete(params *DcimManufacturersBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_bulk_delete", + Method: "DELETE", + PathPattern: "/dcim/manufacturers/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersBulkPartialUpdate dcim manufacturers bulk partial update API +*/ +func (a *Client) DcimManufacturersBulkPartialUpdate(params *DcimManufacturersBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/manufacturers/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersBulkUpdate dcim manufacturers bulk update API +*/ +func (a *Client) DcimManufacturersBulkUpdate(params *DcimManufacturersBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_bulk_update", + Method: "PUT", + PathPattern: "/dcim/manufacturers/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersCreate dcim manufacturers create API +*/ +func (a *Client) DcimManufacturersCreate(params *DcimManufacturersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_create", + Method: "POST", + PathPattern: "/dcim/manufacturers/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, @@ -6665,33 +7475,1281 @@ func (a *Client) DcimManufacturersCreate(params *DcimManufacturersCreateParams, if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersCreateCreated) + success, ok := result.(*DcimManufacturersCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersDelete dcim manufacturers delete API +*/ +func (a *Client) DcimManufacturersDelete(params *DcimManufacturersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_delete", + Method: "DELETE", + PathPattern: "/dcim/manufacturers/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimManufacturersList(params *DcimManufacturersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_list", + Method: "GET", + PathPattern: "/dcim/manufacturers/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersPartialUpdate dcim manufacturers partial update API +*/ +func (a *Client) DcimManufacturersPartialUpdate(params *DcimManufacturersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_partial_update", + Method: "PATCH", + PathPattern: "/dcim/manufacturers/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersRead dcim manufacturers read API +*/ +func (a *Client) DcimManufacturersRead(params *DcimManufacturersReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersReadParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_read", + Method: "GET", + PathPattern: "/dcim/manufacturers/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimManufacturersUpdate dcim manufacturers update API +*/ +func (a *Client) DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimManufacturersUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_manufacturers_update", + Method: "PUT", + PathPattern: "/dcim/manufacturers/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimManufacturersUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimManufacturersUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesBulkDelete dcim module bay templates bulk delete API +*/ +func (a *Client) DcimModuleBayTemplatesBulkDelete(params *DcimModuleBayTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_bulk_delete", + Method: "DELETE", + PathPattern: "/dcim/module-bay-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesBulkPartialUpdate dcim module bay templates bulk partial update API +*/ +func (a *Client) DcimModuleBayTemplatesBulkPartialUpdate(params *DcimModuleBayTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/module-bay-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesBulkUpdate dcim module bay templates bulk update API +*/ +func (a *Client) DcimModuleBayTemplatesBulkUpdate(params *DcimModuleBayTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_bulk_update", + Method: "PUT", + PathPattern: "/dcim/module-bay-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesCreate dcim module bay templates create API +*/ +func (a *Client) DcimModuleBayTemplatesCreate(params *DcimModuleBayTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_create", + Method: "POST", + PathPattern: "/dcim/module-bay-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesDelete dcim module bay templates delete API +*/ +func (a *Client) DcimModuleBayTemplatesDelete(params *DcimModuleBayTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_delete", + Method: "DELETE", + PathPattern: "/dcim/module-bay-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimModuleBayTemplatesList(params *DcimModuleBayTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_list", + Method: "GET", + PathPattern: "/dcim/module-bay-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesPartialUpdate dcim module bay templates partial update API +*/ +func (a *Client) DcimModuleBayTemplatesPartialUpdate(params *DcimModuleBayTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_partial_update", + Method: "PATCH", + PathPattern: "/dcim/module-bay-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesRead dcim module bay templates read API +*/ +func (a *Client) DcimModuleBayTemplatesRead(params *DcimModuleBayTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesReadParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_read", + Method: "GET", + PathPattern: "/dcim/module-bay-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBayTemplatesUpdate dcim module bay templates update API +*/ +func (a *Client) DcimModuleBayTemplatesUpdate(params *DcimModuleBayTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBayTemplatesUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBayTemplatesUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bay-templates_update", + Method: "PUT", + PathPattern: "/dcim/module-bay-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBayTemplatesUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBayTemplatesUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bay-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysBulkDelete dcim module bays bulk delete API +*/ +func (a *Client) DcimModuleBaysBulkDelete(params *DcimModuleBaysBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_bulk_delete", + Method: "DELETE", + PathPattern: "/dcim/module-bays/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysBulkPartialUpdate dcim module bays bulk partial update API +*/ +func (a *Client) DcimModuleBaysBulkPartialUpdate(params *DcimModuleBaysBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/module-bays/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysBulkUpdate dcim module bays bulk update API +*/ +func (a *Client) DcimModuleBaysBulkUpdate(params *DcimModuleBaysBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_bulk_update", + Method: "PUT", + PathPattern: "/dcim/module-bays/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysCreate dcim module bays create API +*/ +func (a *Client) DcimModuleBaysCreate(params *DcimModuleBaysCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_create", + Method: "POST", + PathPattern: "/dcim/module-bays/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysDelete dcim module bays delete API +*/ +func (a *Client) DcimModuleBaysDelete(params *DcimModuleBaysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_delete", + Method: "DELETE", + PathPattern: "/dcim/module-bays/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimModuleBaysList(params *DcimModuleBaysListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_list", + Method: "GET", + PathPattern: "/dcim/module-bays/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysPartialUpdate dcim module bays partial update API +*/ +func (a *Client) DcimModuleBaysPartialUpdate(params *DcimModuleBaysPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_partial_update", + Method: "PATCH", + PathPattern: "/dcim/module-bays/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysRead dcim module bays read API +*/ +func (a *Client) DcimModuleBaysRead(params *DcimModuleBaysReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysReadParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_read", + Method: "GET", + PathPattern: "/dcim/module-bays/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleBaysUpdate dcim module bays update API +*/ +func (a *Client) DcimModuleBaysUpdate(params *DcimModuleBaysUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleBaysUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleBaysUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-bays_update", + Method: "PUT", + PathPattern: "/dcim/module-bays/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleBaysUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleBaysUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-bays_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesBulkDelete dcim module types bulk delete API +*/ +func (a *Client) DcimModuleTypesBulkDelete(params *DcimModuleTypesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_bulk_delete", + Method: "DELETE", + PathPattern: "/dcim/module-types/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesBulkPartialUpdate dcim module types bulk partial update API +*/ +func (a *Client) DcimModuleTypesBulkPartialUpdate(params *DcimModuleTypesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/module-types/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesBulkUpdate dcim module types bulk update API +*/ +func (a *Client) DcimModuleTypesBulkUpdate(params *DcimModuleTypesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_bulk_update", + Method: "PUT", + PathPattern: "/dcim/module-types/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesCreate dcim module types create API +*/ +func (a *Client) DcimModuleTypesCreate(params *DcimModuleTypesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_create", + Method: "POST", + PathPattern: "/dcim/module-types/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesDelete dcim module types delete API +*/ +func (a *Client) DcimModuleTypesDelete(params *DcimModuleTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_delete", + Method: "DELETE", + PathPattern: "/dcim/module-types/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimModuleTypesList(params *DcimModuleTypesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_list", + Method: "GET", + PathPattern: "/dcim/module-types/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesPartialUpdate dcim module types partial update API +*/ +func (a *Client) DcimModuleTypesPartialUpdate(params *DcimModuleTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_partial_update", + Method: "PATCH", + PathPattern: "/dcim/module-types/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_module-types_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersDelete dcim manufacturers delete API + DcimModuleTypesRead dcim module types read API */ -func (a *Client) DcimManufacturersDelete(params *DcimManufacturersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersDeleteNoContent, error) { +func (a *Client) DcimModuleTypesRead(params *DcimModuleTypesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesReadOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersDeleteParams() + params = NewDcimModuleTypesReadParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_delete", + ID: "dcim_module-types_read", + Method: "GET", + PathPattern: "/dcim/module-types/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModuleTypesUpdate dcim module types update API +*/ +func (a *Client) DcimModuleTypesUpdate(params *DcimModuleTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModuleTypesUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModuleTypesUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_module-types_update", + Method: "PUT", + PathPattern: "/dcim/module-types/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModuleTypesUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModuleTypesUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_module-types_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModulesBulkDelete dcim modules bulk delete API +*/ +func (a *Client) DcimModulesBulkDelete(params *DcimModulesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModulesBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_modules_bulk_delete", Method: "DELETE", - PathPattern: "/dcim/manufacturers/{id}/", + PathPattern: "/dcim/modules/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersDeleteReader{formats: a.formats}, + Reader: &DcimModulesBulkDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6704,33 +8762,189 @@ func (a *Client) DcimManufacturersDelete(params *DcimManufacturersDeleteParams, if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersDeleteNoContent) + success, ok := result.(*DcimModulesBulkDeleteNoContent) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_modules_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersList Overrides ListModelMixin to allow processing ExportTemplates. + DcimModulesBulkPartialUpdate dcim modules bulk partial update API */ -func (a *Client) DcimManufacturersList(params *DcimManufacturersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersListOK, error) { +func (a *Client) DcimModulesBulkPartialUpdate(params *DcimModulesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesBulkPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersListParams() + params = NewDcimModulesBulkPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_list", + ID: "dcim_modules_bulk_partial_update", + Method: "PATCH", + PathPattern: "/dcim/modules/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModulesBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModulesBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_modules_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModulesBulkUpdate dcim modules bulk update API +*/ +func (a *Client) DcimModulesBulkUpdate(params *DcimModulesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModulesBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_modules_bulk_update", + Method: "PUT", + PathPattern: "/dcim/modules/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModulesBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModulesBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_modules_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModulesCreate dcim modules create API +*/ +func (a *Client) DcimModulesCreate(params *DcimModulesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModulesCreateParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_modules_create", + Method: "POST", + PathPattern: "/dcim/modules/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModulesCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModulesCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_modules_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModulesDelete dcim modules delete API +*/ +func (a *Client) DcimModulesDelete(params *DcimModulesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModulesDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_modules_delete", + Method: "DELETE", + PathPattern: "/dcim/modules/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DcimModulesDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DcimModulesDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for dcim_modules_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + DcimModulesList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) DcimModulesList(params *DcimModulesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDcimModulesListParams() + } + op := &runtime.ClientOperation{ + ID: "dcim_modules_list", Method: "GET", - PathPattern: "/dcim/manufacturers/", + PathPattern: "/dcim/modules/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersListReader{formats: a.formats}, + Reader: &DcimModulesListReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6743,33 +8957,33 @@ func (a *Client) DcimManufacturersList(params *DcimManufacturersListParams, auth if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersListOK) + success, ok := result.(*DcimModulesListOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_modules_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersPartialUpdate dcim manufacturers partial update API + DcimModulesPartialUpdate dcim modules partial update API */ -func (a *Client) DcimManufacturersPartialUpdate(params *DcimManufacturersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersPartialUpdateOK, error) { +func (a *Client) DcimModulesPartialUpdate(params *DcimModulesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesPartialUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersPartialUpdateParams() + params = NewDcimModulesPartialUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_partial_update", + ID: "dcim_modules_partial_update", Method: "PATCH", - PathPattern: "/dcim/manufacturers/{id}/", + PathPattern: "/dcim/modules/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersPartialUpdateReader{formats: a.formats}, + Reader: &DcimModulesPartialUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6782,33 +8996,33 @@ func (a *Client) DcimManufacturersPartialUpdate(params *DcimManufacturersPartial if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersPartialUpdateOK) + success, ok := result.(*DcimModulesPartialUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_modules_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersRead dcim manufacturers read API + DcimModulesRead dcim modules read API */ -func (a *Client) DcimManufacturersRead(params *DcimManufacturersReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersReadOK, error) { +func (a *Client) DcimModulesRead(params *DcimModulesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesReadOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersReadParams() + params = NewDcimModulesReadParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_read", + ID: "dcim_modules_read", Method: "GET", - PathPattern: "/dcim/manufacturers/{id}/", + PathPattern: "/dcim/modules/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersReadReader{formats: a.formats}, + Reader: &DcimModulesReadReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6821,33 +9035,33 @@ func (a *Client) DcimManufacturersRead(params *DcimManufacturersReadParams, auth if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersReadOK) + success, ok := result.(*DcimModulesReadOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_modules_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - DcimManufacturersUpdate dcim manufacturers update API + DcimModulesUpdate dcim modules update API */ -func (a *Client) DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersUpdateOK, error) { +func (a *Client) DcimModulesUpdate(params *DcimModulesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimModulesUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewDcimManufacturersUpdateParams() + params = NewDcimModulesUpdateParams() } op := &runtime.ClientOperation{ - ID: "dcim_manufacturers_update", + ID: "dcim_modules_update", Method: "PUT", - PathPattern: "/dcim/manufacturers/{id}/", + PathPattern: "/dcim/modules/{id}/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &DcimManufacturersUpdateReader{formats: a.formats}, + Reader: &DcimModulesUpdateReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -6860,13 +9074,13 @@ func (a *Client) DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, if err != nil { return nil, err } - success, ok := result.(*DcimManufacturersUpdateOK) + success, ok := result.(*DcimModulesUpdateOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for dcim_modules_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go index 946b97ace..51613d635 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go @@ -123,12 +123,15 @@ type DcimConsolePortTemplatesListParams struct { */ Limit *int64 + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -389,6 +392,28 @@ func (o *DcimConsolePortTemplatesListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithModuletypeID adds the moduletypeID to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimConsolePortTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimConsolePortTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim console port templates list params func (o *DcimConsolePortTemplatesListParams) WithName(name *string) *DcimConsolePortTemplatesListParams { o.SetName(name) @@ -400,17 +425,6 @@ func (o *DcimConsolePortTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim console port templates list params -func (o *DcimConsolePortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimConsolePortTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim console port templates list params -func (o *DcimConsolePortTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim console port templates list params func (o *DcimConsolePortTemplatesListParams) WithNameIc(nameIc *string) *DcimConsolePortTemplatesListParams { o.SetNameIc(nameIc) @@ -817,35 +831,52 @@ func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequ } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { + + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go index b9fcdddcb..1218d4d10 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go @@ -93,9 +93,6 @@ type DcimConsolePortsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -156,9 +153,6 @@ type DcimConsolePortsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -213,12 +207,15 @@ type DcimConsolePortsListParams struct { // LocationIDn. LocationIDn *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -434,17 +431,6 @@ func (o *DcimConsolePortsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim console ports list params -func (o *DcimConsolePortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimConsolePortsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim console ports list params -func (o *DcimConsolePortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim console ports list params func (o *DcimConsolePortsListParams) WithDescriptionIc(descriptionIc *string) *DcimConsolePortsListParams { o.SetDescriptionIc(descriptionIc) @@ -665,17 +651,6 @@ func (o *DcimConsolePortsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim console ports list params -func (o *DcimConsolePortsListParams) WithLabelEmpty(labelEmpty *string) *DcimConsolePortsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim console ports list params -func (o *DcimConsolePortsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim console ports list params func (o *DcimConsolePortsListParams) WithLabelIc(labelIc *string) *DcimConsolePortsListParams { o.SetLabelIc(labelIc) @@ -863,6 +838,28 @@ func (o *DcimConsolePortsListParams) SetLocationIDn(locationIDn *string) { o.LocationIDn = locationIDn } +// WithModuleID adds the moduleID to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithModuleID(moduleID *string) *DcimConsolePortsListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithModuleIDn(moduleIDn *string) *DcimConsolePortsListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithName adds the name to the dcim console ports list params func (o *DcimConsolePortsListParams) WithName(name *string) *DcimConsolePortsListParams { o.SetName(name) @@ -874,17 +871,6 @@ func (o *DcimConsolePortsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim console ports list params -func (o *DcimConsolePortsListParams) WithNameEmpty(nameEmpty *string) *DcimConsolePortsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim console ports list params -func (o *DcimConsolePortsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim console ports list params func (o *DcimConsolePortsListParams) WithNameIc(nameIc *string) *DcimConsolePortsListParams { o.SetNameIc(nameIc) @@ -1336,23 +1322,6 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1693,23 +1662,6 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -1999,35 +1951,52 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.Name != nil { + if o.ModuleID != nil { - // query param name - var qrName string + // query param module_id + var qrModuleID string - if o.Name != nil { - qrName = *o.Name + if o.ModuleID != nil { + qrModuleID = *o.ModuleID } - qName := qrName - if qName != "" { + qModuleID := qrModuleID + if qModuleID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go index dffada57f..2274b61e7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go @@ -123,12 +123,15 @@ type DcimConsoleServerPortTemplatesListParams struct { */ Limit *int64 + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -389,6 +392,28 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithModuletypeID adds the moduletypeID to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimConsoleServerPortTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimConsoleServerPortTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim console server port templates list params func (o *DcimConsoleServerPortTemplatesListParams) WithName(name *string) *DcimConsoleServerPortTemplatesListParams { o.SetName(name) @@ -400,17 +425,6 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim console server port templates list params -func (o *DcimConsoleServerPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimConsoleServerPortTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim console server port templates list params -func (o *DcimConsoleServerPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim console server port templates list params func (o *DcimConsoleServerPortTemplatesListParams) WithNameIc(nameIc *string) *DcimConsoleServerPortTemplatesListParams { o.SetNameIc(nameIc) @@ -817,35 +831,52 @@ func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.Clie } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { + + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go index 516919ff6..147f7bcb0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go @@ -93,9 +93,6 @@ type DcimConsoleServerPortsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -156,9 +153,6 @@ type DcimConsoleServerPortsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -213,12 +207,15 @@ type DcimConsoleServerPortsListParams struct { // LocationIDn. LocationIDn *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -434,17 +431,6 @@ func (o *DcimConsoleServerPortsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim console server ports list params -func (o *DcimConsoleServerPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimConsoleServerPortsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim console server ports list params -func (o *DcimConsoleServerPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimConsoleServerPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -665,17 +651,6 @@ func (o *DcimConsoleServerPortsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim console server ports list params -func (o *DcimConsoleServerPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimConsoleServerPortsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim console server ports list params -func (o *DcimConsoleServerPortsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithLabelIc(labelIc *string) *DcimConsoleServerPortsListParams { o.SetLabelIc(labelIc) @@ -863,6 +838,28 @@ func (o *DcimConsoleServerPortsListParams) SetLocationIDn(locationIDn *string) { o.LocationIDn = locationIDn } +// WithModuleID adds the moduleID to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithModuleID(moduleID *string) *DcimConsoleServerPortsListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithModuleIDn(moduleIDn *string) *DcimConsoleServerPortsListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithName adds the name to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithName(name *string) *DcimConsoleServerPortsListParams { o.SetName(name) @@ -874,17 +871,6 @@ func (o *DcimConsoleServerPortsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim console server ports list params -func (o *DcimConsoleServerPortsListParams) WithNameEmpty(nameEmpty *string) *DcimConsoleServerPortsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim console server ports list params -func (o *DcimConsoleServerPortsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithNameIc(nameIc *string) *DcimConsoleServerPortsListParams { o.SetNameIc(nameIc) @@ -1336,23 +1322,6 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1693,23 +1662,6 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -1999,35 +1951,52 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } } - if o.Name != nil { + if o.ModuleID != nil { - // query param name - var qrName string + // query param module_id + var qrModuleID string - if o.Name != nil { - qrName = *o.Name + if o.ModuleID != nil { + qrModuleID = *o.ModuleID } - qName := qrName - if qName != "" { + qModuleID := qrModuleID + if qModuleID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go index cdf83cf63..1d6a85187 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go @@ -126,9 +126,6 @@ type DcimDeviceBayTemplatesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -394,17 +391,6 @@ func (o *DcimDeviceBayTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim device bay templates list params -func (o *DcimDeviceBayTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceBayTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim device bay templates list params -func (o *DcimDeviceBayTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim device bay templates list params func (o *DcimDeviceBayTemplatesListParams) WithNameIc(nameIc *string) *DcimDeviceBayTemplatesListParams { o.SetNameIc(nameIc) @@ -806,23 +792,6 @@ func (o *DcimDeviceBayTemplatesListParams) WriteToRequest(r runtime.ClientReques } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go index b857d7b28..8932f8785 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go @@ -87,9 +87,6 @@ type DcimDeviceBaysListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -150,9 +147,6 @@ type DcimDeviceBaysListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -210,9 +204,6 @@ type DcimDeviceBaysListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -400,17 +391,6 @@ func (o *DcimDeviceBaysListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim device bays list params -func (o *DcimDeviceBaysListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimDeviceBaysListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim device bays list params -func (o *DcimDeviceBaysListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithDescriptionIc(descriptionIc *string) *DcimDeviceBaysListParams { o.SetDescriptionIc(descriptionIc) @@ -631,17 +611,6 @@ func (o *DcimDeviceBaysListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim device bays list params -func (o *DcimDeviceBaysListParams) WithLabelEmpty(labelEmpty *string) *DcimDeviceBaysListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim device bays list params -func (o *DcimDeviceBaysListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithLabelIc(labelIc *string) *DcimDeviceBaysListParams { o.SetLabelIc(labelIc) @@ -840,17 +809,6 @@ func (o *DcimDeviceBaysListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim device bays list params -func (o *DcimDeviceBaysListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceBaysListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim device bays list params -func (o *DcimDeviceBaysListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithNameIc(nameIc *string) *DcimDeviceBaysListParams { o.SetNameIc(nameIc) @@ -1246,23 +1204,6 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1603,23 +1544,6 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -1926,23 +1850,6 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go index b41627142..5d2f66c2f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go @@ -78,9 +78,6 @@ type DcimDeviceRolesListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -120,9 +117,6 @@ type DcimDeviceRolesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -186,9 +180,6 @@ type DcimDeviceRolesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -228,9 +219,6 @@ type DcimDeviceRolesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -331,17 +319,6 @@ func (o *DcimDeviceRolesListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) WithColorEmpty(colorEmpty *string) *DcimDeviceRolesListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithColorIc(colorIc *string) *DcimDeviceRolesListParams { o.SetColorIc(colorIc) @@ -485,17 +462,6 @@ func (o *DcimDeviceRolesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimDeviceRolesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithDescriptionIc(descriptionIc *string) *DcimDeviceRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -716,17 +682,6 @@ func (o *DcimDeviceRolesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) WithNameEmpty(nameEmpty *string) *DcimDeviceRolesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithNameIc(nameIc *string) *DcimDeviceRolesListParams { o.SetNameIc(nameIc) @@ -859,17 +814,6 @@ func (o *DcimDeviceRolesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimDeviceRolesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim device roles list params -func (o *DcimDeviceRolesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithSlugIc(slugIc *string) *DcimDeviceRolesListParams { o.SetSlugIc(slugIc) @@ -1027,23 +971,6 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1265,23 +1192,6 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1622,23 +1532,6 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1843,23 +1736,6 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go index 70f044f14..2754fe16b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go @@ -120,6 +120,9 @@ type DcimDeviceTypesListParams struct { // Interfaces. Interfaces *string + // InventoryItems. + InventoryItems *string + // IsFullDepth. IsFullDepth *string @@ -153,9 +156,6 @@ type DcimDeviceTypesListParams struct { // Model. Model *string - // ModelEmpty. - ModelEmpty *string - // ModelIc. ModelIc *string @@ -183,6 +183,9 @@ type DcimDeviceTypesListParams struct { // ModelNisw. ModelNisw *string + // ModuleBays. + ModuleBays *string + /* Offset. The initial index from which to return the results. @@ -192,9 +195,6 @@ type DcimDeviceTypesListParams struct { // PartNumber. PartNumber *string - // PartNumberEmpty. - PartNumberEmpty *string - // PartNumberIc. PartNumberIc *string @@ -237,9 +237,6 @@ type DcimDeviceTypesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -515,6 +512,17 @@ func (o *DcimDeviceTypesListParams) SetInterfaces(interfaces *string) { o.Interfaces = interfaces } +// WithInventoryItems adds the inventoryItems to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithInventoryItems(inventoryItems *string) *DcimDeviceTypesListParams { + o.SetInventoryItems(inventoryItems) + return o +} + +// SetInventoryItems adds the inventoryItems to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetInventoryItems(inventoryItems *string) { + o.InventoryItems = inventoryItems +} + // WithIsFullDepth adds the isFullDepth to the dcim device types list params func (o *DcimDeviceTypesListParams) WithIsFullDepth(isFullDepth *string) *DcimDeviceTypesListParams { o.SetIsFullDepth(isFullDepth) @@ -625,17 +633,6 @@ func (o *DcimDeviceTypesListParams) SetModel(model *string) { o.Model = model } -// WithModelEmpty adds the modelEmpty to the dcim device types list params -func (o *DcimDeviceTypesListParams) WithModelEmpty(modelEmpty *string) *DcimDeviceTypesListParams { - o.SetModelEmpty(modelEmpty) - return o -} - -// SetModelEmpty adds the modelEmpty to the dcim device types list params -func (o *DcimDeviceTypesListParams) SetModelEmpty(modelEmpty *string) { - o.ModelEmpty = modelEmpty -} - // WithModelIc adds the modelIc to the dcim device types list params func (o *DcimDeviceTypesListParams) WithModelIc(modelIc *string) *DcimDeviceTypesListParams { o.SetModelIc(modelIc) @@ -735,6 +732,17 @@ func (o *DcimDeviceTypesListParams) SetModelNisw(modelNisw *string) { o.ModelNisw = modelNisw } +// WithModuleBays adds the moduleBays to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModuleBays(moduleBays *string) *DcimDeviceTypesListParams { + o.SetModuleBays(moduleBays) + return o +} + +// SetModuleBays adds the moduleBays to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModuleBays(moduleBays *string) { + o.ModuleBays = moduleBays +} + // WithOffset adds the offset to the dcim device types list params func (o *DcimDeviceTypesListParams) WithOffset(offset *int64) *DcimDeviceTypesListParams { o.SetOffset(offset) @@ -757,17 +765,6 @@ func (o *DcimDeviceTypesListParams) SetPartNumber(partNumber *string) { o.PartNumber = partNumber } -// WithPartNumberEmpty adds the partNumberEmpty to the dcim device types list params -func (o *DcimDeviceTypesListParams) WithPartNumberEmpty(partNumberEmpty *string) *DcimDeviceTypesListParams { - o.SetPartNumberEmpty(partNumberEmpty) - return o -} - -// SetPartNumberEmpty adds the partNumberEmpty to the dcim device types list params -func (o *DcimDeviceTypesListParams) SetPartNumberEmpty(partNumberEmpty *string) { - o.PartNumberEmpty = partNumberEmpty -} - // WithPartNumberIc adds the partNumberIc to the dcim device types list params func (o *DcimDeviceTypesListParams) WithPartNumberIc(partNumberIc *string) *DcimDeviceTypesListParams { o.SetPartNumberIc(partNumberIc) @@ -922,17 +919,6 @@ func (o *DcimDeviceTypesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim device types list params -func (o *DcimDeviceTypesListParams) WithSlugEmpty(slugEmpty *string) *DcimDeviceTypesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim device types list params -func (o *DcimDeviceTypesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim device types list params func (o *DcimDeviceTypesListParams) WithSlugIc(slugIc *string) *DcimDeviceTypesListParams { o.SetSlugIc(slugIc) @@ -1405,6 +1391,23 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.InventoryItems != nil { + + // query param inventory_items + var qrInventoryItems string + + if o.InventoryItems != nil { + qrInventoryItems = *o.InventoryItems + } + qInventoryItems := qrInventoryItems + if qInventoryItems != "" { + + if err := r.SetQueryParam("inventory_items", qInventoryItems); err != nil { + return err + } + } + } + if o.IsFullDepth != nil { // query param is_full_depth @@ -1575,23 +1578,6 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.ModelEmpty != nil { - - // query param model__empty - var qrModelEmpty string - - if o.ModelEmpty != nil { - qrModelEmpty = *o.ModelEmpty - } - qModelEmpty := qrModelEmpty - if qModelEmpty != "" { - - if err := r.SetQueryParam("model__empty", qModelEmpty); err != nil { - return err - } - } - } - if o.ModelIc != nil { // query param model__ic @@ -1745,6 +1731,23 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.ModuleBays != nil { + + // query param module_bays + var qrModuleBays string + + if o.ModuleBays != nil { + qrModuleBays = *o.ModuleBays + } + qModuleBays := qrModuleBays + if qModuleBays != "" { + + if err := r.SetQueryParam("module_bays", qModuleBays); err != nil { + return err + } + } + } + if o.Offset != nil { // query param offset @@ -1779,23 +1782,6 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.PartNumberEmpty != nil { - - // query param part_number__empty - var qrPartNumberEmpty string - - if o.PartNumberEmpty != nil { - qrPartNumberEmpty = *o.PartNumberEmpty - } - qPartNumberEmpty := qrPartNumberEmpty - if qPartNumberEmpty != "" { - - if err := r.SetQueryParam("part_number__empty", qPartNumberEmpty); err != nil { - return err - } - } - } - if o.PartNumberIc != nil { // query param part_number__ic @@ -2034,23 +2020,6 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go index b81ce4d96..d9dc41b5b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go @@ -84,9 +84,6 @@ type DcimDevicesListParams struct { // AssetTag. AssetTag *string - // AssetTagEmpty. - AssetTagEmpty *string - // AssetTagIc. AssetTagIc *string @@ -132,6 +129,12 @@ type DcimDevicesListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -261,12 +264,12 @@ type DcimDevicesListParams struct { // Modeln. Modeln *string + // ModuleBays. + ModuleBays *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -381,6 +384,33 @@ type DcimDevicesListParams struct { // Serial. Serial *string + // SerialIc. + SerialIc *string + + // SerialIe. + SerialIe *string + + // SerialIew. + SerialIew *string + + // SerialIsw. + SerialIsw *string + + // Serialn. + Serialn *string + + // SerialNic. + SerialNic *string + + // SerialNie. + SerialNie *string + + // SerialNiew. + SerialNiew *string + + // SerialNisw. + SerialNisw *string + // Site. Site *string @@ -572,17 +602,6 @@ func (o *DcimDevicesListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } -// WithAssetTagEmpty adds the assetTagEmpty to the dcim devices list params -func (o *DcimDevicesListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimDevicesListParams { - o.SetAssetTagEmpty(assetTagEmpty) - return o -} - -// SetAssetTagEmpty adds the assetTagEmpty to the dcim devices list params -func (o *DcimDevicesListParams) SetAssetTagEmpty(assetTagEmpty *string) { - o.AssetTagEmpty = assetTagEmpty -} - // WithAssetTagIc adds the assetTagIc to the dcim devices list params func (o *DcimDevicesListParams) WithAssetTagIc(assetTagIc *string) *DcimDevicesListParams { o.SetAssetTagIc(assetTagIc) @@ -748,6 +767,28 @@ func (o *DcimDevicesListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim devices list params +func (o *DcimDevicesListParams) WithContactGroup(contactGroup *string) *DcimDevicesListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim devices list params +func (o *DcimDevicesListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim devices list params +func (o *DcimDevicesListParams) WithContactGroupn(contactGroupn *string) *DcimDevicesListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim devices list params +func (o *DcimDevicesListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim devices list params func (o *DcimDevicesListParams) WithContactRole(contactRole *string) *DcimDevicesListParams { o.SetContactRole(contactRole) @@ -1210,6 +1251,17 @@ func (o *DcimDevicesListParams) SetModeln(modeln *string) { o.Modeln = modeln } +// WithModuleBays adds the moduleBays to the dcim devices list params +func (o *DcimDevicesListParams) WithModuleBays(moduleBays *string) *DcimDevicesListParams { + o.SetModuleBays(moduleBays) + return o +} + +// SetModuleBays adds the moduleBays to the dcim devices list params +func (o *DcimDevicesListParams) SetModuleBays(moduleBays *string) { + o.ModuleBays = moduleBays +} + // WithName adds the name to the dcim devices list params func (o *DcimDevicesListParams) WithName(name *string) *DcimDevicesListParams { o.SetName(name) @@ -1221,17 +1273,6 @@ func (o *DcimDevicesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim devices list params -func (o *DcimDevicesListParams) WithNameEmpty(nameEmpty *string) *DcimDevicesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim devices list params -func (o *DcimDevicesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim devices list params func (o *DcimDevicesListParams) WithNameIc(nameIc *string) *DcimDevicesListParams { o.SetNameIc(nameIc) @@ -1639,6 +1680,105 @@ func (o *DcimDevicesListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialIc adds the serialIc to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialIc(serialIc *string) *DcimDevicesListParams { + o.SetSerialIc(serialIc) + return o +} + +// SetSerialIc adds the serialIc to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialIc(serialIc *string) { + o.SerialIc = serialIc +} + +// WithSerialIe adds the serialIe to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialIe(serialIe *string) *DcimDevicesListParams { + o.SetSerialIe(serialIe) + return o +} + +// SetSerialIe adds the serialIe to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialIe(serialIe *string) { + o.SerialIe = serialIe +} + +// WithSerialIew adds the serialIew to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialIew(serialIew *string) *DcimDevicesListParams { + o.SetSerialIew(serialIew) + return o +} + +// SetSerialIew adds the serialIew to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialIew(serialIew *string) { + o.SerialIew = serialIew +} + +// WithSerialIsw adds the serialIsw to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialIsw(serialIsw *string) *DcimDevicesListParams { + o.SetSerialIsw(serialIsw) + return o +} + +// SetSerialIsw adds the serialIsw to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialIsw(serialIsw *string) { + o.SerialIsw = serialIsw +} + +// WithSerialn adds the serialn to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialn(serialn *string) *DcimDevicesListParams { + o.SetSerialn(serialn) + return o +} + +// SetSerialn adds the serialN to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialn(serialn *string) { + o.Serialn = serialn +} + +// WithSerialNic adds the serialNic to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialNic(serialNic *string) *DcimDevicesListParams { + o.SetSerialNic(serialNic) + return o +} + +// SetSerialNic adds the serialNic to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialNic(serialNic *string) { + o.SerialNic = serialNic +} + +// WithSerialNie adds the serialNie to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialNie(serialNie *string) *DcimDevicesListParams { + o.SetSerialNie(serialNie) + return o +} + +// SetSerialNie adds the serialNie to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialNie(serialNie *string) { + o.SerialNie = serialNie +} + +// WithSerialNiew adds the serialNiew to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialNiew(serialNiew *string) *DcimDevicesListParams { + o.SetSerialNiew(serialNiew) + return o +} + +// SetSerialNiew adds the serialNiew to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialNiew(serialNiew *string) { + o.SerialNiew = serialNiew +} + +// WithSerialNisw adds the serialNisw to the dcim devices list params +func (o *DcimDevicesListParams) WithSerialNisw(serialNisw *string) *DcimDevicesListParams { + o.SetSerialNisw(serialNisw) + return o +} + +// SetSerialNisw adds the serialNisw to the dcim devices list params +func (o *DcimDevicesListParams) SetSerialNisw(serialNisw *string) { + o.SerialNisw = serialNisw +} + // WithSite adds the site to the dcim devices list params func (o *DcimDevicesListParams) WithSite(site *string) *DcimDevicesListParams { o.SetSite(site) @@ -2083,23 +2223,6 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } - if o.AssetTagEmpty != nil { - - // query param asset_tag__empty - var qrAssetTagEmpty string - - if o.AssetTagEmpty != nil { - qrAssetTagEmpty = *o.AssetTagEmpty - } - qAssetTagEmpty := qrAssetTagEmpty - if qAssetTagEmpty != "" { - - if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { - return err - } - } - } - if o.AssetTagIc != nil { // query param asset_tag__ic @@ -2355,6 +2478,40 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -3069,35 +3226,35 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } - if o.Name != nil { + if o.ModuleBays != nil { - // query param name - var qrName string + // query param module_bays + var qrModuleBays string - if o.Name != nil { - qrName = *o.Name + if o.ModuleBays != nil { + qrModuleBays = *o.ModuleBays } - qName := qrName - if qName != "" { + qModuleBays := qrModuleBays + if qModuleBays != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_bays", qModuleBays); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } @@ -3732,6 +3889,159 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.SerialIc != nil { + + // query param serial__ic + var qrSerialIc string + + if o.SerialIc != nil { + qrSerialIc = *o.SerialIc + } + qSerialIc := qrSerialIc + if qSerialIc != "" { + + if err := r.SetQueryParam("serial__ic", qSerialIc); err != nil { + return err + } + } + } + + if o.SerialIe != nil { + + // query param serial__ie + var qrSerialIe string + + if o.SerialIe != nil { + qrSerialIe = *o.SerialIe + } + qSerialIe := qrSerialIe + if qSerialIe != "" { + + if err := r.SetQueryParam("serial__ie", qSerialIe); err != nil { + return err + } + } + } + + if o.SerialIew != nil { + + // query param serial__iew + var qrSerialIew string + + if o.SerialIew != nil { + qrSerialIew = *o.SerialIew + } + qSerialIew := qrSerialIew + if qSerialIew != "" { + + if err := r.SetQueryParam("serial__iew", qSerialIew); err != nil { + return err + } + } + } + + if o.SerialIsw != nil { + + // query param serial__isw + var qrSerialIsw string + + if o.SerialIsw != nil { + qrSerialIsw = *o.SerialIsw + } + qSerialIsw := qrSerialIsw + if qSerialIsw != "" { + + if err := r.SetQueryParam("serial__isw", qSerialIsw); err != nil { + return err + } + } + } + + if o.Serialn != nil { + + // query param serial__n + var qrSerialn string + + if o.Serialn != nil { + qrSerialn = *o.Serialn + } + qSerialn := qrSerialn + if qSerialn != "" { + + if err := r.SetQueryParam("serial__n", qSerialn); err != nil { + return err + } + } + } + + if o.SerialNic != nil { + + // query param serial__nic + var qrSerialNic string + + if o.SerialNic != nil { + qrSerialNic = *o.SerialNic + } + qSerialNic := qrSerialNic + if qSerialNic != "" { + + if err := r.SetQueryParam("serial__nic", qSerialNic); err != nil { + return err + } + } + } + + if o.SerialNie != nil { + + // query param serial__nie + var qrSerialNie string + + if o.SerialNie != nil { + qrSerialNie = *o.SerialNie + } + qSerialNie := qrSerialNie + if qSerialNie != "" { + + if err := r.SetQueryParam("serial__nie", qSerialNie); err != nil { + return err + } + } + } + + if o.SerialNiew != nil { + + // query param serial__niew + var qrSerialNiew string + + if o.SerialNiew != nil { + qrSerialNiew = *o.SerialNiew + } + qSerialNiew := qrSerialNiew + if qSerialNiew != "" { + + if err := r.SetQueryParam("serial__niew", qSerialNiew); err != nil { + return err + } + } + } + + if o.SerialNisw != nil { + + // query param serial__nisw + var qrSerialNisw string + + if o.SerialNisw != nil { + qrSerialNisw = *o.SerialNisw + } + qSerialNisw := qrSerialNisw + if qSerialNisw != "" { + + if err := r.SetQueryParam("serial__nisw", qSerialNisw); err != nil { + return err + } + } + } + if o.Site != nil { // query param site diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go index adbc97db9..faaede44f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go @@ -78,9 +78,6 @@ type DcimFrontPortTemplatesListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -156,12 +153,15 @@ type DcimFrontPortTemplatesListParams struct { */ Limit *int64 + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -268,17 +268,6 @@ func (o *DcimFrontPortTemplatesListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the dcim front port templates list params -func (o *DcimFrontPortTemplatesListParams) WithColorEmpty(colorEmpty *string) *DcimFrontPortTemplatesListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the dcim front port templates list params -func (o *DcimFrontPortTemplatesListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithColorIc(colorIc *string) *DcimFrontPortTemplatesListParams { o.SetColorIc(colorIc) @@ -543,6 +532,28 @@ func (o *DcimFrontPortTemplatesListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithModuletypeID adds the moduletypeID to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimFrontPortTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimFrontPortTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithName(name *string) *DcimFrontPortTemplatesListParams { o.SetName(name) @@ -554,17 +565,6 @@ func (o *DcimFrontPortTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim front port templates list params -func (o *DcimFrontPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimFrontPortTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim front port templates list params -func (o *DcimFrontPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithNameIc(nameIc *string) *DcimFrontPortTemplatesListParams { o.SetNameIc(nameIc) @@ -733,23 +733,6 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1158,35 +1141,52 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go index e699bdef7..6cffd1b43 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go @@ -81,9 +81,6 @@ type DcimFrontPortsListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -123,9 +120,6 @@ type DcimFrontPortsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -186,9 +180,6 @@ type DcimFrontPortsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -243,12 +234,15 @@ type DcimFrontPortsListParams struct { // LocationIDn. LocationIDn *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -420,17 +414,6 @@ func (o *DcimFrontPortsListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) WithColorEmpty(colorEmpty *string) *DcimFrontPortsListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithColorIc(colorIc *string) *DcimFrontPortsListParams { o.SetColorIc(colorIc) @@ -574,17 +557,6 @@ func (o *DcimFrontPortsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimFrontPortsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimFrontPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -805,17 +777,6 @@ func (o *DcimFrontPortsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimFrontPortsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithLabelIc(labelIc *string) *DcimFrontPortsListParams { o.SetLabelIc(labelIc) @@ -1003,6 +964,28 @@ func (o *DcimFrontPortsListParams) SetLocationIDn(locationIDn *string) { o.LocationIDn = locationIDn } +// WithModuleID adds the moduleID to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithModuleID(moduleID *string) *DcimFrontPortsListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithModuleIDn(moduleIDn *string) *DcimFrontPortsListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithName adds the name to the dcim front ports list params func (o *DcimFrontPortsListParams) WithName(name *string) *DcimFrontPortsListParams { o.SetName(name) @@ -1014,17 +997,6 @@ func (o *DcimFrontPortsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) WithNameEmpty(nameEmpty *string) *DcimFrontPortsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim front ports list params -func (o *DcimFrontPortsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim front ports list params func (o *DcimFrontPortsListParams) WithNameIc(nameIc *string) *DcimFrontPortsListParams { o.SetNameIc(nameIc) @@ -1408,23 +1380,6 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1646,23 +1601,6 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -2003,23 +1941,6 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -2309,35 +2230,52 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.Name != nil { + if o.ModuleID != nil { - // query param name - var qrName string + // query param module_id + var qrModuleID string - if o.Name != nil { - qrName = *o.Name + if o.ModuleID != nil { + qrModuleID = *o.ModuleID } - qName := qrName - if qName != "" { + qModuleID := qrModuleID + if qModuleID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go index fdee16bdd..9185a20ed 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go @@ -126,12 +126,15 @@ type DcimInterfaceTemplatesListParams struct { // MgmtOnly. MgmtOnly *string + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -403,6 +406,28 @@ func (o *DcimInterfaceTemplatesListParams) SetMgmtOnly(mgmtOnly *string) { o.MgmtOnly = mgmtOnly } +// WithModuletypeID adds the moduletypeID to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimInterfaceTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimInterfaceTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim interface templates list params func (o *DcimInterfaceTemplatesListParams) WithName(name *string) *DcimInterfaceTemplatesListParams { o.SetName(name) @@ -414,17 +439,6 @@ func (o *DcimInterfaceTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim interface templates list params -func (o *DcimInterfaceTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimInterfaceTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim interface templates list params -func (o *DcimInterfaceTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim interface templates list params func (o *DcimInterfaceTemplatesListParams) WithNameIc(nameIc *string) *DcimInterfaceTemplatesListParams { o.SetNameIc(nameIc) @@ -848,35 +862,52 @@ func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientReques } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { + + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go index 32f26788b..74e8bb10a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go @@ -99,9 +99,6 @@ type DcimInterfacesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -135,6 +132,12 @@ type DcimInterfacesListParams struct { // DeviceID. DeviceID *string + // Duplex. + Duplex *string + + // Duplexn. + Duplexn *string + // Enabled. Enabled *string @@ -162,9 +165,6 @@ type DcimInterfacesListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -264,6 +264,12 @@ type DcimInterfacesListParams struct { // Moden. Moden *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Mtu. Mtu *string @@ -285,9 +291,6 @@ type DcimInterfacesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -414,6 +417,24 @@ type DcimInterfacesListParams struct { // SiteIDn. SiteIDn *string + // Speed. + Speed *string + + // SpeedGt. + SpeedGt *string + + // SpeedGte. + SpeedGte *string + + // SpeedLt. + SpeedLt *string + + // SpeedLte. + SpeedLte *string + + // Speedn. + Speedn *string + // Tag. Tag *string @@ -462,6 +483,18 @@ type DcimInterfacesListParams struct { // VlanID. VlanID *string + // Vrf. + Vrf *string + + // Vrfn. + Vrfn *string + + // VrfID. + VrfID *string + + // VrfIDn. + VrfIDn *string + // Wwn. Wwn *string @@ -633,17 +666,6 @@ func (o *DcimInterfacesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim interfaces list params -func (o *DcimInterfacesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimInterfacesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim interfaces list params -func (o *DcimInterfacesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim interfaces list params func (o *DcimInterfacesListParams) WithDescriptionIc(descriptionIc *string) *DcimInterfacesListParams { o.SetDescriptionIc(descriptionIc) @@ -765,6 +787,28 @@ func (o *DcimInterfacesListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDuplex adds the duplex to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDuplex(duplex *string) *DcimInterfacesListParams { + o.SetDuplex(duplex) + return o +} + +// SetDuplex adds the duplex to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDuplex(duplex *string) { + o.Duplex = duplex +} + +// WithDuplexn adds the duplexn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDuplexn(duplexn *string) *DcimInterfacesListParams { + o.SetDuplexn(duplexn) + return o +} + +// SetDuplexn adds the duplexN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDuplexn(duplexn *string) { + o.Duplexn = duplexn +} + // WithEnabled adds the enabled to the dcim interfaces list params func (o *DcimInterfacesListParams) WithEnabled(enabled *string) *DcimInterfacesListParams { o.SetEnabled(enabled) @@ -864,17 +908,6 @@ func (o *DcimInterfacesListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim interfaces list params -func (o *DcimInterfacesListParams) WithLabelEmpty(labelEmpty *string) *DcimInterfacesListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim interfaces list params -func (o *DcimInterfacesListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim interfaces list params func (o *DcimInterfacesListParams) WithLabelIc(labelIc *string) *DcimInterfacesListParams { o.SetLabelIc(labelIc) @@ -1227,6 +1260,28 @@ func (o *DcimInterfacesListParams) SetModen(moden *string) { o.Moden = moden } +// WithModuleID adds the moduleID to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithModuleID(moduleID *string) *DcimInterfacesListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithModuleIDn(moduleIDn *string) *DcimInterfacesListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithMtu adds the mtu to the dcim interfaces list params func (o *DcimInterfacesListParams) WithMtu(mtu *string) *DcimInterfacesListParams { o.SetMtu(mtu) @@ -1304,17 +1359,6 @@ func (o *DcimInterfacesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim interfaces list params -func (o *DcimInterfacesListParams) WithNameEmpty(nameEmpty *string) *DcimInterfacesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim interfaces list params -func (o *DcimInterfacesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim interfaces list params func (o *DcimInterfacesListParams) WithNameIc(nameIc *string) *DcimInterfacesListParams { o.SetNameIc(nameIc) @@ -1766,6 +1810,72 @@ func (o *DcimInterfacesListParams) SetSiteIDn(siteIDn *string) { o.SiteIDn = siteIDn } +// WithSpeed adds the speed to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSpeed(speed *string) *DcimInterfacesListParams { + o.SetSpeed(speed) + return o +} + +// SetSpeed adds the speed to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSpeed(speed *string) { + o.Speed = speed +} + +// WithSpeedGt adds the speedGt to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSpeedGt(speedGt *string) *DcimInterfacesListParams { + o.SetSpeedGt(speedGt) + return o +} + +// SetSpeedGt adds the speedGt to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSpeedGt(speedGt *string) { + o.SpeedGt = speedGt +} + +// WithSpeedGte adds the speedGte to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSpeedGte(speedGte *string) *DcimInterfacesListParams { + o.SetSpeedGte(speedGte) + return o +} + +// SetSpeedGte adds the speedGte to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSpeedGte(speedGte *string) { + o.SpeedGte = speedGte +} + +// WithSpeedLt adds the speedLt to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSpeedLt(speedLt *string) *DcimInterfacesListParams { + o.SetSpeedLt(speedLt) + return o +} + +// SetSpeedLt adds the speedLt to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSpeedLt(speedLt *string) { + o.SpeedLt = speedLt +} + +// WithSpeedLte adds the speedLte to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSpeedLte(speedLte *string) *DcimInterfacesListParams { + o.SetSpeedLte(speedLte) + return o +} + +// SetSpeedLte adds the speedLte to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSpeedLte(speedLte *string) { + o.SpeedLte = speedLte +} + +// WithSpeedn adds the speedn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSpeedn(speedn *string) *DcimInterfacesListParams { + o.SetSpeedn(speedn) + return o +} + +// SetSpeedn adds the speedN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSpeedn(speedn *string) { + o.Speedn = speedn +} + // WithTag adds the tag to the dcim interfaces list params func (o *DcimInterfacesListParams) WithTag(tag *string) *DcimInterfacesListParams { o.SetTag(tag) @@ -1942,6 +2052,50 @@ func (o *DcimInterfacesListParams) SetVlanID(vlanID *string) { o.VlanID = vlanID } +// WithVrf adds the vrf to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVrf(vrf *string) *DcimInterfacesListParams { + o.SetVrf(vrf) + return o +} + +// SetVrf adds the vrf to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVrf(vrf *string) { + o.Vrf = vrf +} + +// WithVrfn adds the vrfn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVrfn(vrfn *string) *DcimInterfacesListParams { + o.SetVrfn(vrfn) + return o +} + +// SetVrfn adds the vrfN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVrfn(vrfn *string) { + o.Vrfn = vrfn +} + +// WithVrfID adds the vrfID to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVrfID(vrfID *string) *DcimInterfacesListParams { + o.SetVrfID(vrfID) + return o +} + +// SetVrfID adds the vrfId to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVrfID(vrfID *string) { + o.VrfID = vrfID +} + +// WithVrfIDn adds the vrfIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithVrfIDn(vrfIDn *string) *DcimInterfacesListParams { + o.SetVrfIDn(vrfIDn) + return o +} + +// SetVrfIDn adds the vrfIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetVrfIDn(vrfIDn *string) { + o.VrfIDn = vrfIDn +} + // WithWwn adds the wwn to the dcim interfaces list params func (o *DcimInterfacesListParams) WithWwn(wwn *string) *DcimInterfacesListParams { o.SetWwn(wwn) @@ -2196,23 +2350,6 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -2400,6 +2537,40 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.Duplex != nil { + + // query param duplex + var qrDuplex string + + if o.Duplex != nil { + qrDuplex = *o.Duplex + } + qDuplex := qrDuplex + if qDuplex != "" { + + if err := r.SetQueryParam("duplex", qDuplex); err != nil { + return err + } + } + } + + if o.Duplexn != nil { + + // query param duplex__n + var qrDuplexn string + + if o.Duplexn != nil { + qrDuplexn = *o.Duplexn + } + qDuplexn := qrDuplexn + if qDuplexn != "" { + + if err := r.SetQueryParam("duplex__n", qDuplexn); err != nil { + return err + } + } + } + if o.Enabled != nil { // query param enabled @@ -2553,23 +2724,6 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -3114,6 +3268,40 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.ModuleID != nil { + + // query param module_id + var qrModuleID string + + if o.ModuleID != nil { + qrModuleID = *o.ModuleID + } + qModuleID := qrModuleID + if qModuleID != "" { + + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { + return err + } + } + } + if o.Mtu != nil { // query param mtu @@ -3233,23 +3421,6 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -3947,6 +4118,108 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.Speed != nil { + + // query param speed + var qrSpeed string + + if o.Speed != nil { + qrSpeed = *o.Speed + } + qSpeed := qrSpeed + if qSpeed != "" { + + if err := r.SetQueryParam("speed", qSpeed); err != nil { + return err + } + } + } + + if o.SpeedGt != nil { + + // query param speed__gt + var qrSpeedGt string + + if o.SpeedGt != nil { + qrSpeedGt = *o.SpeedGt + } + qSpeedGt := qrSpeedGt + if qSpeedGt != "" { + + if err := r.SetQueryParam("speed__gt", qSpeedGt); err != nil { + return err + } + } + } + + if o.SpeedGte != nil { + + // query param speed__gte + var qrSpeedGte string + + if o.SpeedGte != nil { + qrSpeedGte = *o.SpeedGte + } + qSpeedGte := qrSpeedGte + if qSpeedGte != "" { + + if err := r.SetQueryParam("speed__gte", qSpeedGte); err != nil { + return err + } + } + } + + if o.SpeedLt != nil { + + // query param speed__lt + var qrSpeedLt string + + if o.SpeedLt != nil { + qrSpeedLt = *o.SpeedLt + } + qSpeedLt := qrSpeedLt + if qSpeedLt != "" { + + if err := r.SetQueryParam("speed__lt", qSpeedLt); err != nil { + return err + } + } + } + + if o.SpeedLte != nil { + + // query param speed__lte + var qrSpeedLte string + + if o.SpeedLte != nil { + qrSpeedLte = *o.SpeedLte + } + qSpeedLte := qrSpeedLte + if qSpeedLte != "" { + + if err := r.SetQueryParam("speed__lte", qSpeedLte); err != nil { + return err + } + } + } + + if o.Speedn != nil { + + // query param speed__n + var qrSpeedn string + + if o.Speedn != nil { + qrSpeedn = *o.Speedn + } + qSpeedn := qrSpeedn + if qSpeedn != "" { + + if err := r.SetQueryParam("speed__n", qSpeedn); err != nil { + return err + } + } + } + if o.Tag != nil { // query param tag @@ -4219,6 +4492,74 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.Vrf != nil { + + // query param vrf + var qrVrf string + + if o.Vrf != nil { + qrVrf = *o.Vrf + } + qVrf := qrVrf + if qVrf != "" { + + if err := r.SetQueryParam("vrf", qVrf); err != nil { + return err + } + } + } + + if o.Vrfn != nil { + + // query param vrf__n + var qrVrfn string + + if o.Vrfn != nil { + qrVrfn = *o.Vrfn + } + qVrfn := qrVrfn + if qVrfn != "" { + + if err := r.SetQueryParam("vrf__n", qVrfn); err != nil { + return err + } + } + } + + if o.VrfID != nil { + + // query param vrf_id + var qrVrfID string + + if o.VrfID != nil { + qrVrfID = *o.VrfID + } + qVrfID := qrVrfID + if qVrfID != "" { + + if err := r.SetQueryParam("vrf_id", qVrfID); err != nil { + return err + } + } + } + + if o.VrfIDn != nil { + + // query param vrf_id__n + var qrVrfIDn string + + if o.VrfIDn != nil { + qrVrfIDn = *o.VrfIDn + } + qVrfIDn := qrVrfIDn + if qVrfIDn != "" { + + if err := r.SetQueryParam("vrf_id__n", qVrfIDn); err != nil { + return err + } + } + } + if o.Wwn != nil { // query param wwn diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go index c01dff80e..b5344a0ea 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go @@ -78,9 +78,6 @@ type DcimInventoryItemsListParams struct { // AssetTag. AssetTag *string - // AssetTagEmpty. - AssetTagEmpty *string - // AssetTagIc. AssetTagIc *string @@ -108,6 +105,30 @@ type DcimInventoryItemsListParams struct { // AssetTagNisw. AssetTagNisw *string + // ComponentID. + ComponentID *string + + // ComponentIDGt. + ComponentIDGt *string + + // ComponentIDGte. + ComponentIDGte *string + + // ComponentIDLt. + ComponentIDLt *string + + // ComponentIDLte. + ComponentIDLte *string + + // ComponentIDn. + ComponentIDn *string + + // ComponentType. + ComponentType *string + + // ComponentTypen. + ComponentTypen *string + // Created. Created *string @@ -153,9 +174,6 @@ type DcimInventoryItemsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -225,9 +243,6 @@ type DcimInventoryItemsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -270,9 +285,6 @@ type DcimInventoryItemsListParams struct { // PartID. PartID *string - // PartIDEmpty. - PartIDEmpty *string - // PartIDIc. PartIDIc *string @@ -315,9 +327,48 @@ type DcimInventoryItemsListParams struct { // RegionIDn. RegionIDn *string + // Role. + Role *string + + // Rolen. + Rolen *string + + // RoleID. + RoleID *string + + // RoleIDn. + RoleIDn *string + // Serial. Serial *string + // SerialIc. + SerialIc *string + + // SerialIe. + SerialIe *string + + // SerialIew. + SerialIew *string + + // SerialIsw. + SerialIsw *string + + // Serialn. + Serialn *string + + // SerialNic. + SerialNic *string + + // SerialNie. + SerialNie *string + + // SerialNiew. + SerialNiew *string + + // SerialNisw. + SerialNisw *string + // Site. Site *string @@ -424,17 +475,6 @@ func (o *DcimInventoryItemsListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } -// WithAssetTagEmpty adds the assetTagEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimInventoryItemsListParams { - o.SetAssetTagEmpty(assetTagEmpty) - return o -} - -// SetAssetTagEmpty adds the assetTagEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) SetAssetTagEmpty(assetTagEmpty *string) { - o.AssetTagEmpty = assetTagEmpty -} - // WithAssetTagIc adds the assetTagIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithAssetTagIc(assetTagIc *string) *DcimInventoryItemsListParams { o.SetAssetTagIc(assetTagIc) @@ -534,6 +574,94 @@ func (o *DcimInventoryItemsListParams) SetAssetTagNisw(assetTagNisw *string) { o.AssetTagNisw = assetTagNisw } +// WithComponentID adds the componentID to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentID(componentID *string) *DcimInventoryItemsListParams { + o.SetComponentID(componentID) + return o +} + +// SetComponentID adds the componentId to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentID(componentID *string) { + o.ComponentID = componentID +} + +// WithComponentIDGt adds the componentIDGt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentIDGt(componentIDGt *string) *DcimInventoryItemsListParams { + o.SetComponentIDGt(componentIDGt) + return o +} + +// SetComponentIDGt adds the componentIdGt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentIDGt(componentIDGt *string) { + o.ComponentIDGt = componentIDGt +} + +// WithComponentIDGte adds the componentIDGte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentIDGte(componentIDGte *string) *DcimInventoryItemsListParams { + o.SetComponentIDGte(componentIDGte) + return o +} + +// SetComponentIDGte adds the componentIdGte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentIDGte(componentIDGte *string) { + o.ComponentIDGte = componentIDGte +} + +// WithComponentIDLt adds the componentIDLt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentIDLt(componentIDLt *string) *DcimInventoryItemsListParams { + o.SetComponentIDLt(componentIDLt) + return o +} + +// SetComponentIDLt adds the componentIdLt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentIDLt(componentIDLt *string) { + o.ComponentIDLt = componentIDLt +} + +// WithComponentIDLte adds the componentIDLte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentIDLte(componentIDLte *string) *DcimInventoryItemsListParams { + o.SetComponentIDLte(componentIDLte) + return o +} + +// SetComponentIDLte adds the componentIdLte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentIDLte(componentIDLte *string) { + o.ComponentIDLte = componentIDLte +} + +// WithComponentIDn adds the componentIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentIDn(componentIDn *string) *DcimInventoryItemsListParams { + o.SetComponentIDn(componentIDn) + return o +} + +// SetComponentIDn adds the componentIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentIDn(componentIDn *string) { + o.ComponentIDn = componentIDn +} + +// WithComponentType adds the componentType to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentType(componentType *string) *DcimInventoryItemsListParams { + o.SetComponentType(componentType) + return o +} + +// SetComponentType adds the componentType to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentType(componentType *string) { + o.ComponentType = componentType +} + +// WithComponentTypen adds the componentTypen to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithComponentTypen(componentTypen *string) *DcimInventoryItemsListParams { + o.SetComponentTypen(componentTypen) + return o +} + +// SetComponentTypen adds the componentTypeN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetComponentTypen(componentTypen *string) { + o.ComponentTypen = componentTypen +} + // WithCreated adds the created to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithCreated(created *string) *DcimInventoryItemsListParams { o.SetCreated(created) @@ -699,17 +827,6 @@ func (o *DcimInventoryItemsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) WithLabelEmpty(labelEmpty *string) *DcimInventoryItemsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithLabelIc(labelIc *string) *DcimInventoryItemsListParams { o.SetLabelIc(labelIc) @@ -952,17 +1069,6 @@ func (o *DcimInventoryItemsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) WithNameEmpty(nameEmpty *string) *DcimInventoryItemsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithNameIc(nameIc *string) *DcimInventoryItemsListParams { o.SetNameIc(nameIc) @@ -1106,17 +1212,6 @@ func (o *DcimInventoryItemsListParams) SetPartID(partID *string) { o.PartID = partID } -// WithPartIDEmpty adds the partIDEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) WithPartIDEmpty(partIDEmpty *string) *DcimInventoryItemsListParams { - o.SetPartIDEmpty(partIDEmpty) - return o -} - -// SetPartIDEmpty adds the partIdEmpty to the dcim inventory items list params -func (o *DcimInventoryItemsListParams) SetPartIDEmpty(partIDEmpty *string) { - o.PartIDEmpty = partIDEmpty -} - // WithPartIDIc adds the partIDIc to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithPartIDIc(partIDIc *string) *DcimInventoryItemsListParams { o.SetPartIDIc(partIDIc) @@ -1271,6 +1366,50 @@ func (o *DcimInventoryItemsListParams) SetRegionIDn(regionIDn *string) { o.RegionIDn = regionIDn } +// WithRole adds the role to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithRole(role *string) *DcimInventoryItemsListParams { + o.SetRole(role) + return o +} + +// SetRole adds the role to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetRole(role *string) { + o.Role = role +} + +// WithRolen adds the rolen to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithRolen(rolen *string) *DcimInventoryItemsListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + +// WithRoleID adds the roleID to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithRoleID(roleID *string) *DcimInventoryItemsListParams { + o.SetRoleID(roleID) + return o +} + +// SetRoleID adds the roleId to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetRoleID(roleID *string) { + o.RoleID = roleID +} + +// WithRoleIDn adds the roleIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithRoleIDn(roleIDn *string) *DcimInventoryItemsListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSerial adds the serial to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithSerial(serial *string) *DcimInventoryItemsListParams { o.SetSerial(serial) @@ -1282,6 +1421,105 @@ func (o *DcimInventoryItemsListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialIc adds the serialIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialIc(serialIc *string) *DcimInventoryItemsListParams { + o.SetSerialIc(serialIc) + return o +} + +// SetSerialIc adds the serialIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialIc(serialIc *string) { + o.SerialIc = serialIc +} + +// WithSerialIe adds the serialIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialIe(serialIe *string) *DcimInventoryItemsListParams { + o.SetSerialIe(serialIe) + return o +} + +// SetSerialIe adds the serialIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialIe(serialIe *string) { + o.SerialIe = serialIe +} + +// WithSerialIew adds the serialIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialIew(serialIew *string) *DcimInventoryItemsListParams { + o.SetSerialIew(serialIew) + return o +} + +// SetSerialIew adds the serialIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialIew(serialIew *string) { + o.SerialIew = serialIew +} + +// WithSerialIsw adds the serialIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialIsw(serialIsw *string) *DcimInventoryItemsListParams { + o.SetSerialIsw(serialIsw) + return o +} + +// SetSerialIsw adds the serialIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialIsw(serialIsw *string) { + o.SerialIsw = serialIsw +} + +// WithSerialn adds the serialn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialn(serialn *string) *DcimInventoryItemsListParams { + o.SetSerialn(serialn) + return o +} + +// SetSerialn adds the serialN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialn(serialn *string) { + o.Serialn = serialn +} + +// WithSerialNic adds the serialNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialNic(serialNic *string) *DcimInventoryItemsListParams { + o.SetSerialNic(serialNic) + return o +} + +// SetSerialNic adds the serialNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialNic(serialNic *string) { + o.SerialNic = serialNic +} + +// WithSerialNie adds the serialNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialNie(serialNie *string) *DcimInventoryItemsListParams { + o.SetSerialNie(serialNie) + return o +} + +// SetSerialNie adds the serialNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialNie(serialNie *string) { + o.SerialNie = serialNie +} + +// WithSerialNiew adds the serialNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialNiew(serialNiew *string) *DcimInventoryItemsListParams { + o.SetSerialNiew(serialNiew) + return o +} + +// SetSerialNiew adds the serialNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialNiew(serialNiew *string) { + o.SerialNiew = serialNiew +} + +// WithSerialNisw adds the serialNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSerialNisw(serialNisw *string) *DcimInventoryItemsListParams { + o.SetSerialNisw(serialNisw) + return o +} + +// SetSerialNisw adds the serialNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSerialNisw(serialNisw *string) { + o.SerialNisw = serialNisw +} + // WithSite adds the site to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithSite(site *string) *DcimInventoryItemsListParams { o.SetSite(site) @@ -1461,23 +1699,6 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.AssetTagEmpty != nil { - - // query param asset_tag__empty - var qrAssetTagEmpty string - - if o.AssetTagEmpty != nil { - qrAssetTagEmpty = *o.AssetTagEmpty - } - qAssetTagEmpty := qrAssetTagEmpty - if qAssetTagEmpty != "" { - - if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { - return err - } - } - } - if o.AssetTagIc != nil { // query param asset_tag__ic @@ -1631,6 +1852,142 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.ComponentID != nil { + + // query param component_id + var qrComponentID string + + if o.ComponentID != nil { + qrComponentID = *o.ComponentID + } + qComponentID := qrComponentID + if qComponentID != "" { + + if err := r.SetQueryParam("component_id", qComponentID); err != nil { + return err + } + } + } + + if o.ComponentIDGt != nil { + + // query param component_id__gt + var qrComponentIDGt string + + if o.ComponentIDGt != nil { + qrComponentIDGt = *o.ComponentIDGt + } + qComponentIDGt := qrComponentIDGt + if qComponentIDGt != "" { + + if err := r.SetQueryParam("component_id__gt", qComponentIDGt); err != nil { + return err + } + } + } + + if o.ComponentIDGte != nil { + + // query param component_id__gte + var qrComponentIDGte string + + if o.ComponentIDGte != nil { + qrComponentIDGte = *o.ComponentIDGte + } + qComponentIDGte := qrComponentIDGte + if qComponentIDGte != "" { + + if err := r.SetQueryParam("component_id__gte", qComponentIDGte); err != nil { + return err + } + } + } + + if o.ComponentIDLt != nil { + + // query param component_id__lt + var qrComponentIDLt string + + if o.ComponentIDLt != nil { + qrComponentIDLt = *o.ComponentIDLt + } + qComponentIDLt := qrComponentIDLt + if qComponentIDLt != "" { + + if err := r.SetQueryParam("component_id__lt", qComponentIDLt); err != nil { + return err + } + } + } + + if o.ComponentIDLte != nil { + + // query param component_id__lte + var qrComponentIDLte string + + if o.ComponentIDLte != nil { + qrComponentIDLte = *o.ComponentIDLte + } + qComponentIDLte := qrComponentIDLte + if qComponentIDLte != "" { + + if err := r.SetQueryParam("component_id__lte", qComponentIDLte); err != nil { + return err + } + } + } + + if o.ComponentIDn != nil { + + // query param component_id__n + var qrComponentIDn string + + if o.ComponentIDn != nil { + qrComponentIDn = *o.ComponentIDn + } + qComponentIDn := qrComponentIDn + if qComponentIDn != "" { + + if err := r.SetQueryParam("component_id__n", qComponentIDn); err != nil { + return err + } + } + } + + if o.ComponentType != nil { + + // query param component_type + var qrComponentType string + + if o.ComponentType != nil { + qrComponentType = *o.ComponentType + } + qComponentType := qrComponentType + if qComponentType != "" { + + if err := r.SetQueryParam("component_type", qComponentType); err != nil { + return err + } + } + } + + if o.ComponentTypen != nil { + + // query param component_type__n + var qrComponentTypen string + + if o.ComponentTypen != nil { + qrComponentTypen = *o.ComponentTypen + } + qComponentTypen := qrComponentTypen + if qComponentTypen != "" { + + if err := r.SetQueryParam("component_type__n", qComponentTypen); err != nil { + return err + } + } + } + if o.Created != nil { // query param created @@ -1886,23 +2243,6 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -2277,23 +2617,6 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -2515,23 +2838,6 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.PartIDEmpty != nil { - - // query param part_id__empty - var qrPartIDEmpty string - - if o.PartIDEmpty != nil { - qrPartIDEmpty = *o.PartIDEmpty - } - qPartIDEmpty := qrPartIDEmpty - if qPartIDEmpty != "" { - - if err := r.SetQueryParam("part_id__empty", qPartIDEmpty); err != nil { - return err - } - } - } - if o.PartIDIc != nil { // query param part_id__ic @@ -2770,6 +3076,74 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.Role != nil { + + // query param role + var qrRole string + + if o.Role != nil { + qrRole = *o.Role + } + qRole := qrRole + if qRole != "" { + + if err := r.SetQueryParam("role", qRole); err != nil { + return err + } + } + } + + if o.Rolen != nil { + + // query param role__n + var qrRolen string + + if o.Rolen != nil { + qrRolen = *o.Rolen + } + qRolen := qrRolen + if qRolen != "" { + + if err := r.SetQueryParam("role__n", qRolen); err != nil { + return err + } + } + } + + if o.RoleID != nil { + + // query param role_id + var qrRoleID string + + if o.RoleID != nil { + qrRoleID = *o.RoleID + } + qRoleID := qrRoleID + if qRoleID != "" { + + if err := r.SetQueryParam("role_id", qRoleID); err != nil { + return err + } + } + } + + if o.RoleIDn != nil { + + // query param role_id__n + var qrRoleIDn string + + if o.RoleIDn != nil { + qrRoleIDn = *o.RoleIDn + } + qRoleIDn := qrRoleIDn + if qRoleIDn != "" { + + if err := r.SetQueryParam("role_id__n", qRoleIDn); err != nil { + return err + } + } + } + if o.Serial != nil { // query param serial @@ -2787,6 +3161,159 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.SerialIc != nil { + + // query param serial__ic + var qrSerialIc string + + if o.SerialIc != nil { + qrSerialIc = *o.SerialIc + } + qSerialIc := qrSerialIc + if qSerialIc != "" { + + if err := r.SetQueryParam("serial__ic", qSerialIc); err != nil { + return err + } + } + } + + if o.SerialIe != nil { + + // query param serial__ie + var qrSerialIe string + + if o.SerialIe != nil { + qrSerialIe = *o.SerialIe + } + qSerialIe := qrSerialIe + if qSerialIe != "" { + + if err := r.SetQueryParam("serial__ie", qSerialIe); err != nil { + return err + } + } + } + + if o.SerialIew != nil { + + // query param serial__iew + var qrSerialIew string + + if o.SerialIew != nil { + qrSerialIew = *o.SerialIew + } + qSerialIew := qrSerialIew + if qSerialIew != "" { + + if err := r.SetQueryParam("serial__iew", qSerialIew); err != nil { + return err + } + } + } + + if o.SerialIsw != nil { + + // query param serial__isw + var qrSerialIsw string + + if o.SerialIsw != nil { + qrSerialIsw = *o.SerialIsw + } + qSerialIsw := qrSerialIsw + if qSerialIsw != "" { + + if err := r.SetQueryParam("serial__isw", qSerialIsw); err != nil { + return err + } + } + } + + if o.Serialn != nil { + + // query param serial__n + var qrSerialn string + + if o.Serialn != nil { + qrSerialn = *o.Serialn + } + qSerialn := qrSerialn + if qSerialn != "" { + + if err := r.SetQueryParam("serial__n", qSerialn); err != nil { + return err + } + } + } + + if o.SerialNic != nil { + + // query param serial__nic + var qrSerialNic string + + if o.SerialNic != nil { + qrSerialNic = *o.SerialNic + } + qSerialNic := qrSerialNic + if qSerialNic != "" { + + if err := r.SetQueryParam("serial__nic", qSerialNic); err != nil { + return err + } + } + } + + if o.SerialNie != nil { + + // query param serial__nie + var qrSerialNie string + + if o.SerialNie != nil { + qrSerialNie = *o.SerialNie + } + qSerialNie := qrSerialNie + if qSerialNie != "" { + + if err := r.SetQueryParam("serial__nie", qSerialNie); err != nil { + return err + } + } + } + + if o.SerialNiew != nil { + + // query param serial__niew + var qrSerialNiew string + + if o.SerialNiew != nil { + qrSerialNiew = *o.SerialNiew + } + qSerialNiew := qrSerialNiew + if qSerialNiew != "" { + + if err := r.SetQueryParam("serial__niew", qSerialNiew); err != nil { + return err + } + } + } + + if o.SerialNisw != nil { + + // query param serial__nisw + var qrSerialNisw string + + if o.SerialNisw != nil { + qrSerialNisw = *o.SerialNisw + } + qSerialNisw := qrSerialNisw + if qSerialNisw != "" { + + if err := r.SetQueryParam("serial__nisw", qSerialNisw); err != nil { + return err + } + } + } + if o.Site != nil { // query param site diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_locations_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_locations_list_parameters.go index 7bec7aefc..7f10fb526 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_locations_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_locations_list_parameters.go @@ -81,6 +81,12 @@ type DcimLocationsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -99,9 +105,6 @@ type DcimLocationsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +168,6 @@ type DcimLocationsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -255,9 +255,6 @@ type DcimLocationsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -390,6 +387,28 @@ func (o *DcimLocationsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim locations list params +func (o *DcimLocationsListParams) WithContactGroup(contactGroup *string) *DcimLocationsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim locations list params +func (o *DcimLocationsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim locations list params +func (o *DcimLocationsListParams) WithContactGroupn(contactGroupn *string) *DcimLocationsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim locations list params +func (o *DcimLocationsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim locations list params func (o *DcimLocationsListParams) WithContactRole(contactRole *string) *DcimLocationsListParams { o.SetContactRole(contactRole) @@ -456,17 +475,6 @@ func (o *DcimLocationsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim locations list params -func (o *DcimLocationsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimLocationsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim locations list params -func (o *DcimLocationsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim locations list params func (o *DcimLocationsListParams) WithDescriptionIc(descriptionIc *string) *DcimLocationsListParams { o.SetDescriptionIc(descriptionIc) @@ -687,17 +695,6 @@ func (o *DcimLocationsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim locations list params -func (o *DcimLocationsListParams) WithNameEmpty(nameEmpty *string) *DcimLocationsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim locations list params -func (o *DcimLocationsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim locations list params func (o *DcimLocationsListParams) WithNameIc(nameIc *string) *DcimLocationsListParams { o.SetNameIc(nameIc) @@ -1006,17 +1003,6 @@ func (o *DcimLocationsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim locations list params -func (o *DcimLocationsListParams) WithSlugEmpty(slugEmpty *string) *DcimLocationsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim locations list params -func (o *DcimLocationsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim locations list params func (o *DcimLocationsListParams) WithSlugIc(slugIc *string) *DcimLocationsListParams { o.SetSlugIc(slugIc) @@ -1268,6 +1254,40 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1370,23 +1390,6 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1727,23 +1730,6 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -2220,23 +2206,6 @@ func (o *DcimLocationsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go index 44c7f0f17..d884bf5cd 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go @@ -81,6 +81,12 @@ type DcimManufacturersListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -99,9 +105,6 @@ type DcimManufacturersListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +168,6 @@ type DcimManufacturersListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -207,9 +207,6 @@ type DcimManufacturersListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -318,6 +315,28 @@ func (o *DcimManufacturersListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithContactGroup(contactGroup *string) *DcimManufacturersListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithContactGroupn(contactGroupn *string) *DcimManufacturersListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithContactRole(contactRole *string) *DcimManufacturersListParams { o.SetContactRole(contactRole) @@ -384,17 +403,6 @@ func (o *DcimManufacturersListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim manufacturers list params -func (o *DcimManufacturersListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimManufacturersListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim manufacturers list params -func (o *DcimManufacturersListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithDescriptionIc(descriptionIc *string) *DcimManufacturersListParams { o.SetDescriptionIc(descriptionIc) @@ -615,17 +623,6 @@ func (o *DcimManufacturersListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim manufacturers list params -func (o *DcimManufacturersListParams) WithNameEmpty(nameEmpty *string) *DcimManufacturersListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim manufacturers list params -func (o *DcimManufacturersListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithNameIc(nameIc *string) *DcimManufacturersListParams { o.SetNameIc(nameIc) @@ -758,17 +755,6 @@ func (o *DcimManufacturersListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim manufacturers list params -func (o *DcimManufacturersListParams) WithSlugEmpty(slugEmpty *string) *DcimManufacturersListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim manufacturers list params -func (o *DcimManufacturersListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithSlugIc(slugIc *string) *DcimManufacturersListParams { o.SetSlugIc(slugIc) @@ -932,6 +918,40 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1034,23 +1054,6 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1391,23 +1394,6 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1612,23 +1598,6 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go index 6e507a8b4..307cef5b1 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go @@ -87,9 +87,6 @@ type DcimPlatformsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +162,6 @@ type DcimPlatformsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -198,9 +192,6 @@ type DcimPlatformsListParams struct { // NapalmDriver. NapalmDriver *string - // NapalmDriverEmpty. - NapalmDriverEmpty *string - // NapalmDriverIc. NapalmDriverIc *string @@ -240,9 +231,6 @@ type DcimPlatformsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -373,17 +361,6 @@ func (o *DcimPlatformsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPlatformsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithDescriptionIc(descriptionIc *string) *DcimPlatformsListParams { o.SetDescriptionIc(descriptionIc) @@ -648,17 +625,6 @@ func (o *DcimPlatformsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) WithNameEmpty(nameEmpty *string) *DcimPlatformsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithNameIc(nameIc *string) *DcimPlatformsListParams { o.SetNameIc(nameIc) @@ -769,17 +735,6 @@ func (o *DcimPlatformsListParams) SetNapalmDriver(napalmDriver *string) { o.NapalmDriver = napalmDriver } -// WithNapalmDriverEmpty adds the napalmDriverEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) WithNapalmDriverEmpty(napalmDriverEmpty *string) *DcimPlatformsListParams { - o.SetNapalmDriverEmpty(napalmDriverEmpty) - return o -} - -// SetNapalmDriverEmpty adds the napalmDriverEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) SetNapalmDriverEmpty(napalmDriverEmpty *string) { - o.NapalmDriverEmpty = napalmDriverEmpty -} - // WithNapalmDriverIc adds the napalmDriverIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithNapalmDriverIc(napalmDriverIc *string) *DcimPlatformsListParams { o.SetNapalmDriverIc(napalmDriverIc) @@ -912,17 +867,6 @@ func (o *DcimPlatformsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) WithSlugEmpty(slugEmpty *string) *DcimPlatformsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim platforms list params -func (o *DcimPlatformsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim platforms list params func (o *DcimPlatformsListParams) WithSlugIc(slugIc *string) *DcimPlatformsListParams { o.SetSlugIc(slugIc) @@ -1120,23 +1064,6 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1545,23 +1472,6 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1732,23 +1642,6 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.NapalmDriverEmpty != nil { - - // query param napalm_driver__empty - var qrNapalmDriverEmpty string - - if o.NapalmDriverEmpty != nil { - qrNapalmDriverEmpty = *o.NapalmDriverEmpty - } - qNapalmDriverEmpty := qrNapalmDriverEmpty - if qNapalmDriverEmpty != "" { - - if err := r.SetQueryParam("napalm_driver__empty", qNapalmDriverEmpty); err != nil { - return err - } - } - } - if o.NapalmDriverIc != nil { // query param napalm_driver__ic @@ -1953,23 +1846,6 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go index 8d12ef715..f2a03f2de 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go @@ -162,9 +162,6 @@ type DcimPowerFeedsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -658,17 +655,6 @@ func (o *DcimPowerFeedsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim power feeds list params -func (o *DcimPowerFeedsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerFeedsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim power feeds list params -func (o *DcimPowerFeedsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithNameIc(nameIc *string) *DcimPowerFeedsListParams { o.SetNameIc(nameIc) @@ -1626,23 +1612,6 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go index b161e6dac..5d5af73ff 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go @@ -129,12 +129,15 @@ type DcimPowerOutletTemplatesListParams struct { */ Limit *int64 + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -417,6 +420,28 @@ func (o *DcimPowerOutletTemplatesListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithModuletypeID adds the moduletypeID to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimPowerOutletTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimPowerOutletTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithName(name *string) *DcimPowerOutletTemplatesListParams { o.SetName(name) @@ -428,17 +453,6 @@ func (o *DcimPowerOutletTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim power outlet templates list params -func (o *DcimPowerOutletTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimPowerOutletTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim power outlet templates list params -func (o *DcimPowerOutletTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerOutletTemplatesListParams { o.SetNameIc(nameIc) @@ -879,35 +893,52 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { + + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go index cff557b6a..968485204 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go @@ -93,9 +93,6 @@ type DcimPowerOutletsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -162,9 +159,6 @@ type DcimPowerOutletsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -219,12 +213,15 @@ type DcimPowerOutletsListParams struct { // LocationIDn. LocationIDn *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -440,17 +437,6 @@ func (o *DcimPowerOutletsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim power outlets list params -func (o *DcimPowerOutletsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPowerOutletsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim power outlets list params -func (o *DcimPowerOutletsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerOutletsListParams { o.SetDescriptionIc(descriptionIc) @@ -693,17 +679,6 @@ func (o *DcimPowerOutletsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim power outlets list params -func (o *DcimPowerOutletsListParams) WithLabelEmpty(labelEmpty *string) *DcimPowerOutletsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim power outlets list params -func (o *DcimPowerOutletsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithLabelIc(labelIc *string) *DcimPowerOutletsListParams { o.SetLabelIc(labelIc) @@ -891,6 +866,28 @@ func (o *DcimPowerOutletsListParams) SetLocationIDn(locationIDn *string) { o.LocationIDn = locationIDn } +// WithModuleID adds the moduleID to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithModuleID(moduleID *string) *DcimPowerOutletsListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithModuleIDn(moduleIDn *string) *DcimPowerOutletsListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithName adds the name to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithName(name *string) *DcimPowerOutletsListParams { o.SetName(name) @@ -902,17 +899,6 @@ func (o *DcimPowerOutletsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim power outlets list params -func (o *DcimPowerOutletsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerOutletsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim power outlets list params -func (o *DcimPowerOutletsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithNameIc(nameIc *string) *DcimPowerOutletsListParams { o.SetNameIc(nameIc) @@ -1364,23 +1350,6 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1755,23 +1724,6 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -2061,35 +2013,52 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.Name != nil { + if o.ModuleID != nil { - // query param name - var qrName string + // query param module_id + var qrModuleID string - if o.Name != nil { - qrName = *o.Name + if o.ModuleID != nil { + qrModuleID = *o.ModuleID } - qName := qrName - if qName != "" { + qModuleID := qrModuleID + if qModuleID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go index 15dbb5145..b3f1c7493 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go @@ -81,6 +81,12 @@ type DcimPowerPanelsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -138,9 +144,6 @@ type DcimPowerPanelsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -294,6 +297,28 @@ func (o *DcimPowerPanelsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithContactGroup(contactGroup *string) *DcimPowerPanelsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithContactGroupn(contactGroupn *string) *DcimPowerPanelsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithContactRole(contactRole *string) *DcimPowerPanelsListParams { o.SetContactRole(contactRole) @@ -492,17 +517,6 @@ func (o *DcimPowerPanelsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim power panels list params -func (o *DcimPowerPanelsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPanelsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim power panels list params -func (o *DcimPowerPanelsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithNameIc(nameIc *string) *DcimPowerPanelsListParams { o.SetNameIc(nameIc) @@ -820,6 +834,40 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1126,23 +1174,6 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go index 131418698..0ba9096eb 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go @@ -159,12 +159,15 @@ type DcimPowerPortTemplatesListParams struct { // MaximumDrawn. MaximumDrawn *string + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -557,6 +560,28 @@ func (o *DcimPowerPortTemplatesListParams) SetMaximumDrawn(maximumDrawn *string) o.MaximumDrawn = maximumDrawn } +// WithModuletypeID adds the moduletypeID to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimPowerPortTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimPowerPortTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithName(name *string) *DcimPowerPortTemplatesListParams { o.SetName(name) @@ -568,17 +593,6 @@ func (o *DcimPowerPortTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim power port templates list params -func (o *DcimPowerPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPortTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim power port templates list params -func (o *DcimPowerPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerPortTemplatesListParams { o.SetNameIc(nameIc) @@ -1189,35 +1203,52 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { + + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go index 41f201324..70c4f3117 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go @@ -111,9 +111,6 @@ type DcimPowerPortsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -174,9 +171,6 @@ type DcimPowerPortsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -249,12 +243,15 @@ type DcimPowerPortsListParams struct { // MaximumDrawn. MaximumDrawn *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -536,17 +533,6 @@ func (o *DcimPowerPortsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim power ports list params -func (o *DcimPowerPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimPowerPortsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim power ports list params -func (o *DcimPowerPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim power ports list params func (o *DcimPowerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -767,17 +753,6 @@ func (o *DcimPowerPortsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim power ports list params -func (o *DcimPowerPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimPowerPortsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim power ports list params -func (o *DcimPowerPortsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim power ports list params func (o *DcimPowerPortsListParams) WithLabelIc(labelIc *string) *DcimPowerPortsListParams { o.SetLabelIc(labelIc) @@ -1031,6 +1006,28 @@ func (o *DcimPowerPortsListParams) SetMaximumDrawn(maximumDrawn *string) { o.MaximumDrawn = maximumDrawn } +// WithModuleID adds the moduleID to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithModuleID(moduleID *string) *DcimPowerPortsListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithModuleIDn(moduleIDn *string) *DcimPowerPortsListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithName adds the name to the dcim power ports list params func (o *DcimPowerPortsListParams) WithName(name *string) *DcimPowerPortsListParams { o.SetName(name) @@ -1042,17 +1039,6 @@ func (o *DcimPowerPortsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim power ports list params -func (o *DcimPowerPortsListParams) WithNameEmpty(nameEmpty *string) *DcimPowerPortsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim power ports list params -func (o *DcimPowerPortsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim power ports list params func (o *DcimPowerPortsListParams) WithNameIc(nameIc *string) *DcimPowerPortsListParams { o.SetNameIc(nameIc) @@ -1606,23 +1592,6 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1963,23 +1932,6 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -2371,35 +2323,52 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.Name != nil { + if o.ModuleID != nil { - // query param name - var qrName string + // query param module_id + var qrModuleID string - if o.Name != nil { - qrName = *o.Name + if o.ModuleID != nil { + qrModuleID = *o.ModuleID } - qName := qrName - if qName != "" { + qModuleID := qrModuleID + if qModuleID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go index 17bb090a1..b06ad76e4 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go @@ -87,9 +87,6 @@ type DcimRackReservationsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -177,12 +174,36 @@ type DcimRackReservationsListParams struct { // RackIDn. RackIDn *string + // Region. + Region *string + + // Regionn. + Regionn *string + + // RegionID. + RegionID *string + + // RegionIDn. + RegionIDn *string + // Site. Site *string // Siten. Siten *string + // SiteGroup. + SiteGroup *string + + // SiteGroupn. + SiteGroupn *string + + // SiteGroupID. + SiteGroupID *string + + // SiteGroupIDn. + SiteGroupIDn *string + // SiteID. SiteID *string @@ -328,17 +349,6 @@ func (o *DcimRackReservationsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim rack reservations list params -func (o *DcimRackReservationsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRackReservationsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim rack reservations list params -func (o *DcimRackReservationsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithDescriptionIc(descriptionIc *string) *DcimRackReservationsListParams { o.SetDescriptionIc(descriptionIc) @@ -636,6 +646,50 @@ func (o *DcimRackReservationsListParams) SetRackIDn(rackIDn *string) { o.RackIDn = rackIDn } +// WithRegion adds the region to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithRegion(region *string) *DcimRackReservationsListParams { + o.SetRegion(region) + return o +} + +// SetRegion adds the region to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetRegion(region *string) { + o.Region = region +} + +// WithRegionn adds the regionn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithRegionn(regionn *string) *DcimRackReservationsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + +// WithRegionID adds the regionID to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithRegionID(regionID *string) *DcimRackReservationsListParams { + o.SetRegionID(regionID) + return o +} + +// SetRegionID adds the regionId to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetRegionID(regionID *string) { + o.RegionID = regionID +} + +// WithRegionIDn adds the regionIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithRegionIDn(regionIDn *string) *DcimRackReservationsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithSite(site *string) *DcimRackReservationsListParams { o.SetSite(site) @@ -658,6 +712,50 @@ func (o *DcimRackReservationsListParams) SetSiten(siten *string) { o.Siten = siten } +// WithSiteGroup adds the siteGroup to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithSiteGroup(siteGroup *string) *DcimRackReservationsListParams { + o.SetSiteGroup(siteGroup) + return o +} + +// SetSiteGroup adds the siteGroup to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetSiteGroup(siteGroup *string) { + o.SiteGroup = siteGroup +} + +// WithSiteGroupn adds the siteGroupn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithSiteGroupn(siteGroupn *string) *DcimRackReservationsListParams { + o.SetSiteGroupn(siteGroupn) + return o +} + +// SetSiteGroupn adds the siteGroupN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetSiteGroupn(siteGroupn *string) { + o.SiteGroupn = siteGroupn +} + +// WithSiteGroupID adds the siteGroupID to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithSiteGroupID(siteGroupID *string) *DcimRackReservationsListParams { + o.SetSiteGroupID(siteGroupID) + return o +} + +// SetSiteGroupID adds the siteGroupId to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetSiteGroupID(siteGroupID *string) { + o.SiteGroupID = siteGroupID +} + +// WithSiteGroupIDn adds the siteGroupIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithSiteGroupIDn(siteGroupIDn *string) *DcimRackReservationsListParams { + o.SetSiteGroupIDn(siteGroupIDn) + return o +} + +// SetSiteGroupIDn adds the siteGroupIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetSiteGroupIDn(siteGroupIDn *string) { + o.SiteGroupIDn = siteGroupIDn +} + // WithSiteID adds the siteID to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithSiteID(siteID *string) *DcimRackReservationsListParams { o.SetSiteID(siteID) @@ -910,23 +1008,6 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1386,6 +1467,74 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.Region != nil { + + // query param region + var qrRegion string + + if o.Region != nil { + qrRegion = *o.Region + } + qRegion := qrRegion + if qRegion != "" { + + if err := r.SetQueryParam("region", qRegion); err != nil { + return err + } + } + } + + if o.Regionn != nil { + + // query param region__n + var qrRegionn string + + if o.Regionn != nil { + qrRegionn = *o.Regionn + } + qRegionn := qrRegionn + if qRegionn != "" { + + if err := r.SetQueryParam("region__n", qRegionn); err != nil { + return err + } + } + } + + if o.RegionID != nil { + + // query param region_id + var qrRegionID string + + if o.RegionID != nil { + qrRegionID = *o.RegionID + } + qRegionID := qrRegionID + if qRegionID != "" { + + if err := r.SetQueryParam("region_id", qRegionID); err != nil { + return err + } + } + } + + if o.RegionIDn != nil { + + // query param region_id__n + var qrRegionIDn string + + if o.RegionIDn != nil { + qrRegionIDn = *o.RegionIDn + } + qRegionIDn := qrRegionIDn + if qRegionIDn != "" { + + if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil { + return err + } + } + } + if o.Site != nil { // query param site @@ -1420,6 +1569,74 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.SiteGroup != nil { + + // query param site_group + var qrSiteGroup string + + if o.SiteGroup != nil { + qrSiteGroup = *o.SiteGroup + } + qSiteGroup := qrSiteGroup + if qSiteGroup != "" { + + if err := r.SetQueryParam("site_group", qSiteGroup); err != nil { + return err + } + } + } + + if o.SiteGroupn != nil { + + // query param site_group__n + var qrSiteGroupn string + + if o.SiteGroupn != nil { + qrSiteGroupn = *o.SiteGroupn + } + qSiteGroupn := qrSiteGroupn + if qSiteGroupn != "" { + + if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil { + return err + } + } + } + + if o.SiteGroupID != nil { + + // query param site_group_id + var qrSiteGroupID string + + if o.SiteGroupID != nil { + qrSiteGroupID = *o.SiteGroupID + } + qSiteGroupID := qrSiteGroupID + if qSiteGroupID != "" { + + if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil { + return err + } + } + } + + if o.SiteGroupIDn != nil { + + // query param site_group_id__n + var qrSiteGroupIDn string + + if o.SiteGroupIDn != nil { + qrSiteGroupIDn = *o.SiteGroupIDn + } + qSiteGroupIDn := qrSiteGroupIDn + if qSiteGroupIDn != "" { + + if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil { + return err + } + } + } + if o.SiteID != nil { // query param site_id diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go index 3d5149acd..3a344abc3 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go @@ -78,9 +78,6 @@ type DcimRackRolesListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -120,9 +117,6 @@ type DcimRackRolesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -186,9 +180,6 @@ type DcimRackRolesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -228,9 +219,6 @@ type DcimRackRolesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -328,17 +316,6 @@ func (o *DcimRackRolesListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) WithColorEmpty(colorEmpty *string) *DcimRackRolesListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithColorIc(colorIc *string) *DcimRackRolesListParams { o.SetColorIc(colorIc) @@ -482,17 +459,6 @@ func (o *DcimRackRolesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRackRolesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithDescriptionIc(descriptionIc *string) *DcimRackRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -713,17 +679,6 @@ func (o *DcimRackRolesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) WithNameEmpty(nameEmpty *string) *DcimRackRolesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithNameIc(nameIc *string) *DcimRackRolesListParams { o.SetNameIc(nameIc) @@ -856,17 +811,6 @@ func (o *DcimRackRolesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) WithSlugEmpty(slugEmpty *string) *DcimRackRolesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim rack roles list params -func (o *DcimRackRolesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim rack roles list params func (o *DcimRackRolesListParams) WithSlugIc(slugIc *string) *DcimRackRolesListParams { o.SetSlugIc(slugIc) @@ -1013,23 +957,6 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1251,23 +1178,6 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1608,23 +1518,6 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1829,23 +1722,6 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go index bc84b4c5e..9aa6de021 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go @@ -78,9 +78,6 @@ type DcimRacksListParams struct { // AssetTag. AssetTag *string - // AssetTagEmpty. - AssetTagEmpty *string - // AssetTagIc. AssetTagIc *string @@ -114,6 +111,12 @@ type DcimRacksListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -135,9 +138,6 @@ type DcimRacksListParams struct { // FacilityID. FacilityID *string - // FacilityIDEmpty. - FacilityIDEmpty *string - // FacilityIDIc. FacilityIDIc *string @@ -213,9 +213,6 @@ type DcimRacksListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -321,6 +318,33 @@ type DcimRacksListParams struct { // Serial. Serial *string + // SerialIc. + SerialIc *string + + // SerialIe. + SerialIe *string + + // SerialIew. + SerialIew *string + + // SerialIsw. + SerialIsw *string + + // Serialn. + Serialn *string + + // SerialNic. + SerialNic *string + + // SerialNie. + SerialNie *string + + // SerialNiew. + SerialNiew *string + + // SerialNisw. + SerialNisw *string + // Site. Site *string @@ -475,17 +499,6 @@ func (o *DcimRacksListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } -// WithAssetTagEmpty adds the assetTagEmpty to the dcim racks list params -func (o *DcimRacksListParams) WithAssetTagEmpty(assetTagEmpty *string) *DcimRacksListParams { - o.SetAssetTagEmpty(assetTagEmpty) - return o -} - -// SetAssetTagEmpty adds the assetTagEmpty to the dcim racks list params -func (o *DcimRacksListParams) SetAssetTagEmpty(assetTagEmpty *string) { - o.AssetTagEmpty = assetTagEmpty -} - // WithAssetTagIc adds the assetTagIc to the dcim racks list params func (o *DcimRacksListParams) WithAssetTagIc(assetTagIc *string) *DcimRacksListParams { o.SetAssetTagIc(assetTagIc) @@ -607,6 +620,28 @@ func (o *DcimRacksListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim racks list params +func (o *DcimRacksListParams) WithContactGroup(contactGroup *string) *DcimRacksListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim racks list params +func (o *DcimRacksListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim racks list params +func (o *DcimRacksListParams) WithContactGroupn(contactGroupn *string) *DcimRacksListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim racks list params +func (o *DcimRacksListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim racks list params func (o *DcimRacksListParams) WithContactRole(contactRole *string) *DcimRacksListParams { o.SetContactRole(contactRole) @@ -684,17 +719,6 @@ func (o *DcimRacksListParams) SetFacilityID(facilityID *string) { o.FacilityID = facilityID } -// WithFacilityIDEmpty adds the facilityIDEmpty to the dcim racks list params -func (o *DcimRacksListParams) WithFacilityIDEmpty(facilityIDEmpty *string) *DcimRacksListParams { - o.SetFacilityIDEmpty(facilityIDEmpty) - return o -} - -// SetFacilityIDEmpty adds the facilityIdEmpty to the dcim racks list params -func (o *DcimRacksListParams) SetFacilityIDEmpty(facilityIDEmpty *string) { - o.FacilityIDEmpty = facilityIDEmpty -} - // WithFacilityIDIc adds the facilityIDIc to the dcim racks list params func (o *DcimRacksListParams) WithFacilityIDIc(facilityIDIc *string) *DcimRacksListParams { o.SetFacilityIDIc(facilityIDIc) @@ -959,17 +983,6 @@ func (o *DcimRacksListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim racks list params -func (o *DcimRacksListParams) WithNameEmpty(nameEmpty *string) *DcimRacksListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim racks list params -func (o *DcimRacksListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim racks list params func (o *DcimRacksListParams) WithNameIc(nameIc *string) *DcimRacksListParams { o.SetNameIc(nameIc) @@ -1344,6 +1357,105 @@ func (o *DcimRacksListParams) SetSerial(serial *string) { o.Serial = serial } +// WithSerialIc adds the serialIc to the dcim racks list params +func (o *DcimRacksListParams) WithSerialIc(serialIc *string) *DcimRacksListParams { + o.SetSerialIc(serialIc) + return o +} + +// SetSerialIc adds the serialIc to the dcim racks list params +func (o *DcimRacksListParams) SetSerialIc(serialIc *string) { + o.SerialIc = serialIc +} + +// WithSerialIe adds the serialIe to the dcim racks list params +func (o *DcimRacksListParams) WithSerialIe(serialIe *string) *DcimRacksListParams { + o.SetSerialIe(serialIe) + return o +} + +// SetSerialIe adds the serialIe to the dcim racks list params +func (o *DcimRacksListParams) SetSerialIe(serialIe *string) { + o.SerialIe = serialIe +} + +// WithSerialIew adds the serialIew to the dcim racks list params +func (o *DcimRacksListParams) WithSerialIew(serialIew *string) *DcimRacksListParams { + o.SetSerialIew(serialIew) + return o +} + +// SetSerialIew adds the serialIew to the dcim racks list params +func (o *DcimRacksListParams) SetSerialIew(serialIew *string) { + o.SerialIew = serialIew +} + +// WithSerialIsw adds the serialIsw to the dcim racks list params +func (o *DcimRacksListParams) WithSerialIsw(serialIsw *string) *DcimRacksListParams { + o.SetSerialIsw(serialIsw) + return o +} + +// SetSerialIsw adds the serialIsw to the dcim racks list params +func (o *DcimRacksListParams) SetSerialIsw(serialIsw *string) { + o.SerialIsw = serialIsw +} + +// WithSerialn adds the serialn to the dcim racks list params +func (o *DcimRacksListParams) WithSerialn(serialn *string) *DcimRacksListParams { + o.SetSerialn(serialn) + return o +} + +// SetSerialn adds the serialN to the dcim racks list params +func (o *DcimRacksListParams) SetSerialn(serialn *string) { + o.Serialn = serialn +} + +// WithSerialNic adds the serialNic to the dcim racks list params +func (o *DcimRacksListParams) WithSerialNic(serialNic *string) *DcimRacksListParams { + o.SetSerialNic(serialNic) + return o +} + +// SetSerialNic adds the serialNic to the dcim racks list params +func (o *DcimRacksListParams) SetSerialNic(serialNic *string) { + o.SerialNic = serialNic +} + +// WithSerialNie adds the serialNie to the dcim racks list params +func (o *DcimRacksListParams) WithSerialNie(serialNie *string) *DcimRacksListParams { + o.SetSerialNie(serialNie) + return o +} + +// SetSerialNie adds the serialNie to the dcim racks list params +func (o *DcimRacksListParams) SetSerialNie(serialNie *string) { + o.SerialNie = serialNie +} + +// WithSerialNiew adds the serialNiew to the dcim racks list params +func (o *DcimRacksListParams) WithSerialNiew(serialNiew *string) *DcimRacksListParams { + o.SetSerialNiew(serialNiew) + return o +} + +// SetSerialNiew adds the serialNiew to the dcim racks list params +func (o *DcimRacksListParams) SetSerialNiew(serialNiew *string) { + o.SerialNiew = serialNiew +} + +// WithSerialNisw adds the serialNisw to the dcim racks list params +func (o *DcimRacksListParams) WithSerialNisw(serialNisw *string) *DcimRacksListParams { + o.SetSerialNisw(serialNisw) + return o +} + +// SetSerialNisw adds the serialNisw to the dcim racks list params +func (o *DcimRacksListParams) SetSerialNisw(serialNisw *string) { + o.SerialNisw = serialNisw +} + // WithSite adds the site to the dcim racks list params func (o *DcimRacksListParams) WithSite(site *string) *DcimRacksListParams { o.SetSite(site) @@ -1699,23 +1811,6 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.AssetTagEmpty != nil { - - // query param asset_tag__empty - var qrAssetTagEmpty string - - if o.AssetTagEmpty != nil { - qrAssetTagEmpty = *o.AssetTagEmpty - } - qAssetTagEmpty := qrAssetTagEmpty - if qAssetTagEmpty != "" { - - if err := r.SetQueryParam("asset_tag__empty", qAssetTagEmpty); err != nil { - return err - } - } - } - if o.AssetTagIc != nil { // query param asset_tag__ic @@ -1903,6 +1998,40 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -2022,23 +2151,6 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.FacilityIDEmpty != nil { - - // query param facility_id__empty - var qrFacilityIDEmpty string - - if o.FacilityIDEmpty != nil { - qrFacilityIDEmpty = *o.FacilityIDEmpty - } - qFacilityIDEmpty := qrFacilityIDEmpty - if qFacilityIDEmpty != "" { - - if err := r.SetQueryParam("facility_id__empty", qFacilityIDEmpty); err != nil { - return err - } - } - } - if o.FacilityIDIc != nil { // query param facility_id__ic @@ -2447,23 +2559,6 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -3042,6 +3137,159 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.SerialIc != nil { + + // query param serial__ic + var qrSerialIc string + + if o.SerialIc != nil { + qrSerialIc = *o.SerialIc + } + qSerialIc := qrSerialIc + if qSerialIc != "" { + + if err := r.SetQueryParam("serial__ic", qSerialIc); err != nil { + return err + } + } + } + + if o.SerialIe != nil { + + // query param serial__ie + var qrSerialIe string + + if o.SerialIe != nil { + qrSerialIe = *o.SerialIe + } + qSerialIe := qrSerialIe + if qSerialIe != "" { + + if err := r.SetQueryParam("serial__ie", qSerialIe); err != nil { + return err + } + } + } + + if o.SerialIew != nil { + + // query param serial__iew + var qrSerialIew string + + if o.SerialIew != nil { + qrSerialIew = *o.SerialIew + } + qSerialIew := qrSerialIew + if qSerialIew != "" { + + if err := r.SetQueryParam("serial__iew", qSerialIew); err != nil { + return err + } + } + } + + if o.SerialIsw != nil { + + // query param serial__isw + var qrSerialIsw string + + if o.SerialIsw != nil { + qrSerialIsw = *o.SerialIsw + } + qSerialIsw := qrSerialIsw + if qSerialIsw != "" { + + if err := r.SetQueryParam("serial__isw", qSerialIsw); err != nil { + return err + } + } + } + + if o.Serialn != nil { + + // query param serial__n + var qrSerialn string + + if o.Serialn != nil { + qrSerialn = *o.Serialn + } + qSerialn := qrSerialn + if qSerialn != "" { + + if err := r.SetQueryParam("serial__n", qSerialn); err != nil { + return err + } + } + } + + if o.SerialNic != nil { + + // query param serial__nic + var qrSerialNic string + + if o.SerialNic != nil { + qrSerialNic = *o.SerialNic + } + qSerialNic := qrSerialNic + if qSerialNic != "" { + + if err := r.SetQueryParam("serial__nic", qSerialNic); err != nil { + return err + } + } + } + + if o.SerialNie != nil { + + // query param serial__nie + var qrSerialNie string + + if o.SerialNie != nil { + qrSerialNie = *o.SerialNie + } + qSerialNie := qrSerialNie + if qSerialNie != "" { + + if err := r.SetQueryParam("serial__nie", qSerialNie); err != nil { + return err + } + } + } + + if o.SerialNiew != nil { + + // query param serial__niew + var qrSerialNiew string + + if o.SerialNiew != nil { + qrSerialNiew = *o.SerialNiew + } + qSerialNiew := qrSerialNiew + if qSerialNiew != "" { + + if err := r.SetQueryParam("serial__niew", qSerialNiew); err != nil { + return err + } + } + } + + if o.SerialNisw != nil { + + // query param serial__nisw + var qrSerialNisw string + + if o.SerialNisw != nil { + qrSerialNisw = *o.SerialNisw + } + qSerialNisw := qrSerialNisw + if qSerialNisw != "" { + + if err := r.SetQueryParam("serial__nisw", qSerialNisw); err != nil { + return err + } + } + } + if o.Site != nil { // query param site diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go index 8ffe1518e..e8797b130 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go @@ -78,9 +78,6 @@ type DcimRearPortTemplatesListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -156,12 +153,15 @@ type DcimRearPortTemplatesListParams struct { */ Limit *int64 + // ModuletypeID. + ModuletypeID *string + + // ModuletypeIDn. + ModuletypeIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -286,17 +286,6 @@ func (o *DcimRearPortTemplatesListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the dcim rear port templates list params -func (o *DcimRearPortTemplatesListParams) WithColorEmpty(colorEmpty *string) *DcimRearPortTemplatesListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the dcim rear port templates list params -func (o *DcimRearPortTemplatesListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithColorIc(colorIc *string) *DcimRearPortTemplatesListParams { o.SetColorIc(colorIc) @@ -561,6 +550,28 @@ func (o *DcimRearPortTemplatesListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithModuletypeID adds the moduletypeID to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithModuletypeID(moduletypeID *string) *DcimRearPortTemplatesListParams { + o.SetModuletypeID(moduletypeID) + return o +} + +// SetModuletypeID adds the moduletypeId to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetModuletypeID(moduletypeID *string) { + o.ModuletypeID = moduletypeID +} + +// WithModuletypeIDn adds the moduletypeIDn to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithModuletypeIDn(moduletypeIDn *string) *DcimRearPortTemplatesListParams { + o.SetModuletypeIDn(moduletypeIDn) + return o +} + +// SetModuletypeIDn adds the moduletypeIdN to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetModuletypeIDn(moduletypeIDn *string) { + o.ModuletypeIDn = moduletypeIDn +} + // WithName adds the name to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithName(name *string) *DcimRearPortTemplatesListParams { o.SetName(name) @@ -572,17 +583,6 @@ func (o *DcimRearPortTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim rear port templates list params -func (o *DcimRearPortTemplatesListParams) WithNameEmpty(nameEmpty *string) *DcimRearPortTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim rear port templates list params -func (o *DcimRearPortTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithNameIc(nameIc *string) *DcimRearPortTemplatesListParams { o.SetNameIc(nameIc) @@ -817,23 +817,6 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1242,35 +1225,52 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } - if o.Name != nil { + if o.ModuletypeID != nil { - // query param name - var qrName string + // query param moduletype_id + var qrModuletypeID string - if o.Name != nil { - qrName = *o.Name + if o.ModuletypeID != nil { + qrModuletypeID = *o.ModuletypeID } - qName := qrName - if qName != "" { + qModuletypeID := qrModuletypeID + if qModuletypeID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("moduletype_id", qModuletypeID); err != nil { return err } } } - if o.NameEmpty != nil { + if o.ModuletypeIDn != nil { - // query param name__empty - var qrNameEmpty string + // query param moduletype_id__n + var qrModuletypeIDn string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.ModuletypeIDn != nil { + qrModuletypeIDn = *o.ModuletypeIDn } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qModuletypeIDn := qrModuletypeIDn + if qModuletypeIDn != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("moduletype_id__n", qModuletypeIDn); err != nil { + return err + } + } + } + + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go index ed6ba8285..f94580d12 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go @@ -81,9 +81,6 @@ type DcimRearPortsListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -123,9 +120,6 @@ type DcimRearPortsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -186,9 +180,6 @@ type DcimRearPortsListParams struct { // Label. Label *string - // LabelEmpty. - LabelEmpty *string - // LabelIc. LabelIc *string @@ -243,12 +234,15 @@ type DcimRearPortsListParams struct { // LocationIDn. LocationIDn *string + // ModuleID. + ModuleID *string + + // ModuleIDn. + ModuleIDn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -438,17 +432,6 @@ func (o *DcimRearPortsListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) WithColorEmpty(colorEmpty *string) *DcimRearPortsListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithColorIc(colorIc *string) *DcimRearPortsListParams { o.SetColorIc(colorIc) @@ -592,17 +575,6 @@ func (o *DcimRearPortsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRearPortsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimRearPortsListParams { o.SetDescriptionIc(descriptionIc) @@ -823,17 +795,6 @@ func (o *DcimRearPortsListParams) SetLabel(label *string) { o.Label = label } -// WithLabelEmpty adds the labelEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) WithLabelEmpty(labelEmpty *string) *DcimRearPortsListParams { - o.SetLabelEmpty(labelEmpty) - return o -} - -// SetLabelEmpty adds the labelEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) SetLabelEmpty(labelEmpty *string) { - o.LabelEmpty = labelEmpty -} - // WithLabelIc adds the labelIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithLabelIc(labelIc *string) *DcimRearPortsListParams { o.SetLabelIc(labelIc) @@ -1021,6 +982,28 @@ func (o *DcimRearPortsListParams) SetLocationIDn(locationIDn *string) { o.LocationIDn = locationIDn } +// WithModuleID adds the moduleID to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithModuleID(moduleID *string) *DcimRearPortsListParams { + o.SetModuleID(moduleID) + return o +} + +// SetModuleID adds the moduleId to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetModuleID(moduleID *string) { + o.ModuleID = moduleID +} + +// WithModuleIDn adds the moduleIDn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithModuleIDn(moduleIDn *string) *DcimRearPortsListParams { + o.SetModuleIDn(moduleIDn) + return o +} + +// SetModuleIDn adds the moduleIdN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetModuleIDn(moduleIDn *string) { + o.ModuleIDn = moduleIDn +} + // WithName adds the name to the dcim rear ports list params func (o *DcimRearPortsListParams) WithName(name *string) *DcimRearPortsListParams { o.SetName(name) @@ -1032,17 +1015,6 @@ func (o *DcimRearPortsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) WithNameEmpty(nameEmpty *string) *DcimRearPortsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim rear ports list params -func (o *DcimRearPortsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim rear ports list params func (o *DcimRearPortsListParams) WithNameIc(nameIc *string) *DcimRearPortsListParams { o.SetNameIc(nameIc) @@ -1492,23 +1464,6 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1730,23 +1685,6 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -2087,23 +2025,6 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.LabelEmpty != nil { - - // query param label__empty - var qrLabelEmpty string - - if o.LabelEmpty != nil { - qrLabelEmpty = *o.LabelEmpty - } - qLabelEmpty := qrLabelEmpty - if qLabelEmpty != "" { - - if err := r.SetQueryParam("label__empty", qLabelEmpty); err != nil { - return err - } - } - } - if o.LabelIc != nil { // query param label__ic @@ -2393,35 +2314,52 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } } - if o.Name != nil { + if o.ModuleID != nil { - // query param name - var qrName string + // query param module_id + var qrModuleID string - if o.Name != nil { - qrName = *o.Name + if o.ModuleID != nil { + qrModuleID = *o.ModuleID } - qName := qrName - if qName != "" { + qModuleID := qrModuleID + if qModuleID != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("module_id", qModuleID); err != nil { + return err + } + } + } + + if o.ModuleIDn != nil { + + // query param module_id__n + var qrModuleIDn string + + if o.ModuleIDn != nil { + qrModuleIDn = *o.ModuleIDn + } + qModuleIDn := qrModuleIDn + if qModuleIDn != "" { + + if err := r.SetQueryParam("module_id__n", qModuleIDn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.Name != nil { - // query param name__empty - var qrNameEmpty string + // query param name + var qrName string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.Name != nil { + qrName = *o.Name } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qName := qrName + if qName != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("name", qName); err != nil { return err } } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go index 22ddc82a8..0c78135d7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go @@ -81,6 +81,12 @@ type DcimRegionsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -99,9 +105,6 @@ type DcimRegionsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +168,6 @@ type DcimRegionsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -219,9 +219,6 @@ type DcimRegionsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -330,6 +327,28 @@ func (o *DcimRegionsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim regions list params +func (o *DcimRegionsListParams) WithContactGroup(contactGroup *string) *DcimRegionsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim regions list params +func (o *DcimRegionsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim regions list params +func (o *DcimRegionsListParams) WithContactGroupn(contactGroupn *string) *DcimRegionsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim regions list params +func (o *DcimRegionsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim regions list params func (o *DcimRegionsListParams) WithContactRole(contactRole *string) *DcimRegionsListParams { o.SetContactRole(contactRole) @@ -396,17 +415,6 @@ func (o *DcimRegionsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim regions list params -func (o *DcimRegionsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimRegionsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim regions list params -func (o *DcimRegionsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim regions list params func (o *DcimRegionsListParams) WithDescriptionIc(descriptionIc *string) *DcimRegionsListParams { o.SetDescriptionIc(descriptionIc) @@ -627,17 +635,6 @@ func (o *DcimRegionsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim regions list params -func (o *DcimRegionsListParams) WithNameEmpty(nameEmpty *string) *DcimRegionsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim regions list params -func (o *DcimRegionsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim regions list params func (o *DcimRegionsListParams) WithNameIc(nameIc *string) *DcimRegionsListParams { o.SetNameIc(nameIc) @@ -814,17 +811,6 @@ func (o *DcimRegionsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim regions list params -func (o *DcimRegionsListParams) WithSlugEmpty(slugEmpty *string) *DcimRegionsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim regions list params -func (o *DcimRegionsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim regions list params func (o *DcimRegionsListParams) WithSlugIc(slugIc *string) *DcimRegionsListParams { o.SetSlugIc(slugIc) @@ -988,6 +974,40 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1090,23 +1110,6 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1447,23 +1450,6 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1736,23 +1722,6 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_site_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_site_groups_list_parameters.go index 756832e3c..933ae365c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_site_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_site_groups_list_parameters.go @@ -81,6 +81,12 @@ type DcimSiteGroupsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -99,9 +105,6 @@ type DcimSiteGroupsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +168,6 @@ type DcimSiteGroupsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -219,9 +219,6 @@ type DcimSiteGroupsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -330,6 +327,28 @@ func (o *DcimSiteGroupsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the dcim site groups list params +func (o *DcimSiteGroupsListParams) WithContactGroup(contactGroup *string) *DcimSiteGroupsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the dcim site groups list params +func (o *DcimSiteGroupsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the dcim site groups list params +func (o *DcimSiteGroupsListParams) WithContactGroupn(contactGroupn *string) *DcimSiteGroupsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the dcim site groups list params +func (o *DcimSiteGroupsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithContactRole(contactRole *string) *DcimSiteGroupsListParams { o.SetContactRole(contactRole) @@ -396,17 +415,6 @@ func (o *DcimSiteGroupsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim site groups list params -func (o *DcimSiteGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimSiteGroupsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim site groups list params -func (o *DcimSiteGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithDescriptionIc(descriptionIc *string) *DcimSiteGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -627,17 +635,6 @@ func (o *DcimSiteGroupsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim site groups list params -func (o *DcimSiteGroupsListParams) WithNameEmpty(nameEmpty *string) *DcimSiteGroupsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim site groups list params -func (o *DcimSiteGroupsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithNameIc(nameIc *string) *DcimSiteGroupsListParams { o.SetNameIc(nameIc) @@ -814,17 +811,6 @@ func (o *DcimSiteGroupsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim site groups list params -func (o *DcimSiteGroupsListParams) WithSlugEmpty(slugEmpty *string) *DcimSiteGroupsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim site groups list params -func (o *DcimSiteGroupsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim site groups list params func (o *DcimSiteGroupsListParams) WithSlugIc(slugIc *string) *DcimSiteGroupsListParams { o.SetSlugIc(slugIc) @@ -988,6 +974,40 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1090,23 +1110,6 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1447,23 +1450,6 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1736,23 +1722,6 @@ func (o *DcimSiteGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go index 48ef2d44c..e4823e02b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go @@ -78,18 +78,6 @@ type DcimSitesListParams struct { // Asn. Asn *string - // AsnGt. - AsnGt *string - - // AsnGte. - AsnGte *string - - // AsnLt. - AsnLt *string - - // AsnLte. - AsnLte *string - // Asnn. Asnn *string @@ -105,104 +93,11 @@ type DcimSitesListParams struct { // Contactn. Contactn *string - // ContactEmail. - ContactEmail *string - - // ContactEmailEmpty. - ContactEmailEmpty *string - - // ContactEmailIc. - ContactEmailIc *string - - // ContactEmailIe. - ContactEmailIe *string - - // ContactEmailIew. - ContactEmailIew *string - - // ContactEmailIsw. - ContactEmailIsw *string - - // ContactEmailn. - ContactEmailn *string - - // ContactEmailNic. - ContactEmailNic *string - - // ContactEmailNie. - ContactEmailNie *string - - // ContactEmailNiew. - ContactEmailNiew *string - - // ContactEmailNisw. - ContactEmailNisw *string - - // ContactName. - ContactName *string - - // ContactNameEmpty. - ContactNameEmpty *string - - // ContactNameIc. - ContactNameIc *string - - // ContactNameIe. - ContactNameIe *string - - // ContactNameIew. - ContactNameIew *string - - // ContactNameIsw. - ContactNameIsw *string - - // ContactNamen. - ContactNamen *string - - // ContactNameNic. - ContactNameNic *string - - // ContactNameNie. - ContactNameNie *string - - // ContactNameNiew. - ContactNameNiew *string - - // ContactNameNisw. - ContactNameNisw *string - - // ContactPhone. - ContactPhone *string - - // ContactPhoneEmpty. - ContactPhoneEmpty *string - - // ContactPhoneIc. - ContactPhoneIc *string - - // ContactPhoneIe. - ContactPhoneIe *string - - // ContactPhoneIew. - ContactPhoneIew *string - - // ContactPhoneIsw. - ContactPhoneIsw *string - - // ContactPhonen. - ContactPhonen *string + // ContactGroup. + ContactGroup *string - // ContactPhoneNic. - ContactPhoneNic *string - - // ContactPhoneNie. - ContactPhoneNie *string - - // ContactPhoneNiew. - ContactPhoneNiew *string - - // ContactPhoneNisw. - ContactPhoneNisw *string + // ContactGroupn. + ContactGroupn *string // ContactRole. ContactRole *string @@ -222,9 +117,6 @@ type DcimSitesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -255,9 +147,6 @@ type DcimSitesListParams struct { // Facility. Facility *string - // FacilityEmpty. - FacilityEmpty *string - // FacilityIc. FacilityIc *string @@ -369,9 +258,6 @@ type DcimSitesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -423,9 +309,6 @@ type DcimSitesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -553,50 +436,6 @@ func (o *DcimSitesListParams) SetAsn(asn *string) { o.Asn = asn } -// WithAsnGt adds the asnGt to the dcim sites list params -func (o *DcimSitesListParams) WithAsnGt(asnGt *string) *DcimSitesListParams { - o.SetAsnGt(asnGt) - return o -} - -// SetAsnGt adds the asnGt to the dcim sites list params -func (o *DcimSitesListParams) SetAsnGt(asnGt *string) { - o.AsnGt = asnGt -} - -// WithAsnGte adds the asnGte to the dcim sites list params -func (o *DcimSitesListParams) WithAsnGte(asnGte *string) *DcimSitesListParams { - o.SetAsnGte(asnGte) - return o -} - -// SetAsnGte adds the asnGte to the dcim sites list params -func (o *DcimSitesListParams) SetAsnGte(asnGte *string) { - o.AsnGte = asnGte -} - -// WithAsnLt adds the asnLt to the dcim sites list params -func (o *DcimSitesListParams) WithAsnLt(asnLt *string) *DcimSitesListParams { - o.SetAsnLt(asnLt) - return o -} - -// SetAsnLt adds the asnLt to the dcim sites list params -func (o *DcimSitesListParams) SetAsnLt(asnLt *string) { - o.AsnLt = asnLt -} - -// WithAsnLte adds the asnLte to the dcim sites list params -func (o *DcimSitesListParams) WithAsnLte(asnLte *string) *DcimSitesListParams { - o.SetAsnLte(asnLte) - return o -} - -// SetAsnLte adds the asnLte to the dcim sites list params -func (o *DcimSitesListParams) SetAsnLte(asnLte *string) { - o.AsnLte = asnLte -} - // WithAsnn adds the asnn to the dcim sites list params func (o *DcimSitesListParams) WithAsnn(asnn *string) *DcimSitesListParams { o.SetAsnn(asnn) @@ -652,367 +491,26 @@ func (o *DcimSitesListParams) SetContactn(contactn *string) { o.Contactn = contactn } -// WithContactEmail adds the contactEmail to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmail(contactEmail *string) *DcimSitesListParams { - o.SetContactEmail(contactEmail) - return o -} - -// SetContactEmail adds the contactEmail to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmail(contactEmail *string) { - o.ContactEmail = contactEmail -} - -// WithContactEmailEmpty adds the contactEmailEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailEmpty(contactEmailEmpty *string) *DcimSitesListParams { - o.SetContactEmailEmpty(contactEmailEmpty) - return o -} - -// SetContactEmailEmpty adds the contactEmailEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailEmpty(contactEmailEmpty *string) { - o.ContactEmailEmpty = contactEmailEmpty -} - -// WithContactEmailIc adds the contactEmailIc to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailIc(contactEmailIc *string) *DcimSitesListParams { - o.SetContactEmailIc(contactEmailIc) - return o -} - -// SetContactEmailIc adds the contactEmailIc to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailIc(contactEmailIc *string) { - o.ContactEmailIc = contactEmailIc -} - -// WithContactEmailIe adds the contactEmailIe to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailIe(contactEmailIe *string) *DcimSitesListParams { - o.SetContactEmailIe(contactEmailIe) - return o -} - -// SetContactEmailIe adds the contactEmailIe to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailIe(contactEmailIe *string) { - o.ContactEmailIe = contactEmailIe -} - -// WithContactEmailIew adds the contactEmailIew to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailIew(contactEmailIew *string) *DcimSitesListParams { - o.SetContactEmailIew(contactEmailIew) - return o -} - -// SetContactEmailIew adds the contactEmailIew to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailIew(contactEmailIew *string) { - o.ContactEmailIew = contactEmailIew -} - -// WithContactEmailIsw adds the contactEmailIsw to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailIsw(contactEmailIsw *string) *DcimSitesListParams { - o.SetContactEmailIsw(contactEmailIsw) - return o -} - -// SetContactEmailIsw adds the contactEmailIsw to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailIsw(contactEmailIsw *string) { - o.ContactEmailIsw = contactEmailIsw -} - -// WithContactEmailn adds the contactEmailn to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailn(contactEmailn *string) *DcimSitesListParams { - o.SetContactEmailn(contactEmailn) - return o -} - -// SetContactEmailn adds the contactEmailN to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailn(contactEmailn *string) { - o.ContactEmailn = contactEmailn -} - -// WithContactEmailNic adds the contactEmailNic to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailNic(contactEmailNic *string) *DcimSitesListParams { - o.SetContactEmailNic(contactEmailNic) - return o -} - -// SetContactEmailNic adds the contactEmailNic to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailNic(contactEmailNic *string) { - o.ContactEmailNic = contactEmailNic -} - -// WithContactEmailNie adds the contactEmailNie to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailNie(contactEmailNie *string) *DcimSitesListParams { - o.SetContactEmailNie(contactEmailNie) - return o -} - -// SetContactEmailNie adds the contactEmailNie to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailNie(contactEmailNie *string) { - o.ContactEmailNie = contactEmailNie -} - -// WithContactEmailNiew adds the contactEmailNiew to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailNiew(contactEmailNiew *string) *DcimSitesListParams { - o.SetContactEmailNiew(contactEmailNiew) - return o -} - -// SetContactEmailNiew adds the contactEmailNiew to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailNiew(contactEmailNiew *string) { - o.ContactEmailNiew = contactEmailNiew -} - -// WithContactEmailNisw adds the contactEmailNisw to the dcim sites list params -func (o *DcimSitesListParams) WithContactEmailNisw(contactEmailNisw *string) *DcimSitesListParams { - o.SetContactEmailNisw(contactEmailNisw) - return o -} - -// SetContactEmailNisw adds the contactEmailNisw to the dcim sites list params -func (o *DcimSitesListParams) SetContactEmailNisw(contactEmailNisw *string) { - o.ContactEmailNisw = contactEmailNisw -} - -// WithContactName adds the contactName to the dcim sites list params -func (o *DcimSitesListParams) WithContactName(contactName *string) *DcimSitesListParams { - o.SetContactName(contactName) - return o -} - -// SetContactName adds the contactName to the dcim sites list params -func (o *DcimSitesListParams) SetContactName(contactName *string) { - o.ContactName = contactName -} - -// WithContactNameEmpty adds the contactNameEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameEmpty(contactNameEmpty *string) *DcimSitesListParams { - o.SetContactNameEmpty(contactNameEmpty) - return o -} - -// SetContactNameEmpty adds the contactNameEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameEmpty(contactNameEmpty *string) { - o.ContactNameEmpty = contactNameEmpty -} - -// WithContactNameIc adds the contactNameIc to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameIc(contactNameIc *string) *DcimSitesListParams { - o.SetContactNameIc(contactNameIc) - return o -} - -// SetContactNameIc adds the contactNameIc to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameIc(contactNameIc *string) { - o.ContactNameIc = contactNameIc -} - -// WithContactNameIe adds the contactNameIe to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameIe(contactNameIe *string) *DcimSitesListParams { - o.SetContactNameIe(contactNameIe) - return o -} - -// SetContactNameIe adds the contactNameIe to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameIe(contactNameIe *string) { - o.ContactNameIe = contactNameIe -} - -// WithContactNameIew adds the contactNameIew to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameIew(contactNameIew *string) *DcimSitesListParams { - o.SetContactNameIew(contactNameIew) - return o -} - -// SetContactNameIew adds the contactNameIew to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameIew(contactNameIew *string) { - o.ContactNameIew = contactNameIew -} - -// WithContactNameIsw adds the contactNameIsw to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameIsw(contactNameIsw *string) *DcimSitesListParams { - o.SetContactNameIsw(contactNameIsw) - return o -} - -// SetContactNameIsw adds the contactNameIsw to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameIsw(contactNameIsw *string) { - o.ContactNameIsw = contactNameIsw -} - -// WithContactNamen adds the contactNamen to the dcim sites list params -func (o *DcimSitesListParams) WithContactNamen(contactNamen *string) *DcimSitesListParams { - o.SetContactNamen(contactNamen) - return o -} - -// SetContactNamen adds the contactNameN to the dcim sites list params -func (o *DcimSitesListParams) SetContactNamen(contactNamen *string) { - o.ContactNamen = contactNamen -} - -// WithContactNameNic adds the contactNameNic to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameNic(contactNameNic *string) *DcimSitesListParams { - o.SetContactNameNic(contactNameNic) - return o -} - -// SetContactNameNic adds the contactNameNic to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameNic(contactNameNic *string) { - o.ContactNameNic = contactNameNic -} - -// WithContactNameNie adds the contactNameNie to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameNie(contactNameNie *string) *DcimSitesListParams { - o.SetContactNameNie(contactNameNie) - return o -} - -// SetContactNameNie adds the contactNameNie to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameNie(contactNameNie *string) { - o.ContactNameNie = contactNameNie -} - -// WithContactNameNiew adds the contactNameNiew to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameNiew(contactNameNiew *string) *DcimSitesListParams { - o.SetContactNameNiew(contactNameNiew) - return o -} - -// SetContactNameNiew adds the contactNameNiew to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameNiew(contactNameNiew *string) { - o.ContactNameNiew = contactNameNiew -} - -// WithContactNameNisw adds the contactNameNisw to the dcim sites list params -func (o *DcimSitesListParams) WithContactNameNisw(contactNameNisw *string) *DcimSitesListParams { - o.SetContactNameNisw(contactNameNisw) - return o -} - -// SetContactNameNisw adds the contactNameNisw to the dcim sites list params -func (o *DcimSitesListParams) SetContactNameNisw(contactNameNisw *string) { - o.ContactNameNisw = contactNameNisw -} - -// WithContactPhone adds the contactPhone to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhone(contactPhone *string) *DcimSitesListParams { - o.SetContactPhone(contactPhone) - return o -} - -// SetContactPhone adds the contactPhone to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhone(contactPhone *string) { - o.ContactPhone = contactPhone -} - -// WithContactPhoneEmpty adds the contactPhoneEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneEmpty(contactPhoneEmpty *string) *DcimSitesListParams { - o.SetContactPhoneEmpty(contactPhoneEmpty) - return o -} - -// SetContactPhoneEmpty adds the contactPhoneEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneEmpty(contactPhoneEmpty *string) { - o.ContactPhoneEmpty = contactPhoneEmpty -} - -// WithContactPhoneIc adds the contactPhoneIc to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneIc(contactPhoneIc *string) *DcimSitesListParams { - o.SetContactPhoneIc(contactPhoneIc) - return o -} - -// SetContactPhoneIc adds the contactPhoneIc to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneIc(contactPhoneIc *string) { - o.ContactPhoneIc = contactPhoneIc -} - -// WithContactPhoneIe adds the contactPhoneIe to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneIe(contactPhoneIe *string) *DcimSitesListParams { - o.SetContactPhoneIe(contactPhoneIe) - return o -} - -// SetContactPhoneIe adds the contactPhoneIe to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneIe(contactPhoneIe *string) { - o.ContactPhoneIe = contactPhoneIe -} - -// WithContactPhoneIew adds the contactPhoneIew to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneIew(contactPhoneIew *string) *DcimSitesListParams { - o.SetContactPhoneIew(contactPhoneIew) - return o -} - -// SetContactPhoneIew adds the contactPhoneIew to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneIew(contactPhoneIew *string) { - o.ContactPhoneIew = contactPhoneIew -} - -// WithContactPhoneIsw adds the contactPhoneIsw to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneIsw(contactPhoneIsw *string) *DcimSitesListParams { - o.SetContactPhoneIsw(contactPhoneIsw) - return o -} - -// SetContactPhoneIsw adds the contactPhoneIsw to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneIsw(contactPhoneIsw *string) { - o.ContactPhoneIsw = contactPhoneIsw -} - -// WithContactPhonen adds the contactPhonen to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhonen(contactPhonen *string) *DcimSitesListParams { - o.SetContactPhonen(contactPhonen) - return o -} - -// SetContactPhonen adds the contactPhoneN to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhonen(contactPhonen *string) { - o.ContactPhonen = contactPhonen -} - -// WithContactPhoneNic adds the contactPhoneNic to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneNic(contactPhoneNic *string) *DcimSitesListParams { - o.SetContactPhoneNic(contactPhoneNic) - return o -} - -// SetContactPhoneNic adds the contactPhoneNic to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneNic(contactPhoneNic *string) { - o.ContactPhoneNic = contactPhoneNic -} - -// WithContactPhoneNie adds the contactPhoneNie to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneNie(contactPhoneNie *string) *DcimSitesListParams { - o.SetContactPhoneNie(contactPhoneNie) - return o -} - -// SetContactPhoneNie adds the contactPhoneNie to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneNie(contactPhoneNie *string) { - o.ContactPhoneNie = contactPhoneNie -} - -// WithContactPhoneNiew adds the contactPhoneNiew to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneNiew(contactPhoneNiew *string) *DcimSitesListParams { - o.SetContactPhoneNiew(contactPhoneNiew) +// WithContactGroup adds the contactGroup to the dcim sites list params +func (o *DcimSitesListParams) WithContactGroup(contactGroup *string) *DcimSitesListParams { + o.SetContactGroup(contactGroup) return o } -// SetContactPhoneNiew adds the contactPhoneNiew to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneNiew(contactPhoneNiew *string) { - o.ContactPhoneNiew = contactPhoneNiew +// SetContactGroup adds the contactGroup to the dcim sites list params +func (o *DcimSitesListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup } -// WithContactPhoneNisw adds the contactPhoneNisw to the dcim sites list params -func (o *DcimSitesListParams) WithContactPhoneNisw(contactPhoneNisw *string) *DcimSitesListParams { - o.SetContactPhoneNisw(contactPhoneNisw) +// WithContactGroupn adds the contactGroupn to the dcim sites list params +func (o *DcimSitesListParams) WithContactGroupn(contactGroupn *string) *DcimSitesListParams { + o.SetContactGroupn(contactGroupn) return o } -// SetContactPhoneNisw adds the contactPhoneNisw to the dcim sites list params -func (o *DcimSitesListParams) SetContactPhoneNisw(contactPhoneNisw *string) { - o.ContactPhoneNisw = contactPhoneNisw +// SetContactGroupn adds the contactGroupN to the dcim sites list params +func (o *DcimSitesListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn } // WithContactRole adds the contactRole to the dcim sites list params @@ -1081,17 +579,6 @@ func (o *DcimSitesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithDescriptionEmpty(descriptionEmpty *string) *DcimSitesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the dcim sites list params func (o *DcimSitesListParams) WithDescriptionIc(descriptionIc *string) *DcimSitesListParams { o.SetDescriptionIc(descriptionIc) @@ -1202,17 +689,6 @@ func (o *DcimSitesListParams) SetFacility(facility *string) { o.Facility = facility } -// WithFacilityEmpty adds the facilityEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithFacilityEmpty(facilityEmpty *string) *DcimSitesListParams { - o.SetFacilityEmpty(facilityEmpty) - return o -} - -// SetFacilityEmpty adds the facilityEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetFacilityEmpty(facilityEmpty *string) { - o.FacilityEmpty = facilityEmpty -} - // WithFacilityIc adds the facilityIc to the dcim sites list params func (o *DcimSitesListParams) WithFacilityIc(facilityIc *string) *DcimSitesListParams { o.SetFacilityIc(facilityIc) @@ -1609,17 +1085,6 @@ func (o *DcimSitesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithNameEmpty(nameEmpty *string) *DcimSitesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim sites list params func (o *DcimSitesListParams) WithNameIc(nameIc *string) *DcimSitesListParams { o.SetNameIc(nameIc) @@ -1796,17 +1261,6 @@ func (o *DcimSitesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the dcim sites list params -func (o *DcimSitesListParams) WithSlugEmpty(slugEmpty *string) *DcimSitesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the dcim sites list params -func (o *DcimSitesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the dcim sites list params func (o *DcimSitesListParams) WithSlugIc(slugIc *string) *DcimSitesListParams { o.SetSlugIc(slugIc) @@ -2063,115 +1517,47 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.AsnGt != nil { + if o.Asnn != nil { - // query param asn__gt - var qrAsnGt string + // query param asn__n + var qrAsnn string - if o.AsnGt != nil { - qrAsnGt = *o.AsnGt + if o.Asnn != nil { + qrAsnn = *o.Asnn } - qAsnGt := qrAsnGt - if qAsnGt != "" { + qAsnn := qrAsnn + if qAsnn != "" { - if err := r.SetQueryParam("asn__gt", qAsnGt); err != nil { + if err := r.SetQueryParam("asn__n", qAsnn); err != nil { return err } } } - if o.AsnGte != nil { + if o.AsnID != nil { - // query param asn__gte - var qrAsnGte string + // query param asn_id + var qrAsnID string - if o.AsnGte != nil { - qrAsnGte = *o.AsnGte + if o.AsnID != nil { + qrAsnID = *o.AsnID } - qAsnGte := qrAsnGte - if qAsnGte != "" { + qAsnID := qrAsnID + if qAsnID != "" { - if err := r.SetQueryParam("asn__gte", qAsnGte); err != nil { + if err := r.SetQueryParam("asn_id", qAsnID); err != nil { return err } } } - if o.AsnLt != nil { + if o.AsnIDn != nil { - // query param asn__lt - var qrAsnLt string + // query param asn_id__n + var qrAsnIDn string - if o.AsnLt != nil { - qrAsnLt = *o.AsnLt - } - qAsnLt := qrAsnLt - if qAsnLt != "" { - - if err := r.SetQueryParam("asn__lt", qAsnLt); err != nil { - return err - } - } - } - - if o.AsnLte != nil { - - // query param asn__lte - var qrAsnLte string - - if o.AsnLte != nil { - qrAsnLte = *o.AsnLte - } - qAsnLte := qrAsnLte - if qAsnLte != "" { - - if err := r.SetQueryParam("asn__lte", qAsnLte); err != nil { - return err - } - } - } - - if o.Asnn != nil { - - // query param asn__n - var qrAsnn string - - if o.Asnn != nil { - qrAsnn = *o.Asnn - } - qAsnn := qrAsnn - if qAsnn != "" { - - if err := r.SetQueryParam("asn__n", qAsnn); err != nil { - return err - } - } - } - - if o.AsnID != nil { - - // query param asn_id - var qrAsnID string - - if o.AsnID != nil { - qrAsnID = *o.AsnID - } - qAsnID := qrAsnID - if qAsnID != "" { - - if err := r.SetQueryParam("asn_id", qAsnID); err != nil { - return err - } - } - } - - if o.AsnIDn != nil { - - // query param asn_id__n - var qrAsnIDn string - - if o.AsnIDn != nil { - qrAsnIDn = *o.AsnIDn + if o.AsnIDn != nil { + qrAsnIDn = *o.AsnIDn } qAsnIDn := qrAsnIDn if qAsnIDn != "" { @@ -2216,562 +1602,35 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.ContactEmail != nil { - - // query param contact_email - var qrContactEmail string - - if o.ContactEmail != nil { - qrContactEmail = *o.ContactEmail - } - qContactEmail := qrContactEmail - if qContactEmail != "" { - - if err := r.SetQueryParam("contact_email", qContactEmail); err != nil { - return err - } - } - } - - if o.ContactEmailEmpty != nil { - - // query param contact_email__empty - var qrContactEmailEmpty string - - if o.ContactEmailEmpty != nil { - qrContactEmailEmpty = *o.ContactEmailEmpty - } - qContactEmailEmpty := qrContactEmailEmpty - if qContactEmailEmpty != "" { - - if err := r.SetQueryParam("contact_email__empty", qContactEmailEmpty); err != nil { - return err - } - } - } - - if o.ContactEmailIc != nil { - - // query param contact_email__ic - var qrContactEmailIc string - - if o.ContactEmailIc != nil { - qrContactEmailIc = *o.ContactEmailIc - } - qContactEmailIc := qrContactEmailIc - if qContactEmailIc != "" { - - if err := r.SetQueryParam("contact_email__ic", qContactEmailIc); err != nil { - return err - } - } - } - - if o.ContactEmailIe != nil { - - // query param contact_email__ie - var qrContactEmailIe string - - if o.ContactEmailIe != nil { - qrContactEmailIe = *o.ContactEmailIe - } - qContactEmailIe := qrContactEmailIe - if qContactEmailIe != "" { - - if err := r.SetQueryParam("contact_email__ie", qContactEmailIe); err != nil { - return err - } - } - } - - if o.ContactEmailIew != nil { - - // query param contact_email__iew - var qrContactEmailIew string - - if o.ContactEmailIew != nil { - qrContactEmailIew = *o.ContactEmailIew - } - qContactEmailIew := qrContactEmailIew - if qContactEmailIew != "" { - - if err := r.SetQueryParam("contact_email__iew", qContactEmailIew); err != nil { - return err - } - } - } - - if o.ContactEmailIsw != nil { - - // query param contact_email__isw - var qrContactEmailIsw string - - if o.ContactEmailIsw != nil { - qrContactEmailIsw = *o.ContactEmailIsw - } - qContactEmailIsw := qrContactEmailIsw - if qContactEmailIsw != "" { - - if err := r.SetQueryParam("contact_email__isw", qContactEmailIsw); err != nil { - return err - } - } - } - - if o.ContactEmailn != nil { + if o.ContactGroup != nil { - // query param contact_email__n - var qrContactEmailn string + // query param contact_group + var qrContactGroup string - if o.ContactEmailn != nil { - qrContactEmailn = *o.ContactEmailn + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup } - qContactEmailn := qrContactEmailn - if qContactEmailn != "" { + qContactGroup := qrContactGroup + if qContactGroup != "" { - if err := r.SetQueryParam("contact_email__n", qContactEmailn); err != nil { + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { return err } } } - if o.ContactEmailNic != nil { + if o.ContactGroupn != nil { - // query param contact_email__nic - var qrContactEmailNic string + // query param contact_group__n + var qrContactGroupn string - if o.ContactEmailNic != nil { - qrContactEmailNic = *o.ContactEmailNic + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn } - qContactEmailNic := qrContactEmailNic - if qContactEmailNic != "" { + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { - if err := r.SetQueryParam("contact_email__nic", qContactEmailNic); err != nil { - return err - } - } - } - - if o.ContactEmailNie != nil { - - // query param contact_email__nie - var qrContactEmailNie string - - if o.ContactEmailNie != nil { - qrContactEmailNie = *o.ContactEmailNie - } - qContactEmailNie := qrContactEmailNie - if qContactEmailNie != "" { - - if err := r.SetQueryParam("contact_email__nie", qContactEmailNie); err != nil { - return err - } - } - } - - if o.ContactEmailNiew != nil { - - // query param contact_email__niew - var qrContactEmailNiew string - - if o.ContactEmailNiew != nil { - qrContactEmailNiew = *o.ContactEmailNiew - } - qContactEmailNiew := qrContactEmailNiew - if qContactEmailNiew != "" { - - if err := r.SetQueryParam("contact_email__niew", qContactEmailNiew); err != nil { - return err - } - } - } - - if o.ContactEmailNisw != nil { - - // query param contact_email__nisw - var qrContactEmailNisw string - - if o.ContactEmailNisw != nil { - qrContactEmailNisw = *o.ContactEmailNisw - } - qContactEmailNisw := qrContactEmailNisw - if qContactEmailNisw != "" { - - if err := r.SetQueryParam("contact_email__nisw", qContactEmailNisw); err != nil { - return err - } - } - } - - if o.ContactName != nil { - - // query param contact_name - var qrContactName string - - if o.ContactName != nil { - qrContactName = *o.ContactName - } - qContactName := qrContactName - if qContactName != "" { - - if err := r.SetQueryParam("contact_name", qContactName); err != nil { - return err - } - } - } - - if o.ContactNameEmpty != nil { - - // query param contact_name__empty - var qrContactNameEmpty string - - if o.ContactNameEmpty != nil { - qrContactNameEmpty = *o.ContactNameEmpty - } - qContactNameEmpty := qrContactNameEmpty - if qContactNameEmpty != "" { - - if err := r.SetQueryParam("contact_name__empty", qContactNameEmpty); err != nil { - return err - } - } - } - - if o.ContactNameIc != nil { - - // query param contact_name__ic - var qrContactNameIc string - - if o.ContactNameIc != nil { - qrContactNameIc = *o.ContactNameIc - } - qContactNameIc := qrContactNameIc - if qContactNameIc != "" { - - if err := r.SetQueryParam("contact_name__ic", qContactNameIc); err != nil { - return err - } - } - } - - if o.ContactNameIe != nil { - - // query param contact_name__ie - var qrContactNameIe string - - if o.ContactNameIe != nil { - qrContactNameIe = *o.ContactNameIe - } - qContactNameIe := qrContactNameIe - if qContactNameIe != "" { - - if err := r.SetQueryParam("contact_name__ie", qContactNameIe); err != nil { - return err - } - } - } - - if o.ContactNameIew != nil { - - // query param contact_name__iew - var qrContactNameIew string - - if o.ContactNameIew != nil { - qrContactNameIew = *o.ContactNameIew - } - qContactNameIew := qrContactNameIew - if qContactNameIew != "" { - - if err := r.SetQueryParam("contact_name__iew", qContactNameIew); err != nil { - return err - } - } - } - - if o.ContactNameIsw != nil { - - // query param contact_name__isw - var qrContactNameIsw string - - if o.ContactNameIsw != nil { - qrContactNameIsw = *o.ContactNameIsw - } - qContactNameIsw := qrContactNameIsw - if qContactNameIsw != "" { - - if err := r.SetQueryParam("contact_name__isw", qContactNameIsw); err != nil { - return err - } - } - } - - if o.ContactNamen != nil { - - // query param contact_name__n - var qrContactNamen string - - if o.ContactNamen != nil { - qrContactNamen = *o.ContactNamen - } - qContactNamen := qrContactNamen - if qContactNamen != "" { - - if err := r.SetQueryParam("contact_name__n", qContactNamen); err != nil { - return err - } - } - } - - if o.ContactNameNic != nil { - - // query param contact_name__nic - var qrContactNameNic string - - if o.ContactNameNic != nil { - qrContactNameNic = *o.ContactNameNic - } - qContactNameNic := qrContactNameNic - if qContactNameNic != "" { - - if err := r.SetQueryParam("contact_name__nic", qContactNameNic); err != nil { - return err - } - } - } - - if o.ContactNameNie != nil { - - // query param contact_name__nie - var qrContactNameNie string - - if o.ContactNameNie != nil { - qrContactNameNie = *o.ContactNameNie - } - qContactNameNie := qrContactNameNie - if qContactNameNie != "" { - - if err := r.SetQueryParam("contact_name__nie", qContactNameNie); err != nil { - return err - } - } - } - - if o.ContactNameNiew != nil { - - // query param contact_name__niew - var qrContactNameNiew string - - if o.ContactNameNiew != nil { - qrContactNameNiew = *o.ContactNameNiew - } - qContactNameNiew := qrContactNameNiew - if qContactNameNiew != "" { - - if err := r.SetQueryParam("contact_name__niew", qContactNameNiew); err != nil { - return err - } - } - } - - if o.ContactNameNisw != nil { - - // query param contact_name__nisw - var qrContactNameNisw string - - if o.ContactNameNisw != nil { - qrContactNameNisw = *o.ContactNameNisw - } - qContactNameNisw := qrContactNameNisw - if qContactNameNisw != "" { - - if err := r.SetQueryParam("contact_name__nisw", qContactNameNisw); err != nil { - return err - } - } - } - - if o.ContactPhone != nil { - - // query param contact_phone - var qrContactPhone string - - if o.ContactPhone != nil { - qrContactPhone = *o.ContactPhone - } - qContactPhone := qrContactPhone - if qContactPhone != "" { - - if err := r.SetQueryParam("contact_phone", qContactPhone); err != nil { - return err - } - } - } - - if o.ContactPhoneEmpty != nil { - - // query param contact_phone__empty - var qrContactPhoneEmpty string - - if o.ContactPhoneEmpty != nil { - qrContactPhoneEmpty = *o.ContactPhoneEmpty - } - qContactPhoneEmpty := qrContactPhoneEmpty - if qContactPhoneEmpty != "" { - - if err := r.SetQueryParam("contact_phone__empty", qContactPhoneEmpty); err != nil { - return err - } - } - } - - if o.ContactPhoneIc != nil { - - // query param contact_phone__ic - var qrContactPhoneIc string - - if o.ContactPhoneIc != nil { - qrContactPhoneIc = *o.ContactPhoneIc - } - qContactPhoneIc := qrContactPhoneIc - if qContactPhoneIc != "" { - - if err := r.SetQueryParam("contact_phone__ic", qContactPhoneIc); err != nil { - return err - } - } - } - - if o.ContactPhoneIe != nil { - - // query param contact_phone__ie - var qrContactPhoneIe string - - if o.ContactPhoneIe != nil { - qrContactPhoneIe = *o.ContactPhoneIe - } - qContactPhoneIe := qrContactPhoneIe - if qContactPhoneIe != "" { - - if err := r.SetQueryParam("contact_phone__ie", qContactPhoneIe); err != nil { - return err - } - } - } - - if o.ContactPhoneIew != nil { - - // query param contact_phone__iew - var qrContactPhoneIew string - - if o.ContactPhoneIew != nil { - qrContactPhoneIew = *o.ContactPhoneIew - } - qContactPhoneIew := qrContactPhoneIew - if qContactPhoneIew != "" { - - if err := r.SetQueryParam("contact_phone__iew", qContactPhoneIew); err != nil { - return err - } - } - } - - if o.ContactPhoneIsw != nil { - - // query param contact_phone__isw - var qrContactPhoneIsw string - - if o.ContactPhoneIsw != nil { - qrContactPhoneIsw = *o.ContactPhoneIsw - } - qContactPhoneIsw := qrContactPhoneIsw - if qContactPhoneIsw != "" { - - if err := r.SetQueryParam("contact_phone__isw", qContactPhoneIsw); err != nil { - return err - } - } - } - - if o.ContactPhonen != nil { - - // query param contact_phone__n - var qrContactPhonen string - - if o.ContactPhonen != nil { - qrContactPhonen = *o.ContactPhonen - } - qContactPhonen := qrContactPhonen - if qContactPhonen != "" { - - if err := r.SetQueryParam("contact_phone__n", qContactPhonen); err != nil { - return err - } - } - } - - if o.ContactPhoneNic != nil { - - // query param contact_phone__nic - var qrContactPhoneNic string - - if o.ContactPhoneNic != nil { - qrContactPhoneNic = *o.ContactPhoneNic - } - qContactPhoneNic := qrContactPhoneNic - if qContactPhoneNic != "" { - - if err := r.SetQueryParam("contact_phone__nic", qContactPhoneNic); err != nil { - return err - } - } - } - - if o.ContactPhoneNie != nil { - - // query param contact_phone__nie - var qrContactPhoneNie string - - if o.ContactPhoneNie != nil { - qrContactPhoneNie = *o.ContactPhoneNie - } - qContactPhoneNie := qrContactPhoneNie - if qContactPhoneNie != "" { - - if err := r.SetQueryParam("contact_phone__nie", qContactPhoneNie); err != nil { - return err - } - } - } - - if o.ContactPhoneNiew != nil { - - // query param contact_phone__niew - var qrContactPhoneNiew string - - if o.ContactPhoneNiew != nil { - qrContactPhoneNiew = *o.ContactPhoneNiew - } - qContactPhoneNiew := qrContactPhoneNiew - if qContactPhoneNiew != "" { - - if err := r.SetQueryParam("contact_phone__niew", qContactPhoneNiew); err != nil { - return err - } - } - } - - if o.ContactPhoneNisw != nil { - - // query param contact_phone__nisw - var qrContactPhoneNisw string - - if o.ContactPhoneNisw != nil { - qrContactPhoneNisw = *o.ContactPhoneNisw - } - qContactPhoneNisw := qrContactPhoneNisw - if qContactPhoneNisw != "" { - - if err := r.SetQueryParam("contact_phone__nisw", qContactPhoneNisw); err != nil { + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { return err } } @@ -2879,23 +1738,6 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -3066,23 +1908,6 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.FacilityEmpty != nil { - - // query param facility__empty - var qrFacilityEmpty string - - if o.FacilityEmpty != nil { - qrFacilityEmpty = *o.FacilityEmpty - } - qFacilityEmpty := qrFacilityEmpty - if qFacilityEmpty != "" { - - if err := r.SetQueryParam("facility__empty", qFacilityEmpty); err != nil { - return err - } - } - } - if o.FacilityIc != nil { // query param facility__ic @@ -3695,23 +2520,6 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -3984,23 +2792,6 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go index afcb29c51..46c8dbdb2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go @@ -87,9 +87,6 @@ type DcimVirtualChassisListParams struct { // Domain. Domain *string - // DomainEmpty. - DomainEmpty *string - // DomainIc. DomainIc *string @@ -165,9 +162,6 @@ type DcimVirtualChassisListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -355,17 +349,6 @@ func (o *DcimVirtualChassisListParams) SetDomain(domain *string) { o.Domain = domain } -// WithDomainEmpty adds the domainEmpty to the dcim virtual chassis list params -func (o *DcimVirtualChassisListParams) WithDomainEmpty(domainEmpty *string) *DcimVirtualChassisListParams { - o.SetDomainEmpty(domainEmpty) - return o -} - -// SetDomainEmpty adds the domainEmpty to the dcim virtual chassis list params -func (o *DcimVirtualChassisListParams) SetDomainEmpty(domainEmpty *string) { - o.DomainEmpty = domainEmpty -} - // WithDomainIc adds the domainIc to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithDomainIc(domainIc *string) *DcimVirtualChassisListParams { o.SetDomainIc(domainIc) @@ -630,17 +613,6 @@ func (o *DcimVirtualChassisListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the dcim virtual chassis list params -func (o *DcimVirtualChassisListParams) WithNameEmpty(nameEmpty *string) *DcimVirtualChassisListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the dcim virtual chassis list params -func (o *DcimVirtualChassisListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithNameIc(nameIc *string) *DcimVirtualChassisListParams { o.SetNameIc(nameIc) @@ -1036,23 +1008,6 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.DomainEmpty != nil { - - // query param domain__empty - var qrDomainEmpty string - - if o.DomainEmpty != nil { - qrDomainEmpty = *o.DomainEmpty - } - qDomainEmpty := qrDomainEmpty - if qDomainEmpty != "" { - - if err := r.SetQueryParam("domain__empty", qDomainEmpty); err != nil { - return err - } - } - } - if o.DomainIc != nil { // query param domain__ic @@ -1461,23 +1416,6 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go index 9b4ccdd2c..eb23a7353 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go @@ -93,6 +93,18 @@ type ExtrasConfigContextsListParams struct { // ClusterIDn. ClusterIDn *string + // ClusterType. + ClusterType *string + + // ClusterTypen. + ClusterTypen *string + + // ClusterTypeID. + ClusterTypeID *string + + // ClusterTypeIDn. + ClusterTypeIDn *string + // Created. Created *string @@ -147,9 +159,6 @@ type ExtrasConfigContextsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -401,6 +410,50 @@ func (o *ExtrasConfigContextsListParams) SetClusterIDn(clusterIDn *string) { o.ClusterIDn = clusterIDn } +// WithClusterType adds the clusterType to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterType(clusterType *string) *ExtrasConfigContextsListParams { + o.SetClusterType(clusterType) + return o +} + +// SetClusterType adds the clusterType to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterType(clusterType *string) { + o.ClusterType = clusterType +} + +// WithClusterTypen adds the clusterTypen to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterTypen(clusterTypen *string) *ExtrasConfigContextsListParams { + o.SetClusterTypen(clusterTypen) + return o +} + +// SetClusterTypen adds the clusterTypeN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterTypen(clusterTypen *string) { + o.ClusterTypen = clusterTypen +} + +// WithClusterTypeID adds the clusterTypeID to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterTypeID(clusterTypeID *string) *ExtrasConfigContextsListParams { + o.SetClusterTypeID(clusterTypeID) + return o +} + +// SetClusterTypeID adds the clusterTypeId to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterTypeID(clusterTypeID *string) { + o.ClusterTypeID = clusterTypeID +} + +// WithClusterTypeIDn adds the clusterTypeIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterTypeIDn(clusterTypeIDn *string) *ExtrasConfigContextsListParams { + o.SetClusterTypeIDn(clusterTypeIDn) + return o +} + +// SetClusterTypeIDn adds the clusterTypeIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterTypeIDn(clusterTypeIDn *string) { + o.ClusterTypeIDn = clusterTypeIDn +} + // WithCreated adds the created to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithCreated(created *string) *ExtrasConfigContextsListParams { o.SetCreated(created) @@ -588,17 +641,6 @@ func (o *ExtrasConfigContextsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras config contexts list params -func (o *ExtrasConfigContextsListParams) WithNameEmpty(nameEmpty *string) *ExtrasConfigContextsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras config contexts list params -func (o *ExtrasConfigContextsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithNameIc(nameIc *string) *ExtrasConfigContextsListParams { o.SetNameIc(nameIc) @@ -1182,6 +1224,74 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.ClusterType != nil { + + // query param cluster_type + var qrClusterType string + + if o.ClusterType != nil { + qrClusterType = *o.ClusterType + } + qClusterType := qrClusterType + if qClusterType != "" { + + if err := r.SetQueryParam("cluster_type", qClusterType); err != nil { + return err + } + } + } + + if o.ClusterTypen != nil { + + // query param cluster_type__n + var qrClusterTypen string + + if o.ClusterTypen != nil { + qrClusterTypen = *o.ClusterTypen + } + qClusterTypen := qrClusterTypen + if qClusterTypen != "" { + + if err := r.SetQueryParam("cluster_type__n", qClusterTypen); err != nil { + return err + } + } + } + + if o.ClusterTypeID != nil { + + // query param cluster_type_id + var qrClusterTypeID string + + if o.ClusterTypeID != nil { + qrClusterTypeID = *o.ClusterTypeID + } + qClusterTypeID := qrClusterTypeID + if qClusterTypeID != "" { + + if err := r.SetQueryParam("cluster_type_id", qClusterTypeID); err != nil { + return err + } + } + } + + if o.ClusterTypeIDn != nil { + + // query param cluster_type_id__n + var qrClusterTypeIDn string + + if o.ClusterTypeIDn != nil { + qrClusterTypeIDn = *o.ClusterTypeIDn + } + qClusterTypeIDn := qrClusterTypeIDn + if qClusterTypeIDn != "" { + + if err := r.SetQueryParam("cluster_type_id__n", qClusterTypeIDn); err != nil { + return err + } + } + } + if o.Created != nil { // query param created @@ -1471,23 +1581,6 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_fields_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_fields_list_parameters.go index 115919b08..690085f90 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_fields_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_fields_list_parameters.go @@ -75,6 +75,24 @@ func NewExtrasCustomFieldsListParamsWithHTTPClient(client *http.Client) *ExtrasC */ type ExtrasCustomFieldsListParams struct { + // ContentTypeID. + ContentTypeID *string + + // ContentTypeIDGt. + ContentTypeIDGt *string + + // ContentTypeIDGte. + ContentTypeIDGte *string + + // ContentTypeIDLt. + ContentTypeIDLt *string + + // ContentTypeIDLte. + ContentTypeIDLte *string + + // ContentTypeIDn. + ContentTypeIDn *string + // ContentTypes. ContentTypes *string @@ -108,9 +126,6 @@ type ExtrasCustomFieldsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -171,9 +186,6 @@ type ExtrasCustomFieldsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -213,6 +225,12 @@ type ExtrasCustomFieldsListParams struct { // Required. Required *string + // Type. + Type *string + + // Typen. + Typen *string + // Weight. Weight *string @@ -284,6 +302,72 @@ func (o *ExtrasCustomFieldsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithContentTypeID adds the contentTypeID to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithContentTypeID(contentTypeID *string) *ExtrasCustomFieldsListParams { + o.SetContentTypeID(contentTypeID) + return o +} + +// SetContentTypeID adds the contentTypeId to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetContentTypeID(contentTypeID *string) { + o.ContentTypeID = contentTypeID +} + +// WithContentTypeIDGt adds the contentTypeIDGt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithContentTypeIDGt(contentTypeIDGt *string) *ExtrasCustomFieldsListParams { + o.SetContentTypeIDGt(contentTypeIDGt) + return o +} + +// SetContentTypeIDGt adds the contentTypeIdGt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetContentTypeIDGt(contentTypeIDGt *string) { + o.ContentTypeIDGt = contentTypeIDGt +} + +// WithContentTypeIDGte adds the contentTypeIDGte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithContentTypeIDGte(contentTypeIDGte *string) *ExtrasCustomFieldsListParams { + o.SetContentTypeIDGte(contentTypeIDGte) + return o +} + +// SetContentTypeIDGte adds the contentTypeIdGte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetContentTypeIDGte(contentTypeIDGte *string) { + o.ContentTypeIDGte = contentTypeIDGte +} + +// WithContentTypeIDLt adds the contentTypeIDLt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithContentTypeIDLt(contentTypeIDLt *string) *ExtrasCustomFieldsListParams { + o.SetContentTypeIDLt(contentTypeIDLt) + return o +} + +// SetContentTypeIDLt adds the contentTypeIdLt to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetContentTypeIDLt(contentTypeIDLt *string) { + o.ContentTypeIDLt = contentTypeIDLt +} + +// WithContentTypeIDLte adds the contentTypeIDLte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithContentTypeIDLte(contentTypeIDLte *string) *ExtrasCustomFieldsListParams { + o.SetContentTypeIDLte(contentTypeIDLte) + return o +} + +// SetContentTypeIDLte adds the contentTypeIdLte to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetContentTypeIDLte(contentTypeIDLte *string) { + o.ContentTypeIDLte = contentTypeIDLte +} + +// WithContentTypeIDn adds the contentTypeIDn to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithContentTypeIDn(contentTypeIDn *string) *ExtrasCustomFieldsListParams { + o.SetContentTypeIDn(contentTypeIDn) + return o +} + +// SetContentTypeIDn adds the contentTypeIdN to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetContentTypeIDn(contentTypeIDn *string) { + o.ContentTypeIDn = contentTypeIDn +} + // WithContentTypes adds the contentTypes to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithContentTypes(contentTypes *string) *ExtrasCustomFieldsListParams { o.SetContentTypes(contentTypes) @@ -405,17 +489,6 @@ func (o *ExtrasCustomFieldsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the extras custom fields list params -func (o *ExtrasCustomFieldsListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasCustomFieldsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the extras custom fields list params -func (o *ExtrasCustomFieldsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithDescriptionIc(descriptionIc *string) *ExtrasCustomFieldsListParams { o.SetDescriptionIc(descriptionIc) @@ -625,17 +698,6 @@ func (o *ExtrasCustomFieldsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras custom fields list params -func (o *ExtrasCustomFieldsListParams) WithNameEmpty(nameEmpty *string) *ExtrasCustomFieldsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras custom fields list params -func (o *ExtrasCustomFieldsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithNameIc(nameIc *string) *ExtrasCustomFieldsListParams { o.SetNameIc(nameIc) @@ -768,6 +830,28 @@ func (o *ExtrasCustomFieldsListParams) SetRequired(required *string) { o.Required = required } +// WithType adds the typeVar to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithType(typeVar *string) *ExtrasCustomFieldsListParams { + o.SetType(typeVar) + return o +} + +// SetType adds the type to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetType(typeVar *string) { + o.Type = typeVar +} + +// WithTypen adds the typen to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) WithTypen(typen *string) *ExtrasCustomFieldsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the extras custom fields list params +func (o *ExtrasCustomFieldsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WithWeight adds the weight to the extras custom fields list params func (o *ExtrasCustomFieldsListParams) WithWeight(weight *string) *ExtrasCustomFieldsListParams { o.SetWeight(weight) @@ -842,6 +926,108 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } var res []error + if o.ContentTypeID != nil { + + // query param content_type_id + var qrContentTypeID string + + if o.ContentTypeID != nil { + qrContentTypeID = *o.ContentTypeID + } + qContentTypeID := qrContentTypeID + if qContentTypeID != "" { + + if err := r.SetQueryParam("content_type_id", qContentTypeID); err != nil { + return err + } + } + } + + if o.ContentTypeIDGt != nil { + + // query param content_type_id__gt + var qrContentTypeIDGt string + + if o.ContentTypeIDGt != nil { + qrContentTypeIDGt = *o.ContentTypeIDGt + } + qContentTypeIDGt := qrContentTypeIDGt + if qContentTypeIDGt != "" { + + if err := r.SetQueryParam("content_type_id__gt", qContentTypeIDGt); err != nil { + return err + } + } + } + + if o.ContentTypeIDGte != nil { + + // query param content_type_id__gte + var qrContentTypeIDGte string + + if o.ContentTypeIDGte != nil { + qrContentTypeIDGte = *o.ContentTypeIDGte + } + qContentTypeIDGte := qrContentTypeIDGte + if qContentTypeIDGte != "" { + + if err := r.SetQueryParam("content_type_id__gte", qContentTypeIDGte); err != nil { + return err + } + } + } + + if o.ContentTypeIDLt != nil { + + // query param content_type_id__lt + var qrContentTypeIDLt string + + if o.ContentTypeIDLt != nil { + qrContentTypeIDLt = *o.ContentTypeIDLt + } + qContentTypeIDLt := qrContentTypeIDLt + if qContentTypeIDLt != "" { + + if err := r.SetQueryParam("content_type_id__lt", qContentTypeIDLt); err != nil { + return err + } + } + } + + if o.ContentTypeIDLte != nil { + + // query param content_type_id__lte + var qrContentTypeIDLte string + + if o.ContentTypeIDLte != nil { + qrContentTypeIDLte = *o.ContentTypeIDLte + } + qContentTypeIDLte := qrContentTypeIDLte + if qContentTypeIDLte != "" { + + if err := r.SetQueryParam("content_type_id__lte", qContentTypeIDLte); err != nil { + return err + } + } + } + + if o.ContentTypeIDn != nil { + + // query param content_type_id__n + var qrContentTypeIDn string + + if o.ContentTypeIDn != nil { + qrContentTypeIDn = *o.ContentTypeIDn + } + qContentTypeIDn := qrContentTypeIDn + if qContentTypeIDn != "" { + + if err := r.SetQueryParam("content_type_id__n", qContentTypeIDn); err != nil { + return err + } + } + } + if o.ContentTypes != nil { // query param content_types @@ -1029,23 +1215,6 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1369,23 +1538,6 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1590,6 +1742,40 @@ func (o *ExtrasCustomFieldsListParams) WriteToRequest(r runtime.ClientRequest, r } } + if o.Type != nil { + + // query param type + var qrType string + + if o.Type != nil { + qrType = *o.Type + } + qType := qrType + if qType != "" { + + if err := r.SetQueryParam("type", qType); err != nil { + return err + } + } + } + + if o.Typen != nil { + + // query param type__n + var qrTypen string + + if o.Typen != nil { + qrTypen = *o.Typen + } + qTypen := qrTypen + if qTypen != "" { + + if err := r.SetQueryParam("type__n", qTypen); err != nil { + return err + } + } + } + if o.Weight != nil { // query param weight diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_links_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_links_list_parameters.go index f80555420..44f0be35b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_links_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_custom_links_list_parameters.go @@ -81,12 +81,12 @@ type ExtrasCustomLinksListParams struct { // ContentTypen. ContentTypen *string + // Enabled. + Enabled *string + // GroupName. GroupName *string - // GroupNameEmpty. - GroupNameEmpty *string - // GroupNameIc. GroupNameIc *string @@ -141,9 +141,6 @@ type ExtrasCustomLinksListParams struct { // LinkText. LinkText *string - // LinkTextEmpty. - LinkTextEmpty *string - // LinkTextIc. LinkTextIc *string @@ -174,9 +171,6 @@ type ExtrasCustomLinksListParams struct { // LinkURL. LinkURL *string - // LinkURLEmpty. - LinkURLEmpty *string - // LinkURLIc. LinkURLIc *string @@ -207,9 +201,6 @@ type ExtrasCustomLinksListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -342,6 +333,17 @@ func (o *ExtrasCustomLinksListParams) SetContentTypen(contentTypen *string) { o.ContentTypen = contentTypen } +// WithEnabled adds the enabled to the extras custom links list params +func (o *ExtrasCustomLinksListParams) WithEnabled(enabled *string) *ExtrasCustomLinksListParams { + o.SetEnabled(enabled) + return o +} + +// SetEnabled adds the enabled to the extras custom links list params +func (o *ExtrasCustomLinksListParams) SetEnabled(enabled *string) { + o.Enabled = enabled +} + // WithGroupName adds the groupName to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithGroupName(groupName *string) *ExtrasCustomLinksListParams { o.SetGroupName(groupName) @@ -353,17 +355,6 @@ func (o *ExtrasCustomLinksListParams) SetGroupName(groupName *string) { o.GroupName = groupName } -// WithGroupNameEmpty adds the groupNameEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) WithGroupNameEmpty(groupNameEmpty *string) *ExtrasCustomLinksListParams { - o.SetGroupNameEmpty(groupNameEmpty) - return o -} - -// SetGroupNameEmpty adds the groupNameEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) SetGroupNameEmpty(groupNameEmpty *string) { - o.GroupNameEmpty = groupNameEmpty -} - // WithGroupNameIc adds the groupNameIc to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithGroupNameIc(groupNameIc *string) *ExtrasCustomLinksListParams { o.SetGroupNameIc(groupNameIc) @@ -551,17 +542,6 @@ func (o *ExtrasCustomLinksListParams) SetLinkText(linkText *string) { o.LinkText = linkText } -// WithLinkTextEmpty adds the linkTextEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) WithLinkTextEmpty(linkTextEmpty *string) *ExtrasCustomLinksListParams { - o.SetLinkTextEmpty(linkTextEmpty) - return o -} - -// SetLinkTextEmpty adds the linkTextEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) SetLinkTextEmpty(linkTextEmpty *string) { - o.LinkTextEmpty = linkTextEmpty -} - // WithLinkTextIc adds the linkTextIc to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithLinkTextIc(linkTextIc *string) *ExtrasCustomLinksListParams { o.SetLinkTextIc(linkTextIc) @@ -672,17 +652,6 @@ func (o *ExtrasCustomLinksListParams) SetLinkURL(linkURL *string) { o.LinkURL = linkURL } -// WithLinkURLEmpty adds the linkURLEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) WithLinkURLEmpty(linkURLEmpty *string) *ExtrasCustomLinksListParams { - o.SetLinkURLEmpty(linkURLEmpty) - return o -} - -// SetLinkURLEmpty adds the linkUrlEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) SetLinkURLEmpty(linkURLEmpty *string) { - o.LinkURLEmpty = linkURLEmpty -} - // WithLinkURLIc adds the linkURLIc to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithLinkURLIc(linkURLIc *string) *ExtrasCustomLinksListParams { o.SetLinkURLIc(linkURLIc) @@ -793,17 +762,6 @@ func (o *ExtrasCustomLinksListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) WithNameEmpty(nameEmpty *string) *ExtrasCustomLinksListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras custom links list params -func (o *ExtrasCustomLinksListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras custom links list params func (o *ExtrasCustomLinksListParams) WithNameIc(nameIc *string) *ExtrasCustomLinksListParams { o.SetNameIc(nameIc) @@ -1044,35 +1002,35 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.GroupName != nil { + if o.Enabled != nil { - // query param group_name - var qrGroupName string + // query param enabled + var qrEnabled string - if o.GroupName != nil { - qrGroupName = *o.GroupName + if o.Enabled != nil { + qrEnabled = *o.Enabled } - qGroupName := qrGroupName - if qGroupName != "" { + qEnabled := qrEnabled + if qEnabled != "" { - if err := r.SetQueryParam("group_name", qGroupName); err != nil { + if err := r.SetQueryParam("enabled", qEnabled); err != nil { return err } } } - if o.GroupNameEmpty != nil { + if o.GroupName != nil { - // query param group_name__empty - var qrGroupNameEmpty string + // query param group_name + var qrGroupName string - if o.GroupNameEmpty != nil { - qrGroupNameEmpty = *o.GroupNameEmpty + if o.GroupName != nil { + qrGroupName = *o.GroupName } - qGroupNameEmpty := qrGroupNameEmpty - if qGroupNameEmpty != "" { + qGroupName := qrGroupName + if qGroupName != "" { - if err := r.SetQueryParam("group_name__empty", qGroupNameEmpty); err != nil { + if err := r.SetQueryParam("group_name", qGroupName); err != nil { return err } } @@ -1367,23 +1325,6 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.LinkTextEmpty != nil { - - // query param link_text__empty - var qrLinkTextEmpty string - - if o.LinkTextEmpty != nil { - qrLinkTextEmpty = *o.LinkTextEmpty - } - qLinkTextEmpty := qrLinkTextEmpty - if qLinkTextEmpty != "" { - - if err := r.SetQueryParam("link_text__empty", qLinkTextEmpty); err != nil { - return err - } - } - } - if o.LinkTextIc != nil { // query param link_text__ic @@ -1554,23 +1495,6 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.LinkURLEmpty != nil { - - // query param link_url__empty - var qrLinkURLEmpty string - - if o.LinkURLEmpty != nil { - qrLinkURLEmpty = *o.LinkURLEmpty - } - qLinkURLEmpty := qrLinkURLEmpty - if qLinkURLEmpty != "" { - - if err := r.SetQueryParam("link_url__empty", qLinkURLEmpty); err != nil { - return err - } - } - } - if o.LinkURLIc != nil { // query param link_url__ic @@ -1741,23 +1665,6 @@ func (o *ExtrasCustomLinksListParams) WriteToRequest(r runtime.ClientRequest, re } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go index 70d923a59..3662329ac 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go @@ -84,9 +84,6 @@ type ExtrasExportTemplatesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -141,9 +138,6 @@ type ExtrasExportTemplatesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -266,17 +260,6 @@ func (o *ExtrasExportTemplatesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasExportTemplatesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the extras export templates list params func (o *ExtrasExportTemplatesListParams) WithDescriptionIc(descriptionIc *string) *ExtrasExportTemplatesListParams { o.SetDescriptionIc(descriptionIc) @@ -464,17 +447,6 @@ func (o *ExtrasExportTemplatesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) WithNameEmpty(nameEmpty *string) *ExtrasExportTemplatesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras export templates list params -func (o *ExtrasExportTemplatesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras export templates list params func (o *ExtrasExportTemplatesListParams) WithNameIc(nameIc *string) *ExtrasExportTemplatesListParams { o.SetNameIc(nameIc) @@ -655,23 +627,6 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -961,23 +916,6 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go index 7381bda45..9d6bb822c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go @@ -117,9 +117,6 @@ type ExtrasImageAttachmentsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -370,17 +367,6 @@ func (o *ExtrasImageAttachmentsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras image attachments list params -func (o *ExtrasImageAttachmentsListParams) WithNameEmpty(nameEmpty *string) *ExtrasImageAttachmentsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras image attachments list params -func (o *ExtrasImageAttachmentsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras image attachments list params func (o *ExtrasImageAttachmentsListParams) WithNameIc(nameIc *string) *ExtrasImageAttachmentsListParams { o.SetNameIc(nameIc) @@ -797,23 +783,6 @@ func (o *ExtrasImageAttachmentsListParams) WriteToRequest(r runtime.ClientReques } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_job_results_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_job_results_list_parameters.go index cce62591b..8093383fa 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_job_results_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_job_results_list_parameters.go @@ -108,9 +108,6 @@ type ExtrasJobResultsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -328,17 +325,6 @@ func (o *ExtrasJobResultsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras job results list params -func (o *ExtrasJobResultsListParams) WithNameEmpty(nameEmpty *string) *ExtrasJobResultsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras job results list params -func (o *ExtrasJobResultsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras job results list params func (o *ExtrasJobResultsListParams) WithNameIc(nameIc *string) *ExtrasJobResultsListParams { o.SetNameIc(nameIc) @@ -704,23 +690,6 @@ func (o *ExtrasJobResultsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_journal_entries_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_journal_entries_list_parameters.go index 435c5f718..0b7a5708c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_journal_entries_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_journal_entries_list_parameters.go @@ -174,6 +174,12 @@ type ExtrasJournalEntriesListParams struct { // Q. Q *string + // Tag. + Tag *string + + // Tagn. + Tagn *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -568,6 +574,28 @@ func (o *ExtrasJournalEntriesListParams) SetQ(q *string) { o.Q = q } +// WithTag adds the tag to the extras journal entries list params +func (o *ExtrasJournalEntriesListParams) WithTag(tag *string) *ExtrasJournalEntriesListParams { + o.SetTag(tag) + return o +} + +// SetTag adds the tag to the extras journal entries list params +func (o *ExtrasJournalEntriesListParams) SetTag(tag *string) { + o.Tag = tag +} + +// WithTagn adds the tagn to the extras journal entries list params +func (o *ExtrasJournalEntriesListParams) WithTagn(tagn *string) *ExtrasJournalEntriesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the extras journal entries list params +func (o *ExtrasJournalEntriesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *ExtrasJournalEntriesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -1103,6 +1131,40 @@ func (o *ExtrasJournalEntriesListParams) WriteToRequest(r runtime.ClientRequest, } } + if o.Tag != nil { + + // query param tag + var qrTag string + + if o.Tag != nil { + qrTag = *o.Tag + } + qTag := qrTag + if qTag != "" { + + if err := r.SetQueryParam("tag", qTag); err != nil { + return err + } + } + } + + if o.Tagn != nil { + + // query param tag__n + var qrTagn string + + if o.Tagn != nil { + qrTagn = *o.Tagn + } + qTagn := qrTagn + if qTagn != "" { + + if err := r.SetQueryParam("tag__n", qTagn); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go index 898b4376e..cebdc4f82 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go @@ -138,9 +138,6 @@ type ExtrasObjectChangesListParams struct { // ObjectRepr. ObjectRepr *string - // ObjectReprEmpty. - ObjectReprEmpty *string - // ObjectReprIc. ObjectReprIc *string @@ -198,9 +195,6 @@ type ExtrasObjectChangesListParams struct { // UserName. UserName *string - // UserNameEmpty. - UserNameEmpty *string - // UserNameIc. UserNameIc *string @@ -501,17 +495,6 @@ func (o *ExtrasObjectChangesListParams) SetObjectRepr(objectRepr *string) { o.ObjectRepr = objectRepr } -// WithObjectReprEmpty adds the objectReprEmpty to the extras object changes list params -func (o *ExtrasObjectChangesListParams) WithObjectReprEmpty(objectReprEmpty *string) *ExtrasObjectChangesListParams { - o.SetObjectReprEmpty(objectReprEmpty) - return o -} - -// SetObjectReprEmpty adds the objectReprEmpty to the extras object changes list params -func (o *ExtrasObjectChangesListParams) SetObjectReprEmpty(objectReprEmpty *string) { - o.ObjectReprEmpty = objectReprEmpty -} - // WithObjectReprIc adds the objectReprIc to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithObjectReprIc(objectReprIc *string) *ExtrasObjectChangesListParams { o.SetObjectReprIc(objectReprIc) @@ -710,17 +693,6 @@ func (o *ExtrasObjectChangesListParams) SetUserName(userName *string) { o.UserName = userName } -// WithUserNameEmpty adds the userNameEmpty to the extras object changes list params -func (o *ExtrasObjectChangesListParams) WithUserNameEmpty(userNameEmpty *string) *ExtrasObjectChangesListParams { - o.SetUserNameEmpty(userNameEmpty) - return o -} - -// SetUserNameEmpty adds the userNameEmpty to the extras object changes list params -func (o *ExtrasObjectChangesListParams) SetUserNameEmpty(userNameEmpty *string) { - o.UserNameEmpty = userNameEmpty -} - // WithUserNameIc adds the userNameIc to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithUserNameIc(userNameIc *string) *ExtrasObjectChangesListParams { o.SetUserNameIc(userNameIc) @@ -1168,23 +1140,6 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.ObjectReprEmpty != nil { - - // query param object_repr__empty - var qrObjectReprEmpty string - - if o.ObjectReprEmpty != nil { - qrObjectReprEmpty = *o.ObjectReprEmpty - } - qObjectReprEmpty := qrObjectReprEmpty - if qObjectReprEmpty != "" { - - if err := r.SetQueryParam("object_repr__empty", qObjectReprEmpty); err != nil { - return err - } - } - } - if o.ObjectReprIc != nil { // query param object_repr__ic @@ -1491,23 +1446,6 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.UserNameEmpty != nil { - - // query param user_name__empty - var qrUserNameEmpty string - - if o.UserNameEmpty != nil { - qrUserNameEmpty = *o.UserNameEmpty - } - qUserNameEmpty := qrUserNameEmpty - if qUserNameEmpty != "" { - - if err := r.SetQueryParam("user_name__empty", qUserNameEmpty); err != nil { - return err - } - } - } - if o.UserNameIc != nil { // query param user_name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_tags_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_tags_list_parameters.go index cfc68236b..c338d36e4 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_tags_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_tags_list_parameters.go @@ -78,9 +78,6 @@ type ExtrasTagsListParams struct { // Color. Color *string - // ColorEmpty. - ColorEmpty *string - // ColorIc. ColorIc *string @@ -126,9 +123,6 @@ type ExtrasTagsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -192,9 +186,6 @@ type ExtrasTagsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -234,9 +225,6 @@ type ExtrasTagsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -328,17 +316,6 @@ func (o *ExtrasTagsListParams) SetColor(color *string) { o.Color = color } -// WithColorEmpty adds the colorEmpty to the extras tags list params -func (o *ExtrasTagsListParams) WithColorEmpty(colorEmpty *string) *ExtrasTagsListParams { - o.SetColorEmpty(colorEmpty) - return o -} - -// SetColorEmpty adds the colorEmpty to the extras tags list params -func (o *ExtrasTagsListParams) SetColorEmpty(colorEmpty *string) { - o.ColorEmpty = colorEmpty -} - // WithColorIc adds the colorIc to the extras tags list params func (o *ExtrasTagsListParams) WithColorIc(colorIc *string) *ExtrasTagsListParams { o.SetColorIc(colorIc) @@ -504,17 +481,6 @@ func (o *ExtrasTagsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the extras tags list params -func (o *ExtrasTagsListParams) WithDescriptionEmpty(descriptionEmpty *string) *ExtrasTagsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the extras tags list params -func (o *ExtrasTagsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the extras tags list params func (o *ExtrasTagsListParams) WithDescriptionIc(descriptionIc *string) *ExtrasTagsListParams { o.SetDescriptionIc(descriptionIc) @@ -735,17 +701,6 @@ func (o *ExtrasTagsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras tags list params -func (o *ExtrasTagsListParams) WithNameEmpty(nameEmpty *string) *ExtrasTagsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras tags list params -func (o *ExtrasTagsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras tags list params func (o *ExtrasTagsListParams) WithNameIc(nameIc *string) *ExtrasTagsListParams { o.SetNameIc(nameIc) @@ -878,17 +833,6 @@ func (o *ExtrasTagsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the extras tags list params -func (o *ExtrasTagsListParams) WithSlugEmpty(slugEmpty *string) *ExtrasTagsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the extras tags list params -func (o *ExtrasTagsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the extras tags list params func (o *ExtrasTagsListParams) WithSlugIc(slugIc *string) *ExtrasTagsListParams { o.SetSlugIc(slugIc) @@ -1013,23 +957,6 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.ColorEmpty != nil { - - // query param color__empty - var qrColorEmpty string - - if o.ColorEmpty != nil { - qrColorEmpty = *o.ColorEmpty - } - qColorEmpty := qrColorEmpty - if qColorEmpty != "" { - - if err := r.SetQueryParam("color__empty", qColorEmpty); err != nil { - return err - } - } - } - if o.ColorIc != nil { // query param color__ic @@ -1285,23 +1212,6 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1642,23 +1552,6 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1863,23 +1756,6 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_webhooks_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_webhooks_list_parameters.go index 1d7986bf7..9c2b4d7b3 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_webhooks_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/extras/extras_webhooks_list_parameters.go @@ -78,9 +78,6 @@ type ExtrasWebhooksListParams struct { // CaFilePath. CaFilePath *string - // CaFilePathEmpty. - CaFilePathEmpty *string - // CaFilePathIc. CaFilePathIc *string @@ -108,6 +105,24 @@ type ExtrasWebhooksListParams struct { // CaFilePathNisw. CaFilePathNisw *string + // ContentTypeID. + ContentTypeID *string + + // ContentTypeIDGt. + ContentTypeIDGt *string + + // ContentTypeIDGte. + ContentTypeIDGte *string + + // ContentTypeIDLt. + ContentTypeIDLt *string + + // ContentTypeIDLte. + ContentTypeIDLte *string + + // ContentTypeIDn. + ContentTypeIDn *string + // ContentTypes. ContentTypes *string @@ -144,9 +159,6 @@ type ExtrasWebhooksListParams struct { // HTTPContentType. HTTPContentType *string - // HTTPContentTypeEmpty. - HTTPContentTypeEmpty *string - // HTTPContentTypeIc. HTTPContentTypeIc *string @@ -207,9 +219,6 @@ type ExtrasWebhooksListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -246,9 +255,6 @@ type ExtrasWebhooksListParams struct { // PayloadURL. PayloadURL *string - // PayloadURLEmpty. - PayloadURLEmpty *string - // PayloadURLIc. PayloadURLIc *string @@ -282,9 +288,6 @@ type ExtrasWebhooksListParams struct { // Secret. Secret *string - // SecretEmpty. - SecretEmpty *string - // SecretIc. SecretIc *string @@ -388,17 +391,6 @@ func (o *ExtrasWebhooksListParams) SetCaFilePath(caFilePath *string) { o.CaFilePath = caFilePath } -// WithCaFilePathEmpty adds the caFilePathEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) WithCaFilePathEmpty(caFilePathEmpty *string) *ExtrasWebhooksListParams { - o.SetCaFilePathEmpty(caFilePathEmpty) - return o -} - -// SetCaFilePathEmpty adds the caFilePathEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) SetCaFilePathEmpty(caFilePathEmpty *string) { - o.CaFilePathEmpty = caFilePathEmpty -} - // WithCaFilePathIc adds the caFilePathIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithCaFilePathIc(caFilePathIc *string) *ExtrasWebhooksListParams { o.SetCaFilePathIc(caFilePathIc) @@ -498,6 +490,72 @@ func (o *ExtrasWebhooksListParams) SetCaFilePathNisw(caFilePathNisw *string) { o.CaFilePathNisw = caFilePathNisw } +// WithContentTypeID adds the contentTypeID to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithContentTypeID(contentTypeID *string) *ExtrasWebhooksListParams { + o.SetContentTypeID(contentTypeID) + return o +} + +// SetContentTypeID adds the contentTypeId to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetContentTypeID(contentTypeID *string) { + o.ContentTypeID = contentTypeID +} + +// WithContentTypeIDGt adds the contentTypeIDGt to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithContentTypeIDGt(contentTypeIDGt *string) *ExtrasWebhooksListParams { + o.SetContentTypeIDGt(contentTypeIDGt) + return o +} + +// SetContentTypeIDGt adds the contentTypeIdGt to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetContentTypeIDGt(contentTypeIDGt *string) { + o.ContentTypeIDGt = contentTypeIDGt +} + +// WithContentTypeIDGte adds the contentTypeIDGte to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithContentTypeIDGte(contentTypeIDGte *string) *ExtrasWebhooksListParams { + o.SetContentTypeIDGte(contentTypeIDGte) + return o +} + +// SetContentTypeIDGte adds the contentTypeIdGte to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetContentTypeIDGte(contentTypeIDGte *string) { + o.ContentTypeIDGte = contentTypeIDGte +} + +// WithContentTypeIDLt adds the contentTypeIDLt to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithContentTypeIDLt(contentTypeIDLt *string) *ExtrasWebhooksListParams { + o.SetContentTypeIDLt(contentTypeIDLt) + return o +} + +// SetContentTypeIDLt adds the contentTypeIdLt to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetContentTypeIDLt(contentTypeIDLt *string) { + o.ContentTypeIDLt = contentTypeIDLt +} + +// WithContentTypeIDLte adds the contentTypeIDLte to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithContentTypeIDLte(contentTypeIDLte *string) *ExtrasWebhooksListParams { + o.SetContentTypeIDLte(contentTypeIDLte) + return o +} + +// SetContentTypeIDLte adds the contentTypeIdLte to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetContentTypeIDLte(contentTypeIDLte *string) { + o.ContentTypeIDLte = contentTypeIDLte +} + +// WithContentTypeIDn adds the contentTypeIDn to the extras webhooks list params +func (o *ExtrasWebhooksListParams) WithContentTypeIDn(contentTypeIDn *string) *ExtrasWebhooksListParams { + o.SetContentTypeIDn(contentTypeIDn) + return o +} + +// SetContentTypeIDn adds the contentTypeIdN to the extras webhooks list params +func (o *ExtrasWebhooksListParams) SetContentTypeIDn(contentTypeIDn *string) { + o.ContentTypeIDn = contentTypeIDn +} + // WithContentTypes adds the contentTypes to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithContentTypes(contentTypes *string) *ExtrasWebhooksListParams { o.SetContentTypes(contentTypes) @@ -630,17 +688,6 @@ func (o *ExtrasWebhooksListParams) SetHTTPContentType(hTTPContentType *string) { o.HTTPContentType = hTTPContentType } -// WithHTTPContentTypeEmpty adds the hTTPContentTypeEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) WithHTTPContentTypeEmpty(hTTPContentTypeEmpty *string) *ExtrasWebhooksListParams { - o.SetHTTPContentTypeEmpty(hTTPContentTypeEmpty) - return o -} - -// SetHTTPContentTypeEmpty adds the httpContentTypeEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) SetHTTPContentTypeEmpty(hTTPContentTypeEmpty *string) { - o.HTTPContentTypeEmpty = hTTPContentTypeEmpty -} - // WithHTTPContentTypeIc adds the hTTPContentTypeIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithHTTPContentTypeIc(hTTPContentTypeIc *string) *ExtrasWebhooksListParams { o.SetHTTPContentTypeIc(hTTPContentTypeIc) @@ -850,17 +897,6 @@ func (o *ExtrasWebhooksListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) WithNameEmpty(nameEmpty *string) *ExtrasWebhooksListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithNameIc(nameIc *string) *ExtrasWebhooksListParams { o.SetNameIc(nameIc) @@ -982,17 +1018,6 @@ func (o *ExtrasWebhooksListParams) SetPayloadURL(payloadURL *string) { o.PayloadURL = payloadURL } -// WithPayloadURLEmpty adds the payloadURLEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) WithPayloadURLEmpty(payloadURLEmpty *string) *ExtrasWebhooksListParams { - o.SetPayloadURLEmpty(payloadURLEmpty) - return o -} - -// SetPayloadURLEmpty adds the payloadUrlEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) SetPayloadURLEmpty(payloadURLEmpty *string) { - o.PayloadURLEmpty = payloadURLEmpty -} - // WithPayloadURLIc adds the payloadURLIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithPayloadURLIc(payloadURLIc *string) *ExtrasWebhooksListParams { o.SetPayloadURLIc(payloadURLIc) @@ -1114,17 +1139,6 @@ func (o *ExtrasWebhooksListParams) SetSecret(secret *string) { o.Secret = secret } -// WithSecretEmpty adds the secretEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) WithSecretEmpty(secretEmpty *string) *ExtrasWebhooksListParams { - o.SetSecretEmpty(secretEmpty) - return o -} - -// SetSecretEmpty adds the secretEmpty to the extras webhooks list params -func (o *ExtrasWebhooksListParams) SetSecretEmpty(secretEmpty *string) { - o.SecretEmpty = secretEmpty -} - // WithSecretIc adds the secretIc to the extras webhooks list params func (o *ExtrasWebhooksListParams) WithSecretIc(secretIc *string) *ExtrasWebhooksListParams { o.SetSecretIc(secretIc) @@ -1293,23 +1307,6 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.CaFilePathEmpty != nil { - - // query param ca_file_path__empty - var qrCaFilePathEmpty string - - if o.CaFilePathEmpty != nil { - qrCaFilePathEmpty = *o.CaFilePathEmpty - } - qCaFilePathEmpty := qrCaFilePathEmpty - if qCaFilePathEmpty != "" { - - if err := r.SetQueryParam("ca_file_path__empty", qCaFilePathEmpty); err != nil { - return err - } - } - } - if o.CaFilePathIc != nil { // query param ca_file_path__ic @@ -1463,6 +1460,108 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.ContentTypeID != nil { + + // query param content_type_id + var qrContentTypeID string + + if o.ContentTypeID != nil { + qrContentTypeID = *o.ContentTypeID + } + qContentTypeID := qrContentTypeID + if qContentTypeID != "" { + + if err := r.SetQueryParam("content_type_id", qContentTypeID); err != nil { + return err + } + } + } + + if o.ContentTypeIDGt != nil { + + // query param content_type_id__gt + var qrContentTypeIDGt string + + if o.ContentTypeIDGt != nil { + qrContentTypeIDGt = *o.ContentTypeIDGt + } + qContentTypeIDGt := qrContentTypeIDGt + if qContentTypeIDGt != "" { + + if err := r.SetQueryParam("content_type_id__gt", qContentTypeIDGt); err != nil { + return err + } + } + } + + if o.ContentTypeIDGte != nil { + + // query param content_type_id__gte + var qrContentTypeIDGte string + + if o.ContentTypeIDGte != nil { + qrContentTypeIDGte = *o.ContentTypeIDGte + } + qContentTypeIDGte := qrContentTypeIDGte + if qContentTypeIDGte != "" { + + if err := r.SetQueryParam("content_type_id__gte", qContentTypeIDGte); err != nil { + return err + } + } + } + + if o.ContentTypeIDLt != nil { + + // query param content_type_id__lt + var qrContentTypeIDLt string + + if o.ContentTypeIDLt != nil { + qrContentTypeIDLt = *o.ContentTypeIDLt + } + qContentTypeIDLt := qrContentTypeIDLt + if qContentTypeIDLt != "" { + + if err := r.SetQueryParam("content_type_id__lt", qContentTypeIDLt); err != nil { + return err + } + } + } + + if o.ContentTypeIDLte != nil { + + // query param content_type_id__lte + var qrContentTypeIDLte string + + if o.ContentTypeIDLte != nil { + qrContentTypeIDLte = *o.ContentTypeIDLte + } + qContentTypeIDLte := qrContentTypeIDLte + if qContentTypeIDLte != "" { + + if err := r.SetQueryParam("content_type_id__lte", qContentTypeIDLte); err != nil { + return err + } + } + } + + if o.ContentTypeIDn != nil { + + // query param content_type_id__n + var qrContentTypeIDn string + + if o.ContentTypeIDn != nil { + qrContentTypeIDn = *o.ContentTypeIDn + } + qContentTypeIDn := qrContentTypeIDn + if qContentTypeIDn != "" { + + if err := r.SetQueryParam("content_type_id__n", qContentTypeIDn); err != nil { + return err + } + } + } + if o.ContentTypes != nil { // query param content_types @@ -1667,23 +1766,6 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.HTTPContentTypeEmpty != nil { - - // query param http_content_type__empty - var qrHTTPContentTypeEmpty string - - if o.HTTPContentTypeEmpty != nil { - qrHTTPContentTypeEmpty = *o.HTTPContentTypeEmpty - } - qHTTPContentTypeEmpty := qrHTTPContentTypeEmpty - if qHTTPContentTypeEmpty != "" { - - if err := r.SetQueryParam("http_content_type__empty", qHTTPContentTypeEmpty); err != nil { - return err - } - } - } - if o.HTTPContentTypeIc != nil { // query param http_content_type__ic @@ -2007,23 +2089,6 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -2211,23 +2276,6 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.PayloadURLEmpty != nil { - - // query param payload_url__empty - var qrPayloadURLEmpty string - - if o.PayloadURLEmpty != nil { - qrPayloadURLEmpty = *o.PayloadURLEmpty - } - qPayloadURLEmpty := qrPayloadURLEmpty - if qPayloadURLEmpty != "" { - - if err := r.SetQueryParam("payload_url__empty", qPayloadURLEmpty); err != nil { - return err - } - } - } - if o.PayloadURLIc != nil { // query param payload_url__ic @@ -2415,23 +2463,6 @@ func (o *ExtrasWebhooksListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.SecretEmpty != nil { - - // query param secret__empty - var qrSecretEmpty string - - if o.SecretEmpty != nil { - qrSecretEmpty = *o.SecretEmpty - } - qSecretEmpty := qrSecretEmpty - if qSecretEmpty != "" { - - if err := r.SetQueryParam("secret__empty", qSecretEmpty); err != nil { - return err - } - } - } - if o.SecretIc != nil { // query param secret__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go index 592f05d57..ef63172b5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go @@ -105,9 +105,6 @@ type IpamAggregatesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -388,17 +385,6 @@ func (o *IpamAggregatesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam aggregates list params -func (o *IpamAggregatesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamAggregatesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam aggregates list params -func (o *IpamAggregatesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam aggregates list params func (o *IpamAggregatesListParams) WithDescriptionIc(descriptionIc *string) *IpamAggregatesListParams { o.SetDescriptionIc(descriptionIc) @@ -984,23 +970,6 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_asns_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_asns_list_parameters.go index ba572b62a..e6e47d823 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_asns_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_asns_list_parameters.go @@ -105,9 +105,6 @@ type IpamAsnsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -201,6 +198,12 @@ type IpamAsnsListParams struct { // SiteIDn. SiteIDn *string + // Tag. + Tag *string + + // Tagn. + Tagn *string + // Tenant. Tenant *string @@ -388,17 +391,6 @@ func (o *IpamAsnsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam asns list params -func (o *IpamAsnsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamAsnsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam asns list params -func (o *IpamAsnsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam asns list params func (o *IpamAsnsListParams) WithDescriptionIc(descriptionIc *string) *IpamAsnsListParams { o.SetDescriptionIc(descriptionIc) @@ -718,6 +710,28 @@ func (o *IpamAsnsListParams) SetSiteIDn(siteIDn *string) { o.SiteIDn = siteIDn } +// WithTag adds the tag to the ipam asns list params +func (o *IpamAsnsListParams) WithTag(tag *string) *IpamAsnsListParams { + o.SetTag(tag) + return o +} + +// SetTag adds the tag to the ipam asns list params +func (o *IpamAsnsListParams) SetTag(tag *string) { + o.Tag = tag +} + +// WithTagn adds the tagn to the ipam asns list params +func (o *IpamAsnsListParams) WithTagn(tagn *string) *IpamAsnsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam asns list params +func (o *IpamAsnsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the ipam asns list params func (o *IpamAsnsListParams) WithTenant(tenant *string) *IpamAsnsListParams { o.SetTenant(tenant) @@ -984,23 +998,6 @@ func (o *IpamAsnsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1494,6 +1491,40 @@ func (o *IpamAsnsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } + if o.Tag != nil { + + // query param tag + var qrTag string + + if o.Tag != nil { + qrTag = *o.Tag + } + qTag := qrTag + if qTag != "" { + + if err := r.SetQueryParam("tag", qTag); err != nil { + return err + } + } + } + + if o.Tagn != nil { + + // query param tag__n + var qrTagn string + + if o.Tagn != nil { + qrTagn = *o.Tagn + } + qTagn := qrTagn + if qTagn != "" { + + if err := r.SetQueryParam("tag__n", qTagn); err != nil { + return err + } + } + } + if o.Tenant != nil { // query param tenant diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_client.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_client.go index 81cebf0ad..c2a6011de 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_client.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_client.go @@ -237,6 +237,24 @@ type ClientService interface { IpamRouteTargetsUpdate(params *IpamRouteTargetsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsUpdateOK, error) + IpamServiceTemplatesBulkDelete(params *IpamServiceTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesBulkDeleteNoContent, error) + + IpamServiceTemplatesBulkPartialUpdate(params *IpamServiceTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesBulkPartialUpdateOK, error) + + IpamServiceTemplatesBulkUpdate(params *IpamServiceTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesBulkUpdateOK, error) + + IpamServiceTemplatesCreate(params *IpamServiceTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesCreateCreated, error) + + IpamServiceTemplatesDelete(params *IpamServiceTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesDeleteNoContent, error) + + IpamServiceTemplatesList(params *IpamServiceTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesListOK, error) + + IpamServiceTemplatesPartialUpdate(params *IpamServiceTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesPartialUpdateOK, error) + + IpamServiceTemplatesRead(params *IpamServiceTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesReadOK, error) + + IpamServiceTemplatesUpdate(params *IpamServiceTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesUpdateOK, error) + IpamServicesBulkDelete(params *IpamServicesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkDeleteNoContent, error) IpamServicesBulkPartialUpdate(params *IpamServicesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkPartialUpdateOK, error) @@ -255,6 +273,10 @@ type ClientService interface { IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesUpdateOK, error) + IpamVlanGroupsAvailableVlansCreate(params *IpamVlanGroupsAvailableVlansCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsAvailableVlansCreateCreated, error) + + IpamVlanGroupsAvailableVlansList(params *IpamVlanGroupsAvailableVlansListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsAvailableVlansListOK, error) + IpamVlanGroupsBulkDelete(params *IpamVlanGroupsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkDeleteNoContent, error) IpamVlanGroupsBulkPartialUpdate(params *IpamVlanGroupsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkPartialUpdateOK, error) @@ -4056,6 +4078,357 @@ func (a *Client) IpamRouteTargetsUpdate(params *IpamRouteTargetsUpdateParams, au panic(msg) } +/* + IpamServiceTemplatesBulkDelete ipam service templates bulk delete API +*/ +func (a *Client) IpamServiceTemplatesBulkDelete(params *IpamServiceTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesBulkDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesBulkDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_bulk_delete", + Method: "DELETE", + PathPattern: "/ipam/service-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesBulkDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesBulkDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesBulkPartialUpdate ipam service templates bulk partial update API +*/ +func (a *Client) IpamServiceTemplatesBulkPartialUpdate(params *IpamServiceTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesBulkPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesBulkPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_bulk_partial_update", + Method: "PATCH", + PathPattern: "/ipam/service-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesBulkPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesBulkPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesBulkUpdate ipam service templates bulk update API +*/ +func (a *Client) IpamServiceTemplatesBulkUpdate(params *IpamServiceTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesBulkUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesBulkUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_bulk_update", + Method: "PUT", + PathPattern: "/ipam/service-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesBulkUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesBulkUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesCreate ipam service templates create API +*/ +func (a *Client) IpamServiceTemplatesCreate(params *IpamServiceTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesCreateParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_create", + Method: "POST", + PathPattern: "/ipam/service-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesDelete ipam service templates delete API +*/ +func (a *Client) IpamServiceTemplatesDelete(params *IpamServiceTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_delete", + Method: "DELETE", + PathPattern: "/ipam/service-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesList Overrides ListModelMixin to allow processing ExportTemplates. +*/ +func (a *Client) IpamServiceTemplatesList(params *IpamServiceTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesListParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_list", + Method: "GET", + PathPattern: "/ipam/service-templates/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesPartialUpdate ipam service templates partial update API +*/ +func (a *Client) IpamServiceTemplatesPartialUpdate(params *IpamServiceTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesPartialUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesPartialUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_partial_update", + Method: "PATCH", + PathPattern: "/ipam/service-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesPartialUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesPartialUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesRead ipam service templates read API +*/ +func (a *Client) IpamServiceTemplatesRead(params *IpamServiceTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesReadOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesReadParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_read", + Method: "GET", + PathPattern: "/ipam/service-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesReadReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesReadOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamServiceTemplatesUpdate ipam service templates update API +*/ +func (a *Client) IpamServiceTemplatesUpdate(params *IpamServiceTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServiceTemplatesUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamServiceTemplatesUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_service-templates_update", + Method: "PUT", + PathPattern: "/ipam/service-templates/{id}/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamServiceTemplatesUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamServiceTemplatesUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_service-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* IpamServicesBulkDelete ipam services bulk delete API */ @@ -4407,6 +4780,84 @@ func (a *Client) IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo r panic(msg) } +/* + IpamVlanGroupsAvailableVlansCreate ipam vlan groups available vlans create API +*/ +func (a *Client) IpamVlanGroupsAvailableVlansCreate(params *IpamVlanGroupsAvailableVlansCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsAvailableVlansCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamVlanGroupsAvailableVlansCreateParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_vlan-groups_available-vlans_create", + Method: "POST", + PathPattern: "/ipam/vlan-groups/{id}/available-vlans/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamVlanGroupsAvailableVlansCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamVlanGroupsAvailableVlansCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_available-vlans_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + IpamVlanGroupsAvailableVlansList ipam vlan groups available vlans list API +*/ +func (a *Client) IpamVlanGroupsAvailableVlansList(params *IpamVlanGroupsAvailableVlansListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsAvailableVlansListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewIpamVlanGroupsAvailableVlansListParams() + } + op := &runtime.ClientOperation{ + ID: "ipam_vlan-groups_available-vlans_list", + Method: "GET", + PathPattern: "/ipam/vlan-groups/{id}/available-vlans/", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &IpamVlanGroupsAvailableVlansListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*IpamVlanGroupsAvailableVlansListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_available-vlans_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* IpamVlanGroupsBulkDelete ipam vlan groups bulk delete API */ diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_group_assignments_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_group_assignments_list_parameters.go index dedaafbf9..e75944ce9 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_group_assignments_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_group_assignments_list_parameters.go @@ -84,6 +84,12 @@ type IpamFhrpGroupAssignmentsListParams struct { // CreatedLte. CreatedLte *string + // Device. + Device *string + + // DeviceID. + DeviceID *string + // GroupID. GroupID *string @@ -171,6 +177,12 @@ type IpamFhrpGroupAssignmentsListParams struct { // Priorityn. Priorityn *string + // VirtualMachine. + VirtualMachine *string + + // VirtualMachineID. + VirtualMachineID *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -257,6 +269,28 @@ func (o *IpamFhrpGroupAssignmentsListParams) SetCreatedLte(createdLte *string) { o.CreatedLte = createdLte } +// WithDevice adds the device to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) WithDevice(device *string) *IpamFhrpGroupAssignmentsListParams { + o.SetDevice(device) + return o +} + +// SetDevice adds the device to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) SetDevice(device *string) { + o.Device = device +} + +// WithDeviceID adds the deviceID to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) WithDeviceID(deviceID *string) *IpamFhrpGroupAssignmentsListParams { + o.SetDeviceID(deviceID) + return o +} + +// SetDeviceID adds the deviceId to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) SetDeviceID(deviceID *string) { + o.DeviceID = deviceID +} + // WithGroupID adds the groupID to the ipam fhrp group assignments list params func (o *IpamFhrpGroupAssignmentsListParams) WithGroupID(groupID *string) *IpamFhrpGroupAssignmentsListParams { o.SetGroupID(groupID) @@ -554,6 +588,28 @@ func (o *IpamFhrpGroupAssignmentsListParams) SetPriorityn(priorityn *string) { o.Priorityn = priorityn } +// WithVirtualMachine adds the virtualMachine to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) WithVirtualMachine(virtualMachine *string) *IpamFhrpGroupAssignmentsListParams { + o.SetVirtualMachine(virtualMachine) + return o +} + +// SetVirtualMachine adds the virtualMachine to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) SetVirtualMachine(virtualMachine *string) { + o.VirtualMachine = virtualMachine +} + +// WithVirtualMachineID adds the virtualMachineID to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) WithVirtualMachineID(virtualMachineID *string) *IpamFhrpGroupAssignmentsListParams { + o.SetVirtualMachineID(virtualMachineID) + return o +} + +// SetVirtualMachineID adds the virtualMachineId to the ipam fhrp group assignments list params +func (o *IpamFhrpGroupAssignmentsListParams) SetVirtualMachineID(virtualMachineID *string) { + o.VirtualMachineID = virtualMachineID +} + // WriteToRequest writes these params to a swagger request func (o *IpamFhrpGroupAssignmentsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -613,6 +669,40 @@ func (o *IpamFhrpGroupAssignmentsListParams) WriteToRequest(r runtime.ClientRequ } } + if o.Device != nil { + + // query param device + var qrDevice string + + if o.Device != nil { + qrDevice = *o.Device + } + qDevice := qrDevice + if qDevice != "" { + + if err := r.SetQueryParam("device", qDevice); err != nil { + return err + } + } + } + + if o.DeviceID != nil { + + // query param device_id + var qrDeviceID string + + if o.DeviceID != nil { + qrDeviceID = *o.DeviceID + } + qDeviceID := qrDeviceID + if qDeviceID != "" { + + if err := r.SetQueryParam("device_id", qDeviceID); err != nil { + return err + } + } + } + if o.GroupID != nil { // query param group_id @@ -1072,6 +1162,40 @@ func (o *IpamFhrpGroupAssignmentsListParams) WriteToRequest(r runtime.ClientRequ } } + if o.VirtualMachine != nil { + + // query param virtual_machine + var qrVirtualMachine string + + if o.VirtualMachine != nil { + qrVirtualMachine = *o.VirtualMachine + } + qVirtualMachine := qrVirtualMachine + if qVirtualMachine != "" { + + if err := r.SetQueryParam("virtual_machine", qVirtualMachine); err != nil { + return err + } + } + } + + if o.VirtualMachineID != nil { + + // query param virtual_machine_id + var qrVirtualMachineID string + + if o.VirtualMachineID != nil { + qrVirtualMachineID = *o.VirtualMachineID + } + qVirtualMachineID := qrVirtualMachineID + if qVirtualMachineID != "" { + + if err := r.SetQueryParam("virtual_machine_id", qVirtualMachineID); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go index 52b00ce11..5fef95681 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_fhrp_groups_list_parameters.go @@ -78,9 +78,6 @@ type IpamFhrpGroupsListParams struct { // AuthKey. AuthKey *string - // AuthKeyEmpty. - AuthKeyEmpty *string - // AuthKeyIc. AuthKeyIc *string @@ -262,17 +259,6 @@ func (o *IpamFhrpGroupsListParams) SetAuthKey(authKey *string) { o.AuthKey = authKey } -// WithAuthKeyEmpty adds the authKeyEmpty to the ipam fhrp groups list params -func (o *IpamFhrpGroupsListParams) WithAuthKeyEmpty(authKeyEmpty *string) *IpamFhrpGroupsListParams { - o.SetAuthKeyEmpty(authKeyEmpty) - return o -} - -// SetAuthKeyEmpty adds the authKeyEmpty to the ipam fhrp groups list params -func (o *IpamFhrpGroupsListParams) SetAuthKeyEmpty(authKeyEmpty *string) { - o.AuthKeyEmpty = authKeyEmpty -} - // WithAuthKeyIc adds the authKeyIc to the ipam fhrp groups list params func (o *IpamFhrpGroupsListParams) WithAuthKeyIc(authKeyIc *string) *IpamFhrpGroupsListParams { o.SetAuthKeyIc(authKeyIc) @@ -705,23 +691,6 @@ func (o *IpamFhrpGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.AuthKeyEmpty != nil { - - // query param auth_key__empty - var qrAuthKeyEmpty string - - if o.AuthKeyEmpty != nil { - qrAuthKeyEmpty = *o.AuthKeyEmpty - } - qAuthKeyEmpty := qrAuthKeyEmpty - if qAuthKeyEmpty != "" { - - if err := r.SetQueryParam("auth_key__empty", qAuthKeyEmpty); err != nil { - return err - } - } - } - if o.AuthKeyIc != nil { // query param auth_key__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go index 9123ef1c5..a88f5bb5b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go @@ -93,9 +93,6 @@ type IpamIPAddressesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -132,9 +129,6 @@ type IpamIPAddressesListParams struct { // DNSName. DNSName *string - // DNSNameEmpty. - DNSNameEmpty *string - // DNSNameIc. DNSNameIc *string @@ -165,6 +159,12 @@ type IpamIPAddressesListParams struct { // Family. Family *float64 + // FhrpgroupID. + FhrpgroupID *string + + // FhrpgroupIDn. + FhrpgroupIDn *string + // ID. ID *string @@ -422,17 +422,6 @@ func (o *IpamIPAddressesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamIPAddressesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithDescriptionIc(descriptionIc *string) *IpamIPAddressesListParams { o.SetDescriptionIc(descriptionIc) @@ -565,17 +554,6 @@ func (o *IpamIPAddressesListParams) SetDNSName(dNSName *string) { o.DNSName = dNSName } -// WithDNSNameEmpty adds the dNSNameEmpty to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) WithDNSNameEmpty(dNSNameEmpty *string) *IpamIPAddressesListParams { - o.SetDNSNameEmpty(dNSNameEmpty) - return o -} - -// SetDNSNameEmpty adds the dnsNameEmpty to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) SetDNSNameEmpty(dNSNameEmpty *string) { - o.DNSNameEmpty = dNSNameEmpty -} - // WithDNSNameIc adds the dNSNameIc to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithDNSNameIc(dNSNameIc *string) *IpamIPAddressesListParams { o.SetDNSNameIc(dNSNameIc) @@ -686,6 +664,28 @@ func (o *IpamIPAddressesListParams) SetFamily(family *float64) { o.Family = family } +// WithFhrpgroupID adds the fhrpgroupID to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithFhrpgroupID(fhrpgroupID *string) *IpamIPAddressesListParams { + o.SetFhrpgroupID(fhrpgroupID) + return o +} + +// SetFhrpgroupID adds the fhrpgroupId to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetFhrpgroupID(fhrpgroupID *string) { + o.FhrpgroupID = fhrpgroupID +} + +// WithFhrpgroupIDn adds the fhrpgroupIDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithFhrpgroupIDn(fhrpgroupIDn *string) *IpamIPAddressesListParams { + o.SetFhrpgroupIDn(fhrpgroupIDn) + return o +} + +// SetFhrpgroupIDn adds the fhrpgroupIdN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetFhrpgroupIDn(fhrpgroupIDn *string) { + o.FhrpgroupIDn = fhrpgroupIDn +} + // WithID adds the id to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithID(id *string) *IpamIPAddressesListParams { o.SetID(id) @@ -1280,23 +1280,6 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1501,23 +1484,6 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DNSNameEmpty != nil { - - // query param dns_name__empty - var qrDNSNameEmpty string - - if o.DNSNameEmpty != nil { - qrDNSNameEmpty = *o.DNSNameEmpty - } - qDNSNameEmpty := qrDNSNameEmpty - if qDNSNameEmpty != "" { - - if err := r.SetQueryParam("dns_name__empty", qDNSNameEmpty); err != nil { - return err - } - } - } - if o.DNSNameIc != nil { // query param dns_name__ic @@ -1688,6 +1654,40 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } } + if o.FhrpgroupID != nil { + + // query param fhrpgroup_id + var qrFhrpgroupID string + + if o.FhrpgroupID != nil { + qrFhrpgroupID = *o.FhrpgroupID + } + qFhrpgroupID := qrFhrpgroupID + if qFhrpgroupID != "" { + + if err := r.SetQueryParam("fhrpgroup_id", qFhrpgroupID); err != nil { + return err + } + } + } + + if o.FhrpgroupIDn != nil { + + // query param fhrpgroup_id__n + var qrFhrpgroupIDn string + + if o.FhrpgroupIDn != nil { + qrFhrpgroupIDn = *o.FhrpgroupIDn + } + qFhrpgroupIDn := qrFhrpgroupIDn + if qFhrpgroupIDn != "" { + + if err := r.SetQueryParam("fhrpgroup_id__n", qFhrpgroupIDn); err != nil { + return err + } + } + } + if o.ID != nil { // query param id diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_ranges_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_ranges_list_parameters.go index acfba48f1..645c2953d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_ranges_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_ip_ranges_list_parameters.go @@ -90,9 +90,6 @@ type IpamIPRangesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -333,17 +330,6 @@ func (o *IpamIPRangesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam ip ranges list params -func (o *IpamIPRangesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamIPRangesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam ip ranges list params -func (o *IpamIPRangesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam ip ranges list params func (o *IpamIPRangesListParams) WithDescriptionIc(descriptionIc *string) *IpamIPRangesListParams { o.SetDescriptionIc(descriptionIc) @@ -899,23 +885,6 @@ func (o *IpamIPRangesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go index 1f04e8415..b01823a0a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go @@ -126,9 +126,6 @@ type IpamPrefixesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -591,17 +588,6 @@ func (o *IpamPrefixesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam prefixes list params -func (o *IpamPrefixesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamPrefixesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam prefixes list params -func (o *IpamPrefixesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam prefixes list params func (o *IpamPrefixesListParams) WithDescriptionIc(descriptionIc *string) *IpamPrefixesListParams { o.SetDescriptionIc(descriptionIc) @@ -1691,23 +1677,6 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go index 184677dc6..c32500ba6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go @@ -87,9 +87,6 @@ type IpamRirsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -156,9 +153,6 @@ type IpamRirsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -198,9 +192,6 @@ type IpamRirsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -331,17 +322,6 @@ func (o *IpamRirsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam rirs list params -func (o *IpamRirsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamRirsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam rirs list params -func (o *IpamRirsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam rirs list params func (o *IpamRirsListParams) WithDescriptionIc(descriptionIc *string) *IpamRirsListParams { o.SetDescriptionIc(descriptionIc) @@ -573,17 +553,6 @@ func (o *IpamRirsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam rirs list params -func (o *IpamRirsListParams) WithNameEmpty(nameEmpty *string) *IpamRirsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam rirs list params -func (o *IpamRirsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam rirs list params func (o *IpamRirsListParams) WithNameIc(nameIc *string) *IpamRirsListParams { o.SetNameIc(nameIc) @@ -716,17 +685,6 @@ func (o *IpamRirsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the ipam rirs list params -func (o *IpamRirsListParams) WithSlugEmpty(slugEmpty *string) *IpamRirsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the ipam rirs list params -func (o *IpamRirsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the ipam rirs list params func (o *IpamRirsListParams) WithSlugIc(slugIc *string) *IpamRirsListParams { o.SetSlugIc(slugIc) @@ -924,23 +882,6 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1298,23 +1239,6 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1519,23 +1443,6 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go index 8558c90c0..852da64a7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go @@ -87,9 +87,6 @@ type IpamRolesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type IpamRolesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -195,9 +189,6 @@ type IpamRolesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -328,17 +319,6 @@ func (o *IpamRolesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam roles list params -func (o *IpamRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamRolesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam roles list params -func (o *IpamRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam roles list params func (o *IpamRolesListParams) WithDescriptionIc(descriptionIc *string) *IpamRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -559,17 +539,6 @@ func (o *IpamRolesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam roles list params -func (o *IpamRolesListParams) WithNameEmpty(nameEmpty *string) *IpamRolesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam roles list params -func (o *IpamRolesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam roles list params func (o *IpamRolesListParams) WithNameIc(nameIc *string) *IpamRolesListParams { o.SetNameIc(nameIc) @@ -702,17 +671,6 @@ func (o *IpamRolesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the ipam roles list params -func (o *IpamRolesListParams) WithSlugEmpty(slugEmpty *string) *IpamRolesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the ipam roles list params -func (o *IpamRolesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the ipam roles list params func (o *IpamRolesListParams) WithSlugIc(slugIc *string) *IpamRolesListParams { o.SetSlugIc(slugIc) @@ -910,23 +868,6 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1267,23 +1208,6 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1488,23 +1412,6 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_route_targets_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_route_targets_list_parameters.go index 5776aa8d0..0e29c1f2a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_route_targets_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_route_targets_list_parameters.go @@ -87,9 +87,6 @@ type IpamRouteTargetsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -177,9 +174,6 @@ type IpamRouteTargetsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -343,17 +337,6 @@ func (o *IpamRouteTargetsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam route targets list params -func (o *IpamRouteTargetsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamRouteTargetsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam route targets list params -func (o *IpamRouteTargetsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam route targets list params func (o *IpamRouteTargetsListParams) WithDescriptionIc(descriptionIc *string) *IpamRouteTargetsListParams { o.SetDescriptionIc(descriptionIc) @@ -662,17 +645,6 @@ func (o *IpamRouteTargetsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam route targets list params -func (o *IpamRouteTargetsListParams) WithNameEmpty(nameEmpty *string) *IpamRouteTargetsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam route targets list params -func (o *IpamRouteTargetsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam route targets list params func (o *IpamRouteTargetsListParams) WithNameIc(nameIc *string) *IpamRouteTargetsListParams { o.SetNameIc(nameIc) @@ -980,23 +952,6 @@ func (o *IpamRouteTargetsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1473,23 +1428,6 @@ func (o *IpamRouteTargetsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go index fd9c98909..1494c0e0d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go @@ -87,9 +87,6 @@ type IpamServicesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +162,6 @@ type IpamServicesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -328,17 +322,6 @@ func (o *IpamServicesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam services list params -func (o *IpamServicesListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamServicesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam services list params -func (o *IpamServicesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam services list params func (o *IpamServicesListParams) WithDescriptionIc(descriptionIc *string) *IpamServicesListParams { o.SetDescriptionIc(descriptionIc) @@ -603,17 +586,6 @@ func (o *IpamServicesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam services list params -func (o *IpamServicesListParams) WithNameEmpty(nameEmpty *string) *IpamServicesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam services list params -func (o *IpamServicesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam services list params func (o *IpamServicesListParams) WithNameIc(nameIc *string) *IpamServicesListParams { o.SetNameIc(nameIc) @@ -910,23 +882,6 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1335,23 +1290,6 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go index f0fbc51f4..52eb73251 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go @@ -93,9 +93,6 @@ type IpamVlanGroupsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -159,12 +156,45 @@ type IpamVlanGroupsListParams struct { // Location. Location *float64 + // MaxVid. + MaxVid *string + + // MaxVidGt. + MaxVidGt *string + + // MaxVidGte. + MaxVidGte *string + + // MaxVidLt. + MaxVidLt *string + + // MaxVidLte. + MaxVidLte *string + + // MaxVidn. + MaxVidn *string + + // MinVid. + MinVid *string + + // MinVidGt. + MinVidGt *string + + // MinVidGte. + MinVidGte *string + + // MinVidLt. + MinVidLt *string + + // MinVidLte. + MinVidLte *string + + // MinVidn. + MinVidn *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -240,9 +270,6 @@ type IpamVlanGroupsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -395,17 +422,6 @@ func (o *IpamVlanGroupsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam vlan groups list params -func (o *IpamVlanGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamVlanGroupsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam vlan groups list params -func (o *IpamVlanGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithDescriptionIc(descriptionIc *string) *IpamVlanGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -626,6 +642,138 @@ func (o *IpamVlanGroupsListParams) SetLocation(location *float64) { o.Location = location } +// WithMaxVid adds the maxVid to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMaxVid(maxVid *string) *IpamVlanGroupsListParams { + o.SetMaxVid(maxVid) + return o +} + +// SetMaxVid adds the maxVid to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMaxVid(maxVid *string) { + o.MaxVid = maxVid +} + +// WithMaxVidGt adds the maxVidGt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMaxVidGt(maxVidGt *string) *IpamVlanGroupsListParams { + o.SetMaxVidGt(maxVidGt) + return o +} + +// SetMaxVidGt adds the maxVidGt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMaxVidGt(maxVidGt *string) { + o.MaxVidGt = maxVidGt +} + +// WithMaxVidGte adds the maxVidGte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMaxVidGte(maxVidGte *string) *IpamVlanGroupsListParams { + o.SetMaxVidGte(maxVidGte) + return o +} + +// SetMaxVidGte adds the maxVidGte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMaxVidGte(maxVidGte *string) { + o.MaxVidGte = maxVidGte +} + +// WithMaxVidLt adds the maxVidLt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMaxVidLt(maxVidLt *string) *IpamVlanGroupsListParams { + o.SetMaxVidLt(maxVidLt) + return o +} + +// SetMaxVidLt adds the maxVidLt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMaxVidLt(maxVidLt *string) { + o.MaxVidLt = maxVidLt +} + +// WithMaxVidLte adds the maxVidLte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMaxVidLte(maxVidLte *string) *IpamVlanGroupsListParams { + o.SetMaxVidLte(maxVidLte) + return o +} + +// SetMaxVidLte adds the maxVidLte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMaxVidLte(maxVidLte *string) { + o.MaxVidLte = maxVidLte +} + +// WithMaxVidn adds the maxVidn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMaxVidn(maxVidn *string) *IpamVlanGroupsListParams { + o.SetMaxVidn(maxVidn) + return o +} + +// SetMaxVidn adds the maxVidN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMaxVidn(maxVidn *string) { + o.MaxVidn = maxVidn +} + +// WithMinVid adds the minVid to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMinVid(minVid *string) *IpamVlanGroupsListParams { + o.SetMinVid(minVid) + return o +} + +// SetMinVid adds the minVid to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMinVid(minVid *string) { + o.MinVid = minVid +} + +// WithMinVidGt adds the minVidGt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMinVidGt(minVidGt *string) *IpamVlanGroupsListParams { + o.SetMinVidGt(minVidGt) + return o +} + +// SetMinVidGt adds the minVidGt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMinVidGt(minVidGt *string) { + o.MinVidGt = minVidGt +} + +// WithMinVidGte adds the minVidGte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMinVidGte(minVidGte *string) *IpamVlanGroupsListParams { + o.SetMinVidGte(minVidGte) + return o +} + +// SetMinVidGte adds the minVidGte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMinVidGte(minVidGte *string) { + o.MinVidGte = minVidGte +} + +// WithMinVidLt adds the minVidLt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMinVidLt(minVidLt *string) *IpamVlanGroupsListParams { + o.SetMinVidLt(minVidLt) + return o +} + +// SetMinVidLt adds the minVidLt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMinVidLt(minVidLt *string) { + o.MinVidLt = minVidLt +} + +// WithMinVidLte adds the minVidLte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMinVidLte(minVidLte *string) *IpamVlanGroupsListParams { + o.SetMinVidLte(minVidLte) + return o +} + +// SetMinVidLte adds the minVidLte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMinVidLte(minVidLte *string) { + o.MinVidLte = minVidLte +} + +// WithMinVidn adds the minVidn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithMinVidn(minVidn *string) *IpamVlanGroupsListParams { + o.SetMinVidn(minVidn) + return o +} + +// SetMinVidn adds the minVidN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetMinVidn(minVidn *string) { + o.MinVidn = minVidn +} + // WithName adds the name to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithName(name *string) *IpamVlanGroupsListParams { o.SetName(name) @@ -637,17 +785,6 @@ func (o *IpamVlanGroupsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam vlan groups list params -func (o *IpamVlanGroupsListParams) WithNameEmpty(nameEmpty *string) *IpamVlanGroupsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam vlan groups list params -func (o *IpamVlanGroupsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithNameIc(nameIc *string) *IpamVlanGroupsListParams { o.SetNameIc(nameIc) @@ -912,17 +1049,6 @@ func (o *IpamVlanGroupsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the ipam vlan groups list params -func (o *IpamVlanGroupsListParams) WithSlugEmpty(slugEmpty *string) *IpamVlanGroupsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the ipam vlan groups list params -func (o *IpamVlanGroupsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithSlugIc(slugIc *string) *IpamVlanGroupsListParams { o.SetSlugIc(slugIc) @@ -1154,23 +1280,6 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1511,35 +1620,222 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.Name != nil { + if o.MaxVid != nil { - // query param name - var qrName string + // query param max_vid + var qrMaxVid string - if o.Name != nil { - qrName = *o.Name + if o.MaxVid != nil { + qrMaxVid = *o.MaxVid } - qName := qrName - if qName != "" { + qMaxVid := qrMaxVid + if qMaxVid != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("max_vid", qMaxVid); err != nil { return err } } } - if o.NameEmpty != nil { + if o.MaxVidGt != nil { - // query param name__empty - var qrNameEmpty string + // query param max_vid__gt + var qrMaxVidGt string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.MaxVidGt != nil { + qrMaxVidGt = *o.MaxVidGt } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qMaxVidGt := qrMaxVidGt + if qMaxVidGt != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("max_vid__gt", qMaxVidGt); err != nil { + return err + } + } + } + + if o.MaxVidGte != nil { + + // query param max_vid__gte + var qrMaxVidGte string + + if o.MaxVidGte != nil { + qrMaxVidGte = *o.MaxVidGte + } + qMaxVidGte := qrMaxVidGte + if qMaxVidGte != "" { + + if err := r.SetQueryParam("max_vid__gte", qMaxVidGte); err != nil { + return err + } + } + } + + if o.MaxVidLt != nil { + + // query param max_vid__lt + var qrMaxVidLt string + + if o.MaxVidLt != nil { + qrMaxVidLt = *o.MaxVidLt + } + qMaxVidLt := qrMaxVidLt + if qMaxVidLt != "" { + + if err := r.SetQueryParam("max_vid__lt", qMaxVidLt); err != nil { + return err + } + } + } + + if o.MaxVidLte != nil { + + // query param max_vid__lte + var qrMaxVidLte string + + if o.MaxVidLte != nil { + qrMaxVidLte = *o.MaxVidLte + } + qMaxVidLte := qrMaxVidLte + if qMaxVidLte != "" { + + if err := r.SetQueryParam("max_vid__lte", qMaxVidLte); err != nil { + return err + } + } + } + + if o.MaxVidn != nil { + + // query param max_vid__n + var qrMaxVidn string + + if o.MaxVidn != nil { + qrMaxVidn = *o.MaxVidn + } + qMaxVidn := qrMaxVidn + if qMaxVidn != "" { + + if err := r.SetQueryParam("max_vid__n", qMaxVidn); err != nil { + return err + } + } + } + + if o.MinVid != nil { + + // query param min_vid + var qrMinVid string + + if o.MinVid != nil { + qrMinVid = *o.MinVid + } + qMinVid := qrMinVid + if qMinVid != "" { + + if err := r.SetQueryParam("min_vid", qMinVid); err != nil { + return err + } + } + } + + if o.MinVidGt != nil { + + // query param min_vid__gt + var qrMinVidGt string + + if o.MinVidGt != nil { + qrMinVidGt = *o.MinVidGt + } + qMinVidGt := qrMinVidGt + if qMinVidGt != "" { + + if err := r.SetQueryParam("min_vid__gt", qMinVidGt); err != nil { + return err + } + } + } + + if o.MinVidGte != nil { + + // query param min_vid__gte + var qrMinVidGte string + + if o.MinVidGte != nil { + qrMinVidGte = *o.MinVidGte + } + qMinVidGte := qrMinVidGte + if qMinVidGte != "" { + + if err := r.SetQueryParam("min_vid__gte", qMinVidGte); err != nil { + return err + } + } + } + + if o.MinVidLt != nil { + + // query param min_vid__lt + var qrMinVidLt string + + if o.MinVidLt != nil { + qrMinVidLt = *o.MinVidLt + } + qMinVidLt := qrMinVidLt + if qMinVidLt != "" { + + if err := r.SetQueryParam("min_vid__lt", qMinVidLt); err != nil { + return err + } + } + } + + if o.MinVidLte != nil { + + // query param min_vid__lte + var qrMinVidLte string + + if o.MinVidLte != nil { + qrMinVidLte = *o.MinVidLte + } + qMinVidLte := qrMinVidLte + if qMinVidLte != "" { + + if err := r.SetQueryParam("min_vid__lte", qMinVidLte); err != nil { + return err + } + } + } + + if o.MinVidn != nil { + + // query param min_vid__n + var qrMinVidn string + + if o.MinVidn != nil { + qrMinVidn = *o.MinVidn + } + qMinVidn := qrMinVidn + if qMinVidn != "" { + + if err := r.SetQueryParam("min_vid__n", qMinVidn); err != nil { + return err + } + } + } + + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } @@ -1953,23 +2249,6 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go index 29d70f75c..031afa6e2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go @@ -93,9 +93,6 @@ type IpamVlansListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -171,9 +168,6 @@ type IpamVlansListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -431,17 +425,6 @@ func (o *IpamVlansListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam vlans list params -func (o *IpamVlansListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamVlansListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam vlans list params -func (o *IpamVlansListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam vlans list params func (o *IpamVlansListParams) WithDescriptionIc(descriptionIc *string) *IpamVlansListParams { o.SetDescriptionIc(descriptionIc) @@ -706,17 +689,6 @@ func (o *IpamVlansListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam vlans list params -func (o *IpamVlansListParams) WithNameEmpty(nameEmpty *string) *IpamVlansListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam vlans list params -func (o *IpamVlansListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam vlans list params func (o *IpamVlansListParams) WithNameIc(nameIc *string) *IpamVlansListParams { o.SetNameIc(nameIc) @@ -1322,23 +1294,6 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1747,23 +1702,6 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go index d9861488f..3415a0bc1 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go @@ -87,9 +87,6 @@ type IpamVrfsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -180,9 +177,6 @@ type IpamVrfsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -222,9 +216,6 @@ type IpamVrfsListParams struct { // Rd. Rd *string - // RdEmpty. - RdEmpty *string - // RdIc. RdIc *string @@ -379,17 +370,6 @@ func (o *IpamVrfsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the ipam vrfs list params -func (o *IpamVrfsListParams) WithDescriptionEmpty(descriptionEmpty *string) *IpamVrfsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the ipam vrfs list params -func (o *IpamVrfsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the ipam vrfs list params func (o *IpamVrfsListParams) WithDescriptionIc(descriptionIc *string) *IpamVrfsListParams { o.SetDescriptionIc(descriptionIc) @@ -709,17 +689,6 @@ func (o *IpamVrfsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the ipam vrfs list params -func (o *IpamVrfsListParams) WithNameEmpty(nameEmpty *string) *IpamVrfsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the ipam vrfs list params -func (o *IpamVrfsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the ipam vrfs list params func (o *IpamVrfsListParams) WithNameIc(nameIc *string) *IpamVrfsListParams { o.SetNameIc(nameIc) @@ -852,17 +821,6 @@ func (o *IpamVrfsListParams) SetRd(rd *string) { o.Rd = rd } -// WithRdEmpty adds the rdEmpty to the ipam vrfs list params -func (o *IpamVrfsListParams) WithRdEmpty(rdEmpty *string) *IpamVrfsListParams { - o.SetRdEmpty(rdEmpty) - return o -} - -// SetRdEmpty adds the rdEmpty to the ipam vrfs list params -func (o *IpamVrfsListParams) SetRdEmpty(rdEmpty *string) { - o.RdEmpty = rdEmpty -} - // WithRdIc adds the rdIc to the ipam vrfs list params func (o *IpamVrfsListParams) WithRdIc(rdIc *string) *IpamVrfsListParams { o.SetRdIc(rdIc) @@ -1148,23 +1106,6 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1658,23 +1599,6 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1879,23 +1803,6 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } } - if o.RdEmpty != nil { - - // query param rd__empty - var qrRdEmpty string - - if o.RdEmpty != nil { - qrRdEmpty = *o.RdEmpty - } - qRdEmpty := qrRdEmpty - if qRdEmpty != "" { - - if err := r.SetQueryParam("rd__empty", qRdEmpty); err != nil { - return err - } - } - } - if o.RdIc != nil { // query param rd__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go index 4c4bb945e..5854298cb 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_groups_list_parameters.go @@ -87,9 +87,6 @@ type TenancyContactGroupsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type TenancyContactGroupsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -207,9 +201,6 @@ type TenancyContactGroupsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -340,17 +331,6 @@ func (o *TenancyContactGroupsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the tenancy contact groups list params -func (o *TenancyContactGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyContactGroupsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the tenancy contact groups list params -func (o *TenancyContactGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the tenancy contact groups list params func (o *TenancyContactGroupsListParams) WithDescriptionIc(descriptionIc *string) *TenancyContactGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -571,17 +551,6 @@ func (o *TenancyContactGroupsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the tenancy contact groups list params -func (o *TenancyContactGroupsListParams) WithNameEmpty(nameEmpty *string) *TenancyContactGroupsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the tenancy contact groups list params -func (o *TenancyContactGroupsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the tenancy contact groups list params func (o *TenancyContactGroupsListParams) WithNameIc(nameIc *string) *TenancyContactGroupsListParams { o.SetNameIc(nameIc) @@ -758,17 +727,6 @@ func (o *TenancyContactGroupsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the tenancy contact groups list params -func (o *TenancyContactGroupsListParams) WithSlugEmpty(slugEmpty *string) *TenancyContactGroupsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the tenancy contact groups list params -func (o *TenancyContactGroupsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the tenancy contact groups list params func (o *TenancyContactGroupsListParams) WithSlugIc(slugIc *string) *TenancyContactGroupsListParams { o.SetSlugIc(slugIc) @@ -966,23 +924,6 @@ func (o *TenancyContactGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1323,23 +1264,6 @@ func (o *TenancyContactGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1612,23 +1536,6 @@ func (o *TenancyContactGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go index dd4fd6da0..3c037ce85 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contact_roles_list_parameters.go @@ -87,9 +87,6 @@ type TenancyContactRolesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type TenancyContactRolesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -195,9 +189,6 @@ type TenancyContactRolesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -328,17 +319,6 @@ func (o *TenancyContactRolesListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the tenancy contact roles list params -func (o *TenancyContactRolesListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyContactRolesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the tenancy contact roles list params -func (o *TenancyContactRolesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the tenancy contact roles list params func (o *TenancyContactRolesListParams) WithDescriptionIc(descriptionIc *string) *TenancyContactRolesListParams { o.SetDescriptionIc(descriptionIc) @@ -559,17 +539,6 @@ func (o *TenancyContactRolesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the tenancy contact roles list params -func (o *TenancyContactRolesListParams) WithNameEmpty(nameEmpty *string) *TenancyContactRolesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the tenancy contact roles list params -func (o *TenancyContactRolesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the tenancy contact roles list params func (o *TenancyContactRolesListParams) WithNameIc(nameIc *string) *TenancyContactRolesListParams { o.SetNameIc(nameIc) @@ -702,17 +671,6 @@ func (o *TenancyContactRolesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the tenancy contact roles list params -func (o *TenancyContactRolesListParams) WithSlugEmpty(slugEmpty *string) *TenancyContactRolesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the tenancy contact roles list params -func (o *TenancyContactRolesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the tenancy contact roles list params func (o *TenancyContactRolesListParams) WithSlugIc(slugIc *string) *TenancyContactRolesListParams { o.SetSlugIc(slugIc) @@ -910,23 +868,6 @@ func (o *TenancyContactRolesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1267,23 +1208,6 @@ func (o *TenancyContactRolesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1488,23 +1412,6 @@ func (o *TenancyContactRolesListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contacts_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contacts_list_parameters.go index d965f727a..c5dd29d41 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contacts_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_contacts_list_parameters.go @@ -78,9 +78,6 @@ type TenancyContactsListParams struct { // Address. Address *string - // AddressEmpty. - AddressEmpty *string - // AddressIc. AddressIc *string @@ -120,9 +117,6 @@ type TenancyContactsListParams struct { // Email. Email *string - // EmailEmpty. - EmailEmpty *string - // EmailIc. EmailIc *string @@ -195,12 +189,39 @@ type TenancyContactsListParams struct { */ Limit *int64 + // Link. + Link *string + + // LinkIc. + LinkIc *string + + // LinkIe. + LinkIe *string + + // LinkIew. + LinkIew *string + + // LinkIsw. + LinkIsw *string + + // Linkn. + Linkn *string + + // LinkNic. + LinkNic *string + + // LinkNie. + LinkNie *string + + // LinkNiew. + LinkNiew *string + + // LinkNisw. + LinkNisw *string + // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -237,9 +258,6 @@ type TenancyContactsListParams struct { // Phone. Phone *string - // PhoneEmpty. - PhoneEmpty *string - // PhoneIc. PhoneIc *string @@ -279,9 +297,6 @@ type TenancyContactsListParams struct { // Title. Title *string - // TitleEmpty. - TitleEmpty *string - // TitleIc. TitleIc *string @@ -373,17 +388,6 @@ func (o *TenancyContactsListParams) SetAddress(address *string) { o.Address = address } -// WithAddressEmpty adds the addressEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) WithAddressEmpty(addressEmpty *string) *TenancyContactsListParams { - o.SetAddressEmpty(addressEmpty) - return o -} - -// SetAddressEmpty adds the addressEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) SetAddressEmpty(addressEmpty *string) { - o.AddressEmpty = addressEmpty -} - // WithAddressIc adds the addressIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithAddressIc(addressIc *string) *TenancyContactsListParams { o.SetAddressIc(addressIc) @@ -527,17 +531,6 @@ func (o *TenancyContactsListParams) SetEmail(email *string) { o.Email = email } -// WithEmailEmpty adds the emailEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) WithEmailEmpty(emailEmpty *string) *TenancyContactsListParams { - o.SetEmailEmpty(emailEmpty) - return o -} - -// SetEmailEmpty adds the emailEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) SetEmailEmpty(emailEmpty *string) { - o.EmailEmpty = emailEmpty -} - // WithEmailIc adds the emailIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithEmailIc(emailIc *string) *TenancyContactsListParams { o.SetEmailIc(emailIc) @@ -791,6 +784,116 @@ func (o *TenancyContactsListParams) SetLimit(limit *int64) { o.Limit = limit } +// WithLink adds the link to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLink(link *string) *TenancyContactsListParams { + o.SetLink(link) + return o +} + +// SetLink adds the link to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLink(link *string) { + o.Link = link +} + +// WithLinkIc adds the linkIc to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkIc(linkIc *string) *TenancyContactsListParams { + o.SetLinkIc(linkIc) + return o +} + +// SetLinkIc adds the linkIc to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkIc(linkIc *string) { + o.LinkIc = linkIc +} + +// WithLinkIe adds the linkIe to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkIe(linkIe *string) *TenancyContactsListParams { + o.SetLinkIe(linkIe) + return o +} + +// SetLinkIe adds the linkIe to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkIe(linkIe *string) { + o.LinkIe = linkIe +} + +// WithLinkIew adds the linkIew to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkIew(linkIew *string) *TenancyContactsListParams { + o.SetLinkIew(linkIew) + return o +} + +// SetLinkIew adds the linkIew to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkIew(linkIew *string) { + o.LinkIew = linkIew +} + +// WithLinkIsw adds the linkIsw to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkIsw(linkIsw *string) *TenancyContactsListParams { + o.SetLinkIsw(linkIsw) + return o +} + +// SetLinkIsw adds the linkIsw to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkIsw(linkIsw *string) { + o.LinkIsw = linkIsw +} + +// WithLinkn adds the linkn to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkn(linkn *string) *TenancyContactsListParams { + o.SetLinkn(linkn) + return o +} + +// SetLinkn adds the linkN to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkn(linkn *string) { + o.Linkn = linkn +} + +// WithLinkNic adds the linkNic to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkNic(linkNic *string) *TenancyContactsListParams { + o.SetLinkNic(linkNic) + return o +} + +// SetLinkNic adds the linkNic to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkNic(linkNic *string) { + o.LinkNic = linkNic +} + +// WithLinkNie adds the linkNie to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkNie(linkNie *string) *TenancyContactsListParams { + o.SetLinkNie(linkNie) + return o +} + +// SetLinkNie adds the linkNie to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkNie(linkNie *string) { + o.LinkNie = linkNie +} + +// WithLinkNiew adds the linkNiew to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkNiew(linkNiew *string) *TenancyContactsListParams { + o.SetLinkNiew(linkNiew) + return o +} + +// SetLinkNiew adds the linkNiew to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkNiew(linkNiew *string) { + o.LinkNiew = linkNiew +} + +// WithLinkNisw adds the linkNisw to the tenancy contacts list params +func (o *TenancyContactsListParams) WithLinkNisw(linkNisw *string) *TenancyContactsListParams { + o.SetLinkNisw(linkNisw) + return o +} + +// SetLinkNisw adds the linkNisw to the tenancy contacts list params +func (o *TenancyContactsListParams) SetLinkNisw(linkNisw *string) { + o.LinkNisw = linkNisw +} + // WithName adds the name to the tenancy contacts list params func (o *TenancyContactsListParams) WithName(name *string) *TenancyContactsListParams { o.SetName(name) @@ -802,17 +905,6 @@ func (o *TenancyContactsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) WithNameEmpty(nameEmpty *string) *TenancyContactsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithNameIc(nameIc *string) *TenancyContactsListParams { o.SetNameIc(nameIc) @@ -934,17 +1026,6 @@ func (o *TenancyContactsListParams) SetPhone(phone *string) { o.Phone = phone } -// WithPhoneEmpty adds the phoneEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) WithPhoneEmpty(phoneEmpty *string) *TenancyContactsListParams { - o.SetPhoneEmpty(phoneEmpty) - return o -} - -// SetPhoneEmpty adds the phoneEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) SetPhoneEmpty(phoneEmpty *string) { - o.PhoneEmpty = phoneEmpty -} - // WithPhoneIc adds the phoneIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithPhoneIc(phoneIc *string) *TenancyContactsListParams { o.SetPhoneIc(phoneIc) @@ -1088,17 +1169,6 @@ func (o *TenancyContactsListParams) SetTitle(title *string) { o.Title = title } -// WithTitleEmpty adds the titleEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) WithTitleEmpty(titleEmpty *string) *TenancyContactsListParams { - o.SetTitleEmpty(titleEmpty) - return o -} - -// SetTitleEmpty adds the titleEmpty to the tenancy contacts list params -func (o *TenancyContactsListParams) SetTitleEmpty(titleEmpty *string) { - o.TitleEmpty = titleEmpty -} - // WithTitleIc adds the titleIc to the tenancy contacts list params func (o *TenancyContactsListParams) WithTitleIc(titleIc *string) *TenancyContactsListParams { o.SetTitleIc(titleIc) @@ -1223,23 +1293,6 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.AddressEmpty != nil { - - // query param address__empty - var qrAddressEmpty string - - if o.AddressEmpty != nil { - qrAddressEmpty = *o.AddressEmpty - } - qAddressEmpty := qrAddressEmpty - if qAddressEmpty != "" { - - if err := r.SetQueryParam("address__empty", qAddressEmpty); err != nil { - return err - } - } - } - if o.AddressIc != nil { // query param address__ic @@ -1461,23 +1514,6 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.EmailEmpty != nil { - - // query param email__empty - var qrEmailEmpty string - - if o.EmailEmpty != nil { - qrEmailEmpty = *o.EmailEmpty - } - qEmailEmpty := qrEmailEmpty - if qEmailEmpty != "" { - - if err := r.SetQueryParam("email__empty", qEmailEmpty); err != nil { - return err - } - } - } - if o.EmailIc != nil { // query param email__ic @@ -1869,35 +1905,188 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.Name != nil { + if o.Link != nil { - // query param name - var qrName string + // query param link + var qrLink string - if o.Name != nil { - qrName = *o.Name + if o.Link != nil { + qrLink = *o.Link } - qName := qrName - if qName != "" { + qLink := qrLink + if qLink != "" { - if err := r.SetQueryParam("name", qName); err != nil { + if err := r.SetQueryParam("link", qLink); err != nil { + return err + } + } + } + + if o.LinkIc != nil { + + // query param link__ic + var qrLinkIc string + + if o.LinkIc != nil { + qrLinkIc = *o.LinkIc + } + qLinkIc := qrLinkIc + if qLinkIc != "" { + + if err := r.SetQueryParam("link__ic", qLinkIc); err != nil { + return err + } + } + } + + if o.LinkIe != nil { + + // query param link__ie + var qrLinkIe string + + if o.LinkIe != nil { + qrLinkIe = *o.LinkIe + } + qLinkIe := qrLinkIe + if qLinkIe != "" { + + if err := r.SetQueryParam("link__ie", qLinkIe); err != nil { + return err + } + } + } + + if o.LinkIew != nil { + + // query param link__iew + var qrLinkIew string + + if o.LinkIew != nil { + qrLinkIew = *o.LinkIew + } + qLinkIew := qrLinkIew + if qLinkIew != "" { + + if err := r.SetQueryParam("link__iew", qLinkIew); err != nil { + return err + } + } + } + + if o.LinkIsw != nil { + + // query param link__isw + var qrLinkIsw string + + if o.LinkIsw != nil { + qrLinkIsw = *o.LinkIsw + } + qLinkIsw := qrLinkIsw + if qLinkIsw != "" { + + if err := r.SetQueryParam("link__isw", qLinkIsw); err != nil { + return err + } + } + } + + if o.Linkn != nil { + + // query param link__n + var qrLinkn string + + if o.Linkn != nil { + qrLinkn = *o.Linkn + } + qLinkn := qrLinkn + if qLinkn != "" { + + if err := r.SetQueryParam("link__n", qLinkn); err != nil { return err } } } - if o.NameEmpty != nil { + if o.LinkNic != nil { - // query param name__empty - var qrNameEmpty string + // query param link__nic + var qrLinkNic string - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty + if o.LinkNic != nil { + qrLinkNic = *o.LinkNic } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { + qLinkNic := qrLinkNic + if qLinkNic != "" { - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { + if err := r.SetQueryParam("link__nic", qLinkNic); err != nil { + return err + } + } + } + + if o.LinkNie != nil { + + // query param link__nie + var qrLinkNie string + + if o.LinkNie != nil { + qrLinkNie = *o.LinkNie + } + qLinkNie := qrLinkNie + if qLinkNie != "" { + + if err := r.SetQueryParam("link__nie", qLinkNie); err != nil { + return err + } + } + } + + if o.LinkNiew != nil { + + // query param link__niew + var qrLinkNiew string + + if o.LinkNiew != nil { + qrLinkNiew = *o.LinkNiew + } + qLinkNiew := qrLinkNiew + if qLinkNiew != "" { + + if err := r.SetQueryParam("link__niew", qLinkNiew); err != nil { + return err + } + } + } + + if o.LinkNisw != nil { + + // query param link__nisw + var qrLinkNisw string + + if o.LinkNisw != nil { + qrLinkNisw = *o.LinkNisw + } + qLinkNisw := qrLinkNisw + if qLinkNisw != "" { + + if err := r.SetQueryParam("link__nisw", qLinkNisw); err != nil { + return err + } + } + } + + if o.Name != nil { + + // query param name + var qrName string + + if o.Name != nil { + qrName = *o.Name + } + qName := qrName + if qName != "" { + + if err := r.SetQueryParam("name", qName); err != nil { return err } } @@ -2090,23 +2279,6 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.PhoneEmpty != nil { - - // query param phone__empty - var qrPhoneEmpty string - - if o.PhoneEmpty != nil { - qrPhoneEmpty = *o.PhoneEmpty - } - qPhoneEmpty := qrPhoneEmpty - if qPhoneEmpty != "" { - - if err := r.SetQueryParam("phone__empty", qPhoneEmpty); err != nil { - return err - } - } - } - if o.PhoneIc != nil { // query param phone__ic @@ -2328,23 +2500,6 @@ func (o *TenancyContactsListParams) WriteToRequest(r runtime.ClientRequest, reg } } - if o.TitleEmpty != nil { - - // query param title__empty - var qrTitleEmpty string - - if o.TitleEmpty != nil { - qrTitleEmpty = *o.TitleEmpty - } - qTitleEmpty := qrTitleEmpty - if qTitleEmpty != "" { - - if err := r.SetQueryParam("title__empty", qTitleEmpty); err != nil { - return err - } - } - } - if o.TitleIc != nil { // query param title__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go index b9265e3a1..e5cbccffd 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go @@ -87,9 +87,6 @@ type TenancyTenantGroupsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type TenancyTenantGroupsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -207,9 +201,6 @@ type TenancyTenantGroupsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -340,17 +331,6 @@ func (o *TenancyTenantGroupsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the tenancy tenant groups list params -func (o *TenancyTenantGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyTenantGroupsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the tenancy tenant groups list params -func (o *TenancyTenantGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithDescriptionIc(descriptionIc *string) *TenancyTenantGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -571,17 +551,6 @@ func (o *TenancyTenantGroupsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the tenancy tenant groups list params -func (o *TenancyTenantGroupsListParams) WithNameEmpty(nameEmpty *string) *TenancyTenantGroupsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the tenancy tenant groups list params -func (o *TenancyTenantGroupsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithNameIc(nameIc *string) *TenancyTenantGroupsListParams { o.SetNameIc(nameIc) @@ -758,17 +727,6 @@ func (o *TenancyTenantGroupsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the tenancy tenant groups list params -func (o *TenancyTenantGroupsListParams) WithSlugEmpty(slugEmpty *string) *TenancyTenantGroupsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the tenancy tenant groups list params -func (o *TenancyTenantGroupsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithSlugIc(slugIc *string) *TenancyTenantGroupsListParams { o.SetSlugIc(slugIc) @@ -966,23 +924,6 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1323,23 +1264,6 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1612,23 +1536,6 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go index 58dd8a9d7..249914a8d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go @@ -81,6 +81,12 @@ type TenancyTenantsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -99,9 +105,6 @@ type TenancyTenantsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -177,9 +180,6 @@ type TenancyTenantsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -219,9 +219,6 @@ type TenancyTenantsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -330,6 +327,28 @@ func (o *TenancyTenantsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithContactGroup(contactGroup *string) *TenancyTenantsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithContactGroupn(contactGroupn *string) *TenancyTenantsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the tenancy tenants list params func (o *TenancyTenantsListParams) WithContactRole(contactRole *string) *TenancyTenantsListParams { o.SetContactRole(contactRole) @@ -396,17 +415,6 @@ func (o *TenancyTenantsListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the tenancy tenants list params -func (o *TenancyTenantsListParams) WithDescriptionEmpty(descriptionEmpty *string) *TenancyTenantsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the tenancy tenants list params -func (o *TenancyTenantsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the tenancy tenants list params func (o *TenancyTenantsListParams) WithDescriptionIc(descriptionIc *string) *TenancyTenantsListParams { o.SetDescriptionIc(descriptionIc) @@ -671,17 +679,6 @@ func (o *TenancyTenantsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the tenancy tenants list params -func (o *TenancyTenantsListParams) WithNameEmpty(nameEmpty *string) *TenancyTenantsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the tenancy tenants list params -func (o *TenancyTenantsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the tenancy tenants list params func (o *TenancyTenantsListParams) WithNameIc(nameIc *string) *TenancyTenantsListParams { o.SetNameIc(nameIc) @@ -814,17 +811,6 @@ func (o *TenancyTenantsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the tenancy tenants list params -func (o *TenancyTenantsListParams) WithSlugEmpty(slugEmpty *string) *TenancyTenantsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the tenancy tenants list params -func (o *TenancyTenantsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the tenancy tenants list params func (o *TenancyTenantsListParams) WithSlugIc(slugIc *string) *TenancyTenantsListParams { o.SetSlugIc(slugIc) @@ -988,6 +974,40 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1090,23 +1110,6 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1515,23 +1518,6 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1736,23 +1722,6 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go index 6edc7d009..00427f511 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go @@ -81,6 +81,12 @@ type VirtualizationClusterGroupsListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -99,9 +105,6 @@ type VirtualizationClusterGroupsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -165,9 +168,6 @@ type VirtualizationClusterGroupsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -207,9 +207,6 @@ type VirtualizationClusterGroupsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -318,6 +315,28 @@ func (o *VirtualizationClusterGroupsListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithContactGroup(contactGroup *string) *VirtualizationClusterGroupsListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithContactGroupn(contactGroupn *string) *VirtualizationClusterGroupsListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithContactRole(contactRole *string) *VirtualizationClusterGroupsListParams { o.SetContactRole(contactRole) @@ -384,17 +403,6 @@ func (o *VirtualizationClusterGroupsListParams) SetDescription(description *stri o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the virtualization cluster groups list params -func (o *VirtualizationClusterGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *VirtualizationClusterGroupsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the virtualization cluster groups list params -func (o *VirtualizationClusterGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationClusterGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -615,17 +623,6 @@ func (o *VirtualizationClusterGroupsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the virtualization cluster groups list params -func (o *VirtualizationClusterGroupsListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClusterGroupsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the virtualization cluster groups list params -func (o *VirtualizationClusterGroupsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithNameIc(nameIc *string) *VirtualizationClusterGroupsListParams { o.SetNameIc(nameIc) @@ -758,17 +755,6 @@ func (o *VirtualizationClusterGroupsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the virtualization cluster groups list params -func (o *VirtualizationClusterGroupsListParams) WithSlugEmpty(slugEmpty *string) *VirtualizationClusterGroupsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the virtualization cluster groups list params -func (o *VirtualizationClusterGroupsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithSlugIc(slugIc *string) *VirtualizationClusterGroupsListParams { o.SetSlugIc(slugIc) @@ -932,6 +918,40 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1034,23 +1054,6 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1391,23 +1394,6 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1612,23 +1598,6 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go index 37d1c2452..8aab9f094 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go @@ -87,9 +87,6 @@ type VirtualizationClusterTypesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type VirtualizationClusterTypesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -195,9 +189,6 @@ type VirtualizationClusterTypesListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -328,17 +319,6 @@ func (o *VirtualizationClusterTypesListParams) SetDescription(description *strin o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the virtualization cluster types list params -func (o *VirtualizationClusterTypesListParams) WithDescriptionEmpty(descriptionEmpty *string) *VirtualizationClusterTypesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the virtualization cluster types list params -func (o *VirtualizationClusterTypesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationClusterTypesListParams { o.SetDescriptionIc(descriptionIc) @@ -559,17 +539,6 @@ func (o *VirtualizationClusterTypesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the virtualization cluster types list params -func (o *VirtualizationClusterTypesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClusterTypesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the virtualization cluster types list params -func (o *VirtualizationClusterTypesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithNameIc(nameIc *string) *VirtualizationClusterTypesListParams { o.SetNameIc(nameIc) @@ -702,17 +671,6 @@ func (o *VirtualizationClusterTypesListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the virtualization cluster types list params -func (o *VirtualizationClusterTypesListParams) WithSlugEmpty(slugEmpty *string) *VirtualizationClusterTypesListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the virtualization cluster types list params -func (o *VirtualizationClusterTypesListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithSlugIc(slugIc *string) *VirtualizationClusterTypesListParams { o.SetSlugIc(slugIc) @@ -910,23 +868,6 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1267,23 +1208,6 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1488,23 +1412,6 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go index 213a3b22f..e0d75d388 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go @@ -81,6 +81,12 @@ type VirtualizationClustersListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -144,9 +150,6 @@ type VirtualizationClustersListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -336,6 +339,28 @@ func (o *VirtualizationClustersListParams) SetContactn(contactn *string) { o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithContactGroup(contactGroup *string) *VirtualizationClustersListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithContactGroupn(contactGroupn *string) *VirtualizationClustersListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithContactRole(contactRole *string) *VirtualizationClustersListParams { o.SetContactRole(contactRole) @@ -556,17 +581,6 @@ func (o *VirtualizationClustersListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the virtualization clusters list params -func (o *VirtualizationClustersListParams) WithNameEmpty(nameEmpty *string) *VirtualizationClustersListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the virtualization clusters list params -func (o *VirtualizationClustersListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithNameIc(nameIc *string) *VirtualizationClustersListParams { o.SetNameIc(nameIc) @@ -1016,6 +1030,40 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -1356,23 +1404,6 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go index 8ece9a3ba..d6f3623a6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go @@ -105,9 +105,6 @@ type VirtualizationInterfacesListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -222,9 +219,6 @@ type VirtualizationInterfacesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -285,6 +279,18 @@ type VirtualizationInterfacesListParams struct { // VirtualMachineIDn. VirtualMachineIDn *string + // Vrf. + Vrf *string + + // Vrfn. + Vrfn *string + + // VrfID. + VrfID *string + + // VrfIDn. + VrfIDn *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -448,17 +454,6 @@ func (o *VirtualizationInterfacesListParams) SetDescription(description *string) o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the virtualization interfaces list params -func (o *VirtualizationInterfacesListParams) WithDescriptionEmpty(descriptionEmpty *string) *VirtualizationInterfacesListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the virtualization interfaces list params -func (o *VirtualizationInterfacesListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationInterfacesListParams { o.SetDescriptionIc(descriptionIc) @@ -866,17 +861,6 @@ func (o *VirtualizationInterfacesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the virtualization interfaces list params -func (o *VirtualizationInterfacesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationInterfacesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the virtualization interfaces list params -func (o *VirtualizationInterfacesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithNameIc(nameIc *string) *VirtualizationInterfacesListParams { o.SetNameIc(nameIc) @@ -1086,6 +1070,50 @@ func (o *VirtualizationInterfacesListParams) SetVirtualMachineIDn(virtualMachine o.VirtualMachineIDn = virtualMachineIDn } +// WithVrf adds the vrf to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVrf(vrf *string) *VirtualizationInterfacesListParams { + o.SetVrf(vrf) + return o +} + +// SetVrf adds the vrf to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVrf(vrf *string) { + o.Vrf = vrf +} + +// WithVrfn adds the vrfn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVrfn(vrfn *string) *VirtualizationInterfacesListParams { + o.SetVrfn(vrfn) + return o +} + +// SetVrfn adds the vrfN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVrfn(vrfn *string) { + o.Vrfn = vrfn +} + +// WithVrfID adds the vrfID to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVrfID(vrfID *string) *VirtualizationInterfacesListParams { + o.SetVrfID(vrfID) + return o +} + +// SetVrfID adds the vrfId to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVrfID(vrfID *string) { + o.VrfID = vrfID +} + +// WithVrfIDn adds the vrfIDn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVrfIDn(vrfIDn *string) *VirtualizationInterfacesListParams { + o.SetVrfIDn(vrfIDn) + return o +} + +// SetVrfIDn adds the vrfIdN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVrfIDn(vrfIDn *string) { + o.VrfIDn = vrfIDn +} + // WriteToRequest writes these params to a swagger request func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -1264,23 +1292,6 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1910,23 +1921,6 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -2250,6 +2244,74 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } } + if o.Vrf != nil { + + // query param vrf + var qrVrf string + + if o.Vrf != nil { + qrVrf = *o.Vrf + } + qVrf := qrVrf + if qVrf != "" { + + if err := r.SetQueryParam("vrf", qVrf); err != nil { + return err + } + } + } + + if o.Vrfn != nil { + + // query param vrf__n + var qrVrfn string + + if o.Vrfn != nil { + qrVrfn = *o.Vrfn + } + qVrfn := qrVrfn + if qVrfn != "" { + + if err := r.SetQueryParam("vrf__n", qVrfn); err != nil { + return err + } + } + } + + if o.VrfID != nil { + + // query param vrf_id + var qrVrfID string + + if o.VrfID != nil { + qrVrfID = *o.VrfID + } + qVrfID := qrVrfID + if qVrfID != "" { + + if err := r.SetQueryParam("vrf_id", qVrfID); err != nil { + return err + } + } + } + + if o.VrfIDn != nil { + + // query param vrf_id__n + var qrVrfIDn string + + if o.VrfIDn != nil { + qrVrfIDn = *o.VrfIDn + } + qVrfIDn := qrVrfIDn + if qVrfIDn != "" { + + if err := r.SetQueryParam("vrf_id__n", qVrfIDn); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go index 4e800038e..9a3e6e622 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go @@ -117,6 +117,12 @@ type VirtualizationVirtualMachinesListParams struct { // Contactn. Contactn *string + // ContactGroup. + ContactGroup *string + + // ContactGroupn. + ContactGroupn *string + // ContactRole. ContactRole *string @@ -240,9 +246,6 @@ type VirtualizationVirtualMachinesListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -600,6 +603,28 @@ func (o *VirtualizationVirtualMachinesListParams) SetContactn(contactn *string) o.Contactn = contactn } +// WithContactGroup adds the contactGroup to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithContactGroup(contactGroup *string) *VirtualizationVirtualMachinesListParams { + o.SetContactGroup(contactGroup) + return o +} + +// SetContactGroup adds the contactGroup to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetContactGroup(contactGroup *string) { + o.ContactGroup = contactGroup +} + +// WithContactGroupn adds the contactGroupn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithContactGroupn(contactGroupn *string) *VirtualizationVirtualMachinesListParams { + o.SetContactGroupn(contactGroupn) + return o +} + +// SetContactGroupn adds the contactGroupN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetContactGroupn(contactGroupn *string) { + o.ContactGroupn = contactGroupn +} + // WithContactRole adds the contactRole to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithContactRole(contactRole *string) *VirtualizationVirtualMachinesListParams { o.SetContactRole(contactRole) @@ -1040,17 +1065,6 @@ func (o *VirtualizationVirtualMachinesListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) WithNameEmpty(nameEmpty *string) *VirtualizationVirtualMachinesListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithNameIc(nameIc *string) *VirtualizationVirtualMachinesListParams { o.SetNameIc(nameIc) @@ -1836,6 +1850,40 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } } + if o.ContactGroup != nil { + + // query param contact_group + var qrContactGroup string + + if o.ContactGroup != nil { + qrContactGroup = *o.ContactGroup + } + qContactGroup := qrContactGroup + if qContactGroup != "" { + + if err := r.SetQueryParam("contact_group", qContactGroup); err != nil { + return err + } + } + } + + if o.ContactGroupn != nil { + + // query param contact_group__n + var qrContactGroupn string + + if o.ContactGroupn != nil { + qrContactGroupn = *o.ContactGroupn + } + qContactGroupn := qrContactGroupn + if qContactGroupn != "" { + + if err := r.SetQueryParam("contact_group__n", qContactGroupn); err != nil { + return err + } + } + } + if o.ContactRole != nil { // query param contact_role @@ -2516,23 +2564,6 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go index 5e653ad2e..6fc1a18f9 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lan_groups_list_parameters.go @@ -87,9 +87,6 @@ type WirelessWirelessLanGroupsListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -153,9 +150,6 @@ type WirelessWirelessLanGroupsListParams struct { // Name. Name *string - // NameEmpty. - NameEmpty *string - // NameIc. NameIc *string @@ -207,9 +201,6 @@ type WirelessWirelessLanGroupsListParams struct { // Slug. Slug *string - // SlugEmpty. - SlugEmpty *string - // SlugIc. SlugIc *string @@ -340,17 +331,6 @@ func (o *WirelessWirelessLanGroupsListParams) SetDescription(description *string o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the wireless wireless lan groups list params -func (o *WirelessWirelessLanGroupsListParams) WithDescriptionEmpty(descriptionEmpty *string) *WirelessWirelessLanGroupsListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the wireless wireless lan groups list params -func (o *WirelessWirelessLanGroupsListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the wireless wireless lan groups list params func (o *WirelessWirelessLanGroupsListParams) WithDescriptionIc(descriptionIc *string) *WirelessWirelessLanGroupsListParams { o.SetDescriptionIc(descriptionIc) @@ -571,17 +551,6 @@ func (o *WirelessWirelessLanGroupsListParams) SetName(name *string) { o.Name = name } -// WithNameEmpty adds the nameEmpty to the wireless wireless lan groups list params -func (o *WirelessWirelessLanGroupsListParams) WithNameEmpty(nameEmpty *string) *WirelessWirelessLanGroupsListParams { - o.SetNameEmpty(nameEmpty) - return o -} - -// SetNameEmpty adds the nameEmpty to the wireless wireless lan groups list params -func (o *WirelessWirelessLanGroupsListParams) SetNameEmpty(nameEmpty *string) { - o.NameEmpty = nameEmpty -} - // WithNameIc adds the nameIc to the wireless wireless lan groups list params func (o *WirelessWirelessLanGroupsListParams) WithNameIc(nameIc *string) *WirelessWirelessLanGroupsListParams { o.SetNameIc(nameIc) @@ -758,17 +727,6 @@ func (o *WirelessWirelessLanGroupsListParams) SetSlug(slug *string) { o.Slug = slug } -// WithSlugEmpty adds the slugEmpty to the wireless wireless lan groups list params -func (o *WirelessWirelessLanGroupsListParams) WithSlugEmpty(slugEmpty *string) *WirelessWirelessLanGroupsListParams { - o.SetSlugEmpty(slugEmpty) - return o -} - -// SetSlugEmpty adds the slugEmpty to the wireless wireless lan groups list params -func (o *WirelessWirelessLanGroupsListParams) SetSlugEmpty(slugEmpty *string) { - o.SlugEmpty = slugEmpty -} - // WithSlugIc adds the slugIc to the wireless wireless lan groups list params func (o *WirelessWirelessLanGroupsListParams) WithSlugIc(slugIc *string) *WirelessWirelessLanGroupsListParams { o.SetSlugIc(slugIc) @@ -966,23 +924,6 @@ func (o *WirelessWirelessLanGroupsListParams) WriteToRequest(r runtime.ClientReq } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1323,23 +1264,6 @@ func (o *WirelessWirelessLanGroupsListParams) WriteToRequest(r runtime.ClientReq } } - if o.NameEmpty != nil { - - // query param name__empty - var qrNameEmpty string - - if o.NameEmpty != nil { - qrNameEmpty = *o.NameEmpty - } - qNameEmpty := qrNameEmpty - if qNameEmpty != "" { - - if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil { - return err - } - } - } - if o.NameIc != nil { // query param name__ic @@ -1612,23 +1536,6 @@ func (o *WirelessWirelessLanGroupsListParams) WriteToRequest(r runtime.ClientReq } } - if o.SlugEmpty != nil { - - // query param slug__empty - var qrSlugEmpty string - - if o.SlugEmpty != nil { - qrSlugEmpty = *o.SlugEmpty - } - qSlugEmpty := qrSlugEmpty - if qSlugEmpty != "" { - - if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil { - return err - } - } - } - if o.SlugIc != nil { // query param slug__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lans_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lans_list_parameters.go index 6a3f2cd9c..713924be8 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lans_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_lans_list_parameters.go @@ -84,9 +84,6 @@ type WirelessWirelessLansListParams struct { // AuthPsk. AuthPsk *string - // AuthPskEmpty. - AuthPskEmpty *string - // AuthPskIc. AuthPskIc *string @@ -132,9 +129,6 @@ type WirelessWirelessLansListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -219,9 +213,6 @@ type WirelessWirelessLansListParams struct { // Ssid. Ssid *string - // SsidEmpty. - SsidEmpty *string - // SsidIc. SsidIc *string @@ -347,17 +338,6 @@ func (o *WirelessWirelessLansListParams) SetAuthPsk(authPsk *string) { o.AuthPsk = authPsk } -// WithAuthPskEmpty adds the authPskEmpty to the wireless wireless lans list params -func (o *WirelessWirelessLansListParams) WithAuthPskEmpty(authPskEmpty *string) *WirelessWirelessLansListParams { - o.SetAuthPskEmpty(authPskEmpty) - return o -} - -// SetAuthPskEmpty adds the authPskEmpty to the wireless wireless lans list params -func (o *WirelessWirelessLansListParams) SetAuthPskEmpty(authPskEmpty *string) { - o.AuthPskEmpty = authPskEmpty -} - // WithAuthPskIc adds the authPskIc to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithAuthPskIc(authPskIc *string) *WirelessWirelessLansListParams { o.SetAuthPskIc(authPskIc) @@ -523,17 +503,6 @@ func (o *WirelessWirelessLansListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the wireless wireless lans list params -func (o *WirelessWirelessLansListParams) WithDescriptionEmpty(descriptionEmpty *string) *WirelessWirelessLansListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the wireless wireless lans list params -func (o *WirelessWirelessLansListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithDescriptionIc(descriptionIc *string) *WirelessWirelessLansListParams { o.SetDescriptionIc(descriptionIc) @@ -820,17 +789,6 @@ func (o *WirelessWirelessLansListParams) SetSsid(ssid *string) { o.Ssid = ssid } -// WithSsidEmpty adds the ssidEmpty to the wireless wireless lans list params -func (o *WirelessWirelessLansListParams) WithSsidEmpty(ssidEmpty *string) *WirelessWirelessLansListParams { - o.SetSsidEmpty(ssidEmpty) - return o -} - -// SetSsidEmpty adds the ssidEmpty to the wireless wireless lans list params -func (o *WirelessWirelessLansListParams) SetSsidEmpty(ssidEmpty *string) { - o.SsidEmpty = ssidEmpty -} - // WithSsidIc adds the ssidIc to the wireless wireless lans list params func (o *WirelessWirelessLansListParams) WithSsidIc(ssidIc *string) *WirelessWirelessLansListParams { o.SetSsidIc(ssidIc) @@ -1033,23 +991,6 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.AuthPskEmpty != nil { - - // query param auth_psk__empty - var qrAuthPskEmpty string - - if o.AuthPskEmpty != nil { - qrAuthPskEmpty = *o.AuthPskEmpty - } - qAuthPskEmpty := qrAuthPskEmpty - if qAuthPskEmpty != "" { - - if err := r.SetQueryParam("auth_psk__empty", qAuthPskEmpty); err != nil { - return err - } - } - } - if o.AuthPskIc != nil { // query param auth_psk__ic @@ -1305,23 +1246,6 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -1764,23 +1688,6 @@ func (o *WirelessWirelessLansListParams) WriteToRequest(r runtime.ClientRequest, } } - if o.SsidEmpty != nil { - - // query param ssid__empty - var qrSsidEmpty string - - if o.SsidEmpty != nil { - qrSsidEmpty = *o.SsidEmpty - } - qSsidEmpty := qrSsidEmpty - if qSsidEmpty != "" { - - if err := r.SetQueryParam("ssid__empty", qSsidEmpty); err != nil { - return err - } - } - } - if o.SsidIc != nil { // query param ssid__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_links_list_parameters.go b/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_links_list_parameters.go index 78fa73b21..91e160de6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_links_list_parameters.go +++ b/vendor/github.com/smutel/go-netbox/netbox/client/wireless/wireless_wireless_links_list_parameters.go @@ -84,9 +84,6 @@ type WirelessWirelessLinksListParams struct { // AuthPsk. AuthPsk *string - // AuthPskEmpty. - AuthPskEmpty *string - // AuthPskIc. AuthPskIc *string @@ -132,9 +129,6 @@ type WirelessWirelessLinksListParams struct { // Description. Description *string - // DescriptionEmpty. - DescriptionEmpty *string - // DescriptionIc. DescriptionIc *string @@ -243,9 +237,6 @@ type WirelessWirelessLinksListParams struct { // Ssid. Ssid *string - // SsidEmpty. - SsidEmpty *string - // SsidIc. SsidIc *string @@ -371,17 +362,6 @@ func (o *WirelessWirelessLinksListParams) SetAuthPsk(authPsk *string) { o.AuthPsk = authPsk } -// WithAuthPskEmpty adds the authPskEmpty to the wireless wireless links list params -func (o *WirelessWirelessLinksListParams) WithAuthPskEmpty(authPskEmpty *string) *WirelessWirelessLinksListParams { - o.SetAuthPskEmpty(authPskEmpty) - return o -} - -// SetAuthPskEmpty adds the authPskEmpty to the wireless wireless links list params -func (o *WirelessWirelessLinksListParams) SetAuthPskEmpty(authPskEmpty *string) { - o.AuthPskEmpty = authPskEmpty -} - // WithAuthPskIc adds the authPskIc to the wireless wireless links list params func (o *WirelessWirelessLinksListParams) WithAuthPskIc(authPskIc *string) *WirelessWirelessLinksListParams { o.SetAuthPskIc(authPskIc) @@ -547,17 +527,6 @@ func (o *WirelessWirelessLinksListParams) SetDescription(description *string) { o.Description = description } -// WithDescriptionEmpty adds the descriptionEmpty to the wireless wireless links list params -func (o *WirelessWirelessLinksListParams) WithDescriptionEmpty(descriptionEmpty *string) *WirelessWirelessLinksListParams { - o.SetDescriptionEmpty(descriptionEmpty) - return o -} - -// SetDescriptionEmpty adds the descriptionEmpty to the wireless wireless links list params -func (o *WirelessWirelessLinksListParams) SetDescriptionEmpty(descriptionEmpty *string) { - o.DescriptionEmpty = descriptionEmpty -} - // WithDescriptionIc adds the descriptionIc to the wireless wireless links list params func (o *WirelessWirelessLinksListParams) WithDescriptionIc(descriptionIc *string) *WirelessWirelessLinksListParams { o.SetDescriptionIc(descriptionIc) @@ -932,17 +901,6 @@ func (o *WirelessWirelessLinksListParams) SetSsid(ssid *string) { o.Ssid = ssid } -// WithSsidEmpty adds the ssidEmpty to the wireless wireless links list params -func (o *WirelessWirelessLinksListParams) WithSsidEmpty(ssidEmpty *string) *WirelessWirelessLinksListParams { - o.SetSsidEmpty(ssidEmpty) - return o -} - -// SetSsidEmpty adds the ssidEmpty to the wireless wireless links list params -func (o *WirelessWirelessLinksListParams) SetSsidEmpty(ssidEmpty *string) { - o.SsidEmpty = ssidEmpty -} - // WithSsidIc adds the ssidIc to the wireless wireless links list params func (o *WirelessWirelessLinksListParams) WithSsidIc(ssidIc *string) *WirelessWirelessLinksListParams { o.SetSsidIc(ssidIc) @@ -1145,23 +1103,6 @@ func (o *WirelessWirelessLinksListParams) WriteToRequest(r runtime.ClientRequest } } - if o.AuthPskEmpty != nil { - - // query param auth_psk__empty - var qrAuthPskEmpty string - - if o.AuthPskEmpty != nil { - qrAuthPskEmpty = *o.AuthPskEmpty - } - qAuthPskEmpty := qrAuthPskEmpty - if qAuthPskEmpty != "" { - - if err := r.SetQueryParam("auth_psk__empty", qAuthPskEmpty); err != nil { - return err - } - } - } - if o.AuthPskIc != nil { // query param auth_psk__ic @@ -1417,23 +1358,6 @@ func (o *WirelessWirelessLinksListParams) WriteToRequest(r runtime.ClientRequest } } - if o.DescriptionEmpty != nil { - - // query param description__empty - var qrDescriptionEmpty string - - if o.DescriptionEmpty != nil { - qrDescriptionEmpty = *o.DescriptionEmpty - } - qDescriptionEmpty := qrDescriptionEmpty - if qDescriptionEmpty != "" { - - if err := r.SetQueryParam("description__empty", qDescriptionEmpty); err != nil { - return err - } - } - } - if o.DescriptionIc != nil { // query param description__ic @@ -2012,23 +1936,6 @@ func (o *WirelessWirelessLinksListParams) WriteToRequest(r runtime.ClientRequest } } - if o.SsidEmpty != nil { - - // query param ssid__empty - var qrSsidEmpty string - - if o.SsidEmpty != nil { - qrSsidEmpty = *o.SsidEmpty - } - qSsidEmpty := qrSsidEmpty - if qSsidEmpty != "" { - - if err := r.SetQueryParam("ssid__empty", qSsidEmpty); err != nil { - return err - } - } - } - if o.SsidIc != nil { // query param ssid__ic diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/a_s_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/a_s_n.go index 96b796ece..f511470d0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/a_s_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/a_s_n.go @@ -45,8 +45,8 @@ type ASN struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type ASN struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -68,6 +68,10 @@ type ASN struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Provider count + // Read Only: true + ProviderCount int64 `json:"provider_count,omitempty"` + // RIR // Required: true Rir *int64 `json:"rir"` @@ -152,7 +156,7 @@ func (m *ASN) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -269,6 +273,10 @@ func (m *ASN) ContextValidate(ctx context.Context, formats strfmt.Registry) erro res = append(res, err) } + if err := m.contextValidateProviderCount(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSiteCount(ctx, formats); err != nil { res = append(res, err) } @@ -293,7 +301,7 @@ func (m *ASN) ContextValidate(ctx context.Context, formats strfmt.Registry) erro func (m *ASN) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -327,6 +335,15 @@ func (m *ASN) contextValidateLastUpdated(ctx context.Context, formats strfmt.Reg return nil } +func (m *ASN) contextValidateProviderCount(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "provider_count", "body", int64(m.ProviderCount)); err != nil { + return err + } + + return nil +} + func (m *ASN) contextValidateSiteCount(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "site_count", "body", int64(m.SiteCount)); err != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/aggregate.go b/vendor/github.com/smutel/go-netbox/netbox/models/aggregate.go index 7c91cbcc7..cc887f125 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/aggregate.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/aggregate.go @@ -38,8 +38,8 @@ type Aggregate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type Aggregate struct { // family Family *AggregateFamily `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -143,7 +143,7 @@ func (m *Aggregate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -339,7 +339,7 @@ func (m *Aggregate) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *Aggregate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/cable.go b/vendor/github.com/smutel/go-netbox/netbox/models/cable.go index 038df4700..850ae4d39 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/cable.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/cable.go @@ -43,8 +43,8 @@ type Cable struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -53,7 +53,7 @@ type Cable struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -206,7 +206,7 @@ func (m *Cable) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -545,7 +545,7 @@ func (m *Cable) ContextValidate(ctx context.Context, formats strfmt.Registry) er func (m *Cable) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/circuit.go b/vendor/github.com/smutel/go-netbox/netbox/models/circuit.go index bfc626470..642b8a326 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/circuit.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/circuit.go @@ -52,8 +52,8 @@ type Circuit struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -66,7 +66,7 @@ type Circuit struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -212,7 +212,7 @@ func (m *Circuit) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -469,7 +469,7 @@ func (m *Circuit) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Circuit) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/circuit_circuit_termination.go b/vendor/github.com/smutel/go-netbox/netbox/models/circuit_circuit_termination.go index 5eed56e10..a9ee73eac 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/circuit_circuit_termination.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/circuit_circuit_termination.go @@ -38,7 +38,7 @@ type CircuitCircuitTermination struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/circuit_termination.go b/vendor/github.com/smutel/go-netbox/netbox/models/circuit_termination.go index bd0326d69..76b53e734 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/circuit_termination.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/circuit_termination.go @@ -48,8 +48,8 @@ type CircuitTermination struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -59,7 +59,7 @@ type CircuitTermination struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -228,7 +228,7 @@ func (m *CircuitTermination) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -509,7 +509,7 @@ func (m *CircuitTermination) contextValidateCircuit(ctx context.Context, formats func (m *CircuitTermination) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/circuit_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/circuit_type.go index f18913911..cfbb8da09 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/circuit_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/circuit_type.go @@ -41,8 +41,8 @@ type CircuitType struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type CircuitType struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -129,7 +129,7 @@ func (m *CircuitType) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -285,7 +285,7 @@ func (m *CircuitType) contextValidateCircuitCount(ctx context.Context, formats s func (m *CircuitType) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/cluster.go b/vendor/github.com/smutel/go-netbox/netbox/models/cluster.go index 77e703ff7..d7ae3e107 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/cluster.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/cluster.go @@ -40,8 +40,8 @@ type Cluster struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -57,7 +57,7 @@ type Cluster struct { // group Group *NestedClusterGroup `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -146,7 +146,7 @@ func (m *Cluster) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -357,7 +357,7 @@ func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Cluster) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/cluster_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/cluster_group.go index 14a749ee0..2d9e9f266 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/cluster_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/cluster_group.go @@ -41,8 +41,8 @@ type ClusterGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type ClusterGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -129,7 +129,7 @@ func (m *ClusterGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -285,7 +285,7 @@ func (m *ClusterGroup) contextValidateClusterCount(ctx context.Context, formats func (m *ClusterGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/cluster_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/cluster_type.go index 854d072b6..b7fe5002a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/cluster_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/cluster_type.go @@ -41,8 +41,8 @@ type ClusterType struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type ClusterType struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -129,7 +129,7 @@ func (m *ClusterType) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -285,7 +285,7 @@ func (m *ClusterType) contextValidateClusterCount(ctx context.Context, formats s func (m *ClusterType) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/config_context.go b/vendor/github.com/smutel/go-netbox/netbox/models/config_context.go index abb7a8cdc..4ee2817a7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/config_context.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/config_context.go @@ -39,14 +39,18 @@ type ConfigContext struct { // Unique: true ClusterGroups []*NestedClusterGroup `json:"cluster_groups"` + // cluster types + // Unique: true + ClusterTypes []*NestedClusterType `json:"cluster_types"` + // clusters // Unique: true Clusters []*NestedCluster `json:"clusters"` // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Data // Required: true @@ -64,7 +68,7 @@ type ConfigContext struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -133,6 +137,10 @@ func (m *ConfigContext) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateClusterTypes(formats); err != nil { + res = append(res, err) + } + if err := m.validateClusters(formats); err != nil { res = append(res, err) } @@ -237,6 +245,36 @@ func (m *ConfigContext) validateClusterGroups(formats strfmt.Registry) error { return nil } +func (m *ConfigContext) validateClusterTypes(formats strfmt.Registry) error { + if swag.IsZero(m.ClusterTypes) { // not required + return nil + } + + if err := validate.UniqueItems("cluster_types", "body", m.ClusterTypes); err != nil { + return err + } + + for i := 0; i < len(m.ClusterTypes); i++ { + if swag.IsZero(m.ClusterTypes[i]) { // not required + continue + } + + if m.ClusterTypes[i] != nil { + if err := m.ClusterTypes[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("cluster_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_types" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *ConfigContext) validateClusters(formats strfmt.Registry) error { if swag.IsZero(m.Clusters) { // not required return nil @@ -272,7 +310,7 @@ func (m *ConfigContext) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -625,6 +663,10 @@ func (m *ConfigContext) ContextValidate(ctx context.Context, formats strfmt.Regi res = append(res, err) } + if err := m.contextValidateClusterTypes(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateClusters(ctx, formats); err != nil { res = append(res, err) } @@ -707,6 +749,26 @@ func (m *ConfigContext) contextValidateClusterGroups(ctx context.Context, format return nil } +func (m *ConfigContext) contextValidateClusterTypes(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.ClusterTypes); i++ { + + if m.ClusterTypes[i] != nil { + if err := m.ClusterTypes[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("cluster_types" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("cluster_types" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *ConfigContext) contextValidateClusters(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Clusters); i++ { @@ -729,7 +791,7 @@ func (m *ConfigContext) contextValidateClusters(ctx context.Context, formats str func (m *ConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/console_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/console_port.go index 61f7dc8c1..71512f7e4 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/console_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/console_port.go @@ -61,8 +61,8 @@ type ConsolePort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -79,7 +79,7 @@ type ConsolePort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -111,6 +111,9 @@ type ConsolePort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -160,6 +163,10 @@ func (m *ConsolePort) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -210,7 +217,7 @@ func (m *ConsolePort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -273,6 +280,25 @@ func (m *ConsolePort) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *ConsolePort) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *ConsolePort) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -418,6 +444,10 @@ func (m *ConsolePort) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSpeed(ctx, formats); err != nil { res = append(res, err) } @@ -490,7 +520,7 @@ func (m *ConsolePort) contextValidateConnectedEndpointType(ctx context.Context, func (m *ConsolePort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -554,6 +584,22 @@ func (m *ConsolePort) contextValidateLinkPeerType(ctx context.Context, formats s return nil } +func (m *ConsolePort) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *ConsolePort) contextValidateSpeed(ctx context.Context, formats strfmt.Registry) error { if m.Speed != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/console_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/console_port_template.go index 74cd5561c..ecf9898d0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/console_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/console_port_template.go @@ -37,22 +37,21 @@ type ConsolePortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -67,7 +66,14 @@ type ConsolePortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -106,6 +112,10 @@ func (m *ConsolePortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -129,7 +139,7 @@ func (m *ConsolePortTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -149,9 +159,8 @@ func (m *ConsolePortTemplate) validateDescription(formats strfmt.Registry) error } func (m *ConsolePortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -192,6 +201,25 @@ func (m *ConsolePortTemplate) validateLastUpdated(formats strfmt.Registry) error return nil } +func (m *ConsolePortTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *ConsolePortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -264,6 +292,10 @@ func (m *ConsolePortTemplate) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateType(ctx, formats); err != nil { res = append(res, err) } @@ -280,7 +312,7 @@ func (m *ConsolePortTemplate) ContextValidate(ctx context.Context, formats strfm func (m *ConsolePortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -330,6 +362,22 @@ func (m *ConsolePortTemplate) contextValidateLastUpdated(ctx context.Context, fo return nil } +func (m *ConsolePortTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *ConsolePortTemplate) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port.go index 9d1ec0167..37b40e7a7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port.go @@ -61,8 +61,8 @@ type ConsoleServerPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -79,7 +79,7 @@ type ConsoleServerPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -111,6 +111,9 @@ type ConsoleServerPort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -160,6 +163,10 @@ func (m *ConsoleServerPort) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -210,7 +217,7 @@ func (m *ConsoleServerPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -273,6 +280,25 @@ func (m *ConsoleServerPort) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *ConsoleServerPort) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *ConsoleServerPort) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -418,6 +444,10 @@ func (m *ConsoleServerPort) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSpeed(ctx, formats); err != nil { res = append(res, err) } @@ -490,7 +520,7 @@ func (m *ConsoleServerPort) contextValidateConnectedEndpointType(ctx context.Con func (m *ConsoleServerPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -554,6 +584,22 @@ func (m *ConsoleServerPort) contextValidateLinkPeerType(ctx context.Context, for return nil } +func (m *ConsoleServerPort) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *ConsoleServerPort) contextValidateSpeed(ctx context.Context, formats strfmt.Registry) error { if m.Speed != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port_template.go index 9072cc0e9..fd7f43fad 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/console_server_port_template.go @@ -37,22 +37,21 @@ type ConsoleServerPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -67,7 +66,14 @@ type ConsoleServerPortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -106,6 +112,10 @@ func (m *ConsoleServerPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -129,7 +139,7 @@ func (m *ConsoleServerPortTemplate) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -149,9 +159,8 @@ func (m *ConsoleServerPortTemplate) validateDescription(formats strfmt.Registry) } func (m *ConsoleServerPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -192,6 +201,25 @@ func (m *ConsoleServerPortTemplate) validateLastUpdated(formats strfmt.Registry) return nil } +func (m *ConsoleServerPortTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *ConsoleServerPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -264,6 +292,10 @@ func (m *ConsoleServerPortTemplate) ContextValidate(ctx context.Context, formats res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateType(ctx, formats); err != nil { res = append(res, err) } @@ -280,7 +312,7 @@ func (m *ConsoleServerPortTemplate) ContextValidate(ctx context.Context, formats func (m *ConsoleServerPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -330,6 +362,22 @@ func (m *ConsoleServerPortTemplate) contextValidateLastUpdated(ctx context.Conte return nil } +func (m *ConsoleServerPortTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *ConsoleServerPortTemplate) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/contact.go b/vendor/github.com/smutel/go-netbox/netbox/models/contact.go index 1bea8a52f..80ea399f7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/contact.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/contact.go @@ -44,8 +44,8 @@ type Contact struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -62,7 +62,7 @@ type Contact struct { // group Group *NestedContactGroup `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -71,6 +71,11 @@ type Contact struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Link + // Max Length: 200 + // Format: uri + Link strfmt.URI `json:"link,omitempty"` + // Name // Required: true // Max Length: 100 @@ -118,6 +123,10 @@ func (m *Contact) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateLink(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -161,7 +170,7 @@ func (m *Contact) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -215,6 +224,22 @@ func (m *Contact) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *Contact) validateLink(formats strfmt.Registry) error { + if swag.IsZero(m.Link) { // not required + return nil + } + + if err := validate.MaxLength("link", "body", m.Link.String(), 200); err != nil { + return err + } + + if err := validate.FormatOf("link", "body", "uri", m.Link.String(), formats); err != nil { + return err + } + + return nil +} + func (m *Contact) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -334,7 +359,7 @@ func (m *Contact) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Contact) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/contact_assignment.go b/vendor/github.com/smutel/go-netbox/netbox/models/contact_assignment.go index 2008bd23a..529489824 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/contact_assignment.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/contact_assignment.go @@ -45,14 +45,14 @@ type ContactAssignment struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -159,7 +159,7 @@ func (m *ContactAssignment) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -305,7 +305,7 @@ func (m *ContactAssignment) contextValidateContact(ctx context.Context, formats func (m *ContactAssignment) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/contact_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/contact_group.go index fe17cc5a5..8715a67ed 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/contact_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/contact_group.go @@ -45,8 +45,8 @@ type ContactGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type ContactGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -140,7 +140,7 @@ func (m *ContactGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -332,7 +332,7 @@ func (m *ContactGroup) contextValidateContactCount(ctx context.Context, formats func (m *ContactGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/contact_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/contact_role.go index ee940df79..a12c0e8d9 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/contact_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/contact_role.go @@ -37,8 +37,8 @@ type ContactRole struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type ContactRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,7 +125,7 @@ func (m *ContactRole) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -268,7 +268,7 @@ func (m *ContactRole) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *ContactRole) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/custom_field.go b/vendor/github.com/smutel/go-netbox/netbox/models/custom_field.go index 729c3cbdf..1b0879533 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/custom_field.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/custom_field.go @@ -46,8 +46,12 @@ type CustomField struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` + + // Data type + // Read Only: true + DataType string `json:"data_type,omitempty"` // Default // @@ -65,7 +69,7 @@ type CustomField struct { // filter logic FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -89,6 +93,9 @@ type CustomField struct { // Pattern: ^[a-z0-9_]+$ Name *string `json:"name"` + // Object type + ObjectType string `json:"object_type,omitempty"` + // Required // // If true, this field is required when creating new objects or editing an existing object. @@ -235,7 +242,7 @@ func (m *CustomField) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -418,6 +425,10 @@ func (m *CustomField) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateDataType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateDisplay(ctx, formats); err != nil { res = append(res, err) } @@ -450,7 +461,16 @@ func (m *CustomField) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *CustomField) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { + return err + } + + return nil +} + +func (m *CustomField) contextValidateDataType(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "data_type", "body", string(m.DataType)); err != nil { return err } @@ -699,12 +719,12 @@ type CustomFieldType struct { // label // Required: true - // Enum: [Text Text (long) Integer Boolean (true/false) Date URL JSON Selection Multiple selection] + // Enum: [Text Text (long) Integer Boolean (true/false) Date URL JSON Selection Multiple selection Object Multiple objects] Label *string `json:"label"` // value // Required: true - // Enum: [text longtext integer boolean date url json select multiselect] + // Enum: [text longtext integer boolean date url json select multiselect object multiobject] Value *string `json:"value"` } @@ -730,7 +750,7 @@ var customFieldTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Text","Text (long)","Integer","Boolean (true/false)","Date","URL","JSON","Selection","Multiple selection"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Text","Text (long)","Integer","Boolean (true/false)","Date","URL","JSON","Selection","Multiple selection","Object","Multiple objects"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -766,6 +786,12 @@ const ( // CustomFieldTypeLabelMultipleSelection captures enum value "Multiple selection" CustomFieldTypeLabelMultipleSelection string = "Multiple selection" + + // CustomFieldTypeLabelObject captures enum value "Object" + CustomFieldTypeLabelObject string = "Object" + + // CustomFieldTypeLabelMultipleObjects captures enum value "Multiple objects" + CustomFieldTypeLabelMultipleObjects string = "Multiple objects" ) // prop value enum @@ -794,7 +820,7 @@ var customFieldTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["text","longtext","integer","boolean","date","url","json","select","multiselect"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["text","longtext","integer","boolean","date","url","json","select","multiselect","object","multiobject"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -830,6 +856,12 @@ const ( // CustomFieldTypeValueMultiselect captures enum value "multiselect" CustomFieldTypeValueMultiselect string = "multiselect" + + // CustomFieldTypeValueObject captures enum value "object" + CustomFieldTypeValueObject string = "object" + + // CustomFieldTypeValueMultiobject captures enum value "multiobject" + CustomFieldTypeValueMultiobject string = "multiobject" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/custom_link.go b/vendor/github.com/smutel/go-netbox/netbox/models/custom_link.go index 90718de5d..04dc9fd26 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/custom_link.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/custom_link.go @@ -38,7 +38,7 @@ type CustomLink struct { // Button class // // The class of the first link in a group will be used for the dropdown button - // Enum: [outline-dark ghost-dark blue indigo purple pink red orange yellow green teal cyan secondary] + // Enum: [outline-dark blue indigo purple pink red orange yellow green teal cyan gray black white ghost-dark] ButtonClass string `json:"button_class,omitempty"` // Content type @@ -47,20 +47,23 @@ type CustomLink struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` + // Enabled + Enabled bool `json:"enabled,omitempty"` + // Group name // // Links with the same group will appear as a dropdown menu // Max Length: 50 GroupName string `json:"group_name,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -161,7 +164,7 @@ var customLinkTypeButtonClassPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["outline-dark","ghost-dark","blue","indigo","purple","pink","red","orange","yellow","green","teal","cyan","secondary"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["outline-dark","blue","indigo","purple","pink","red","orange","yellow","green","teal","cyan","gray","black","white","ghost-dark"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -174,9 +177,6 @@ const ( // CustomLinkButtonClassOutlineDashDark captures enum value "outline-dark" CustomLinkButtonClassOutlineDashDark string = "outline-dark" - // CustomLinkButtonClassGhostDashDark captures enum value "ghost-dark" - CustomLinkButtonClassGhostDashDark string = "ghost-dark" - // CustomLinkButtonClassBlue captures enum value "blue" CustomLinkButtonClassBlue string = "blue" @@ -207,8 +207,17 @@ const ( // CustomLinkButtonClassCyan captures enum value "cyan" CustomLinkButtonClassCyan string = "cyan" - // CustomLinkButtonClassSecondary captures enum value "secondary" - CustomLinkButtonClassSecondary string = "secondary" + // CustomLinkButtonClassGray captures enum value "gray" + CustomLinkButtonClassGray string = "gray" + + // CustomLinkButtonClassBlack captures enum value "black" + CustomLinkButtonClassBlack string = "black" + + // CustomLinkButtonClassWhite captures enum value "white" + CustomLinkButtonClassWhite string = "white" + + // CustomLinkButtonClassGhostDashDark captures enum value "ghost-dark" + CustomLinkButtonClassGhostDashDark string = "ghost-dark" ) // prop value enum @@ -246,7 +255,7 @@ func (m *CustomLink) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -388,7 +397,7 @@ func (m *CustomLink) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *CustomLink) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/device.go b/vendor/github.com/smutel/go-netbox/netbox/models/device.go index 5a957d0fc..1500aec32 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/device.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/device.go @@ -53,8 +53,8 @@ type Device struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -74,7 +74,7 @@ type Device struct { // face Face *DeviceFace `json:"face,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -321,7 +321,7 @@ func (m *Device) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -848,7 +848,7 @@ func (m *Device) contextValidateCluster(ctx context.Context, formats strfmt.Regi func (m *Device) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -1160,12 +1160,12 @@ type DeviceAirflow struct { // label // Required: true - // Enum: [Front to rear Rear to front Left to right Right to left Side to rear Passive] + // Enum: [Front to rear Rear to front Left to right Right to left Side to rear Passive Mixed] Label *string `json:"label"` // value // Required: true - // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive] + // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive mixed] Value *string `json:"value"` } @@ -1191,7 +1191,7 @@ var deviceAirflowTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Front to rear","Rear to front","Left to right","Right to left","Side to rear","Passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Front to rear","Rear to front","Left to right","Right to left","Side to rear","Passive","Mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1218,6 +1218,9 @@ const ( // DeviceAirflowLabelPassive captures enum value "Passive" DeviceAirflowLabelPassive string = "Passive" + + // DeviceAirflowLabelMixed captures enum value "Mixed" + DeviceAirflowLabelMixed string = "Mixed" ) // prop value enum @@ -1246,7 +1249,7 @@ var deviceAirflowTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive","mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1273,6 +1276,9 @@ const ( // DeviceAirflowValuePassive captures enum value "passive" DeviceAirflowValuePassive string = "passive" + + // DeviceAirflowValueMixed captures enum value "mixed" + DeviceAirflowValueMixed string = "mixed" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/device_bay.go b/vendor/github.com/smutel/go-netbox/netbox/models/device_bay.go index ba63c561f..df301180f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/device_bay.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/device_bay.go @@ -37,8 +37,8 @@ type DeviceBay struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type DeviceBay struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -139,7 +139,7 @@ func (m *DeviceBay) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -320,7 +320,7 @@ func (m *DeviceBay) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *DeviceBay) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/device_bay_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/device_bay_template.go index ddf38e971..fd94ee6df 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/device_bay_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/device_bay_template.go @@ -36,8 +36,8 @@ type DeviceBayTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -51,7 +51,7 @@ type DeviceBayTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -67,6 +67,10 @@ type DeviceBayTemplate struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -121,7 +125,7 @@ func (m *DeviceBayTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -249,7 +253,7 @@ func (m *DeviceBayTemplate) ContextValidate(ctx context.Context, formats strfmt. func (m *DeviceBayTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/device_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/device_role.go index 2376b9ee3..79a8a4758 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/device_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/device_role.go @@ -43,8 +43,8 @@ type DeviceRole struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -61,7 +61,7 @@ type DeviceRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -168,7 +168,7 @@ func (m *DeviceRole) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -319,7 +319,7 @@ func (m *DeviceRole) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *DeviceRole) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/device_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/device_type.go index 3fdf27d98..c996c2460 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/device_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/device_type.go @@ -44,8 +44,8 @@ type DeviceType struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -63,7 +63,7 @@ type DeviceType struct { // Format: uri FrontImage strfmt.URI `json:"front_image,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -208,7 +208,7 @@ func (m *DeviceType) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -470,7 +470,7 @@ func (m *DeviceType) contextValidateAirflow(ctx context.Context, formats strfmt. func (m *DeviceType) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -617,12 +617,12 @@ type DeviceTypeAirflow struct { // label // Required: true - // Enum: [Front to rear Rear to front Left to right Right to left Side to rear Passive] + // Enum: [Front to rear Rear to front Left to right Right to left Side to rear Passive Mixed] Label *string `json:"label"` // value // Required: true - // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive] + // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive mixed] Value *string `json:"value"` } @@ -648,7 +648,7 @@ var deviceTypeAirflowTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Front to rear","Rear to front","Left to right","Right to left","Side to rear","Passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Front to rear","Rear to front","Left to right","Right to left","Side to rear","Passive","Mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -675,6 +675,9 @@ const ( // DeviceTypeAirflowLabelPassive captures enum value "Passive" DeviceTypeAirflowLabelPassive string = "Passive" + + // DeviceTypeAirflowLabelMixed captures enum value "Mixed" + DeviceTypeAirflowLabelMixed string = "Mixed" ) // prop value enum @@ -703,7 +706,7 @@ var deviceTypeAirflowTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive","mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -730,6 +733,9 @@ const ( // DeviceTypeAirflowValuePassive captures enum value "passive" DeviceTypeAirflowValuePassive string = "passive" + + // DeviceTypeAirflowValueMixed captures enum value "mixed" + DeviceTypeAirflowValueMixed string = "mixed" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/device_with_config_context.go b/vendor/github.com/smutel/go-netbox/netbox/models/device_with_config_context.go index ff3984fe3..7db2be754 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/device_with_config_context.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/device_with_config_context.go @@ -57,8 +57,8 @@ type DeviceWithConfigContext struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -78,7 +78,7 @@ type DeviceWithConfigContext struct { // face Face *DeviceWithConfigContextFace `json:"face,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -325,7 +325,7 @@ func (m *DeviceWithConfigContext) validateCreated(formats strfmt.Registry) error return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -852,7 +852,7 @@ func (m *DeviceWithConfigContext) contextValidateCluster(ctx context.Context, fo func (m *DeviceWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -1164,12 +1164,12 @@ type DeviceWithConfigContextAirflow struct { // label // Required: true - // Enum: [Front to rear Rear to front Left to right Right to left Side to rear Passive] + // Enum: [Front to rear Rear to front Left to right Right to left Side to rear Passive Mixed] Label *string `json:"label"` // value // Required: true - // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive] + // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive mixed] Value *string `json:"value"` } @@ -1195,7 +1195,7 @@ var deviceWithConfigContextAirflowTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Front to rear","Rear to front","Left to right","Right to left","Side to rear","Passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Front to rear","Rear to front","Left to right","Right to left","Side to rear","Passive","Mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1222,6 +1222,9 @@ const ( // DeviceWithConfigContextAirflowLabelPassive captures enum value "Passive" DeviceWithConfigContextAirflowLabelPassive string = "Passive" + + // DeviceWithConfigContextAirflowLabelMixed captures enum value "Mixed" + DeviceWithConfigContextAirflowLabelMixed string = "Mixed" ) // prop value enum @@ -1250,7 +1253,7 @@ var deviceWithConfigContextAirflowTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive","mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1277,6 +1280,9 @@ const ( // DeviceWithConfigContextAirflowValuePassive captures enum value "passive" DeviceWithConfigContextAirflowValuePassive string = "passive" + + // DeviceWithConfigContextAirflowValueMixed captures enum value "mixed" + DeviceWithConfigContextAirflowValueMixed string = "mixed" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/export_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/export_template.go index 1addd5cc8..15e4e8bbe 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/export_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/export_template.go @@ -45,8 +45,8 @@ type ExportTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -62,7 +62,7 @@ type ExportTemplate struct { // Max Length: 15 FileExtension string `json:"file_extension,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -156,7 +156,7 @@ func (m *ExportTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -285,7 +285,7 @@ func (m *ExportTemplate) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *ExportTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group.go index ba3aa248d..93a74cd32 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group.go @@ -46,8 +46,8 @@ type FHRPGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -66,7 +66,7 @@ type FHRPGroup struct { // Minimum: 0 GroupID *int64 `json:"group_id"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -202,7 +202,7 @@ func (m *FHRPGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -412,7 +412,7 @@ func (m *FHRPGroup) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *FHRPGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group_assignment.go b/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group_assignment.go index 19aaf6b5d..eaa5b9d29 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group_assignment.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/f_h_r_p_group_assignment.go @@ -36,8 +36,8 @@ type FHRPGroupAssignment struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Display // Read Only: true @@ -47,7 +47,7 @@ type FHRPGroupAssignment struct { // Required: true Group *NestedFHRPGroup `json:"group"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,7 +125,7 @@ func (m *FHRPGroupAssignment) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -259,7 +259,7 @@ func (m *FHRPGroupAssignment) ContextValidate(ctx context.Context, formats strfm func (m *FHRPGroupAssignment) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/front_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/front_port.go index e3e1f336f..1e73b4f21 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/front_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/front_port.go @@ -50,8 +50,8 @@ type FrontPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -68,7 +68,7 @@ type FrontPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -100,6 +100,9 @@ type FrontPort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -160,6 +163,10 @@ func (m *FrontPort) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -230,7 +237,7 @@ func (m *FrontPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -293,6 +300,25 @@ func (m *FrontPort) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *FrontPort) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *FrontPort) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -444,6 +470,10 @@ func (m *FrontPort) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateRearPort(ctx, formats); err != nil { res = append(res, err) } @@ -493,7 +523,7 @@ func (m *FrontPort) contextValidateCable(ctx context.Context, formats strfmt.Reg func (m *FrontPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -557,6 +587,22 @@ func (m *FrontPort) contextValidateLinkPeerType(ctx context.Context, formats str return nil } +func (m *FrontPort) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *FrontPort) contextValidateRearPort(ctx context.Context, formats strfmt.Registry) error { if m.RearPort != nil { @@ -643,12 +689,12 @@ type FrontPortType struct { // label // Required: true - // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice] + // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice Other] Label *string `json:"label"` // value // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Value *string `json:"value"` } @@ -674,7 +720,7 @@ var frontPortTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -809,6 +855,9 @@ const ( // FrontPortTypeLabelSplice captures enum value "Splice" FrontPortTypeLabelSplice string = "Splice" + + // FrontPortTypeLabelOther captures enum value "Other" + FrontPortTypeLabelOther string = "Other" ) // prop value enum @@ -837,7 +886,7 @@ var frontPortTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -972,6 +1021,9 @@ const ( // FrontPortTypeValueSplice captures enum value "splice" FrontPortTypeValueSplice string = "splice" + + // FrontPortTypeValueOther captures enum value "other" + FrontPortTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/front_port_rear_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/front_port_rear_port.go index 570ac2027..6841d7eb7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/front_port_rear_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/front_port_rear_port.go @@ -38,7 +38,7 @@ type FrontPortRearPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/front_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/front_port_template.go index f1b3344e9..872978801 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/front_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/front_port_template.go @@ -42,22 +42,21 @@ type FrontPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -72,7 +71,14 @@ type FrontPortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -125,6 +131,10 @@ func (m *FrontPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -172,7 +182,7 @@ func (m *FrontPortTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -192,9 +202,8 @@ func (m *FrontPortTemplate) validateDescription(formats strfmt.Registry) error { } func (m *FrontPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -235,6 +244,25 @@ func (m *FrontPortTemplate) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *FrontPortTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *FrontPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -344,6 +372,10 @@ func (m *FrontPortTemplate) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateRearPort(ctx, formats); err != nil { res = append(res, err) } @@ -364,7 +396,7 @@ func (m *FrontPortTemplate) ContextValidate(ctx context.Context, formats strfmt. func (m *FrontPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -414,6 +446,22 @@ func (m *FrontPortTemplate) contextValidateLastUpdated(ctx context.Context, form return nil } +func (m *FrontPortTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *FrontPortTemplate) contextValidateRearPort(ctx context.Context, formats strfmt.Registry) error { if m.RearPort != nil { @@ -480,12 +528,12 @@ type FrontPortTemplateType struct { // label // Required: true - // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice] + // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice Other] Label *string `json:"label"` // value // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Value *string `json:"value"` } @@ -511,7 +559,7 @@ var frontPortTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -646,6 +694,9 @@ const ( // FrontPortTemplateTypeLabelSplice captures enum value "Splice" FrontPortTemplateTypeLabelSplice string = "Splice" + + // FrontPortTemplateTypeLabelOther captures enum value "Other" + FrontPortTemplateTypeLabelOther string = "Other" ) // prop value enum @@ -674,7 +725,7 @@ var frontPortTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -809,6 +860,9 @@ const ( // FrontPortTemplateTypeValueSplice captures enum value "splice" FrontPortTemplateTypeValueSplice string = "splice" + + // FrontPortTemplateTypeValueOther captures enum value "other" + FrontPortTemplateTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/image_attachment.go b/vendor/github.com/smutel/go-netbox/netbox/models/image_attachment.go index a26006903..ec84dfbcb 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/image_attachment.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/image_attachment.go @@ -47,7 +47,7 @@ type ImageAttachment struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/interface.go b/vendor/github.com/smutel/go-netbox/netbox/models/interface.go index 357d9f16a..d98f5e43b 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/interface.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/interface.go @@ -72,8 +72,8 @@ type Interface struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -90,10 +90,13 @@ type Interface struct { // Read Only: true Display string `json:"display,omitempty"` + // duplex + Duplex *InterfaceDuplex `json:"duplex,omitempty"` + // Enabled Enabled bool `json:"enabled,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -139,6 +142,9 @@ type Interface struct { // mode Mode *InterfaceMode `json:"mode,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // MTU // Maximum: 65536 // Minimum: 1 @@ -165,6 +171,11 @@ type Interface struct { // rf role RfRole *InterfaceRfRole `json:"rf_role,omitempty"` + // Speed (Kbps) + // Maximum: 2.147483647e+09 + // Minimum: 0 + Speed *int64 `json:"speed,omitempty"` + // tagged vlans // Unique: true TaggedVlans []*NestedVLAN `json:"tagged_vlans"` @@ -189,6 +200,9 @@ type Interface struct { // Format: uri URL strfmt.URI `json:"url,omitempty"` + // vrf + Vrf *NestedVRF `json:"vrf,omitempty"` + // wireless lans // Unique: true WirelessLans []*NestedWirelessLAN `json:"wireless_lans"` @@ -226,6 +240,10 @@ func (m *Interface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDuplex(formats); err != nil { + res = append(res, err) + } + if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -242,6 +260,10 @@ func (m *Interface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateMtu(formats); err != nil { res = append(res, err) } @@ -262,6 +284,10 @@ func (m *Interface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSpeed(formats); err != nil { + res = append(res, err) + } + if err := m.validateTaggedVlans(formats); err != nil { res = append(res, err) } @@ -286,6 +312,10 @@ func (m *Interface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateVrf(formats); err != nil { + res = append(res, err) + } + if err := m.validateWirelessLans(formats); err != nil { res = append(res, err) } @@ -343,7 +373,7 @@ func (m *Interface) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -382,6 +412,25 @@ func (m *Interface) validateDevice(formats strfmt.Registry) error { return nil } +func (m *Interface) validateDuplex(formats strfmt.Registry) error { + if swag.IsZero(m.Duplex) { // not required + return nil + } + + if m.Duplex != nil { + if err := m.Duplex.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("duplex") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("duplex") + } + return err + } + } + + return nil +} + func (m *Interface) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -444,6 +493,25 @@ func (m *Interface) validateMode(formats strfmt.Registry) error { return nil } +func (m *Interface) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *Interface) validateMtu(formats strfmt.Registry) error { if swag.IsZero(m.Mtu) { // not required return nil @@ -534,6 +602,22 @@ func (m *Interface) validateRfRole(formats strfmt.Registry) error { return nil } +func (m *Interface) validateSpeed(formats strfmt.Registry) error { + if swag.IsZero(m.Speed) { // not required + return nil + } + + if err := validate.MinimumInt("speed", "body", *m.Speed, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("speed", "body", *m.Speed, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + func (m *Interface) validateTaggedVlans(formats strfmt.Registry) error { if swag.IsZero(m.TaggedVlans) { // not required return nil @@ -657,6 +741,25 @@ func (m *Interface) validateURL(formats strfmt.Registry) error { return nil } +func (m *Interface) validateVrf(formats strfmt.Registry) error { + if swag.IsZero(m.Vrf) { // not required + return nil + } + + if m.Vrf != nil { + if err := m.Vrf.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("vrf") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("vrf") + } + return err + } + } + + return nil +} + func (m *Interface) validateWirelessLans(formats strfmt.Registry) error { if swag.IsZero(m.WirelessLans) { // not required return nil @@ -754,6 +857,10 @@ func (m *Interface) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateDuplex(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateID(ctx, formats); err != nil { res = append(res, err) } @@ -778,6 +885,10 @@ func (m *Interface) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateParent(ctx, formats); err != nil { res = append(res, err) } @@ -810,6 +921,10 @@ func (m *Interface) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateVrf(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateWirelessLans(ctx, formats); err != nil { res = append(res, err) } @@ -908,7 +1023,7 @@ func (m *Interface) contextValidateCountIpaddresses(ctx context.Context, formats func (m *Interface) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -940,6 +1055,22 @@ func (m *Interface) contextValidateDisplay(ctx context.Context, formats strfmt.R return nil } +func (m *Interface) contextValidateDuplex(ctx context.Context, formats strfmt.Registry) error { + + if m.Duplex != nil { + if err := m.Duplex.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("duplex") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("duplex") + } + return err + } + } + + return nil +} + func (m *Interface) contextValidateID(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "id", "body", int64(m.ID)); err != nil { @@ -1004,6 +1135,22 @@ func (m *Interface) contextValidateMode(ctx context.Context, formats strfmt.Regi return nil } +func (m *Interface) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *Interface) contextValidateParent(ctx context.Context, formats strfmt.Registry) error { if m.Parent != nil { @@ -1133,6 +1280,22 @@ func (m *Interface) contextValidateURL(ctx context.Context, formats strfmt.Regis return nil } +func (m *Interface) contextValidateVrf(ctx context.Context, formats strfmt.Registry) error { + + if m.Vrf != nil { + if err := m.Vrf.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("vrf") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("vrf") + } + return err + } + } + + return nil +} + func (m *Interface) contextValidateWirelessLans(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.WirelessLans); i++ { @@ -1187,6 +1350,155 @@ func (m *Interface) UnmarshalBinary(b []byte) error { return nil } +// InterfaceDuplex Duplex +// +// swagger:model InterfaceDuplex +type InterfaceDuplex struct { + + // label + // Required: true + // Enum: [Half Full Auto] + Label *string `json:"label"` + + // value + // Required: true + // Enum: [half full auto] + Value *string `json:"value"` +} + +// Validate validates this interface duplex +func (m *InterfaceDuplex) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateLabel(formats); err != nil { + res = append(res, err) + } + + if err := m.validateValue(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var interfaceDuplexTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Half","Full","Auto"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + interfaceDuplexTypeLabelPropEnum = append(interfaceDuplexTypeLabelPropEnum, v) + } +} + +const ( + + // InterfaceDuplexLabelHalf captures enum value "Half" + InterfaceDuplexLabelHalf string = "Half" + + // InterfaceDuplexLabelFull captures enum value "Full" + InterfaceDuplexLabelFull string = "Full" + + // InterfaceDuplexLabelAuto captures enum value "Auto" + InterfaceDuplexLabelAuto string = "Auto" +) + +// prop value enum +func (m *InterfaceDuplex) validateLabelEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, interfaceDuplexTypeLabelPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *InterfaceDuplex) validateLabel(formats strfmt.Registry) error { + + if err := validate.Required("duplex"+"."+"label", "body", m.Label); err != nil { + return err + } + + // value enum + if err := m.validateLabelEnum("duplex"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var interfaceDuplexTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["half","full","auto"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + interfaceDuplexTypeValuePropEnum = append(interfaceDuplexTypeValuePropEnum, v) + } +} + +const ( + + // InterfaceDuplexValueHalf captures enum value "half" + InterfaceDuplexValueHalf string = "half" + + // InterfaceDuplexValueFull captures enum value "full" + InterfaceDuplexValueFull string = "full" + + // InterfaceDuplexValueAuto captures enum value "auto" + InterfaceDuplexValueAuto string = "auto" +) + +// prop value enum +func (m *InterfaceDuplex) validateValueEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, interfaceDuplexTypeValuePropEnum, true); err != nil { + return err + } + return nil +} + +func (m *InterfaceDuplex) validateValue(formats strfmt.Registry) error { + + if err := validate.Required("duplex"+"."+"value", "body", m.Value); err != nil { + return err + } + + // value enum + if err := m.validateValueEnum("duplex"+"."+"value", "body", *m.Value); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this interface duplex based on context it is used +func (m *InterfaceDuplex) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *InterfaceDuplex) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *InterfaceDuplex) UnmarshalBinary(b []byte) error { + var res InterfaceDuplex + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} + // InterfaceMode Mode // // swagger:model InterfaceMode @@ -2799,12 +3111,12 @@ type InterfaceType struct { // label // Required: true - // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-TX (10/100ME) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.15.1 (Bluetooth) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] + // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-TX (10/100ME) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.15.1 (Bluetooth) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -2830,7 +3142,7 @@ var interfaceTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-TX (10/100ME)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.15.1 (Bluetooth)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-TX (10/100ME)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.15.1 (Bluetooth)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -3041,6 +3353,27 @@ const ( // InterfaceTypeLabelXDSL captures enum value "xDSL" InterfaceTypeLabelXDSL string = "xDSL" + // InterfaceTypeLabelDOCSIS captures enum value "DOCSIS" + InterfaceTypeLabelDOCSIS string = "DOCSIS" + + // InterfaceTypeLabelGPON2Dot5Gbps1Dot25Gps captures enum value "GPON (2.5 Gbps / 1.25 Gps)" + InterfaceTypeLabelGPON2Dot5Gbps1Dot25Gps string = "GPON (2.5 Gbps / 1.25 Gps)" + + // InterfaceTypeLabelXGDashPON10Gbps2Dot5Gbps captures enum value "XG-PON (10 Gbps / 2.5 Gbps)" + InterfaceTypeLabelXGDashPON10Gbps2Dot5Gbps string = "XG-PON (10 Gbps / 2.5 Gbps)" + + // InterfaceTypeLabelXGSDashPON10Gbps captures enum value "XGS-PON (10 Gbps)" + InterfaceTypeLabelXGSDashPON10Gbps string = "XGS-PON (10 Gbps)" + + // InterfaceTypeLabelNGDashPON2TWDMDashPON4x10Gbps captures enum value "NG-PON2 (TWDM-PON) (4x10 Gbps)" + InterfaceTypeLabelNGDashPON2TWDMDashPON4x10Gbps string = "NG-PON2 (TWDM-PON) (4x10 Gbps)" + + // InterfaceTypeLabelEPON1Gbps captures enum value "EPON (1 Gbps)" + InterfaceTypeLabelEPON1Gbps string = "EPON (1 Gbps)" + + // InterfaceTypeLabelNr10GDashEPON10Gbps captures enum value "10G-EPON (10 Gbps)" + InterfaceTypeLabelNr10GDashEPON10Gbps string = "10G-EPON (10 Gbps)" + // InterfaceTypeLabelCiscoStackWise captures enum value "Cisco StackWise" InterfaceTypeLabelCiscoStackWise string = "Cisco StackWise" @@ -3110,7 +3443,7 @@ var interfaceTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -3321,6 +3654,27 @@ const ( // InterfaceTypeValueXdsl captures enum value "xdsl" InterfaceTypeValueXdsl string = "xdsl" + // InterfaceTypeValueDocsis captures enum value "docsis" + InterfaceTypeValueDocsis string = "docsis" + + // InterfaceTypeValueGpon captures enum value "gpon" + InterfaceTypeValueGpon string = "gpon" + + // InterfaceTypeValueXgDashPon captures enum value "xg-pon" + InterfaceTypeValueXgDashPon string = "xg-pon" + + // InterfaceTypeValueXgsDashPon captures enum value "xgs-pon" + InterfaceTypeValueXgsDashPon string = "xgs-pon" + + // InterfaceTypeValueNgDashPon2 captures enum value "ng-pon2" + InterfaceTypeValueNgDashPon2 string = "ng-pon2" + + // InterfaceTypeValueEpon captures enum value "epon" + InterfaceTypeValueEpon string = "epon" + + // InterfaceTypeValueNr10gDashEpon captures enum value "10g-epon" + InterfaceTypeValueNr10gDashEpon string = "10g-epon" + // InterfaceTypeValueCiscoDashStackwise captures enum value "cisco-stackwise" InterfaceTypeValueCiscoDashStackwise string = "cisco-stackwise" diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/interface_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/interface_template.go index deb624631..3b291e78d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/interface_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/interface_template.go @@ -37,22 +37,21 @@ type InterfaceTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -70,7 +69,14 @@ type InterfaceTemplate struct { // Management only MgmtOnly bool `json:"mgmt_only,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -110,6 +116,10 @@ func (m *InterfaceTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -133,7 +143,7 @@ func (m *InterfaceTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -153,9 +163,8 @@ func (m *InterfaceTemplate) validateDescription(formats strfmt.Registry) error { } func (m *InterfaceTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -196,6 +205,25 @@ func (m *InterfaceTemplate) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *InterfaceTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *InterfaceTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -269,6 +297,10 @@ func (m *InterfaceTemplate) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateType(ctx, formats); err != nil { res = append(res, err) } @@ -285,7 +317,7 @@ func (m *InterfaceTemplate) ContextValidate(ctx context.Context, formats strfmt. func (m *InterfaceTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -335,6 +367,22 @@ func (m *InterfaceTemplate) contextValidateLastUpdated(ctx context.Context, form return nil } +func (m *InterfaceTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *InterfaceTemplate) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { @@ -385,12 +433,12 @@ type InterfaceTemplateType struct { // label // Required: true - // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-TX (10/100ME) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.15.1 (Bluetooth) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] + // Enum: [Virtual Bridge Link Aggregation Group (LAG) 100BASE-TX (10/100ME) 1000BASE-T (1GE) 2.5GBASE-T (2.5GE) 5GBASE-T (5GE) 10GBASE-T (10GE) 10GBASE-CX4 (10GE) GBIC (1GE) SFP (1GE) SFP+ (10GE) XFP (10GE) XENPAK (10GE) X2 (10GE) SFP28 (25GE) SFP56 (50GE) QSFP+ (40GE) QSFP28 (50GE) CFP (100GE) CFP2 (100GE) CFP2 (200GE) CFP4 (100GE) Cisco CPAK (100GE) QSFP28 (100GE) QSFP56 (200GE) QSFP-DD (400GE) OSFP (400GE) IEEE 802.11a IEEE 802.11b/g IEEE 802.11n IEEE 802.11ac IEEE 802.11ad IEEE 802.11ax IEEE 802.15.1 (Bluetooth) GSM CDMA LTE OC-3/STM-1 OC-12/STM-4 OC-48/STM-16 OC-192/STM-64 OC-768/STM-256 OC-1920/STM-640 OC-3840/STM-1234 SFP (1GFC) SFP (2GFC) SFP (4GFC) SFP+ (8GFC) SFP+ (16GFC) SFP28 (32GFC) QSFP+ (64GFC) QSFP28 (128GFC) SDR (2 Gbps) DDR (4 Gbps) QDR (8 Gbps) FDR10 (10 Gbps) FDR (13.5 Gbps) EDR (25 Gbps) HDR (50 Gbps) NDR (100 Gbps) XDR (250 Gbps) T1 (1.544 Mbps) E1 (2.048 Mbps) T3 (45 Mbps) E3 (34 Mbps) xDSL DOCSIS GPON (2.5 Gbps / 1.25 Gps) XG-PON (10 Gbps / 2.5 Gbps) XGS-PON (10 Gbps) NG-PON2 (TWDM-PON) (4x10 Gbps) EPON (1 Gbps) 10G-EPON (10 Gbps) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Cisco StackWise-80 Cisco StackWise-160 Cisco StackWise-320 Cisco StackWise-480 Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -416,7 +464,7 @@ var interfaceTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-TX (10/100ME)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.15.1 (Bluetooth)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["Virtual","Bridge","Link Aggregation Group (LAG)","100BASE-TX (10/100ME)","1000BASE-T (1GE)","2.5GBASE-T (2.5GE)","5GBASE-T (5GE)","10GBASE-T (10GE)","10GBASE-CX4 (10GE)","GBIC (1GE)","SFP (1GE)","SFP+ (10GE)","XFP (10GE)","XENPAK (10GE)","X2 (10GE)","SFP28 (25GE)","SFP56 (50GE)","QSFP+ (40GE)","QSFP28 (50GE)","CFP (100GE)","CFP2 (100GE)","CFP2 (200GE)","CFP4 (100GE)","Cisco CPAK (100GE)","QSFP28 (100GE)","QSFP56 (200GE)","QSFP-DD (400GE)","OSFP (400GE)","IEEE 802.11a","IEEE 802.11b/g","IEEE 802.11n","IEEE 802.11ac","IEEE 802.11ad","IEEE 802.11ax","IEEE 802.15.1 (Bluetooth)","GSM","CDMA","LTE","OC-3/STM-1","OC-12/STM-4","OC-48/STM-16","OC-192/STM-64","OC-768/STM-256","OC-1920/STM-640","OC-3840/STM-1234","SFP (1GFC)","SFP (2GFC)","SFP (4GFC)","SFP+ (8GFC)","SFP+ (16GFC)","SFP28 (32GFC)","QSFP+ (64GFC)","QSFP28 (128GFC)","SDR (2 Gbps)","DDR (4 Gbps)","QDR (8 Gbps)","FDR10 (10 Gbps)","FDR (13.5 Gbps)","EDR (25 Gbps)","HDR (50 Gbps)","NDR (100 Gbps)","XDR (250 Gbps)","T1 (1.544 Mbps)","E1 (2.048 Mbps)","T3 (45 Mbps)","E3 (34 Mbps)","xDSL","DOCSIS","GPON (2.5 Gbps / 1.25 Gps)","XG-PON (10 Gbps / 2.5 Gbps)","XGS-PON (10 Gbps)","NG-PON2 (TWDM-PON) (4x10 Gbps)","EPON (1 Gbps)","10G-EPON (10 Gbps)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Cisco StackWise-80","Cisco StackWise-160","Cisco StackWise-320","Cisco StackWise-480","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -627,6 +675,27 @@ const ( // InterfaceTemplateTypeLabelXDSL captures enum value "xDSL" InterfaceTemplateTypeLabelXDSL string = "xDSL" + // InterfaceTemplateTypeLabelDOCSIS captures enum value "DOCSIS" + InterfaceTemplateTypeLabelDOCSIS string = "DOCSIS" + + // InterfaceTemplateTypeLabelGPON2Dot5Gbps1Dot25Gps captures enum value "GPON (2.5 Gbps / 1.25 Gps)" + InterfaceTemplateTypeLabelGPON2Dot5Gbps1Dot25Gps string = "GPON (2.5 Gbps / 1.25 Gps)" + + // InterfaceTemplateTypeLabelXGDashPON10Gbps2Dot5Gbps captures enum value "XG-PON (10 Gbps / 2.5 Gbps)" + InterfaceTemplateTypeLabelXGDashPON10Gbps2Dot5Gbps string = "XG-PON (10 Gbps / 2.5 Gbps)" + + // InterfaceTemplateTypeLabelXGSDashPON10Gbps captures enum value "XGS-PON (10 Gbps)" + InterfaceTemplateTypeLabelXGSDashPON10Gbps string = "XGS-PON (10 Gbps)" + + // InterfaceTemplateTypeLabelNGDashPON2TWDMDashPON4x10Gbps captures enum value "NG-PON2 (TWDM-PON) (4x10 Gbps)" + InterfaceTemplateTypeLabelNGDashPON2TWDMDashPON4x10Gbps string = "NG-PON2 (TWDM-PON) (4x10 Gbps)" + + // InterfaceTemplateTypeLabelEPON1Gbps captures enum value "EPON (1 Gbps)" + InterfaceTemplateTypeLabelEPON1Gbps string = "EPON (1 Gbps)" + + // InterfaceTemplateTypeLabelNr10GDashEPON10Gbps captures enum value "10G-EPON (10 Gbps)" + InterfaceTemplateTypeLabelNr10GDashEPON10Gbps string = "10G-EPON (10 Gbps)" + // InterfaceTemplateTypeLabelCiscoStackWise captures enum value "Cisco StackWise" InterfaceTemplateTypeLabelCiscoStackWise string = "Cisco StackWise" @@ -696,7 +765,7 @@ var interfaceTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -907,6 +976,27 @@ const ( // InterfaceTemplateTypeValueXdsl captures enum value "xdsl" InterfaceTemplateTypeValueXdsl string = "xdsl" + // InterfaceTemplateTypeValueDocsis captures enum value "docsis" + InterfaceTemplateTypeValueDocsis string = "docsis" + + // InterfaceTemplateTypeValueGpon captures enum value "gpon" + InterfaceTemplateTypeValueGpon string = "gpon" + + // InterfaceTemplateTypeValueXgDashPon captures enum value "xg-pon" + InterfaceTemplateTypeValueXgDashPon string = "xg-pon" + + // InterfaceTemplateTypeValueXgsDashPon captures enum value "xgs-pon" + InterfaceTemplateTypeValueXgsDashPon string = "xgs-pon" + + // InterfaceTemplateTypeValueNgDashPon2 captures enum value "ng-pon2" + InterfaceTemplateTypeValueNgDashPon2 string = "ng-pon2" + + // InterfaceTemplateTypeValueEpon captures enum value "epon" + InterfaceTemplateTypeValueEpon string = "epon" + + // InterfaceTemplateTypeValueNr10gDashEpon captures enum value "10g-epon" + InterfaceTemplateTypeValueNr10gDashEpon string = "10g-epon" + // InterfaceTemplateTypeValueCiscoDashStackwise captures enum value "cisco-stackwise" InterfaceTemplateTypeValueCiscoDashStackwise string = "cisco-stackwise" diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/inventory_item.go b/vendor/github.com/smutel/go-netbox/netbox/models/inventory_item.go index 3f7563ecf..dae1fd1f6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/inventory_item.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/inventory_item.go @@ -45,10 +45,22 @@ type InventoryItem struct { // Max Length: 50 AssetTag *string `json:"asset_tag,omitempty"` + // Component + // Read Only: true + Component map[string]*string `json:"component,omitempty"` + + // Component id + // Maximum: 2.147483647e+09 + // Minimum: 0 + ComponentID *int64 `json:"component_id,omitempty"` + + // Component type + ComponentType *string `json:"component_type,omitempty"` + // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -70,7 +82,7 @@ type InventoryItem struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -103,6 +115,9 @@ type InventoryItem struct { // Max Length: 50 PartID string `json:"part_id,omitempty"` + // role + Role *NestedInventoryItemRole `json:"role,omitempty"` + // Serial number // Max Length: 50 Serial string `json:"serial,omitempty"` @@ -124,6 +139,10 @@ func (m *InventoryItem) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateComponentID(formats); err != nil { + res = append(res, err) + } + if err := m.validateCreated(formats); err != nil { res = append(res, err) } @@ -156,6 +175,10 @@ func (m *InventoryItem) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateRole(formats); err != nil { + res = append(res, err) + } + if err := m.validateSerial(formats); err != nil { res = append(res, err) } @@ -186,12 +209,28 @@ func (m *InventoryItem) validateAssetTag(formats strfmt.Registry) error { return nil } +func (m *InventoryItem) validateComponentID(formats strfmt.Registry) error { + if swag.IsZero(m.ComponentID) { // not required + return nil + } + + if err := validate.MinimumInt("component_id", "body", *m.ComponentID, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("component_id", "body", *m.ComponentID, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + func (m *InventoryItem) validateCreated(formats strfmt.Registry) error { if swag.IsZero(m.Created) { // not required return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -302,6 +341,25 @@ func (m *InventoryItem) validatePartID(formats strfmt.Registry) error { return nil } +func (m *InventoryItem) validateRole(formats strfmt.Registry) error { + if swag.IsZero(m.Role) { // not required + return nil + } + + if m.Role != nil { + if err := m.Role.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("role") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role") + } + return err + } + } + + return nil +} + func (m *InventoryItem) validateSerial(formats strfmt.Registry) error { if swag.IsZero(m.Serial) { // not required return nil @@ -360,6 +418,10 @@ func (m *InventoryItem) ContextValidate(ctx context.Context, formats strfmt.Regi res = append(res, err) } + if err := m.contextValidateComponent(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateCreated(ctx, formats); err != nil { res = append(res, err) } @@ -384,6 +446,10 @@ func (m *InventoryItem) ContextValidate(ctx context.Context, formats strfmt.Regi res = append(res, err) } + if err := m.contextValidateRole(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -407,9 +473,14 @@ func (m *InventoryItem) contextValidateDepth(ctx context.Context, formats strfmt return nil } +func (m *InventoryItem) contextValidateComponent(ctx context.Context, formats strfmt.Registry) error { + + return nil +} + func (m *InventoryItem) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -475,6 +546,22 @@ func (m *InventoryItem) contextValidateManufacturer(ctx context.Context, formats return nil } +func (m *InventoryItem) contextValidateRole(ctx context.Context, formats strfmt.Registry) error { + + if m.Role != nil { + if err := m.Role.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("role") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("role") + } + return err + } + } + + return nil +} + func (m *InventoryItem) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/ip_address.go b/vendor/github.com/smutel/go-netbox/netbox/models/ip_address.go index 33631934d..1fb78afc9 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/ip_address.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/ip_address.go @@ -56,8 +56,8 @@ type IPAddress struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -80,7 +80,7 @@ type IPAddress struct { // family Family *IPAddressFamily `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -216,7 +216,7 @@ func (m *IPAddress) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -498,7 +498,7 @@ func (m *IPAddress) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *IPAddress) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/ip_range.go b/vendor/github.com/smutel/go-netbox/netbox/models/ip_range.go index 23b157ee6..86c010d88 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/ip_range.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/ip_range.go @@ -42,8 +42,8 @@ type IPRange struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -65,7 +65,7 @@ type IPRange struct { // family Family *IPRangeFamily `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -168,7 +168,7 @@ func (m *IPRange) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -423,7 +423,7 @@ func (m *IPRange) contextValidateChildren(ctx context.Context, formats strfmt.Re func (m *IPRange) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/job_result.go b/vendor/github.com/smutel/go-netbox/netbox/models/job_result.go index c9feaa593..1f6d80645 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/job_result.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/job_result.go @@ -51,7 +51,7 @@ type JobResult struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/journal_entry.go b/vendor/github.com/smutel/go-netbox/netbox/models/journal_entry.go index b258f0147..a74405b82 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/journal_entry.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/journal_entry.go @@ -23,6 +23,7 @@ package models import ( "context" "encoding/json" + "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" @@ -62,17 +63,28 @@ type JournalEntry struct { // Created by CreatedBy *int64 `json:"created_by,omitempty"` + // Custom fields + CustomFields interface{} `json:"custom_fields,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` // kind Kind *JournalEntryKind `json:"kind,omitempty"` + // Last updated + // Read Only: true + // Format: date-time + LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + + // tags + Tags []*NestedTag `json:"tags"` + // Url // Read Only: true // Format: uri @@ -103,6 +115,14 @@ func (m *JournalEntry) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateLastUpdated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTags(formats); err != nil { + res = append(res, err) + } + if err := m.validateURL(formats); err != nil { res = append(res, err) } @@ -183,6 +203,44 @@ func (m *JournalEntry) validateKind(formats strfmt.Registry) error { return nil } +func (m *JournalEntry) validateLastUpdated(formats strfmt.Registry) error { + if swag.IsZero(m.LastUpdated) { // not required + return nil + } + + if err := validate.FormatOf("last_updated", "body", "date-time", m.LastUpdated.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *JournalEntry) validateTags(formats strfmt.Registry) error { + if swag.IsZero(m.Tags) { // not required + return nil + } + + for i := 0; i < len(m.Tags); i++ { + if swag.IsZero(m.Tags[i]) { // not required + continue + } + + if m.Tags[i] != nil { + if err := m.Tags[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *JournalEntry) validateURL(formats strfmt.Registry) error { if swag.IsZero(m.URL) { // not required return nil @@ -219,6 +277,14 @@ func (m *JournalEntry) ContextValidate(ctx context.Context, formats strfmt.Regis res = append(res, err) } + if err := m.contextValidateLastUpdated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTags(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateURL(ctx, formats); err != nil { res = append(res, err) } @@ -277,6 +343,35 @@ func (m *JournalEntry) contextValidateKind(ctx context.Context, formats strfmt.R return nil } +func (m *JournalEntry) contextValidateLastUpdated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "last_updated", "body", strfmt.DateTime(m.LastUpdated)); err != nil { + return err + } + + return nil +} + +func (m *JournalEntry) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Tags); i++ { + + if m.Tags[i] != nil { + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *JournalEntry) contextValidateURL(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "url", "body", strfmt.URI(m.URL)); err != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/location.go b/vendor/github.com/smutel/go-netbox/netbox/models/location.go index 6495ad2f9..fde7d2569 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/location.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/location.go @@ -41,8 +41,8 @@ type Location struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type Location struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -159,7 +159,7 @@ func (m *Location) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -393,7 +393,7 @@ func (m *Location) contextValidateDepth(ctx context.Context, formats strfmt.Regi func (m *Location) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/manufacturer.go b/vendor/github.com/smutel/go-netbox/netbox/models/manufacturer.go index 37c818f59..a92e568f9 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/manufacturer.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/manufacturer.go @@ -37,8 +37,8 @@ type Manufacturer struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type Manufacturer struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -137,7 +137,7 @@ func (m *Manufacturer) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -292,7 +292,7 @@ func (m *Manufacturer) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *Manufacturer) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_a_s_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_a_s_n.go index 7900493bf..4eb246715 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_a_s_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_a_s_n.go @@ -46,7 +46,7 @@ type NestedASN struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cable.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cable.go index f76df4bca..dcc40925c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cable.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cable.go @@ -38,7 +38,7 @@ type NestedCable struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit.go index 2adb0da49..0325da389 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit.go @@ -44,7 +44,7 @@ type NestedCircuit struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit_type.go index 8e9412b0e..0b7e1563a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_circuit_type.go @@ -42,7 +42,7 @@ type NestedCircuitType struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster.go index 4cc7e0037..01683f69c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster.go @@ -38,7 +38,7 @@ type NestedCluster struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_group.go index ec1e4c693..6d39da10c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_group.go @@ -42,7 +42,7 @@ type NestedClusterGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_type.go index 42210600c..1d6394c3d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_cluster_type.go @@ -42,7 +42,7 @@ type NestedClusterType struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact.go index 1f6e483a3..7b631d582 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact.go @@ -38,7 +38,7 @@ type NestedContact struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_group.go index de754c810..22238cd52 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_group.go @@ -46,7 +46,7 @@ type NestedContactGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_role.go index 35ce13a59..14ce370f2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_contact_role.go @@ -38,7 +38,7 @@ type NestedContactRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_device.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_device.go index 8dcb2c46b..f3f2abdee 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_device.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_device.go @@ -38,7 +38,7 @@ type NestedDevice struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_role.go index 05b075e7a..4824bd9f0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_role.go @@ -42,7 +42,7 @@ type NestedDeviceRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_type.go index 6edccd12c..62bcb70d8 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_device_type.go @@ -42,7 +42,7 @@ type NestedDeviceType struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_f_h_r_p_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_f_h_r_p_group.go index 16cbd6bf5..e44b117bf 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_f_h_r_p_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_f_h_r_p_group.go @@ -45,7 +45,7 @@ type NestedFHRPGroup struct { // Minimum: 0 GroupID *int64 `json:"group_id"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_interface.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_interface.go index f3c6bbbad..1f767ccd2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_interface.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_interface.go @@ -48,7 +48,7 @@ type NestedInterface struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_ip_address.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_ip_address.go index b2ed29429..c58188877 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_ip_address.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_ip_address.go @@ -48,7 +48,7 @@ type NestedIPAddress struct { // Read Only: true Family int64 `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_location.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_location.go index a5f39cb8f..5bfa151ae 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_location.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_location.go @@ -42,7 +42,7 @@ type NestedLocation struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_manufacturer.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_manufacturer.go index 987a99ce1..5950e4d47 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_manufacturer.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_manufacturer.go @@ -42,7 +42,7 @@ type NestedManufacturer struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_platform.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_platform.go index 9b43cf0c0..b7c063b9f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_platform.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_platform.go @@ -42,7 +42,7 @@ type NestedPlatform struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_panel.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_panel.go index ca6b58f34..e91d799ea 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_panel.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_panel.go @@ -38,7 +38,7 @@ type NestedPowerPanel struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port.go index 59d4f023c..ae63722c1 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port.go @@ -48,7 +48,7 @@ type NestedPowerPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port_template.go index 2f04f5a93..22831c5c0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_power_port_template.go @@ -38,11 +38,15 @@ type NestedPowerPortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider.go index f35ab05e6..9caf7859c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider.go @@ -42,7 +42,7 @@ type NestedProvider struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider_network.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider_network.go index c8cd9b298..26209a238 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider_network.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_provider_network.go @@ -38,7 +38,7 @@ type NestedProviderNetwork struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_r_i_r.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_r_i_r.go index f5a1df1df..8b79fc60c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_r_i_r.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_r_i_r.go @@ -42,7 +42,7 @@ type NestedRIR struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack.go index 05f2ebd76..579cc7e0c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack.go @@ -42,7 +42,7 @@ type NestedRack struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack_role.go index 42f1cc0ac..e289c6120 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_rack_role.go @@ -38,7 +38,7 @@ type NestedRackRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_rear_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_rear_port_template.go index 6ea8fa7f4..253d1dd4d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_rear_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_rear_port_template.go @@ -38,11 +38,15 @@ type NestedRearPortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_region.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_region.go index 5c303b7ab..113b05421 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_region.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_region.go @@ -42,7 +42,7 @@ type NestedRegion struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_role.go index bfa66039a..767d81c9f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_role.go @@ -38,7 +38,7 @@ type NestedRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_route_target.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_route_target.go index 1ea93c51a..9e9aa2d66 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_route_target.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_route_target.go @@ -38,7 +38,7 @@ type NestedRouteTarget struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_site.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_site.go index 0ba4c2c8f..02af72396 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_site.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_site.go @@ -38,7 +38,7 @@ type NestedSite struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_site_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_site_group.go index 73c0df86e..19a34f998 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_site_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_site_group.go @@ -42,7 +42,7 @@ type NestedSiteGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant.go index c21d488b4..1be1766f5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant.go @@ -38,7 +38,7 @@ type NestedTenant struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant_group.go index d153629ca..5a982c813 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_tenant_group.go @@ -42,7 +42,7 @@ type NestedTenantGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n.go index eee709648..7c49c18ec 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n.go @@ -38,7 +38,7 @@ type NestedVLAN struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n_group.go index 839fd1de7..fae48d537 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_l_a_n_group.go @@ -38,7 +38,7 @@ type NestedVLANGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_r_f.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_r_f.go index cd4d6e244..dd37a2be6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_r_f.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_v_r_f.go @@ -38,7 +38,7 @@ type NestedVRF struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_chassis.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_chassis.go index 7eb5cb782..7c37faee9 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_chassis.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_chassis.go @@ -38,7 +38,7 @@ type NestedVirtualChassis struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_machine.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_machine.go index 4b69d6c3e..3130bcb12 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_machine.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_virtual_machine.go @@ -38,7 +38,7 @@ type NestedVirtualMachine struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_vm_interface.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_vm_interface.go index 42d58f9cb..911dcd641 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_vm_interface.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_vm_interface.go @@ -38,7 +38,7 @@ type NestedVMInterface struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n.go index 59117f7f8..d6349f772 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n.go @@ -38,7 +38,7 @@ type NestedWirelessLAN struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n_group.go index 684e88110..46fceab82 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_l_a_n_group.go @@ -42,7 +42,7 @@ type NestedWirelessLANGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_link.go b/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_link.go index e5ca305b8..3b0d2cb58 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_link.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/nested_wireless_link.go @@ -38,7 +38,7 @@ type NestedWirelessLink struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/object_change.go b/vendor/github.com/smutel/go-netbox/netbox/models/object_change.go index 08cb15d29..b6b04c723 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/object_change.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/object_change.go @@ -60,7 +60,7 @@ type ObjectChange struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/object_permission.go b/vendor/github.com/smutel/go-netbox/netbox/models/object_permission.go index 673a37c36..01ec46015 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/object_permission.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/object_permission.go @@ -59,7 +59,7 @@ type ObjectPermission struct { // Unique: true Groups []*NestedGroup `json:"groups"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/platform.go b/vendor/github.com/smutel/go-netbox/netbox/models/platform.go index cf023c3a7..d20e9af32 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/platform.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/platform.go @@ -37,8 +37,8 @@ type Platform struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type Platform struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -155,7 +155,7 @@ func (m *Platform) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -341,7 +341,7 @@ func (m *Platform) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Platform) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/power_feed.go b/vendor/github.com/smutel/go-netbox/netbox/models/power_feed.go index bc693a102..ee6707c2a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/power_feed.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/power_feed.go @@ -69,8 +69,8 @@ type PowerFeed struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -79,7 +79,7 @@ type PowerFeed struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -261,7 +261,7 @@ func (m *PowerFeed) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -618,7 +618,7 @@ func (m *PowerFeed) contextValidateConnectedEndpointType(ctx context.Context, fo func (m *PowerFeed) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet.go b/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet.go index 16f002111..36f04b652 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet.go @@ -61,8 +61,8 @@ type PowerOutlet struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -82,7 +82,7 @@ type PowerOutlet struct { // feed leg FeedLeg *PowerOutletFeedLeg `json:"feed_leg,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -114,6 +114,9 @@ type PowerOutlet struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -167,6 +170,10 @@ func (m *PowerOutlet) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -217,7 +224,7 @@ func (m *PowerOutlet) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -299,6 +306,25 @@ func (m *PowerOutlet) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *PowerOutlet) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *PowerOutlet) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -448,6 +474,10 @@ func (m *PowerOutlet) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidatePowerPort(ctx, formats); err != nil { res = append(res, err) } @@ -520,7 +550,7 @@ func (m *PowerOutlet) contextValidateConnectedEndpointType(ctx context.Context, func (m *PowerOutlet) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -600,6 +630,22 @@ func (m *PowerOutlet) contextValidateLinkPeerType(ctx context.Context, formats s return nil } +func (m *PowerOutlet) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *PowerOutlet) contextValidatePowerPort(ctx context.Context, formats strfmt.Registry) error { if m.PowerPort != nil { @@ -835,12 +881,12 @@ type PowerOutletType struct { // label // Required: true - // Enum: [C5 C7 C13 C15 C19 C21 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15R NEMA 5-15R NEMA 5-20R NEMA 5-30R NEMA 5-50R NEMA 6-15R NEMA 6-20R NEMA 6-30R NEMA 6-50R NEMA 10-30R NEMA 10-50R NEMA 14-20R NEMA 14-30R NEMA 14-50R NEMA 14-60R NEMA 15-15R NEMA 15-20R NEMA 15-30R NEMA 15-50R NEMA 15-60R NEMA L1-15R NEMA L5-15R NEMA L5-20R NEMA L5-30R NEMA L5-50R NEMA L6-15R NEMA L6-20R NEMA L6-30R NEMA L6-50R NEMA L10-30R NEMA L14-20R NEMA L14-30R NEMA L14-50R NEMA L14-60R NEMA L15-20R NEMA L15-30R NEMA L15-50R NEMA L15-60R NEMA L21-20R NEMA L21-30R NEMA L22-30R CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ITA Type E (CEE 7/5) ITA Type F (CEE 7/3) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O ITA Multistandard USB Type A USB Micro B USB Type C DC Terminal HDOT Cx Saf-D-Grid Hardwired] + // Enum: [C5 C7 C13 C15 C19 C21 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15R NEMA 5-15R NEMA 5-20R NEMA 5-30R NEMA 5-50R NEMA 6-15R NEMA 6-20R NEMA 6-30R NEMA 6-50R NEMA 10-30R NEMA 10-50R NEMA 14-20R NEMA 14-30R NEMA 14-50R NEMA 14-60R NEMA 15-15R NEMA 15-20R NEMA 15-30R NEMA 15-50R NEMA 15-60R NEMA L1-15R NEMA L5-15R NEMA L5-20R NEMA L5-30R NEMA L5-50R NEMA L6-15R NEMA L6-20R NEMA L6-30R NEMA L6-50R NEMA L10-30R NEMA L14-20R NEMA L14-30R NEMA L14-50R NEMA L14-60R NEMA L15-20R NEMA L15-30R NEMA L15-50R NEMA L15-60R NEMA L21-20R NEMA L21-30R NEMA L22-30R CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ITA Type E (CEE 7/5) ITA Type F (CEE 7/3) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O ITA Multistandard USB Type A USB Micro B USB Type C DC Terminal HDOT Cx Saf-D-Grid Neutrik powerCON (20A) Neutrik powerCON (32A) Neutrik powerCON TRUE1 Neutrik powerCON TRUE1 TOP Ubiquiti SmartPower Hardwired Other] Label *string `json:"label"` // value // Required: true - // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid hardwired] + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid neutrik-powercon-20a neutrik-powercon-32a neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Value *string `json:"value"` } @@ -866,7 +912,7 @@ var powerOutletTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["C5","C7","C13","C15","C19","C21","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15R","NEMA 5-15R","NEMA 5-20R","NEMA 5-30R","NEMA 5-50R","NEMA 6-15R","NEMA 6-20R","NEMA 6-30R","NEMA 6-50R","NEMA 10-30R","NEMA 10-50R","NEMA 14-20R","NEMA 14-30R","NEMA 14-50R","NEMA 14-60R","NEMA 15-15R","NEMA 15-20R","NEMA 15-30R","NEMA 15-50R","NEMA 15-60R","NEMA L1-15R","NEMA L5-15R","NEMA L5-20R","NEMA L5-30R","NEMA L5-50R","NEMA L6-15R","NEMA L6-20R","NEMA L6-30R","NEMA L6-50R","NEMA L10-30R","NEMA L14-20R","NEMA L14-30R","NEMA L14-50R","NEMA L14-60R","NEMA L15-20R","NEMA L15-30R","NEMA L15-50R","NEMA L15-60R","NEMA L21-20R","NEMA L21-30R","NEMA L22-30R","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ITA Type E (CEE 7/5)","ITA Type F (CEE 7/3)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","ITA Multistandard","USB Type A","USB Micro B","USB Type C","DC Terminal","HDOT Cx","Saf-D-Grid","Hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["C5","C7","C13","C15","C19","C21","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15R","NEMA 5-15R","NEMA 5-20R","NEMA 5-30R","NEMA 5-50R","NEMA 6-15R","NEMA 6-20R","NEMA 6-30R","NEMA 6-50R","NEMA 10-30R","NEMA 10-50R","NEMA 14-20R","NEMA 14-30R","NEMA 14-50R","NEMA 14-60R","NEMA 15-15R","NEMA 15-20R","NEMA 15-30R","NEMA 15-50R","NEMA 15-60R","NEMA L1-15R","NEMA L5-15R","NEMA L5-20R","NEMA L5-30R","NEMA L5-50R","NEMA L6-15R","NEMA L6-20R","NEMA L6-30R","NEMA L6-50R","NEMA L10-30R","NEMA L14-20R","NEMA L14-30R","NEMA L14-50R","NEMA L14-60R","NEMA L15-20R","NEMA L15-30R","NEMA L15-50R","NEMA L15-60R","NEMA L21-20R","NEMA L21-30R","NEMA L22-30R","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ITA Type E (CEE 7/5)","ITA Type F (CEE 7/3)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","ITA Multistandard","USB Type A","USB Micro B","USB Type C","DC Terminal","HDOT Cx","Saf-D-Grid","Neutrik powerCON (20A)","Neutrik powerCON (32A)","Neutrik powerCON TRUE1","Neutrik powerCON TRUE1 TOP","Ubiquiti SmartPower","Hardwired","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1125,8 +1171,26 @@ const ( // PowerOutletTypeLabelSafDashDDashGrid captures enum value "Saf-D-Grid" PowerOutletTypeLabelSafDashDDashGrid string = "Saf-D-Grid" + // PowerOutletTypeLabelNeutrikPowerCON20A captures enum value "Neutrik powerCON (20A)" + PowerOutletTypeLabelNeutrikPowerCON20A string = "Neutrik powerCON (20A)" + + // PowerOutletTypeLabelNeutrikPowerCON32A captures enum value "Neutrik powerCON (32A)" + PowerOutletTypeLabelNeutrikPowerCON32A string = "Neutrik powerCON (32A)" + + // PowerOutletTypeLabelNeutrikPowerCONTRUE1 captures enum value "Neutrik powerCON TRUE1" + PowerOutletTypeLabelNeutrikPowerCONTRUE1 string = "Neutrik powerCON TRUE1" + + // PowerOutletTypeLabelNeutrikPowerCONTRUE1TOP captures enum value "Neutrik powerCON TRUE1 TOP" + PowerOutletTypeLabelNeutrikPowerCONTRUE1TOP string = "Neutrik powerCON TRUE1 TOP" + + // PowerOutletTypeLabelUbiquitiSmartPower captures enum value "Ubiquiti SmartPower" + PowerOutletTypeLabelUbiquitiSmartPower string = "Ubiquiti SmartPower" + // PowerOutletTypeLabelHardwired captures enum value "Hardwired" PowerOutletTypeLabelHardwired string = "Hardwired" + + // PowerOutletTypeLabelOther captures enum value "Other" + PowerOutletTypeLabelOther string = "Other" ) // prop value enum @@ -1155,7 +1219,7 @@ var powerOutletTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","neutrik-powercon-20a","neutrik-powercon-32a","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1414,8 +1478,26 @@ const ( // PowerOutletTypeValueSafDashdDashGrid captures enum value "saf-d-grid" PowerOutletTypeValueSafDashdDashGrid string = "saf-d-grid" + // PowerOutletTypeValueNeutrikDashPowerconDash20a captures enum value "neutrik-powercon-20a" + PowerOutletTypeValueNeutrikDashPowerconDash20a string = "neutrik-powercon-20a" + + // PowerOutletTypeValueNeutrikDashPowerconDash32a captures enum value "neutrik-powercon-32a" + PowerOutletTypeValueNeutrikDashPowerconDash32a string = "neutrik-powercon-32a" + + // PowerOutletTypeValueNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + PowerOutletTypeValueNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // PowerOutletTypeValueNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + PowerOutletTypeValueNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // PowerOutletTypeValueUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + PowerOutletTypeValueUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // PowerOutletTypeValueHardwired captures enum value "hardwired" PowerOutletTypeValueHardwired string = "hardwired" + + // PowerOutletTypeValueOther captures enum value "other" + PowerOutletTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet_template.go index 58e61395e..7c744c277 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/power_outlet_template.go @@ -37,16 +37,15 @@ type PowerOutletTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true @@ -55,7 +54,7 @@ type PowerOutletTemplate struct { // feed leg FeedLeg *PowerOutletTemplateFeedLeg `json:"feed_leg,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -70,7 +69,14 @@ type PowerOutletTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -116,6 +122,10 @@ func (m *PowerOutletTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -143,7 +153,7 @@ func (m *PowerOutletTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -163,9 +173,8 @@ func (m *PowerOutletTemplate) validateDescription(formats strfmt.Registry) error } func (m *PowerOutletTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -225,6 +234,25 @@ func (m *PowerOutletTemplate) validateLastUpdated(formats strfmt.Registry) error return nil } +func (m *PowerOutletTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *PowerOutletTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -320,6 +348,10 @@ func (m *PowerOutletTemplate) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidatePowerPort(ctx, formats); err != nil { res = append(res, err) } @@ -340,7 +372,7 @@ func (m *PowerOutletTemplate) ContextValidate(ctx context.Context, formats strfm func (m *PowerOutletTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -406,6 +438,22 @@ func (m *PowerOutletTemplate) contextValidateLastUpdated(ctx context.Context, fo return nil } +func (m *PowerOutletTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *PowerOutletTemplate) contextValidatePowerPort(ctx context.Context, formats strfmt.Registry) error { if m.PowerPort != nil { @@ -621,12 +669,12 @@ type PowerOutletTemplateType struct { // label // Required: true - // Enum: [C5 C7 C13 C15 C19 C21 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15R NEMA 5-15R NEMA 5-20R NEMA 5-30R NEMA 5-50R NEMA 6-15R NEMA 6-20R NEMA 6-30R NEMA 6-50R NEMA 10-30R NEMA 10-50R NEMA 14-20R NEMA 14-30R NEMA 14-50R NEMA 14-60R NEMA 15-15R NEMA 15-20R NEMA 15-30R NEMA 15-50R NEMA 15-60R NEMA L1-15R NEMA L5-15R NEMA L5-20R NEMA L5-30R NEMA L5-50R NEMA L6-15R NEMA L6-20R NEMA L6-30R NEMA L6-50R NEMA L10-30R NEMA L14-20R NEMA L14-30R NEMA L14-50R NEMA L14-60R NEMA L15-20R NEMA L15-30R NEMA L15-50R NEMA L15-60R NEMA L21-20R NEMA L21-30R NEMA L22-30R CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ITA Type E (CEE 7/5) ITA Type F (CEE 7/3) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O ITA Multistandard USB Type A USB Micro B USB Type C DC Terminal HDOT Cx Saf-D-Grid Hardwired] + // Enum: [C5 C7 C13 C15 C19 C21 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15R NEMA 5-15R NEMA 5-20R NEMA 5-30R NEMA 5-50R NEMA 6-15R NEMA 6-20R NEMA 6-30R NEMA 6-50R NEMA 10-30R NEMA 10-50R NEMA 14-20R NEMA 14-30R NEMA 14-50R NEMA 14-60R NEMA 15-15R NEMA 15-20R NEMA 15-30R NEMA 15-50R NEMA 15-60R NEMA L1-15R NEMA L5-15R NEMA L5-20R NEMA L5-30R NEMA L5-50R NEMA L6-15R NEMA L6-20R NEMA L6-30R NEMA L6-50R NEMA L10-30R NEMA L14-20R NEMA L14-30R NEMA L14-50R NEMA L14-60R NEMA L15-20R NEMA L15-30R NEMA L15-50R NEMA L15-60R NEMA L21-20R NEMA L21-30R NEMA L22-30R CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ITA Type E (CEE 7/5) ITA Type F (CEE 7/3) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O ITA Multistandard USB Type A USB Micro B USB Type C DC Terminal HDOT Cx Saf-D-Grid Neutrik powerCON (20A) Neutrik powerCON (32A) Neutrik powerCON TRUE1 Neutrik powerCON TRUE1 TOP Ubiquiti SmartPower Hardwired Other] Label *string `json:"label"` // value // Required: true - // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid hardwired] + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid neutrik-powercon-20a neutrik-powercon-32a neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Value *string `json:"value"` } @@ -652,7 +700,7 @@ var powerOutletTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["C5","C7","C13","C15","C19","C21","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15R","NEMA 5-15R","NEMA 5-20R","NEMA 5-30R","NEMA 5-50R","NEMA 6-15R","NEMA 6-20R","NEMA 6-30R","NEMA 6-50R","NEMA 10-30R","NEMA 10-50R","NEMA 14-20R","NEMA 14-30R","NEMA 14-50R","NEMA 14-60R","NEMA 15-15R","NEMA 15-20R","NEMA 15-30R","NEMA 15-50R","NEMA 15-60R","NEMA L1-15R","NEMA L5-15R","NEMA L5-20R","NEMA L5-30R","NEMA L5-50R","NEMA L6-15R","NEMA L6-20R","NEMA L6-30R","NEMA L6-50R","NEMA L10-30R","NEMA L14-20R","NEMA L14-30R","NEMA L14-50R","NEMA L14-60R","NEMA L15-20R","NEMA L15-30R","NEMA L15-50R","NEMA L15-60R","NEMA L21-20R","NEMA L21-30R","NEMA L22-30R","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ITA Type E (CEE 7/5)","ITA Type F (CEE 7/3)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","ITA Multistandard","USB Type A","USB Micro B","USB Type C","DC Terminal","HDOT Cx","Saf-D-Grid","Hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["C5","C7","C13","C15","C19","C21","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15R","NEMA 5-15R","NEMA 5-20R","NEMA 5-30R","NEMA 5-50R","NEMA 6-15R","NEMA 6-20R","NEMA 6-30R","NEMA 6-50R","NEMA 10-30R","NEMA 10-50R","NEMA 14-20R","NEMA 14-30R","NEMA 14-50R","NEMA 14-60R","NEMA 15-15R","NEMA 15-20R","NEMA 15-30R","NEMA 15-50R","NEMA 15-60R","NEMA L1-15R","NEMA L5-15R","NEMA L5-20R","NEMA L5-30R","NEMA L5-50R","NEMA L6-15R","NEMA L6-20R","NEMA L6-30R","NEMA L6-50R","NEMA L10-30R","NEMA L14-20R","NEMA L14-30R","NEMA L14-50R","NEMA L14-60R","NEMA L15-20R","NEMA L15-30R","NEMA L15-50R","NEMA L15-60R","NEMA L21-20R","NEMA L21-30R","NEMA L22-30R","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ITA Type E (CEE 7/5)","ITA Type F (CEE 7/3)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","ITA Multistandard","USB Type A","USB Micro B","USB Type C","DC Terminal","HDOT Cx","Saf-D-Grid","Neutrik powerCON (20A)","Neutrik powerCON (32A)","Neutrik powerCON TRUE1","Neutrik powerCON TRUE1 TOP","Ubiquiti SmartPower","Hardwired","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -911,8 +959,26 @@ const ( // PowerOutletTemplateTypeLabelSafDashDDashGrid captures enum value "Saf-D-Grid" PowerOutletTemplateTypeLabelSafDashDDashGrid string = "Saf-D-Grid" + // PowerOutletTemplateTypeLabelNeutrikPowerCON20A captures enum value "Neutrik powerCON (20A)" + PowerOutletTemplateTypeLabelNeutrikPowerCON20A string = "Neutrik powerCON (20A)" + + // PowerOutletTemplateTypeLabelNeutrikPowerCON32A captures enum value "Neutrik powerCON (32A)" + PowerOutletTemplateTypeLabelNeutrikPowerCON32A string = "Neutrik powerCON (32A)" + + // PowerOutletTemplateTypeLabelNeutrikPowerCONTRUE1 captures enum value "Neutrik powerCON TRUE1" + PowerOutletTemplateTypeLabelNeutrikPowerCONTRUE1 string = "Neutrik powerCON TRUE1" + + // PowerOutletTemplateTypeLabelNeutrikPowerCONTRUE1TOP captures enum value "Neutrik powerCON TRUE1 TOP" + PowerOutletTemplateTypeLabelNeutrikPowerCONTRUE1TOP string = "Neutrik powerCON TRUE1 TOP" + + // PowerOutletTemplateTypeLabelUbiquitiSmartPower captures enum value "Ubiquiti SmartPower" + PowerOutletTemplateTypeLabelUbiquitiSmartPower string = "Ubiquiti SmartPower" + // PowerOutletTemplateTypeLabelHardwired captures enum value "Hardwired" PowerOutletTemplateTypeLabelHardwired string = "Hardwired" + + // PowerOutletTemplateTypeLabelOther captures enum value "Other" + PowerOutletTemplateTypeLabelOther string = "Other" ) // prop value enum @@ -941,7 +1007,7 @@ var powerOutletTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","neutrik-powercon-20a","neutrik-powercon-32a","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1200,8 +1266,26 @@ const ( // PowerOutletTemplateTypeValueSafDashdDashGrid captures enum value "saf-d-grid" PowerOutletTemplateTypeValueSafDashdDashGrid string = "saf-d-grid" + // PowerOutletTemplateTypeValueNeutrikDashPowerconDash20a captures enum value "neutrik-powercon-20a" + PowerOutletTemplateTypeValueNeutrikDashPowerconDash20a string = "neutrik-powercon-20a" + + // PowerOutletTemplateTypeValueNeutrikDashPowerconDash32a captures enum value "neutrik-powercon-32a" + PowerOutletTemplateTypeValueNeutrikDashPowerconDash32a string = "neutrik-powercon-32a" + + // PowerOutletTemplateTypeValueNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + PowerOutletTemplateTypeValueNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // PowerOutletTemplateTypeValueNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + PowerOutletTemplateTypeValueNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // PowerOutletTemplateTypeValueUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + PowerOutletTemplateTypeValueUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // PowerOutletTemplateTypeValueHardwired captures enum value "hardwired" PowerOutletTemplateTypeValueHardwired string = "hardwired" + + // PowerOutletTemplateTypeValueOther captures enum value "other" + PowerOutletTemplateTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/power_panel.go b/vendor/github.com/smutel/go-netbox/netbox/models/power_panel.go index bca01588f..31f44f9ca 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/power_panel.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/power_panel.go @@ -37,8 +37,8 @@ type PowerPanel struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -47,7 +47,7 @@ type PowerPanel struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,7 +125,7 @@ func (m *PowerPanel) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -286,7 +286,7 @@ func (m *PowerPanel) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *PowerPanel) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/power_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/power_port.go index 11bcc3733..9ef0223b7 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/power_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/power_port.go @@ -68,8 +68,8 @@ type PowerPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -86,7 +86,7 @@ type PowerPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,6 +125,9 @@ type PowerPort struct { // Minimum: 1 MaximumDraw *int64 `json:"maximum_draw,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -179,6 +182,10 @@ func (m *PowerPort) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -241,7 +248,7 @@ func (m *PowerPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -320,6 +327,25 @@ func (m *PowerPort) validateMaximumDraw(formats strfmt.Registry) error { return nil } +func (m *PowerPort) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *PowerPort) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -446,6 +472,10 @@ func (m *PowerPort) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -514,7 +544,7 @@ func (m *PowerPort) contextValidateConnectedEndpointType(ctx context.Context, fo func (m *PowerPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -578,6 +608,22 @@ func (m *PowerPort) contextValidateLinkPeerType(ctx context.Context, formats str return nil } +func (m *PowerPort) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *PowerPort) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { @@ -648,12 +694,12 @@ type PowerPortType struct { // label // Required: true - // Enum: [C6 C8 C14 C16 C20 C22 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15P NEMA 5-15P NEMA 5-20P NEMA 5-30P NEMA 5-50P NEMA 6-15P NEMA 6-20P NEMA 6-30P NEMA 6-50P NEMA 10-30P NEMA 10-50P NEMA 14-20P NEMA 14-30P NEMA 14-50P NEMA 14-60P NEMA 15-15P NEMA 15-20P NEMA 15-30P NEMA 15-50P NEMA 15-60P NEMA L1-15P NEMA L5-15P NEMA L5-20P NEMA L5-30P NEMA L5-50P NEMA L6-15P NEMA L6-20P NEMA L6-30P NEMA L6-50P NEMA L10-30P NEMA L14-20P NEMA L14-30P NEMA L14-50P NEMA L14-60P NEMA L15-20P NEMA L15-30P NEMA L15-50P NEMA L15-60P NEMA L21-20P NEMA L21-30P NEMA L22-30P CS6361C CS6365C CS8165C CS8265C CS8365C CS8465C ITA Type C (CEE 7/16) ITA Type E (CEE 7/6) ITA Type F (CEE 7/4) ITA Type E/F (CEE 7/7) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B USB Micro AB USB 3.0 Type B USB 3.0 Micro B DC Terminal Saf-D-Grid Hardwired] + // Enum: [C6 C8 C14 C16 C20 C22 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15P NEMA 5-15P NEMA 5-20P NEMA 5-30P NEMA 5-50P NEMA 6-15P NEMA 6-20P NEMA 6-30P NEMA 6-50P NEMA 10-30P NEMA 10-50P NEMA 14-20P NEMA 14-30P NEMA 14-50P NEMA 14-60P NEMA 15-15P NEMA 15-20P NEMA 15-30P NEMA 15-50P NEMA 15-60P NEMA L1-15P NEMA L5-15P NEMA L5-20P NEMA L5-30P NEMA L5-50P NEMA L6-15P NEMA L6-20P NEMA L6-30P NEMA L6-50P NEMA L10-30P NEMA L14-20P NEMA L14-30P NEMA L14-50P NEMA L14-60P NEMA L15-20P NEMA L15-30P NEMA L15-50P NEMA L15-60P NEMA L21-20P NEMA L21-30P NEMA L22-30P CS6361C CS6365C CS8165C CS8265C CS8365C CS8465C ITA Type C (CEE 7/16) ITA Type E (CEE 7/6) ITA Type F (CEE 7/4) ITA Type E/F (CEE 7/7) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B USB Micro AB USB 3.0 Type B USB 3.0 Micro B DC Terminal Saf-D-Grid Neutrik powerCON (20A) Neutrik powerCON (32A) Neutrik powerCON TRUE1 Neutrik powerCON TRUE1 TOP Ubiquiti SmartPower Hardwired Other] Label *string `json:"label"` // value // Required: true - // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid hardwired] + // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid neutrik-powercon-20 neutrik-powercon-32 neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Value *string `json:"value"` } @@ -679,7 +725,7 @@ var powerPortTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["C6","C8","C14","C16","C20","C22","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15P","NEMA 5-15P","NEMA 5-20P","NEMA 5-30P","NEMA 5-50P","NEMA 6-15P","NEMA 6-20P","NEMA 6-30P","NEMA 6-50P","NEMA 10-30P","NEMA 10-50P","NEMA 14-20P","NEMA 14-30P","NEMA 14-50P","NEMA 14-60P","NEMA 15-15P","NEMA 15-20P","NEMA 15-30P","NEMA 15-50P","NEMA 15-60P","NEMA L1-15P","NEMA L5-15P","NEMA L5-20P","NEMA L5-30P","NEMA L5-50P","NEMA L6-15P","NEMA L6-20P","NEMA L6-30P","NEMA L6-50P","NEMA L10-30P","NEMA L14-20P","NEMA L14-30P","NEMA L14-50P","NEMA L14-60P","NEMA L15-20P","NEMA L15-30P","NEMA L15-50P","NEMA L15-60P","NEMA L21-20P","NEMA L21-30P","NEMA L22-30P","CS6361C","CS6365C","CS8165C","CS8265C","CS8365C","CS8465C","ITA Type C (CEE 7/16)","ITA Type E (CEE 7/6)","ITA Type F (CEE 7/4)","ITA Type E/F (CEE 7/7)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","USB Micro AB","USB 3.0 Type B","USB 3.0 Micro B","DC Terminal","Saf-D-Grid","Hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["C6","C8","C14","C16","C20","C22","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15P","NEMA 5-15P","NEMA 5-20P","NEMA 5-30P","NEMA 5-50P","NEMA 6-15P","NEMA 6-20P","NEMA 6-30P","NEMA 6-50P","NEMA 10-30P","NEMA 10-50P","NEMA 14-20P","NEMA 14-30P","NEMA 14-50P","NEMA 14-60P","NEMA 15-15P","NEMA 15-20P","NEMA 15-30P","NEMA 15-50P","NEMA 15-60P","NEMA L1-15P","NEMA L5-15P","NEMA L5-20P","NEMA L5-30P","NEMA L5-50P","NEMA L6-15P","NEMA L6-20P","NEMA L6-30P","NEMA L6-50P","NEMA L10-30P","NEMA L14-20P","NEMA L14-30P","NEMA L14-50P","NEMA L14-60P","NEMA L15-20P","NEMA L15-30P","NEMA L15-50P","NEMA L15-60P","NEMA L21-20P","NEMA L21-30P","NEMA L22-30P","CS6361C","CS6365C","CS8165C","CS8265C","CS8365C","CS8465C","ITA Type C (CEE 7/16)","ITA Type E (CEE 7/6)","ITA Type F (CEE 7/4)","ITA Type E/F (CEE 7/7)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","USB Micro AB","USB 3.0 Type B","USB 3.0 Micro B","DC Terminal","Saf-D-Grid","Neutrik powerCON (20A)","Neutrik powerCON (32A)","Neutrik powerCON TRUE1","Neutrik powerCON TRUE1 TOP","Ubiquiti SmartPower","Hardwired","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -959,8 +1005,26 @@ const ( // PowerPortTypeLabelSafDashDDashGrid captures enum value "Saf-D-Grid" PowerPortTypeLabelSafDashDDashGrid string = "Saf-D-Grid" + // PowerPortTypeLabelNeutrikPowerCON20A captures enum value "Neutrik powerCON (20A)" + PowerPortTypeLabelNeutrikPowerCON20A string = "Neutrik powerCON (20A)" + + // PowerPortTypeLabelNeutrikPowerCON32A captures enum value "Neutrik powerCON (32A)" + PowerPortTypeLabelNeutrikPowerCON32A string = "Neutrik powerCON (32A)" + + // PowerPortTypeLabelNeutrikPowerCONTRUE1 captures enum value "Neutrik powerCON TRUE1" + PowerPortTypeLabelNeutrikPowerCONTRUE1 string = "Neutrik powerCON TRUE1" + + // PowerPortTypeLabelNeutrikPowerCONTRUE1TOP captures enum value "Neutrik powerCON TRUE1 TOP" + PowerPortTypeLabelNeutrikPowerCONTRUE1TOP string = "Neutrik powerCON TRUE1 TOP" + + // PowerPortTypeLabelUbiquitiSmartPower captures enum value "Ubiquiti SmartPower" + PowerPortTypeLabelUbiquitiSmartPower string = "Ubiquiti SmartPower" + // PowerPortTypeLabelHardwired captures enum value "Hardwired" PowerPortTypeLabelHardwired string = "Hardwired" + + // PowerPortTypeLabelOther captures enum value "Other" + PowerPortTypeLabelOther string = "Other" ) // prop value enum @@ -989,7 +1053,7 @@ var powerPortTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","neutrik-powercon-20","neutrik-powercon-32","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1269,8 +1333,26 @@ const ( // PowerPortTypeValueSafDashdDashGrid captures enum value "saf-d-grid" PowerPortTypeValueSafDashdDashGrid string = "saf-d-grid" + // PowerPortTypeValueNeutrikDashPowerconDash20 captures enum value "neutrik-powercon-20" + PowerPortTypeValueNeutrikDashPowerconDash20 string = "neutrik-powercon-20" + + // PowerPortTypeValueNeutrikDashPowerconDash32 captures enum value "neutrik-powercon-32" + PowerPortTypeValueNeutrikDashPowerconDash32 string = "neutrik-powercon-32" + + // PowerPortTypeValueNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + PowerPortTypeValueNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // PowerPortTypeValueNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + PowerPortTypeValueNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // PowerPortTypeValueUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + PowerPortTypeValueUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // PowerPortTypeValueHardwired captures enum value "hardwired" PowerPortTypeValueHardwired string = "hardwired" + + // PowerPortTypeValueOther captures enum value "other" + PowerPortTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/power_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/power_port_template.go index 1fbc58fa0..13da623d3 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/power_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/power_port_template.go @@ -44,22 +44,21 @@ type PowerPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -81,7 +80,14 @@ type PowerPortTemplate struct { // Minimum: 1 MaximumDraw *int64 `json:"maximum_draw,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -128,6 +134,10 @@ func (m *PowerPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -167,7 +177,7 @@ func (m *PowerPortTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -187,9 +197,8 @@ func (m *PowerPortTemplate) validateDescription(formats strfmt.Registry) error { } func (m *PowerPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -246,6 +255,25 @@ func (m *PowerPortTemplate) validateMaximumDraw(formats strfmt.Registry) error { return nil } +func (m *PowerPortTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *PowerPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -318,6 +346,10 @@ func (m *PowerPortTemplate) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateType(ctx, formats); err != nil { res = append(res, err) } @@ -334,7 +366,7 @@ func (m *PowerPortTemplate) ContextValidate(ctx context.Context, formats strfmt. func (m *PowerPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -384,6 +416,22 @@ func (m *PowerPortTemplate) contextValidateLastUpdated(ctx context.Context, form return nil } +func (m *PowerPortTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *PowerPortTemplate) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { @@ -434,12 +482,12 @@ type PowerPortTemplateType struct { // label // Required: true - // Enum: [C6 C8 C14 C16 C20 C22 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15P NEMA 5-15P NEMA 5-20P NEMA 5-30P NEMA 5-50P NEMA 6-15P NEMA 6-20P NEMA 6-30P NEMA 6-50P NEMA 10-30P NEMA 10-50P NEMA 14-20P NEMA 14-30P NEMA 14-50P NEMA 14-60P NEMA 15-15P NEMA 15-20P NEMA 15-30P NEMA 15-50P NEMA 15-60P NEMA L1-15P NEMA L5-15P NEMA L5-20P NEMA L5-30P NEMA L5-50P NEMA L6-15P NEMA L6-20P NEMA L6-30P NEMA L6-50P NEMA L10-30P NEMA L14-20P NEMA L14-30P NEMA L14-50P NEMA L14-60P NEMA L15-20P NEMA L15-30P NEMA L15-50P NEMA L15-60P NEMA L21-20P NEMA L21-30P NEMA L22-30P CS6361C CS6365C CS8165C CS8265C CS8365C CS8465C ITA Type C (CEE 7/16) ITA Type E (CEE 7/6) ITA Type F (CEE 7/4) ITA Type E/F (CEE 7/7) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B USB Micro AB USB 3.0 Type B USB 3.0 Micro B DC Terminal Saf-D-Grid Hardwired] + // Enum: [C6 C8 C14 C16 C20 C22 P+N+E 4H P+N+E 6H P+N+E 9H 2P+E 4H 2P+E 6H 2P+E 9H 3P+E 4H 3P+E 6H 3P+E 9H 3P+N+E 4H 3P+N+E 6H 3P+N+E 9H NEMA 1-15P NEMA 5-15P NEMA 5-20P NEMA 5-30P NEMA 5-50P NEMA 6-15P NEMA 6-20P NEMA 6-30P NEMA 6-50P NEMA 10-30P NEMA 10-50P NEMA 14-20P NEMA 14-30P NEMA 14-50P NEMA 14-60P NEMA 15-15P NEMA 15-20P NEMA 15-30P NEMA 15-50P NEMA 15-60P NEMA L1-15P NEMA L5-15P NEMA L5-20P NEMA L5-30P NEMA L5-50P NEMA L6-15P NEMA L6-20P NEMA L6-30P NEMA L6-50P NEMA L10-30P NEMA L14-20P NEMA L14-30P NEMA L14-50P NEMA L14-60P NEMA L15-20P NEMA L15-30P NEMA L15-50P NEMA L15-60P NEMA L21-20P NEMA L21-30P NEMA L22-30P CS6361C CS6365C CS8165C CS8265C CS8365C CS8465C ITA Type C (CEE 7/16) ITA Type E (CEE 7/6) ITA Type F (CEE 7/4) ITA Type E/F (CEE 7/7) ITA Type G (BS 1363) ITA Type H ITA Type I ITA Type J ITA Type K ITA Type L (CEI 23-50) ITA Type M (BS 546) ITA Type N ITA Type O USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B USB Micro AB USB 3.0 Type B USB 3.0 Micro B DC Terminal Saf-D-Grid Neutrik powerCON (20A) Neutrik powerCON (32A) Neutrik powerCON TRUE1 Neutrik powerCON TRUE1 TOP Ubiquiti SmartPower Hardwired Other] Label *string `json:"label"` // value // Required: true - // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid hardwired] + // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid neutrik-powercon-20 neutrik-powercon-32 neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Value *string `json:"value"` } @@ -465,7 +513,7 @@ var powerPortTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["C6","C8","C14","C16","C20","C22","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15P","NEMA 5-15P","NEMA 5-20P","NEMA 5-30P","NEMA 5-50P","NEMA 6-15P","NEMA 6-20P","NEMA 6-30P","NEMA 6-50P","NEMA 10-30P","NEMA 10-50P","NEMA 14-20P","NEMA 14-30P","NEMA 14-50P","NEMA 14-60P","NEMA 15-15P","NEMA 15-20P","NEMA 15-30P","NEMA 15-50P","NEMA 15-60P","NEMA L1-15P","NEMA L5-15P","NEMA L5-20P","NEMA L5-30P","NEMA L5-50P","NEMA L6-15P","NEMA L6-20P","NEMA L6-30P","NEMA L6-50P","NEMA L10-30P","NEMA L14-20P","NEMA L14-30P","NEMA L14-50P","NEMA L14-60P","NEMA L15-20P","NEMA L15-30P","NEMA L15-50P","NEMA L15-60P","NEMA L21-20P","NEMA L21-30P","NEMA L22-30P","CS6361C","CS6365C","CS8165C","CS8265C","CS8365C","CS8465C","ITA Type C (CEE 7/16)","ITA Type E (CEE 7/6)","ITA Type F (CEE 7/4)","ITA Type E/F (CEE 7/7)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","USB Micro AB","USB 3.0 Type B","USB 3.0 Micro B","DC Terminal","Saf-D-Grid","Hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["C6","C8","C14","C16","C20","C22","P+N+E 4H","P+N+E 6H","P+N+E 9H","2P+E 4H","2P+E 6H","2P+E 9H","3P+E 4H","3P+E 6H","3P+E 9H","3P+N+E 4H","3P+N+E 6H","3P+N+E 9H","NEMA 1-15P","NEMA 5-15P","NEMA 5-20P","NEMA 5-30P","NEMA 5-50P","NEMA 6-15P","NEMA 6-20P","NEMA 6-30P","NEMA 6-50P","NEMA 10-30P","NEMA 10-50P","NEMA 14-20P","NEMA 14-30P","NEMA 14-50P","NEMA 14-60P","NEMA 15-15P","NEMA 15-20P","NEMA 15-30P","NEMA 15-50P","NEMA 15-60P","NEMA L1-15P","NEMA L5-15P","NEMA L5-20P","NEMA L5-30P","NEMA L5-50P","NEMA L6-15P","NEMA L6-20P","NEMA L6-30P","NEMA L6-50P","NEMA L10-30P","NEMA L14-20P","NEMA L14-30P","NEMA L14-50P","NEMA L14-60P","NEMA L15-20P","NEMA L15-30P","NEMA L15-50P","NEMA L15-60P","NEMA L21-20P","NEMA L21-30P","NEMA L22-30P","CS6361C","CS6365C","CS8165C","CS8265C","CS8365C","CS8465C","ITA Type C (CEE 7/16)","ITA Type E (CEE 7/6)","ITA Type F (CEE 7/4)","ITA Type E/F (CEE 7/7)","ITA Type G (BS 1363)","ITA Type H","ITA Type I","ITA Type J","ITA Type K","ITA Type L (CEI 23-50)","ITA Type M (BS 546)","ITA Type N","ITA Type O","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","USB Micro AB","USB 3.0 Type B","USB 3.0 Micro B","DC Terminal","Saf-D-Grid","Neutrik powerCON (20A)","Neutrik powerCON (32A)","Neutrik powerCON TRUE1","Neutrik powerCON TRUE1 TOP","Ubiquiti SmartPower","Hardwired","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -745,8 +793,26 @@ const ( // PowerPortTemplateTypeLabelSafDashDDashGrid captures enum value "Saf-D-Grid" PowerPortTemplateTypeLabelSafDashDDashGrid string = "Saf-D-Grid" + // PowerPortTemplateTypeLabelNeutrikPowerCON20A captures enum value "Neutrik powerCON (20A)" + PowerPortTemplateTypeLabelNeutrikPowerCON20A string = "Neutrik powerCON (20A)" + + // PowerPortTemplateTypeLabelNeutrikPowerCON32A captures enum value "Neutrik powerCON (32A)" + PowerPortTemplateTypeLabelNeutrikPowerCON32A string = "Neutrik powerCON (32A)" + + // PowerPortTemplateTypeLabelNeutrikPowerCONTRUE1 captures enum value "Neutrik powerCON TRUE1" + PowerPortTemplateTypeLabelNeutrikPowerCONTRUE1 string = "Neutrik powerCON TRUE1" + + // PowerPortTemplateTypeLabelNeutrikPowerCONTRUE1TOP captures enum value "Neutrik powerCON TRUE1 TOP" + PowerPortTemplateTypeLabelNeutrikPowerCONTRUE1TOP string = "Neutrik powerCON TRUE1 TOP" + + // PowerPortTemplateTypeLabelUbiquitiSmartPower captures enum value "Ubiquiti SmartPower" + PowerPortTemplateTypeLabelUbiquitiSmartPower string = "Ubiquiti SmartPower" + // PowerPortTemplateTypeLabelHardwired captures enum value "Hardwired" PowerPortTemplateTypeLabelHardwired string = "Hardwired" + + // PowerPortTemplateTypeLabelOther captures enum value "Other" + PowerPortTemplateTypeLabelOther string = "Other" ) // prop value enum @@ -775,7 +841,7 @@ var powerPortTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","neutrik-powercon-20","neutrik-powercon-32","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1055,8 +1121,26 @@ const ( // PowerPortTemplateTypeValueSafDashdDashGrid captures enum value "saf-d-grid" PowerPortTemplateTypeValueSafDashdDashGrid string = "saf-d-grid" + // PowerPortTemplateTypeValueNeutrikDashPowerconDash20 captures enum value "neutrik-powercon-20" + PowerPortTemplateTypeValueNeutrikDashPowerconDash20 string = "neutrik-powercon-20" + + // PowerPortTemplateTypeValueNeutrikDashPowerconDash32 captures enum value "neutrik-powercon-32" + PowerPortTemplateTypeValueNeutrikDashPowerconDash32 string = "neutrik-powercon-32" + + // PowerPortTemplateTypeValueNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + PowerPortTemplateTypeValueNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // PowerPortTemplateTypeValueNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + PowerPortTemplateTypeValueNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // PowerPortTemplateTypeValueUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + PowerPortTemplateTypeValueUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // PowerPortTemplateTypeValueHardwired captures enum value "hardwired" PowerPortTemplateTypeValueHardwired string = "hardwired" + + // PowerPortTemplateTypeValueOther captures enum value "other" + PowerPortTemplateTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/prefix.go b/vendor/github.com/smutel/go-netbox/netbox/models/prefix.go index 768b97dfd..839dcfd1a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/prefix.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/prefix.go @@ -46,8 +46,8 @@ type Prefix struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -63,7 +63,7 @@ type Prefix struct { // family Family *PrefixFamily `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -182,7 +182,7 @@ func (m *Prefix) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -483,7 +483,7 @@ func (m *Prefix) contextValidateChildren(ctx context.Context, formats strfmt.Reg func (m *Prefix) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/provider.go b/vendor/github.com/smutel/go-netbox/netbox/models/provider.go index d55b5ff7f..f00a8d945 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/provider.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/provider.go @@ -49,6 +49,10 @@ type Provider struct { // Minimum: 1 Asn *int64 `json:"asn,omitempty"` + // asns + // Unique: true + Asns []*NestedASN `json:"asns"` + // Circuit count // Read Only: true CircuitCount int64 `json:"circuit_count,omitempty"` @@ -58,8 +62,8 @@ type Provider struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -68,7 +72,7 @@ type Provider struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -119,6 +123,10 @@ func (m *Provider) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateAsns(formats); err != nil { + res = append(res, err) + } + if err := m.validateCreated(formats); err != nil { res = append(res, err) } @@ -181,12 +189,42 @@ func (m *Provider) validateAsn(formats strfmt.Registry) error { return nil } +func (m *Provider) validateAsns(formats strfmt.Registry) error { + if swag.IsZero(m.Asns) { // not required + return nil + } + + if err := validate.UniqueItems("asns", "body", m.Asns); err != nil { + return err + } + + for i := 0; i < len(m.Asns); i++ { + if swag.IsZero(m.Asns[i]) { // not required + continue + } + + if m.Asns[i] != nil { + if err := m.Asns[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("asns" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("asns" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *Provider) validateCreated(formats strfmt.Registry) error { if swag.IsZero(m.Created) { // not required return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -301,6 +339,10 @@ func (m *Provider) validateURL(formats strfmt.Registry) error { func (m *Provider) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateAsns(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateCircuitCount(ctx, formats); err != nil { res = append(res, err) } @@ -335,6 +377,26 @@ func (m *Provider) ContextValidate(ctx context.Context, formats strfmt.Registry) return nil } +func (m *Provider) contextValidateAsns(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Asns); i++ { + + if m.Asns[i] != nil { + if err := m.Asns[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("asns" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("asns" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *Provider) contextValidateCircuitCount(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "circuit_count", "body", int64(m.CircuitCount)); err != nil { @@ -346,7 +408,7 @@ func (m *Provider) contextValidateCircuitCount(ctx context.Context, formats strf func (m *Provider) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/provider_network.go b/vendor/github.com/smutel/go-netbox/netbox/models/provider_network.go index 8eb3428f0..f0d482cc5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/provider_network.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/provider_network.go @@ -40,8 +40,8 @@ type ProviderNetwork struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -54,7 +54,7 @@ type ProviderNetwork struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -73,6 +73,10 @@ type ProviderNetwork struct { // Required: true Provider *NestedProvider `json:"provider"` + // Service ID + // Max Length: 100 + ServiceID string `json:"service_id,omitempty"` + // tags Tags []*NestedTag `json:"tags"` @@ -106,6 +110,10 @@ func (m *ProviderNetwork) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateServiceID(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -125,7 +133,7 @@ func (m *ProviderNetwork) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -193,6 +201,18 @@ func (m *ProviderNetwork) validateProvider(formats strfmt.Registry) error { return nil } +func (m *ProviderNetwork) validateServiceID(formats strfmt.Registry) error { + if swag.IsZero(m.ServiceID) { // not required + return nil + } + + if err := validate.MaxLength("service_id", "body", m.ServiceID, 100); err != nil { + return err + } + + return nil +} + func (m *ProviderNetwork) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -271,7 +291,7 @@ func (m *ProviderNetwork) ContextValidate(ctx context.Context, formats strfmt.Re func (m *ProviderNetwork) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/r_i_r.go b/vendor/github.com/smutel/go-netbox/netbox/models/r_i_r.go index 50ff9a8a4..07ca40da6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/r_i_r.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/r_i_r.go @@ -41,8 +41,8 @@ type RIR struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type RIR struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -134,7 +134,7 @@ func (m *RIR) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -290,7 +290,7 @@ func (m *RIR) contextValidateAggregateCount(ctx context.Context, formats strfmt. func (m *RIR) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/rack.go b/vendor/github.com/smutel/go-netbox/netbox/models/rack.go index f840e5737..79c2ea911 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/rack.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/rack.go @@ -47,8 +47,8 @@ type Rack struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -70,7 +70,7 @@ type Rack struct { // Max Length: 50 FacilityID *string `json:"facility_id,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -251,7 +251,7 @@ func (m *Rack) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -626,7 +626,7 @@ func (m *Rack) ContextValidate(ctx context.Context, formats strfmt.Registry) err func (m *Rack) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/rack_reservation.go b/vendor/github.com/smutel/go-netbox/netbox/models/rack_reservation.go index a4ea1813f..e15c3615a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/rack_reservation.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/rack_reservation.go @@ -37,8 +37,8 @@ type RackReservation struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -53,7 +53,7 @@ type RackReservation struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -137,7 +137,7 @@ func (m *RackReservation) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -342,7 +342,7 @@ func (m *RackReservation) ContextValidate(ctx context.Context, formats strfmt.Re func (m *RackReservation) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/rack_role.go b/vendor/github.com/smutel/go-netbox/netbox/models/rack_role.go index f19a25f40..e522e9bde 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/rack_role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/rack_role.go @@ -43,8 +43,8 @@ type RackRole struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -57,7 +57,7 @@ type RackRole struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -159,7 +159,7 @@ func (m *RackRole) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -306,7 +306,7 @@ func (m *RackRole) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *RackRole) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/rear_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/rear_port.go index 71382cf45..11c798e19 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/rear_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/rear_port.go @@ -50,8 +50,8 @@ type RearPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -68,7 +68,7 @@ type RearPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -100,6 +100,9 @@ type RearPort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // module + Module *ComponentNestedModule `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -156,6 +159,10 @@ func (m *RearPort) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModule(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -222,7 +229,7 @@ func (m *RearPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -285,6 +292,25 @@ func (m *RearPort) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *RearPort) validateModule(formats strfmt.Registry) error { + if swag.IsZero(m.Module) { // not required + return nil + } + + if m.Module != nil { + if err := m.Module.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *RearPort) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -416,6 +442,10 @@ func (m *RearPort) ContextValidate(ctx context.Context, formats strfmt.Registry) res = append(res, err) } + if err := m.contextValidateModule(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -461,7 +491,7 @@ func (m *RearPort) contextValidateCable(ctx context.Context, formats strfmt.Regi func (m *RearPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -525,6 +555,22 @@ func (m *RearPort) contextValidateLinkPeerType(ctx context.Context, formats strf return nil } +func (m *RearPort) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { + + if m.Module != nil { + if err := m.Module.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module") + } + return err + } + } + + return nil +} + func (m *RearPort) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { @@ -595,12 +641,12 @@ type RearPortType struct { // label // Required: true - // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice] + // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice Other] Label *string `json:"label"` // value // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Value *string `json:"value"` } @@ -626,7 +672,7 @@ var rearPortTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -761,6 +807,9 @@ const ( // RearPortTypeLabelSplice captures enum value "Splice" RearPortTypeLabelSplice string = "Splice" + + // RearPortTypeLabelOther captures enum value "Other" + RearPortTypeLabelOther string = "Other" ) // prop value enum @@ -789,7 +838,7 @@ var rearPortTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -924,6 +973,9 @@ const ( // RearPortTypeValueSplice captures enum value "splice" RearPortTypeValueSplice string = "splice" + + // RearPortTypeValueOther captures enum value "other" + RearPortTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/rear_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/rear_port_template.go index c762fcb40..f34b8a11a 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/rear_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/rear_port_template.go @@ -42,22 +42,21 @@ type RearPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 Description string `json:"description,omitempty"` // device type - // Required: true - DeviceType *NestedDeviceType `json:"device_type"` + DeviceType *NestedDeviceType `json:"device_type,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -72,7 +71,14 @@ type RearPortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // module type + ModuleType *NestedModuleType `json:"module_type,omitempty"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -121,6 +127,10 @@ func (m *RearPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -164,7 +174,7 @@ func (m *RearPortTemplate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -184,9 +194,8 @@ func (m *RearPortTemplate) validateDescription(formats strfmt.Registry) error { } func (m *RearPortTemplate) validateDeviceType(formats strfmt.Registry) error { - - if err := validate.Required("device_type", "body", m.DeviceType); err != nil { - return err + if swag.IsZero(m.DeviceType) { // not required + return nil } if m.DeviceType != nil { @@ -227,6 +236,25 @@ func (m *RearPortTemplate) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *RearPortTemplate) validateModuleType(formats strfmt.Registry) error { + if swag.IsZero(m.ModuleType) { // not required + return nil + } + + if m.ModuleType != nil { + if err := m.ModuleType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *RearPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -316,6 +344,10 @@ func (m *RearPortTemplate) ContextValidate(ctx context.Context, formats strfmt.R res = append(res, err) } + if err := m.contextValidateModuleType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateType(ctx, formats); err != nil { res = append(res, err) } @@ -332,7 +364,7 @@ func (m *RearPortTemplate) ContextValidate(ctx context.Context, formats strfmt.R func (m *RearPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -382,6 +414,22 @@ func (m *RearPortTemplate) contextValidateLastUpdated(ctx context.Context, forma return nil } +func (m *RearPortTemplate) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { + + if m.ModuleType != nil { + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("module_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("module_type") + } + return err + } + } + + return nil +} + func (m *RearPortTemplate) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { @@ -432,12 +480,12 @@ type RearPortTemplateType struct { // label // Required: true - // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice] + // Enum: [8P8C 8P6C 8P4C 8P2C 6P6C 6P4C 6P2C 4P4C 4P2C GG45 TERA 4P TERA 2P TERA 1P 110 Punch BNC F Connector N Connector MRJ21 FC LC LC/PC LC/UPC LC/APC LSH LSH/PC LSH/UPC LSH/APC MPO MTRJ SC SC/PC SC/UPC SC/APC ST CS SN SMA 905 SMA 906 URM-P2 URM-P4 URM-P8 Splice Other] Label *string `json:"label"` // value // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Value *string `json:"value"` } @@ -463,7 +511,7 @@ var rearPortTemplateTypeTypeLabelPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8P8C","8P6C","8P4C","8P2C","6P6C","6P4C","6P2C","4P4C","4P2C","GG45","TERA 4P","TERA 2P","TERA 1P","110 Punch","BNC","F Connector","N Connector","MRJ21","FC","LC","LC/PC","LC/UPC","LC/APC","LSH","LSH/PC","LSH/UPC","LSH/APC","MPO","MTRJ","SC","SC/PC","SC/UPC","SC/APC","ST","CS","SN","SMA 905","SMA 906","URM-P2","URM-P4","URM-P8","Splice","Other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -598,6 +646,9 @@ const ( // RearPortTemplateTypeLabelSplice captures enum value "Splice" RearPortTemplateTypeLabelSplice string = "Splice" + + // RearPortTemplateTypeLabelOther captures enum value "Other" + RearPortTemplateTypeLabelOther string = "Other" ) // prop value enum @@ -626,7 +677,7 @@ var rearPortTemplateTypeTypeValuePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -761,6 +812,9 @@ const ( // RearPortTemplateTypeValueSplice captures enum value "splice" RearPortTemplateTypeValueSplice string = "splice" + + // RearPortTemplateTypeValueOther captures enum value "other" + RearPortTemplateTypeValueOther string = "other" ) // prop value enum diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/region.go b/vendor/github.com/smutel/go-netbox/netbox/models/region.go index 1db390002..792e6eb13 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/region.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/region.go @@ -41,8 +41,8 @@ type Region struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type Region struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -140,7 +140,7 @@ func (m *Region) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -323,7 +323,7 @@ func (m *Region) contextValidateDepth(ctx context.Context, formats strfmt.Regist func (m *Region) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/role.go b/vendor/github.com/smutel/go-netbox/netbox/models/role.go index 67ff5f404..a7f2e4b86 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/role.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/role.go @@ -37,8 +37,8 @@ type Role struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type Role struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -142,7 +142,7 @@ func (m *Role) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -309,7 +309,7 @@ func (m *Role) ContextValidate(ctx context.Context, formats strfmt.Registry) err func (m *Role) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/route_target.go b/vendor/github.com/smutel/go-netbox/netbox/models/route_target.go index fd48d5568..3629bc33c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/route_target.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/route_target.go @@ -37,8 +37,8 @@ type RouteTarget struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type RouteTarget struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -123,7 +123,7 @@ func (m *RouteTarget) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -268,7 +268,7 @@ func (m *RouteTarget) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *RouteTarget) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/service.go b/vendor/github.com/smutel/go-netbox/netbox/models/service.go index 8b1c51631..dee27bfeb 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/service.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/service.go @@ -38,8 +38,8 @@ type Service struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type Service struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -152,7 +152,7 @@ func (m *Service) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -398,7 +398,7 @@ func (m *Service) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Service) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/site.go b/vendor/github.com/smutel/go-netbox/netbox/models/site.go index a821ee18f..10cb3df4e 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/site.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/site.go @@ -36,13 +36,6 @@ import ( // swagger:model Site type Site struct { - // ASN - // - // 32-bit autonomous system number - // Maximum: 4.294967295e+09 - // Minimum: 1 - Asn *int64 `json:"asn,omitempty"` - // asns // Unique: true Asns []*NestedASN `json:"asns"` @@ -54,23 +47,10 @@ type Site struct { // Comments Comments string `json:"comments,omitempty"` - // Contact E-mail - // Max Length: 254 - // Format: email - ContactEmail strfmt.Email `json:"contact_email,omitempty"` - - // Contact name - // Max Length: 50 - ContactName string `json:"contact_name,omitempty"` - - // Contact phone - // Max Length: 20 - ContactPhone string `json:"contact_phone,omitempty"` - // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -96,7 +76,7 @@ type Site struct { // group Group *NestedSiteGroup `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -177,26 +157,10 @@ type Site struct { func (m *Site) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateAsn(formats); err != nil { - res = append(res, err) - } - if err := m.validateAsns(formats); err != nil { res = append(res, err) } - if err := m.validateContactEmail(formats); err != nil { - res = append(res, err) - } - - if err := m.validateContactName(formats); err != nil { - res = append(res, err) - } - - if err := m.validateContactPhone(formats); err != nil { - res = append(res, err) - } - if err := m.validateCreated(formats); err != nil { res = append(res, err) } @@ -259,22 +223,6 @@ func (m *Site) Validate(formats strfmt.Registry) error { return nil } -func (m *Site) validateAsn(formats strfmt.Registry) error { - if swag.IsZero(m.Asn) { // not required - return nil - } - - if err := validate.MinimumInt("asn", "body", *m.Asn, 1, false); err != nil { - return err - } - - if err := validate.MaximumInt("asn", "body", *m.Asn, 4.294967295e+09, false); err != nil { - return err - } - - return nil -} - func (m *Site) validateAsns(formats strfmt.Registry) error { if swag.IsZero(m.Asns) { // not required return nil @@ -305,52 +253,12 @@ func (m *Site) validateAsns(formats strfmt.Registry) error { return nil } -func (m *Site) validateContactEmail(formats strfmt.Registry) error { - if swag.IsZero(m.ContactEmail) { // not required - return nil - } - - if err := validate.MaxLength("contact_email", "body", m.ContactEmail.String(), 254); err != nil { - return err - } - - if err := validate.FormatOf("contact_email", "body", "email", m.ContactEmail.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *Site) validateContactName(formats strfmt.Registry) error { - if swag.IsZero(m.ContactName) { // not required - return nil - } - - if err := validate.MaxLength("contact_name", "body", m.ContactName, 50); err != nil { - return err - } - - return nil -} - -func (m *Site) validateContactPhone(formats strfmt.Registry) error { - if swag.IsZero(m.ContactPhone) { // not required - return nil - } - - if err := validate.MaxLength("contact_phone", "body", m.ContactPhone, 20); err != nil { - return err - } - - return nil -} - func (m *Site) validateCreated(formats strfmt.Registry) error { if swag.IsZero(m.Created) { // not required return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -678,7 +586,7 @@ func (m *Site) contextValidateCircuitCount(ctx context.Context, formats strfmt.R func (m *Site) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/site_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/site_group.go index ad59c58e3..99d5224b0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/site_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/site_group.go @@ -41,8 +41,8 @@ type SiteGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type SiteGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -140,7 +140,7 @@ func (m *SiteGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -323,7 +323,7 @@ func (m *SiteGroup) contextValidateDepth(ctx context.Context, formats strfmt.Reg func (m *SiteGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/tag.go b/vendor/github.com/smutel/go-netbox/netbox/models/tag.go index 8c598dbbd..16f0fee66 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/tag.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/tag.go @@ -42,8 +42,8 @@ type Tag struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -148,7 +148,7 @@ func (m *Tag) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -265,7 +265,7 @@ func (m *Tag) ContextValidate(ctx context.Context, formats strfmt.Registry) erro func (m *Tag) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/tenant.go b/vendor/github.com/smutel/go-netbox/netbox/models/tenant.go index 7804e953c..b9602c0c4 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/tenant.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/tenant.go @@ -48,8 +48,8 @@ type Tenant struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -69,7 +69,7 @@ type Tenant struct { // group Group *NestedTenantGroup `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -175,7 +175,7 @@ func (m *Tenant) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -399,7 +399,7 @@ func (m *Tenant) contextValidateClusterCount(ctx context.Context, formats strfmt func (m *Tenant) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/tenant_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/tenant_group.go index 3c6a75e73..b943528ab 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/tenant_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/tenant_group.go @@ -41,8 +41,8 @@ type TenantGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type TenantGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -140,7 +140,7 @@ func (m *TenantGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -323,7 +323,7 @@ func (m *TenantGroup) contextValidateDepth(ctx context.Context, formats strfmt.R func (m *TenantGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/token.go b/vendor/github.com/smutel/go-netbox/netbox/models/token.go index 4a9166909..0d7aae04d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/token.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/token.go @@ -51,7 +51,7 @@ type Token struct { // Format: date-time Expires *strfmt.DateTime `json:"expires,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n.go index 5c2646e37..ad7af98bb 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n.go @@ -38,8 +38,8 @@ type VLAN struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type VLAN struct { // group Group *NestedVLANGroup `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -164,7 +164,7 @@ func (m *VLAN) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -422,7 +422,7 @@ func (m *VLAN) ContextValidate(ctx context.Context, formats strfmt.Registry) err func (m *VLAN) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go index f2e75e4c8..37c9f7a8f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/v_l_a_n_group.go @@ -37,8 +37,8 @@ type VLANGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type VLANGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -60,6 +60,20 @@ type VLANGroup struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Maximum VLAN ID + // + // Highest permissible ID of a child VLAN + // Maximum: 4094 + // Minimum: 1 + MaxVid int64 `json:"max_vid,omitempty"` + + // Minimum VLAN ID + // + // Lowest permissible ID of a child VLAN + // Maximum: 4094 + // Minimum: 1 + MinVid int64 `json:"min_vid,omitempty"` + // Name // Required: true // Max Length: 100 @@ -112,6 +126,14 @@ func (m *VLANGroup) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateMaxVid(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMinVid(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -139,7 +161,7 @@ func (m *VLANGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -170,6 +192,38 @@ func (m *VLANGroup) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *VLANGroup) validateMaxVid(formats strfmt.Registry) error { + if swag.IsZero(m.MaxVid) { // not required + return nil + } + + if err := validate.MinimumInt("max_vid", "body", m.MaxVid, 1, false); err != nil { + return err + } + + if err := validate.MaximumInt("max_vid", "body", m.MaxVid, 4094, false); err != nil { + return err + } + + return nil +} + +func (m *VLANGroup) validateMinVid(formats strfmt.Registry) error { + if swag.IsZero(m.MinVid) { // not required + return nil + } + + if err := validate.MinimumInt("min_vid", "body", m.MinVid, 1, false); err != nil { + return err + } + + if err := validate.MaximumInt("min_vid", "body", m.MinVid, 4094, false); err != nil { + return err + } + + return nil +} + func (m *VLANGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -286,7 +340,7 @@ func (m *VLANGroup) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *VLANGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/v_r_f.go b/vendor/github.com/smutel/go-netbox/netbox/models/v_r_f.go index 581b5d6a1..073bc879c 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/v_r_f.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/v_r_f.go @@ -37,8 +37,8 @@ type VRF struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -60,7 +60,7 @@ type VRF struct { // Unique: true ExportTargets []*NestedRouteTarget `json:"export_targets"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -160,7 +160,7 @@ func (m *VRF) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -393,7 +393,7 @@ func (m *VRF) ContextValidate(ctx context.Context, formats strfmt.Registry) erro func (m *VRF) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/virtual_chassis.go b/vendor/github.com/smutel/go-netbox/netbox/models/virtual_chassis.go index c5ff5b848..c361e3535 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/virtual_chassis.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/virtual_chassis.go @@ -37,8 +37,8 @@ type VirtualChassis struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type VirtualChassis struct { // Max Length: 30 Domain string `json:"domain,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,7 +125,7 @@ func (m *VirtualChassis) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -274,7 +274,7 @@ func (m *VirtualChassis) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *VirtualChassis) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/virtual_machine_with_config_context.go b/vendor/github.com/smutel/go-netbox/netbox/models/virtual_machine_with_config_context.go index 4a9d94f77..5149582f3 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/virtual_machine_with_config_context.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/virtual_machine_with_config_context.go @@ -49,8 +49,8 @@ type VirtualMachineWithConfigContext struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -64,7 +64,7 @@ type VirtualMachineWithConfigContext struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -227,7 +227,7 @@ func (m *VirtualMachineWithConfigContext) validateCreated(formats strfmt.Registr return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -585,7 +585,7 @@ func (m *VirtualMachineWithConfigContext) contextValidateCluster(ctx context.Con func (m *VirtualMachineWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/vm_interface.go b/vendor/github.com/smutel/go-netbox/netbox/models/vm_interface.go index 80d6e4dc8..466e9d977 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/vm_interface.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/vm_interface.go @@ -49,8 +49,8 @@ type VMInterface struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -66,7 +66,7 @@ type VMInterface struct { // Enabled Enabled bool `json:"enabled,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -113,6 +113,9 @@ type VMInterface struct { // virtual machine // Required: true VirtualMachine *NestedVirtualMachine `json:"virtual_machine"` + + // vrf + Vrf *NestedVRF `json:"vrf,omitempty"` } // Validate validates this VM interface @@ -171,6 +174,10 @@ func (m *VMInterface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateVrf(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -201,7 +208,7 @@ func (m *VMInterface) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -410,6 +417,25 @@ func (m *VMInterface) validateVirtualMachine(formats strfmt.Registry) error { return nil } +func (m *VMInterface) validateVrf(formats strfmt.Registry) error { + if swag.IsZero(m.Vrf) { // not required + return nil + } + + if m.Vrf != nil { + if err := m.Vrf.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("vrf") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("vrf") + } + return err + } + } + + return nil +} + // ContextValidate validate this VM interface based on the context it is used func (m *VMInterface) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error @@ -470,6 +496,10 @@ func (m *VMInterface) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateVrf(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -512,7 +542,7 @@ func (m *VMInterface) contextValidateCountIpaddresses(ctx context.Context, forma func (m *VMInterface) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -659,6 +689,22 @@ func (m *VMInterface) contextValidateVirtualMachine(ctx context.Context, formats return nil } +func (m *VMInterface) contextValidateVrf(ctx context.Context, formats strfmt.Registry) error { + + if m.Vrf != nil { + if err := m.Vrf.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("vrf") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("vrf") + } + return err + } + } + + return nil +} + // MarshalBinary interface implementation func (m *VMInterface) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/webhook.go b/vendor/github.com/smutel/go-netbox/netbox/models/webhook.go index 020c158d6..1474c1467 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/webhook.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/webhook.go @@ -63,8 +63,8 @@ type Webhook struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Display // Read Only: true @@ -84,7 +84,7 @@ type Webhook struct { // Enum: [GET POST PUT PATCH DELETE] HTTPMethod string `json:"http_method,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -101,7 +101,7 @@ type Webhook struct { // URL // - // A POST will be sent to this URL when the webhook is called. + // This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. // Required: true // Max Length: 500 // Min Length: 1 @@ -219,7 +219,7 @@ func (m *Webhook) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -395,7 +395,7 @@ func (m *Webhook) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Webhook) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n.go index 4bc29b5a1..081228e45 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n.go @@ -48,8 +48,8 @@ type WirelessLAN struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -65,7 +65,7 @@ type WirelessLAN struct { // group Group *NestedWirelessLANGroup `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -201,7 +201,7 @@ func (m *WirelessLAN) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -409,7 +409,7 @@ func (m *WirelessLAN) contextValidateAuthType(ctx context.Context, formats strfm func (m *WirelessLAN) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n_group.go index b5b20f363..976f1f6db 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/wireless_l_a_n_group.go @@ -41,8 +41,8 @@ type WirelessLANGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WirelessLANGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -140,7 +140,7 @@ func (m *WirelessLANGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -323,7 +323,7 @@ func (m *WirelessLANGroup) contextValidateDepth(ctx context.Context, formats str func (m *WirelessLANGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/wireless_link.go b/vendor/github.com/smutel/go-netbox/netbox/models/wireless_link.go index 1c865080a..c56fb3ba6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/wireless_link.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/wireless_link.go @@ -48,8 +48,8 @@ type WirelessLink struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -62,7 +62,7 @@ type WirelessLink struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -208,7 +208,7 @@ func (m *WirelessLink) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -436,7 +436,7 @@ func (m *WirelessLink) contextValidateAuthType(ctx context.Context, formats strf func (m *WirelessLink) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_a_s_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_a_s_n.go index 95364a8be..9cabf31c0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_a_s_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_a_s_n.go @@ -45,8 +45,8 @@ type WritableASN struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type WritableASN struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -68,6 +68,10 @@ type WritableASN struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Provider count + // Read Only: true + ProviderCount int64 `json:"provider_count,omitempty"` + // RIR // Required: true Rir *int64 `json:"rir"` @@ -148,7 +152,7 @@ func (m *WritableASN) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -246,6 +250,10 @@ func (m *WritableASN) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := m.contextValidateProviderCount(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateSiteCount(ctx, formats); err != nil { res = append(res, err) } @@ -266,7 +274,7 @@ func (m *WritableASN) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *WritableASN) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } @@ -300,6 +308,15 @@ func (m *WritableASN) contextValidateLastUpdated(ctx context.Context, formats st return nil } +func (m *WritableASN) contextValidateProviderCount(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "provider_count", "body", int64(m.ProviderCount)); err != nil { + return err + } + + return nil +} + func (m *WritableASN) contextValidateSiteCount(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "site_count", "body", int64(m.SiteCount)); err != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_aggregate.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_aggregate.go index e6f74f734..deead8a60 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_aggregate.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_aggregate.go @@ -37,8 +37,8 @@ type WritableAggregate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type WritableAggregate struct { // Read Only: true Family string `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -135,7 +135,7 @@ func (m *WritableAggregate) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -274,7 +274,7 @@ func (m *WritableAggregate) ContextValidate(ctx context.Context, formats strfmt. func (m *WritableAggregate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_cable.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_cable.go index c4daf5456..8025cd0e6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_cable.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_cable.go @@ -43,8 +43,8 @@ type WritableCable struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -53,7 +53,7 @@ type WritableCable struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -204,7 +204,7 @@ func (m *WritableCable) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -573,7 +573,7 @@ func (m *WritableCable) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *WritableCable) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit.go index 3ea8b28df..81c991a8d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit.go @@ -52,8 +52,8 @@ type WritableCircuit struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -66,7 +66,7 @@ type WritableCircuit struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -203,7 +203,7 @@ func (m *WritableCircuit) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -400,7 +400,7 @@ func (m *WritableCircuit) ContextValidate(ctx context.Context, formats strfmt.Re func (m *WritableCircuit) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit_termination.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit_termination.go index 3a955e4c9..4ccb69411 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit_termination.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_circuit_termination.go @@ -48,8 +48,8 @@ type WritableCircuitTermination struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -59,7 +59,7 @@ type WritableCircuitTermination struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -209,7 +209,7 @@ func (m *WritableCircuitTermination) validateCreated(formats strfmt.Registry) er return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -424,7 +424,7 @@ func (m *WritableCircuitTermination) contextValidateCable(ctx context.Context, f func (m *WritableCircuitTermination) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_cluster.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_cluster.go index 2c28d0b21..6133e20c1 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_cluster.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_cluster.go @@ -40,8 +40,8 @@ type WritableCluster struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -58,7 +58,7 @@ type WritableCluster struct { // Required: true Group *int64 `json:"group"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -144,7 +144,7 @@ func (m *WritableCluster) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -289,7 +289,7 @@ func (m *WritableCluster) ContextValidate(ctx context.Context, formats strfmt.Re func (m *WritableCluster) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_config_context.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_config_context.go index 8bbb901da..14a54976e 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_config_context.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_config_context.go @@ -39,14 +39,18 @@ type WritableConfigContext struct { // Unique: true ClusterGroups []int64 `json:"cluster_groups"` + // cluster types + // Unique: true + ClusterTypes []int64 `json:"cluster_types"` + // clusters // Unique: true Clusters []int64 `json:"clusters"` // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Data // Required: true @@ -64,7 +68,7 @@ type WritableConfigContext struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -133,6 +137,10 @@ func (m *WritableConfigContext) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateClusterTypes(formats); err != nil { + res = append(res, err) + } + if err := m.validateClusters(formats); err != nil { res = append(res, err) } @@ -219,6 +227,18 @@ func (m *WritableConfigContext) validateClusterGroups(formats strfmt.Registry) e return nil } +func (m *WritableConfigContext) validateClusterTypes(formats strfmt.Registry) error { + if swag.IsZero(m.ClusterTypes) { // not required + return nil + } + + if err := validate.UniqueItems("cluster_types", "body", m.ClusterTypes); err != nil { + return err + } + + return nil +} + func (m *WritableConfigContext) validateClusters(formats strfmt.Registry) error { if swag.IsZero(m.Clusters) { // not required return nil @@ -236,7 +256,7 @@ func (m *WritableConfigContext) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -469,7 +489,7 @@ func (m *WritableConfigContext) ContextValidate(ctx context.Context, formats str func (m *WritableConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port.go index c2a4b800e..6e0174ca4 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port.go @@ -61,8 +61,8 @@ type WritableConsolePort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -79,7 +79,7 @@ type WritableConsolePort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -111,6 +111,9 @@ type WritableConsolePort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -216,7 +219,7 @@ func (m *WritableConsolePort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -549,7 +552,7 @@ func (m *WritableConsolePort) contextValidateConnectedEndpointType(ctx context.C func (m *WritableConsolePort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port_template.go index fcaa49028..9ffaf7507 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_port_template.go @@ -37,8 +37,8 @@ type WritableConsolePortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -52,7 +52,7 @@ type WritableConsolePortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -67,7 +67,15 @@ type WritableConsolePortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -107,6 +115,10 @@ func (m *WritableConsolePortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -130,7 +142,7 @@ func (m *WritableConsolePortTemplate) validateCreated(formats strfmt.Registry) e return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -182,6 +194,15 @@ func (m *WritableConsolePortTemplate) validateLastUpdated(formats strfmt.Registr return nil } +func (m *WritableConsolePortTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritableConsolePortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -324,7 +345,7 @@ func (m *WritableConsolePortTemplate) ContextValidate(ctx context.Context, forma func (m *WritableConsolePortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port.go index 56965230c..0ab32e591 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port.go @@ -61,8 +61,8 @@ type WritableConsoleServerPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -79,7 +79,7 @@ type WritableConsoleServerPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -111,6 +111,9 @@ type WritableConsoleServerPort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -216,7 +219,7 @@ func (m *WritableConsoleServerPort) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -549,7 +552,7 @@ func (m *WritableConsoleServerPort) contextValidateConnectedEndpointType(ctx con func (m *WritableConsoleServerPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port_template.go index f319c0fd0..035bde803 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_console_server_port_template.go @@ -37,8 +37,8 @@ type WritableConsoleServerPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -52,7 +52,7 @@ type WritableConsoleServerPortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -67,7 +67,15 @@ type WritableConsoleServerPortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -107,6 +115,10 @@ func (m *WritableConsoleServerPortTemplate) Validate(formats strfmt.Registry) er res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -130,7 +142,7 @@ func (m *WritableConsoleServerPortTemplate) validateCreated(formats strfmt.Regis return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -182,6 +194,15 @@ func (m *WritableConsoleServerPortTemplate) validateLastUpdated(formats strfmt.R return nil } +func (m *WritableConsoleServerPortTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritableConsoleServerPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -324,7 +345,7 @@ func (m *WritableConsoleServerPortTemplate) ContextValidate(ctx context.Context, func (m *WritableConsoleServerPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact.go index 92d9654d0..6ade7e6cc 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact.go @@ -44,8 +44,8 @@ type WritableContact struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -63,7 +63,7 @@ type WritableContact struct { // Required: true Group *int64 `json:"group"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -72,6 +72,11 @@ type WritableContact struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Link + // Max Length: 200 + // Format: uri + Link strfmt.URI `json:"link,omitempty"` + // Name // Required: true // Max Length: 100 @@ -119,6 +124,10 @@ func (m *WritableContact) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateLink(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -162,7 +171,7 @@ func (m *WritableContact) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -206,6 +215,22 @@ func (m *WritableContact) validateLastUpdated(formats strfmt.Registry) error { return nil } +func (m *WritableContact) validateLink(formats strfmt.Registry) error { + if swag.IsZero(m.Link) { // not required + return nil + } + + if err := validate.MaxLength("link", "body", m.Link.String(), 200); err != nil { + return err + } + + if err := validate.FormatOf("link", "body", "uri", m.Link.String(), formats); err != nil { + return err + } + + return nil +} + func (m *WritableContact) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -321,7 +346,7 @@ func (m *WritableContact) ContextValidate(ctx context.Context, formats strfmt.Re func (m *WritableContact) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_assignment.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_assignment.go index a1c7f8800..be21b4f84 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_assignment.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_assignment.go @@ -45,14 +45,14 @@ type WritableContactAssignment struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -151,7 +151,7 @@ func (m *WritableContactAssignment) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -293,7 +293,7 @@ func (m *WritableContactAssignment) ContextValidate(ctx context.Context, formats func (m *WritableContactAssignment) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_group.go index b8748f111..3aea72329 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_contact_group.go @@ -45,8 +45,8 @@ type WritableContactGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type WritableContactGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -141,7 +141,7 @@ func (m *WritableContactGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -319,7 +319,7 @@ func (m *WritableContactGroup) contextValidateContactCount(ctx context.Context, func (m *WritableContactGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_custom_field.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_custom_field.go index b7f1c5d80..eaa536acc 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_custom_field.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_custom_field.go @@ -46,8 +46,12 @@ type WritableCustomField struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` + + // Data type + // Read Only: true + DataType string `json:"data_type,omitempty"` // Default // @@ -68,7 +72,7 @@ type WritableCustomField struct { // Enum: [disabled loose exact] FilterLogic string `json:"filter_logic,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -92,13 +96,18 @@ type WritableCustomField struct { // Pattern: ^[a-z0-9_]+$ Name *string `json:"name"` + // Object type + ObjectType string `json:"object_type,omitempty"` + // Required // // If true, this field is required when creating new objects or editing an existing object. Required bool `json:"required,omitempty"` // Type - // Enum: [text longtext integer boolean date url json select multiselect] + // + // The type of data this custom field holds + // Enum: [text longtext integer boolean date url json select multiselect object multiobject] Type string `json:"type,omitempty"` // Url @@ -238,7 +247,7 @@ func (m *WritableCustomField) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -351,7 +360,7 @@ var writableCustomFieldTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["text","longtext","integer","boolean","date","url","json","select","multiselect"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["text","longtext","integer","boolean","date","url","json","select","multiselect","object","multiobject"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -387,6 +396,12 @@ const ( // WritableCustomFieldTypeMultiselect captures enum value "multiselect" WritableCustomFieldTypeMultiselect string = "multiselect" + + // WritableCustomFieldTypeObject captures enum value "object" + WritableCustomFieldTypeObject string = "object" + + // WritableCustomFieldTypeMultiobject captures enum value "multiobject" + WritableCustomFieldTypeMultiobject string = "multiobject" ) // prop value enum @@ -490,6 +505,10 @@ func (m *WritableCustomField) ContextValidate(ctx context.Context, formats strfm res = append(res, err) } + if err := m.contextValidateDataType(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateDisplay(ctx, formats); err != nil { res = append(res, err) } @@ -514,7 +533,16 @@ func (m *WritableCustomField) ContextValidate(ctx context.Context, formats strfm func (m *WritableCustomField) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { + return err + } + + return nil +} + +func (m *WritableCustomField) contextValidateDataType(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "data_type", "body", string(m.DataType)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay.go index fc789416c..1aba256c2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay.go @@ -37,8 +37,8 @@ type WritableDeviceBay struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritableDeviceBay struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -135,7 +135,7 @@ func (m *WritableDeviceBay) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -278,7 +278,7 @@ func (m *WritableDeviceBay) ContextValidate(ctx context.Context, formats strfmt. func (m *WritableDeviceBay) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay_template.go index 9455810b0..043004503 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_bay_template.go @@ -36,8 +36,8 @@ type WritableDeviceBayTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -51,7 +51,7 @@ type WritableDeviceBayTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -67,6 +67,10 @@ type WritableDeviceBayTemplate struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -121,7 +125,7 @@ func (m *WritableDeviceBayTemplate) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -234,7 +238,7 @@ func (m *WritableDeviceBayTemplate) ContextValidate(ctx context.Context, formats func (m *WritableDeviceBayTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_type.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_type.go index be5e5fc90..1f19cf509 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_type.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_type.go @@ -37,7 +37,7 @@ import ( type WritableDeviceType struct { // Airflow - // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive] + // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive mixed] Airflow string `json:"airflow,omitempty"` // Comments @@ -45,8 +45,8 @@ type WritableDeviceType struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -64,7 +64,7 @@ type WritableDeviceType struct { // Format: uri FrontImage strfmt.URI `json:"front_image,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -192,7 +192,7 @@ var writableDeviceTypeTypeAirflowPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive","mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -219,6 +219,9 @@ const ( // WritableDeviceTypeAirflowPassive captures enum value "passive" WritableDeviceTypeAirflowPassive string = "passive" + + // WritableDeviceTypeAirflowMixed captures enum value "mixed" + WritableDeviceTypeAirflowMixed string = "mixed" ) // prop value enum @@ -247,7 +250,7 @@ func (m *WritableDeviceType) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -493,7 +496,7 @@ func (m *WritableDeviceType) ContextValidate(ctx context.Context, formats strfmt func (m *WritableDeviceType) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_with_config_context.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_with_config_context.go index 44c6b1cd6..72b6ed715 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_with_config_context.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_device_with_config_context.go @@ -37,7 +37,7 @@ import ( type WritableDeviceWithConfigContext struct { // Airflow - // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive] + // Enum: [front-to-rear rear-to-front left-to-right right-to-left side-to-rear passive mixed] Airflow string `json:"airflow,omitempty"` // Asset tag @@ -58,8 +58,8 @@ type WritableDeviceWithConfigContext struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -81,7 +81,7 @@ type WritableDeviceWithConfigContext struct { // Enum: [front rear] Face *string `json:"face"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -258,7 +258,7 @@ var writableDeviceWithConfigContextTypeAirflowPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["front-to-rear","rear-to-front","left-to-right","right-to-left","side-to-rear","passive","mixed"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -285,6 +285,9 @@ const ( // WritableDeviceWithConfigContextAirflowPassive captures enum value "passive" WritableDeviceWithConfigContextAirflowPassive string = "passive" + + // WritableDeviceWithConfigContextAirflowMixed captures enum value "mixed" + WritableDeviceWithConfigContextAirflowMixed string = "mixed" ) // prop value enum @@ -325,7 +328,7 @@ func (m *WritableDeviceWithConfigContext) validateCreated(formats strfmt.Registr return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -668,7 +671,7 @@ func (m *WritableDeviceWithConfigContext) ContextValidate(ctx context.Context, f func (m *WritableDeviceWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_f_h_r_p_group_assignment.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_f_h_r_p_group_assignment.go index aac59309e..6b9f2e142 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_f_h_r_p_group_assignment.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_f_h_r_p_group_assignment.go @@ -36,8 +36,8 @@ type WritableFHRPGroupAssignment struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Display // Read Only: true @@ -47,7 +47,7 @@ type WritableFHRPGroupAssignment struct { // Required: true Group *int64 `json:"group"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,7 +125,7 @@ func (m *WritableFHRPGroupAssignment) validateCreated(formats strfmt.Registry) e return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -244,7 +244,7 @@ func (m *WritableFHRPGroupAssignment) ContextValidate(ctx context.Context, forma func (m *WritableFHRPGroupAssignment) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port.go index e7c7190cc..65a4cd1c5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port.go @@ -50,8 +50,8 @@ type WritableFrontPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -68,7 +68,7 @@ type WritableFrontPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -100,6 +100,9 @@ type WritableFrontPort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -120,7 +123,7 @@ type WritableFrontPort struct { // Type // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Type *string `json:"type"` // Url @@ -231,7 +234,7 @@ func (m *WritableFrontPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -355,7 +358,7 @@ var writableFrontPortTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -490,6 +493,9 @@ const ( // WritableFrontPortTypeSplice captures enum value "splice" WritableFrontPortTypeSplice string = "splice" + + // WritableFrontPortTypeOther captures enum value "other" + WritableFrontPortTypeOther string = "other" ) // prop value enum @@ -603,7 +609,7 @@ func (m *WritableFrontPort) contextValidateCable(ctx context.Context, formats st func (m *WritableFrontPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port_template.go index dc286087b..1846eca45 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_front_port_template.go @@ -42,8 +42,8 @@ type WritableFrontPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -57,7 +57,7 @@ type WritableFrontPortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -72,7 +72,15 @@ type WritableFrontPortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -89,7 +97,7 @@ type WritableFrontPortTemplate struct { // Type // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Type *string `json:"type"` // Url @@ -126,6 +134,10 @@ func (m *WritableFrontPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -173,7 +185,7 @@ func (m *WritableFrontPortTemplate) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -225,6 +237,15 @@ func (m *WritableFrontPortTemplate) validateLastUpdated(formats strfmt.Registry) return nil } +func (m *WritableFrontPortTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritableFrontPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -271,7 +292,7 @@ var writableFrontPortTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -406,6 +427,9 @@ const ( // WritableFrontPortTemplateTypeSplice captures enum value "splice" WritableFrontPortTemplateTypeSplice string = "splice" + + // WritableFrontPortTemplateTypeOther captures enum value "other" + WritableFrontPortTemplateTypeOther string = "other" ) // prop value enum @@ -474,7 +498,7 @@ func (m *WritableFrontPortTemplate) ContextValidate(ctx context.Context, formats func (m *WritableFrontPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface.go index fce26539d..d254ab864 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface.go @@ -72,8 +72,8 @@ type WritableInterface struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -90,10 +90,14 @@ type WritableInterface struct { // Read Only: true Display string `json:"display,omitempty"` + // Duplex + // Enum: [half full auto] + Duplex *string `json:"duplex,omitempty"` + // Enabled Enabled bool `json:"enabled,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -140,6 +144,9 @@ type WritableInterface struct { // Enum: [access tagged tagged-all] Mode string `json:"mode,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // MTU // Maximum: 65536 // Minimum: 1 @@ -168,6 +175,11 @@ type WritableInterface struct { // Enum: [ap station] RfRole string `json:"rf_role,omitempty"` + // Speed (Kbps) + // Maximum: 2.147483647e+09 + // Minimum: 0 + Speed *int64 `json:"speed,omitempty"` + // tagged vlans // Unique: true TaggedVlans []int64 `json:"tagged_vlans"` @@ -182,7 +194,7 @@ type WritableInterface struct { // Type // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Untagged VLAN @@ -193,6 +205,9 @@ type WritableInterface struct { // Format: uri URL strfmt.URI `json:"url,omitempty"` + // VRF + Vrf *int64 `json:"vrf,omitempty"` + // wireless lans // Unique: true WirelessLans []int64 `json:"wireless_lans"` @@ -226,6 +241,10 @@ func (m *WritableInterface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDuplex(formats); err != nil { + res = append(res, err) + } + if err := m.validateLabel(formats); err != nil { res = append(res, err) } @@ -254,6 +273,10 @@ func (m *WritableInterface) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateSpeed(formats); err != nil { + res = append(res, err) + } + if err := m.validateTaggedVlans(formats); err != nil { res = append(res, err) } @@ -308,7 +331,7 @@ func (m *WritableInterface) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -336,6 +359,51 @@ func (m *WritableInterface) validateDevice(formats strfmt.Registry) error { return nil } +var writableInterfaceTypeDuplexPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["half","full","auto"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + writableInterfaceTypeDuplexPropEnum = append(writableInterfaceTypeDuplexPropEnum, v) + } +} + +const ( + + // WritableInterfaceDuplexHalf captures enum value "half" + WritableInterfaceDuplexHalf string = "half" + + // WritableInterfaceDuplexFull captures enum value "full" + WritableInterfaceDuplexFull string = "full" + + // WritableInterfaceDuplexAuto captures enum value "auto" + WritableInterfaceDuplexAuto string = "auto" +) + +// prop value enum +func (m *WritableInterface) validateDuplexEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, writableInterfaceTypeDuplexPropEnum, true); err != nil { + return err + } + return nil +} + +func (m *WritableInterface) validateDuplex(formats strfmt.Registry) error { + if swag.IsZero(m.Duplex) { // not required + return nil + } + + // value enum + if err := m.validateDuplexEnum("duplex", "body", *m.Duplex); err != nil { + return err + } + + return nil +} + func (m *WritableInterface) validateLabel(formats strfmt.Registry) error { if swag.IsZero(m.Label) { // not required return nil @@ -1107,6 +1175,22 @@ func (m *WritableInterface) validateRfRole(formats strfmt.Registry) error { return nil } +func (m *WritableInterface) validateSpeed(formats strfmt.Registry) error { + if swag.IsZero(m.Speed) { // not required + return nil + } + + if err := validate.MinimumInt("speed", "body", *m.Speed, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("speed", "body", *m.Speed, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + func (m *WritableInterface) validateTaggedVlans(formats strfmt.Registry) error { if swag.IsZero(m.TaggedVlans) { // not required return nil @@ -1165,7 +1249,7 @@ var writableInterfaceTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1376,6 +1460,27 @@ const ( // WritableInterfaceTypeXdsl captures enum value "xdsl" WritableInterfaceTypeXdsl string = "xdsl" + // WritableInterfaceTypeDocsis captures enum value "docsis" + WritableInterfaceTypeDocsis string = "docsis" + + // WritableInterfaceTypeGpon captures enum value "gpon" + WritableInterfaceTypeGpon string = "gpon" + + // WritableInterfaceTypeXgDashPon captures enum value "xg-pon" + WritableInterfaceTypeXgDashPon string = "xg-pon" + + // WritableInterfaceTypeXgsDashPon captures enum value "xgs-pon" + WritableInterfaceTypeXgsDashPon string = "xgs-pon" + + // WritableInterfaceTypeNgDashPon2 captures enum value "ng-pon2" + WritableInterfaceTypeNgDashPon2 string = "ng-pon2" + + // WritableInterfaceTypeEpon captures enum value "epon" + WritableInterfaceTypeEpon string = "epon" + + // WritableInterfaceTypeNr10gDashEpon captures enum value "10g-epon" + WritableInterfaceTypeNr10gDashEpon string = "10g-epon" + // WritableInterfaceTypeCiscoDashStackwise captures enum value "cisco-stackwise" WritableInterfaceTypeCiscoDashStackwise string = "cisco-stackwise" @@ -1603,7 +1708,7 @@ func (m *WritableInterface) contextValidateCountIpaddresses(ctx context.Context, func (m *WritableInterface) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface_template.go index e26e741ce..a09e8c3e2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_interface_template.go @@ -37,8 +37,8 @@ type WritableInterfaceTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -52,7 +52,7 @@ type WritableInterfaceTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -70,7 +70,15 @@ type WritableInterfaceTemplate struct { // Management only MgmtOnly bool `json:"mgmt_only,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -78,7 +86,7 @@ type WritableInterfaceTemplate struct { // Type // Required: true - // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual bridge lag 100base-tx 1000base-t 2.5gbase-t 5gbase-t 10gbase-t 10gbase-cx4 1000base-x-gbic 1000base-x-sfp 10gbase-x-sfpp 10gbase-x-xfp 10gbase-x-xenpak 10gbase-x-x2 25gbase-x-sfp28 50gbase-x-sfp56 40gbase-x-qsfpp 50gbase-x-sfp28 100gbase-x-cfp 100gbase-x-cfp2 200gbase-x-cfp2 100gbase-x-cfp4 100gbase-x-cpak 100gbase-x-qsfp28 200gbase-x-qsfp56 400gbase-x-qsfpdd 400gbase-x-osfp ieee802.11a ieee802.11g ieee802.11n ieee802.11ac ieee802.11ad ieee802.11ax ieee802.15.1 gsm cdma lte sonet-oc3 sonet-oc12 sonet-oc48 sonet-oc192 sonet-oc768 sonet-oc1920 sonet-oc3840 1gfc-sfp 2gfc-sfp 4gfc-sfp 8gfc-sfpp 16gfc-sfpp 32gfc-sfp28 64gfc-qsfpp 128gfc-qsfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 xdsl docsis gpon xg-pon xgs-pon ng-pon2 epon 10g-epon cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus cisco-stackwise-80 cisco-stackwise-160 cisco-stackwise-320 cisco-stackwise-480 juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Url @@ -111,6 +119,10 @@ func (m *WritableInterfaceTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -134,7 +146,7 @@ func (m *WritableInterfaceTemplate) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -186,6 +198,15 @@ func (m *WritableInterfaceTemplate) validateLastUpdated(formats strfmt.Registry) return nil } +func (m *WritableInterfaceTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritableInterfaceTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -207,7 +228,7 @@ var writableInterfaceTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","bridge","lag","100base-tx","1000base-t","2.5gbase-t","5gbase-t","10gbase-t","10gbase-cx4","1000base-x-gbic","1000base-x-sfp","10gbase-x-sfpp","10gbase-x-xfp","10gbase-x-xenpak","10gbase-x-x2","25gbase-x-sfp28","50gbase-x-sfp56","40gbase-x-qsfpp","50gbase-x-sfp28","100gbase-x-cfp","100gbase-x-cfp2","200gbase-x-cfp2","100gbase-x-cfp4","100gbase-x-cpak","100gbase-x-qsfp28","200gbase-x-qsfp56","400gbase-x-qsfpdd","400gbase-x-osfp","ieee802.11a","ieee802.11g","ieee802.11n","ieee802.11ac","ieee802.11ad","ieee802.11ax","ieee802.15.1","gsm","cdma","lte","sonet-oc3","sonet-oc12","sonet-oc48","sonet-oc192","sonet-oc768","sonet-oc1920","sonet-oc3840","1gfc-sfp","2gfc-sfp","4gfc-sfp","8gfc-sfpp","16gfc-sfpp","32gfc-sfp28","64gfc-qsfpp","128gfc-qsfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","xdsl","docsis","gpon","xg-pon","xgs-pon","ng-pon2","epon","10g-epon","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","cisco-stackwise-80","cisco-stackwise-160","cisco-stackwise-320","cisco-stackwise-480","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -418,6 +439,27 @@ const ( // WritableInterfaceTemplateTypeXdsl captures enum value "xdsl" WritableInterfaceTemplateTypeXdsl string = "xdsl" + // WritableInterfaceTemplateTypeDocsis captures enum value "docsis" + WritableInterfaceTemplateTypeDocsis string = "docsis" + + // WritableInterfaceTemplateTypeGpon captures enum value "gpon" + WritableInterfaceTemplateTypeGpon string = "gpon" + + // WritableInterfaceTemplateTypeXgDashPon captures enum value "xg-pon" + WritableInterfaceTemplateTypeXgDashPon string = "xg-pon" + + // WritableInterfaceTemplateTypeXgsDashPon captures enum value "xgs-pon" + WritableInterfaceTemplateTypeXgsDashPon string = "xgs-pon" + + // WritableInterfaceTemplateTypeNgDashPon2 captures enum value "ng-pon2" + WritableInterfaceTemplateTypeNgDashPon2 string = "ng-pon2" + + // WritableInterfaceTemplateTypeEpon captures enum value "epon" + WritableInterfaceTemplateTypeEpon string = "epon" + + // WritableInterfaceTemplateTypeNr10gDashEpon captures enum value "10g-epon" + WritableInterfaceTemplateTypeNr10gDashEpon string = "10g-epon" + // WritableInterfaceTemplateTypeCiscoDashStackwise captures enum value "cisco-stackwise" WritableInterfaceTemplateTypeCiscoDashStackwise string = "cisco-stackwise" @@ -527,7 +569,7 @@ func (m *WritableInterfaceTemplate) ContextValidate(ctx context.Context, formats func (m *WritableInterfaceTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_inventory_item.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_inventory_item.go index fa7647b5e..649076200 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_inventory_item.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_inventory_item.go @@ -45,10 +45,22 @@ type WritableInventoryItem struct { // Max Length: 50 AssetTag *string `json:"asset_tag,omitempty"` + // Component + // Read Only: true + Component map[string]*string `json:"component,omitempty"` + + // Component id + // Maximum: 2.147483647e+09 + // Minimum: 0 + ComponentID *int64 `json:"component_id,omitempty"` + + // Component type + ComponentType *string `json:"component_type,omitempty"` + // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -70,7 +82,7 @@ type WritableInventoryItem struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -103,6 +115,9 @@ type WritableInventoryItem struct { // Max Length: 50 PartID string `json:"part_id,omitempty"` + // Role + Role *int64 `json:"role,omitempty"` + // Serial number // Max Length: 50 Serial string `json:"serial,omitempty"` @@ -124,6 +139,10 @@ func (m *WritableInventoryItem) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateComponentID(formats); err != nil { + res = append(res, err) + } + if err := m.validateCreated(formats); err != nil { res = append(res, err) } @@ -182,12 +201,28 @@ func (m *WritableInventoryItem) validateAssetTag(formats strfmt.Registry) error return nil } +func (m *WritableInventoryItem) validateComponentID(formats strfmt.Registry) error { + if swag.IsZero(m.ComponentID) { // not required + return nil + } + + if err := validate.MinimumInt("component_id", "body", *m.ComponentID, 0, false); err != nil { + return err + } + + if err := validate.MaximumInt("component_id", "body", *m.ComponentID, 2.147483647e+09, false); err != nil { + return err + } + + return nil +} + func (m *WritableInventoryItem) validateCreated(formats strfmt.Registry) error { if swag.IsZero(m.Created) { // not required return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -326,6 +361,10 @@ func (m *WritableInventoryItem) ContextValidate(ctx context.Context, formats str res = append(res, err) } + if err := m.contextValidateComponent(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateCreated(ctx, formats); err != nil { res = append(res, err) } @@ -365,9 +404,14 @@ func (m *WritableInventoryItem) contextValidateDepth(ctx context.Context, format return nil } +func (m *WritableInventoryItem) contextValidateComponent(ctx context.Context, formats strfmt.Registry) error { + + return nil +} + func (m *WritableInventoryItem) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_address.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_address.go index 466ca16ed..806e8349e 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_address.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_address.go @@ -56,8 +56,8 @@ type WritableIPAddress struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -81,7 +81,7 @@ type WritableIPAddress struct { // Read Only: true Family string `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -206,7 +206,7 @@ func (m *WritableIPAddress) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -455,7 +455,7 @@ func (m *WritableIPAddress) contextValidateAssignedObject(ctx context.Context, f func (m *WritableIPAddress) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_range.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_range.go index 7759d5e23..617e83ab0 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_range.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_ip_range.go @@ -42,8 +42,8 @@ type WritableIPRange struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -66,7 +66,7 @@ type WritableIPRange struct { // Read Only: true Family string `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -158,7 +158,7 @@ func (m *WritableIPRange) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -347,7 +347,7 @@ func (m *WritableIPRange) contextValidateChildren(ctx context.Context, formats s func (m *WritableIPRange) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_journal_entry.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_journal_entry.go index 75e9d5bac..6601dae84 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_journal_entry.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_journal_entry.go @@ -23,6 +23,7 @@ package models import ( "context" "encoding/json" + "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" @@ -62,11 +63,14 @@ type WritableJournalEntry struct { // Created by CreatedBy *int64 `json:"created_by,omitempty"` + // Custom fields + CustomFields interface{} `json:"custom_fields,omitempty"` + // Display // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -74,6 +78,14 @@ type WritableJournalEntry struct { // Enum: [info success warning danger] Kind string `json:"kind,omitempty"` + // Last updated + // Read Only: true + // Format: date-time + LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + + // tags + Tags []*NestedTag `json:"tags"` + // Url // Read Only: true // Format: uri @@ -104,6 +116,14 @@ func (m *WritableJournalEntry) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateLastUpdated(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTags(formats); err != nil { + res = append(res, err) + } + if err := m.validateURL(formats); err != nil { res = append(res, err) } @@ -213,6 +233,44 @@ func (m *WritableJournalEntry) validateKind(formats strfmt.Registry) error { return nil } +func (m *WritableJournalEntry) validateLastUpdated(formats strfmt.Registry) error { + if swag.IsZero(m.LastUpdated) { // not required + return nil + } + + if err := validate.FormatOf("last_updated", "body", "date-time", m.LastUpdated.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *WritableJournalEntry) validateTags(formats strfmt.Registry) error { + if swag.IsZero(m.Tags) { // not required + return nil + } + + for i := 0; i < len(m.Tags); i++ { + if swag.IsZero(m.Tags[i]) { // not required + continue + } + + if m.Tags[i] != nil { + if err := m.Tags[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *WritableJournalEntry) validateURL(formats strfmt.Registry) error { if swag.IsZero(m.URL) { // not required return nil @@ -245,6 +303,14 @@ func (m *WritableJournalEntry) ContextValidate(ctx context.Context, formats strf res = append(res, err) } + if err := m.contextValidateLastUpdated(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTags(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateURL(ctx, formats); err != nil { res = append(res, err) } @@ -287,6 +353,35 @@ func (m *WritableJournalEntry) contextValidateID(ctx context.Context, formats st return nil } +func (m *WritableJournalEntry) contextValidateLastUpdated(ctx context.Context, formats strfmt.Registry) error { + + if err := validate.ReadOnly(ctx, "last_updated", "body", strfmt.DateTime(m.LastUpdated)); err != nil { + return err + } + + return nil +} + +func (m *WritableJournalEntry) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Tags); i++ { + + if m.Tags[i] != nil { + if err := m.Tags[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tags" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tags" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *WritableJournalEntry) contextValidateURL(ctx context.Context, formats strfmt.Registry) error { if err := validate.ReadOnly(ctx, "url", "body", strfmt.URI(m.URL)); err != nil { diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_location.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_location.go index 4e2e51c55..40c08c236 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_location.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_location.go @@ -41,8 +41,8 @@ type WritableLocation struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -59,7 +59,7 @@ type WritableLocation struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -151,7 +151,7 @@ func (m *WritableLocation) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -324,7 +324,7 @@ func (m *WritableLocation) contextValidateDepth(ctx context.Context, formats str func (m *WritableLocation) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_object_permission.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_object_permission.go index 6a5faf9f3..98023aba5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_object_permission.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_object_permission.go @@ -59,7 +59,7 @@ type WritableObjectPermission struct { // Unique: true Groups []int64 `json:"groups"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_platform.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_platform.go index 80149fe94..414c40071 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_platform.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_platform.go @@ -37,8 +37,8 @@ type WritablePlatform struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritablePlatform struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -153,7 +153,7 @@ func (m *WritablePlatform) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -316,7 +316,7 @@ func (m *WritablePlatform) ContextValidate(ctx context.Context, formats strfmt.R func (m *WritablePlatform) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_feed.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_feed.go index 8fbbc695c..adcc35678 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_feed.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_feed.go @@ -69,8 +69,8 @@ type WritablePowerFeed struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -79,7 +79,7 @@ type WritablePowerFeed struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -261,7 +261,7 @@ func (m *WritablePowerFeed) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -662,7 +662,7 @@ func (m *WritablePowerFeed) contextValidateConnectedEndpointType(ctx context.Con func (m *WritablePowerFeed) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet.go index 187db30ac..3bff7b7d5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet.go @@ -61,8 +61,8 @@ type WritablePowerOutlet struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -85,7 +85,7 @@ type WritablePowerOutlet struct { // Enum: [A B C] FeedLeg string `json:"feed_leg,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -117,6 +117,9 @@ type WritablePowerOutlet struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -132,7 +135,7 @@ type WritablePowerOutlet struct { // Type // // Physical port type - // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid hardwired] + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid neutrik-powercon-20a neutrik-powercon-32a neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Type string `json:"type,omitempty"` // Url @@ -219,7 +222,7 @@ func (m *WritablePowerOutlet) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -363,7 +366,7 @@ var writablePowerOutletTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","neutrik-powercon-20a","neutrik-powercon-32a","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -622,8 +625,26 @@ const ( // WritablePowerOutletTypeSafDashdDashGrid captures enum value "saf-d-grid" WritablePowerOutletTypeSafDashdDashGrid string = "saf-d-grid" + // WritablePowerOutletTypeNeutrikDashPowerconDash20a captures enum value "neutrik-powercon-20a" + WritablePowerOutletTypeNeutrikDashPowerconDash20a string = "neutrik-powercon-20a" + + // WritablePowerOutletTypeNeutrikDashPowerconDash32a captures enum value "neutrik-powercon-32a" + WritablePowerOutletTypeNeutrikDashPowerconDash32a string = "neutrik-powercon-32a" + + // WritablePowerOutletTypeNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + WritablePowerOutletTypeNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // WritablePowerOutletTypeNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + WritablePowerOutletTypeNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // WritablePowerOutletTypeUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + WritablePowerOutletTypeUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // WritablePowerOutletTypeHardwired captures enum value "hardwired" WritablePowerOutletTypeHardwired string = "hardwired" + + // WritablePowerOutletTypeOther captures enum value "other" + WritablePowerOutletTypeOther string = "other" ) // prop value enum @@ -771,7 +792,7 @@ func (m *WritablePowerOutlet) contextValidateConnectedEndpointType(ctx context.C func (m *WritablePowerOutlet) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet_template.go index 25748123e..e49180cc8 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_outlet_template.go @@ -37,8 +37,8 @@ type WritablePowerOutletTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -58,7 +58,7 @@ type WritablePowerOutletTemplate struct { // Enum: [A B C] FeedLeg string `json:"feed_leg,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -73,7 +73,15 @@ type WritablePowerOutletTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -83,7 +91,7 @@ type WritablePowerOutletTemplate struct { PowerPort *int64 `json:"power_port,omitempty"` // Type - // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid hardwired] + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 iec-60320-c21 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15r nema-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-10-30r nema-10-50r nema-14-20r nema-14-30r nema-14-50r nema-14-60r nema-15-15r nema-15-20r nema-15-30r nema-15-50r nema-15-60r nema-l1-15r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-15r nema-l6-20r nema-l6-30r nema-l6-50r nema-l10-30r nema-l14-20r nema-l14-30r nema-l14-50r nema-l14-60r nema-l15-20r nema-l15-30r nema-l15-50r nema-l15-60r nema-l21-20r nema-l21-30r nema-l22-30r CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ita-e ita-f ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o ita-multistandard usb-a usb-micro-b usb-c dc-terminal hdot-cx saf-d-grid neutrik-powercon-20a neutrik-powercon-32a neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Type string `json:"type,omitempty"` // Url @@ -120,6 +128,10 @@ func (m *WritablePowerOutletTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -143,7 +155,7 @@ func (m *WritablePowerOutletTemplate) validateCreated(formats strfmt.Registry) e return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -240,6 +252,15 @@ func (m *WritablePowerOutletTemplate) validateLastUpdated(formats strfmt.Registr return nil } +func (m *WritablePowerOutletTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritablePowerOutletTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -261,7 +282,7 @@ var writablePowerOutletTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","iec-60320-c21","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15r","nema-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-10-30r","nema-10-50r","nema-14-20r","nema-14-30r","nema-14-50r","nema-14-60r","nema-15-15r","nema-15-20r","nema-15-30r","nema-15-50r","nema-15-60r","nema-l1-15r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-15r","nema-l6-20r","nema-l6-30r","nema-l6-50r","nema-l10-30r","nema-l14-20r","nema-l14-30r","nema-l14-50r","nema-l14-60r","nema-l15-20r","nema-l15-30r","nema-l15-50r","nema-l15-60r","nema-l21-20r","nema-l21-30r","nema-l22-30r","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ita-e","ita-f","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","ita-multistandard","usb-a","usb-micro-b","usb-c","dc-terminal","hdot-cx","saf-d-grid","neutrik-powercon-20a","neutrik-powercon-32a","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -520,8 +541,26 @@ const ( // WritablePowerOutletTemplateTypeSafDashdDashGrid captures enum value "saf-d-grid" WritablePowerOutletTemplateTypeSafDashdDashGrid string = "saf-d-grid" + // WritablePowerOutletTemplateTypeNeutrikDashPowerconDash20a captures enum value "neutrik-powercon-20a" + WritablePowerOutletTemplateTypeNeutrikDashPowerconDash20a string = "neutrik-powercon-20a" + + // WritablePowerOutletTemplateTypeNeutrikDashPowerconDash32a captures enum value "neutrik-powercon-32a" + WritablePowerOutletTemplateTypeNeutrikDashPowerconDash32a string = "neutrik-powercon-32a" + + // WritablePowerOutletTemplateTypeNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + WritablePowerOutletTemplateTypeNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // WritablePowerOutletTemplateTypeNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + WritablePowerOutletTemplateTypeNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // WritablePowerOutletTemplateTypeUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + WritablePowerOutletTemplateTypeUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // WritablePowerOutletTemplateTypeHardwired captures enum value "hardwired" WritablePowerOutletTemplateTypeHardwired string = "hardwired" + + // WritablePowerOutletTemplateTypeOther captures enum value "other" + WritablePowerOutletTemplateTypeOther string = "other" ) // prop value enum @@ -589,7 +628,7 @@ func (m *WritablePowerOutletTemplate) ContextValidate(ctx context.Context, forma func (m *WritablePowerOutletTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_panel.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_panel.go index 1da5770ab..0a953c145 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_panel.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_panel.go @@ -37,8 +37,8 @@ type WritablePowerPanel struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -47,7 +47,7 @@ type WritablePowerPanel struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -121,7 +121,7 @@ func (m *WritablePowerPanel) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -244,7 +244,7 @@ func (m *WritablePowerPanel) ContextValidate(ctx context.Context, formats strfmt func (m *WritablePowerPanel) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port.go index 002889441..487126bd3 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port.go @@ -68,8 +68,8 @@ type WritablePowerPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -86,7 +86,7 @@ type WritablePowerPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -125,6 +125,9 @@ type WritablePowerPort struct { // Minimum: 1 MaximumDraw *int64 `json:"maximum_draw,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -137,7 +140,7 @@ type WritablePowerPort struct { // Type // // Physical port type - // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid hardwired] + // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid neutrik-powercon-20 neutrik-powercon-32 neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Type string `json:"type,omitempty"` // Url @@ -244,7 +247,7 @@ func (m *WritablePowerPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -359,7 +362,7 @@ var writablePowerPortTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","neutrik-powercon-20","neutrik-powercon-32","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -639,8 +642,26 @@ const ( // WritablePowerPortTypeSafDashdDashGrid captures enum value "saf-d-grid" WritablePowerPortTypeSafDashdDashGrid string = "saf-d-grid" + // WritablePowerPortTypeNeutrikDashPowerconDash20 captures enum value "neutrik-powercon-20" + WritablePowerPortTypeNeutrikDashPowerconDash20 string = "neutrik-powercon-20" + + // WritablePowerPortTypeNeutrikDashPowerconDash32 captures enum value "neutrik-powercon-32" + WritablePowerPortTypeNeutrikDashPowerconDash32 string = "neutrik-powercon-32" + + // WritablePowerPortTypeNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + WritablePowerPortTypeNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // WritablePowerPortTypeNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + WritablePowerPortTypeNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // WritablePowerPortTypeUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + WritablePowerPortTypeUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // WritablePowerPortTypeHardwired captures enum value "hardwired" WritablePowerPortTypeHardwired string = "hardwired" + + // WritablePowerPortTypeOther captures enum value "other" + WritablePowerPortTypeOther string = "other" ) // prop value enum @@ -788,7 +809,7 @@ func (m *WritablePowerPort) contextValidateConnectedEndpointType(ctx context.Con func (m *WritablePowerPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port_template.go index 8c7367e71..4b55921b6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_power_port_template.go @@ -44,8 +44,8 @@ type WritablePowerPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -59,7 +59,7 @@ type WritablePowerPortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -81,14 +81,22 @@ type WritablePowerPortTemplate struct { // Minimum: 1 MaximumDraw *int64 `json:"maximum_draw,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 Name *string `json:"name"` // Type - // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid hardwired] + // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 iec-60320-c22 iec-60309-p-n-e-4h iec-60309-p-n-e-6h iec-60309-p-n-e-9h iec-60309-2p-e-4h iec-60309-2p-e-6h iec-60309-2p-e-9h iec-60309-3p-e-4h iec-60309-3p-e-6h iec-60309-3p-e-9h iec-60309-3p-n-e-4h iec-60309-3p-n-e-6h iec-60309-3p-n-e-9h nema-1-15p nema-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-10-30p nema-10-50p nema-14-20p nema-14-30p nema-14-50p nema-14-60p nema-15-15p nema-15-20p nema-15-30p nema-15-50p nema-15-60p nema-l1-15p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-15p nema-l6-20p nema-l6-30p nema-l6-50p nema-l10-30p nema-l14-20p nema-l14-30p nema-l14-50p nema-l14-60p nema-l15-20p nema-l15-30p nema-l15-50p nema-l15-60p nema-l21-20p nema-l21-30p nema-l22-30p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b usb-micro-ab usb-3-b usb-3-micro-b dc-terminal saf-d-grid neutrik-powercon-20 neutrik-powercon-32 neutrik-powercon-true1 neutrik-powercon-true1-top ubiquiti-smartpower hardwired other] Type string `json:"type,omitempty"` // Url @@ -129,6 +137,10 @@ func (m *WritablePowerPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -168,7 +180,7 @@ func (m *WritablePowerPortTemplate) validateCreated(formats strfmt.Registry) err return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -236,6 +248,15 @@ func (m *WritablePowerPortTemplate) validateMaximumDraw(formats strfmt.Registry) return nil } +func (m *WritablePowerPortTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritablePowerPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -257,7 +278,7 @@ var writablePowerPortTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","hardwired"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c6","iec-60320-c8","iec-60320-c14","iec-60320-c16","iec-60320-c20","iec-60320-c22","iec-60309-p-n-e-4h","iec-60309-p-n-e-6h","iec-60309-p-n-e-9h","iec-60309-2p-e-4h","iec-60309-2p-e-6h","iec-60309-2p-e-9h","iec-60309-3p-e-4h","iec-60309-3p-e-6h","iec-60309-3p-e-9h","iec-60309-3p-n-e-4h","iec-60309-3p-n-e-6h","iec-60309-3p-n-e-9h","nema-1-15p","nema-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-10-30p","nema-10-50p","nema-14-20p","nema-14-30p","nema-14-50p","nema-14-60p","nema-15-15p","nema-15-20p","nema-15-30p","nema-15-50p","nema-15-60p","nema-l1-15p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-15p","nema-l6-20p","nema-l6-30p","nema-l6-50p","nema-l10-30p","nema-l14-20p","nema-l14-30p","nema-l14-50p","nema-l14-60p","nema-l15-20p","nema-l15-30p","nema-l15-50p","nema-l15-60p","nema-l21-20p","nema-l21-30p","nema-l22-30p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","usb-micro-ab","usb-3-b","usb-3-micro-b","dc-terminal","saf-d-grid","neutrik-powercon-20","neutrik-powercon-32","neutrik-powercon-true1","neutrik-powercon-true1-top","ubiquiti-smartpower","hardwired","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -537,8 +558,26 @@ const ( // WritablePowerPortTemplateTypeSafDashdDashGrid captures enum value "saf-d-grid" WritablePowerPortTemplateTypeSafDashdDashGrid string = "saf-d-grid" + // WritablePowerPortTemplateTypeNeutrikDashPowerconDash20 captures enum value "neutrik-powercon-20" + WritablePowerPortTemplateTypeNeutrikDashPowerconDash20 string = "neutrik-powercon-20" + + // WritablePowerPortTemplateTypeNeutrikDashPowerconDash32 captures enum value "neutrik-powercon-32" + WritablePowerPortTemplateTypeNeutrikDashPowerconDash32 string = "neutrik-powercon-32" + + // WritablePowerPortTemplateTypeNeutrikDashPowerconDashTrue1 captures enum value "neutrik-powercon-true1" + WritablePowerPortTemplateTypeNeutrikDashPowerconDashTrue1 string = "neutrik-powercon-true1" + + // WritablePowerPortTemplateTypeNeutrikDashPowerconDashTrue1DashTop captures enum value "neutrik-powercon-true1-top" + WritablePowerPortTemplateTypeNeutrikDashPowerconDashTrue1DashTop string = "neutrik-powercon-true1-top" + + // WritablePowerPortTemplateTypeUbiquitiDashSmartpower captures enum value "ubiquiti-smartpower" + WritablePowerPortTemplateTypeUbiquitiDashSmartpower string = "ubiquiti-smartpower" + // WritablePowerPortTemplateTypeHardwired captures enum value "hardwired" WritablePowerPortTemplateTypeHardwired string = "hardwired" + + // WritablePowerPortTemplateTypeOther captures enum value "other" + WritablePowerPortTemplateTypeOther string = "other" ) // prop value enum @@ -606,7 +645,7 @@ func (m *WritablePowerPortTemplate) ContextValidate(ctx context.Context, formats func (m *WritablePowerPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_prefix.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_prefix.go index 8f50a26a5..226eba582 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_prefix.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_prefix.go @@ -46,8 +46,8 @@ type WritablePrefix struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -64,7 +64,7 @@ type WritablePrefix struct { // Read Only: true Family string `json:"family,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -164,7 +164,7 @@ func (m *WritablePrefix) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -356,7 +356,7 @@ func (m *WritablePrefix) contextValidateChildren(ctx context.Context, formats st func (m *WritablePrefix) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_provider_network.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_provider_network.go index 1d9c30866..fd87ef3dc 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_provider_network.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_provider_network.go @@ -40,8 +40,8 @@ type WritableProviderNetwork struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -54,7 +54,7 @@ type WritableProviderNetwork struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -73,6 +73,10 @@ type WritableProviderNetwork struct { // Required: true Provider *int64 `json:"provider"` + // Service ID + // Max Length: 100 + ServiceID string `json:"service_id,omitempty"` + // tags Tags []*NestedTag `json:"tags"` @@ -106,6 +110,10 @@ func (m *WritableProviderNetwork) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateServiceID(formats); err != nil { + res = append(res, err) + } + if err := m.validateTags(formats); err != nil { res = append(res, err) } @@ -125,7 +133,7 @@ func (m *WritableProviderNetwork) validateCreated(formats strfmt.Registry) error return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -182,6 +190,18 @@ func (m *WritableProviderNetwork) validateProvider(formats strfmt.Registry) erro return nil } +func (m *WritableProviderNetwork) validateServiceID(formats strfmt.Registry) error { + if swag.IsZero(m.ServiceID) { // not required + return nil + } + + if err := validate.MaxLength("service_id", "body", m.ServiceID, 100); err != nil { + return err + } + + return nil +} + func (m *WritableProviderNetwork) validateTags(formats strfmt.Registry) error { if swag.IsZero(m.Tags) { // not required return nil @@ -256,7 +276,7 @@ func (m *WritableProviderNetwork) ContextValidate(ctx context.Context, formats s func (m *WritableProviderNetwork) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack.go index abfd36b7a..3990d0017 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack.go @@ -47,8 +47,8 @@ type WritableRack struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -70,7 +70,7 @@ type WritableRack struct { // Max Length: 50 FacilityID *string `json:"facility_id,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -252,7 +252,7 @@ func (m *WritableRack) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -637,7 +637,7 @@ func (m *WritableRack) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *WritableRack) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack_reservation.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack_reservation.go index 6bece7c08..9808a8426 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack_reservation.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rack_reservation.go @@ -37,8 +37,8 @@ type WritableRackReservation struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -53,7 +53,7 @@ type WritableRackReservation struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -133,7 +133,7 @@ func (m *WritableRackReservation) validateCreated(formats strfmt.Registry) error return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -285,7 +285,7 @@ func (m *WritableRackReservation) ContextValidate(ctx context.Context, formats s func (m *WritableRackReservation) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port.go index 1ecaf5f3f..31f93b89d 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port.go @@ -50,8 +50,8 @@ type WritableRearPort struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -68,7 +68,7 @@ type WritableRearPort struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -100,6 +100,9 @@ type WritableRearPort struct { // Treat as if a cable is connected MarkConnected bool `json:"mark_connected,omitempty"` + // Module + Module *int64 `json:"module,omitempty"` + // Name // Required: true // Max Length: 64 @@ -116,7 +119,7 @@ type WritableRearPort struct { // Type // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Type *string `json:"type"` // Url @@ -223,7 +226,7 @@ func (m *WritableRearPort) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -338,7 +341,7 @@ var writableRearPortTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -473,6 +476,9 @@ const ( // WritableRearPortTypeSplice captures enum value "splice" WritableRearPortTypeSplice string = "splice" + + // WritableRearPortTypeOther captures enum value "other" + WritableRearPortTypeOther string = "other" ) // prop value enum @@ -586,7 +592,7 @@ func (m *WritableRearPort) contextValidateCable(ctx context.Context, formats str func (m *WritableRearPort) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port_template.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port_template.go index 91fc8e781..65dfc2688 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port_template.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_rear_port_template.go @@ -42,8 +42,8 @@ type WritableRearPortTemplate struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Description // Max Length: 200 @@ -57,7 +57,7 @@ type WritableRearPortTemplate struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -72,7 +72,15 @@ type WritableRearPortTemplate struct { // Format: date-time LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` + // Module type + // Required: true + ModuleType *int64 `json:"module_type"` + // Name + // + // + // {module} is accepted as a substitution for the module bay position when attached to a module type. + // // Required: true // Max Length: 64 // Min Length: 1 @@ -85,7 +93,7 @@ type WritableRearPortTemplate struct { // Type // Required: true - // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice] + // Enum: [8p8c 8p6c 8p4c 8p2c 6p6c 6p4c 6p2c 4p4c 4p2c gg45 tera-4p tera-2p tera-1p 110-punch bnc f n mrj21 fc lc lc-pc lc-upc lc-apc lsh lsh-pc lsh-upc lsh-apc mpo mtrj sc sc-pc sc-upc sc-apc st cs sn sma-905 sma-906 urm-p2 urm-p4 urm-p8 splice other] Type *string `json:"type"` // Url @@ -122,6 +130,10 @@ func (m *WritableRearPortTemplate) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateModuleType(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -165,7 +177,7 @@ func (m *WritableRearPortTemplate) validateCreated(formats strfmt.Registry) erro return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -217,6 +229,15 @@ func (m *WritableRearPortTemplate) validateLastUpdated(formats strfmt.Registry) return nil } +func (m *WritableRearPortTemplate) validateModuleType(formats strfmt.Registry) error { + + if err := validate.Required("module_type", "body", m.ModuleType); err != nil { + return err + } + + return nil +} + func (m *WritableRearPortTemplate) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -254,7 +275,7 @@ var writableRearPortTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","8p6c","8p4c","8p2c","6p6c","6p4c","6p2c","4p4c","4p2c","gg45","tera-4p","tera-2p","tera-1p","110-punch","bnc","f","n","mrj21","fc","lc","lc-pc","lc-upc","lc-apc","lsh","lsh-pc","lsh-upc","lsh-apc","mpo","mtrj","sc","sc-pc","sc-upc","sc-apc","st","cs","sn","sma-905","sma-906","urm-p2","urm-p4","urm-p8","splice","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -389,6 +410,9 @@ const ( // WritableRearPortTemplateTypeSplice captures enum value "splice" WritableRearPortTemplateTypeSplice string = "splice" + + // WritableRearPortTemplateTypeOther captures enum value "other" + WritableRearPortTemplateTypeOther string = "other" ) // prop value enum @@ -457,7 +481,7 @@ func (m *WritableRearPortTemplate) ContextValidate(ctx context.Context, formats func (m *WritableRearPortTemplate) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_region.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_region.go index 66356eb90..eb019a3f2 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_region.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_region.go @@ -41,8 +41,8 @@ type WritableRegion struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritableRegion struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -136,7 +136,7 @@ func (m *WritableRegion) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -296,7 +296,7 @@ func (m *WritableRegion) contextValidateDepth(ctx context.Context, formats strfm func (m *WritableRegion) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_route_target.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_route_target.go index 7c9cea6ca..92f62aebc 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_route_target.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_route_target.go @@ -37,8 +37,8 @@ type WritableRouteTarget struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type WritableRouteTarget struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -119,7 +119,7 @@ func (m *WritableRouteTarget) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -241,7 +241,7 @@ func (m *WritableRouteTarget) ContextValidate(ctx context.Context, formats strfm func (m *WritableRouteTarget) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_service.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_service.go index c77dcd227..a670f7475 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_service.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_service.go @@ -38,8 +38,8 @@ type WritableService struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritableService struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -146,7 +146,7 @@ func (m *WritableService) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -347,7 +347,7 @@ func (m *WritableService) ContextValidate(ctx context.Context, formats strfmt.Re func (m *WritableService) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_site.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_site.go index fcbe6b26c..ccb79de95 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_site.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_site.go @@ -36,13 +36,6 @@ import ( // swagger:model WritableSite type WritableSite struct { - // ASN - // - // 32-bit autonomous system number - // Maximum: 4.294967295e+09 - // Minimum: 1 - Asn *int64 `json:"asn,omitempty"` - // asns // Unique: true Asns []int64 `json:"asns"` @@ -54,23 +47,10 @@ type WritableSite struct { // Comments Comments string `json:"comments,omitempty"` - // Contact E-mail - // Max Length: 254 - // Format: email - ContactEmail strfmt.Email `json:"contact_email,omitempty"` - - // Contact name - // Max Length: 50 - ContactName string `json:"contact_name,omitempty"` - - // Contact phone - // Max Length: 20 - ContactPhone string `json:"contact_phone,omitempty"` - // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -96,7 +76,7 @@ type WritableSite struct { // Group Group *int64 `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -178,26 +158,10 @@ type WritableSite struct { func (m *WritableSite) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateAsn(formats); err != nil { - res = append(res, err) - } - if err := m.validateAsns(formats); err != nil { res = append(res, err) } - if err := m.validateContactEmail(formats); err != nil { - res = append(res, err) - } - - if err := m.validateContactName(formats); err != nil { - res = append(res, err) - } - - if err := m.validateContactPhone(formats); err != nil { - res = append(res, err) - } - if err := m.validateCreated(formats); err != nil { res = append(res, err) } @@ -248,22 +212,6 @@ func (m *WritableSite) Validate(formats strfmt.Registry) error { return nil } -func (m *WritableSite) validateAsn(formats strfmt.Registry) error { - if swag.IsZero(m.Asn) { // not required - return nil - } - - if err := validate.MinimumInt("asn", "body", *m.Asn, 1, false); err != nil { - return err - } - - if err := validate.MaximumInt("asn", "body", *m.Asn, 4.294967295e+09, false); err != nil { - return err - } - - return nil -} - func (m *WritableSite) validateAsns(formats strfmt.Registry) error { if swag.IsZero(m.Asns) { // not required return nil @@ -276,52 +224,12 @@ func (m *WritableSite) validateAsns(formats strfmt.Registry) error { return nil } -func (m *WritableSite) validateContactEmail(formats strfmt.Registry) error { - if swag.IsZero(m.ContactEmail) { // not required - return nil - } - - if err := validate.MaxLength("contact_email", "body", m.ContactEmail.String(), 254); err != nil { - return err - } - - if err := validate.FormatOf("contact_email", "body", "email", m.ContactEmail.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *WritableSite) validateContactName(formats strfmt.Registry) error { - if swag.IsZero(m.ContactName) { // not required - return nil - } - - if err := validate.MaxLength("contact_name", "body", m.ContactName, 50); err != nil { - return err - } - - return nil -} - -func (m *WritableSite) validateContactPhone(formats strfmt.Registry) error { - if swag.IsZero(m.ContactPhone) { // not required - return nil - } - - if err := validate.MaxLength("contact_phone", "body", m.ContactPhone, 20); err != nil { - return err - } - - return nil -} - func (m *WritableSite) validateCreated(formats strfmt.Registry) error { if swag.IsZero(m.Created) { // not required return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -584,7 +492,7 @@ func (m *WritableSite) contextValidateCircuitCount(ctx context.Context, formats func (m *WritableSite) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_site_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_site_group.go index 80f6e9bde..0e22131ed 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_site_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_site_group.go @@ -41,8 +41,8 @@ type WritableSiteGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritableSiteGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -136,7 +136,7 @@ func (m *WritableSiteGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -296,7 +296,7 @@ func (m *WritableSiteGroup) contextValidateDepth(ctx context.Context, formats st func (m *WritableSiteGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant.go index 8aaca02ec..4b50dbda1 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant.go @@ -48,8 +48,8 @@ type WritableTenant struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -69,7 +69,7 @@ type WritableTenant struct { // Group Group *int64 `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -171,7 +171,7 @@ func (m *WritableTenant) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -372,7 +372,7 @@ func (m *WritableTenant) contextValidateClusterCount(ctx context.Context, format func (m *WritableTenant) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant_group.go index ebfe9b36e..0597252af 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_tenant_group.go @@ -41,8 +41,8 @@ type WritableTenantGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritableTenantGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -136,7 +136,7 @@ func (m *WritableTenantGroup) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -296,7 +296,7 @@ func (m *WritableTenantGroup) contextValidateDepth(ctx context.Context, formats func (m *WritableTenantGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_token.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_token.go index 6aa102d91..d5401bd6e 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_token.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_token.go @@ -51,7 +51,7 @@ type WritableToken struct { // Format: date-time Expires *strfmt.DateTime `json:"expires,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_l_a_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_l_a_n.go index c5d487936..fcf84f2a3 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_l_a_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_l_a_n.go @@ -38,8 +38,8 @@ type WritableVLAN struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -56,7 +56,7 @@ type WritableVLAN struct { // Required: true Group *int64 `json:"group"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -154,7 +154,7 @@ func (m *WritableVLAN) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -351,7 +351,7 @@ func (m *WritableVLAN) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *WritableVLAN) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_r_f.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_r_f.go index b519d9b01..029165425 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_r_f.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_v_r_f.go @@ -37,8 +37,8 @@ type WritableVRF struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -60,7 +60,7 @@ type WritableVRF struct { // Unique: true ExportTargets []int64 `json:"export_targets"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -156,7 +156,7 @@ func (m *WritableVRF) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -322,7 +322,7 @@ func (m *WritableVRF) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *WritableVRF) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_chassis.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_chassis.go index 494526ac0..64fe618c6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_chassis.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_chassis.go @@ -37,8 +37,8 @@ type WritableVirtualChassis struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -51,7 +51,7 @@ type WritableVirtualChassis struct { // Max Length: 30 Domain string `json:"domain,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -121,7 +121,7 @@ func (m *WritableVirtualChassis) validateCreated(formats strfmt.Registry) error return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -247,7 +247,7 @@ func (m *WritableVirtualChassis) ContextValidate(ctx context.Context, formats st func (m *WritableVirtualChassis) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go index 71f70b37e..5ea2b88fc 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go @@ -49,8 +49,8 @@ type WritableVirtualMachineWithConfigContext struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -64,7 +64,7 @@ type WritableVirtualMachineWithConfigContext struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -191,7 +191,7 @@ func (m *WritableVirtualMachineWithConfigContext) validateCreated(formats strfmt return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -407,7 +407,7 @@ func (m *WritableVirtualMachineWithConfigContext) ContextValidate(ctx context.Co func (m *WritableVirtualMachineWithConfigContext) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_vm_interface.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_vm_interface.go index 426591287..84fd134b6 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_vm_interface.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_vm_interface.go @@ -49,8 +49,8 @@ type WritableVMInterface struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -66,7 +66,7 @@ type WritableVMInterface struct { // Enabled Enabled bool `json:"enabled,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -114,6 +114,9 @@ type WritableVMInterface struct { // Virtual machine // Required: true VirtualMachine *int64 `json:"virtual_machine"` + + // VRF + Vrf *int64 `json:"vrf,omitempty"` } // Validate validates this writable VM interface @@ -171,7 +174,7 @@ func (m *WritableVMInterface) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -401,7 +404,7 @@ func (m *WritableVMInterface) contextValidateCountIpaddresses(ctx context.Contex func (m *WritableVMInterface) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n.go index 8de42415a..ff242688f 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n.go @@ -50,8 +50,8 @@ type WritableWirelessLAN struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -67,7 +67,7 @@ type WritableWirelessLAN struct { // Group Group *int64 `json:"group,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -250,7 +250,7 @@ func (m *WritableWirelessLAN) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -372,7 +372,7 @@ func (m *WritableWirelessLAN) ContextValidate(ctx context.Context, formats strfm func (m *WritableWirelessLAN) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n_group.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n_group.go index f7bdc5dc8..9c23dc8d5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n_group.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_l_a_n_group.go @@ -41,8 +41,8 @@ type WritableWirelessLANGroup struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -55,7 +55,7 @@ type WritableWirelessLANGroup struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -141,7 +141,7 @@ func (m *WritableWirelessLANGroup) validateCreated(formats strfmt.Registry) erro return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -310,7 +310,7 @@ func (m *WritableWirelessLANGroup) contextValidateDepth(ctx context.Context, for func (m *WritableWirelessLANGroup) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_link.go b/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_link.go index 01d4e835e..638f4bff5 100644 --- a/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_link.go +++ b/vendor/github.com/smutel/go-netbox/netbox/models/writable_wireless_link.go @@ -50,8 +50,8 @@ type WritableWirelessLink struct { // Created // Read Only: true - // Format: date - Created strfmt.Date `json:"created,omitempty"` + // Format: date-time + Created strfmt.DateTime `json:"created,omitempty"` // Custom fields CustomFields interface{} `json:"custom_fields,omitempty"` @@ -64,7 +64,7 @@ type WritableWirelessLink struct { // Read Only: true Display string `json:"display,omitempty"` - // Id + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -266,7 +266,7 @@ func (m *WritableWirelessLink) validateCreated(formats strfmt.Registry) error { return nil } - if err := validate.FormatOf("created", "body", "date", m.Created.String(), formats); err != nil { + if err := validate.FormatOf("created", "body", "date-time", m.Created.String(), formats); err != nil { return err } @@ -446,7 +446,7 @@ func (m *WritableWirelessLink) ContextValidate(ctx context.Context, formats strf func (m *WritableWirelessLink) contextValidateCreated(ctx context.Context, formats strfmt.Registry) error { - if err := validate.ReadOnly(ctx, "created", "body", strfmt.Date(m.Created)); err != nil { + if err := validate.ReadOnly(ctx, "created", "body", strfmt.DateTime(m.Created)); err != nil { return err } diff --git a/vendor/github.com/smutel/go-netbox/netbox/swagger-v3.2.9.json b/vendor/github.com/smutel/go-netbox/netbox/swagger-v3.2.9.json deleted file mode 100644 index 18e8b484c..000000000 --- a/vendor/github.com/smutel/go-netbox/netbox/swagger-v3.2.9.json +++ /dev/null @@ -1,70662 +0,0 @@ -{ - "basePath" : "/api", - "consumes" : [ "application/json" ], - "definitions" : { - "Aggregate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "date_added" : { - "format" : "date", - "title" : "Date added", - "type" : "string", - "x-nullable" : true - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "family" : { - "properties" : { - "label" : { - "enum" : [ - "IPv4", - "IPv6" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 4, - 6 - ], - "type" : "integer" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Family", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "prefix" : { - "title" : "Prefix", - "type" : "string" - }, - "rir" : { "$ref" : "#/definitions/NestedRIR" }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "prefix", - "rir" - ], - "type" : "object" - }, - "ASN" : { - "properties" : { - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "provider_count" : { - "readOnly" : true, - "title" : "Provider count", - "type" : "integer" - }, - "rir" : { - "title" : "RIR", - "type" : "integer" - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "asn", - "rir" - ], - "type" : "object" - }, - "AvailableIP" : { - "properties" : { - "address" : { - "minLength" : 1, - "readOnly" : true, - "title" : "Address", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "integer" - }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" } - }, - "type" : "object" - }, - "AvailablePrefix" : { - "properties" : { - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "integer" - }, - "prefix" : { - "minLength" : 1, - "readOnly" : true, - "title" : "Prefix", - "type" : "string" - }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" } - }, - "type" : "object" - }, - "AvailableVLAN" : { - "properties" : { - "group" : { "$ref" : "#/definitions/NestedVLANGroup" }, - "vid" : { - "readOnly" : true, - "title" : "Vid", - "type" : "integer" - } - }, - "type" : "object" - }, - "Cable" : { - "properties" : { - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "maxLength" : 100, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "length" : { - "format" : "decimal", - "title" : "Length", - "type" : "number", - "x-nullable" : true - }, - "length_unit" : { - "properties" : { - "label" : { - "enum" : [ - "Kilometers", - "Meters", - "Centimeters", - "Miles", - "Feet", - "Inches" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "km", - "m", - "cm", - "mi", - "ft", - "in" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Length unit", - "type" : "object" - }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Connected", - "Planned", - "Decommissioning" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "connected", - "planned", - "decommissioning" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "termination_a" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Termination a", - "type" : "object" - }, - "termination_a_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Termination a id", - "type" : "integer" - }, - "termination_a_type" : { - "title" : "Termination a type", - "type" : "string" - }, - "termination_b" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Termination b", - "type" : "object" - }, - "termination_b_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Termination b id", - "type" : "integer" - }, - "termination_b_type" : { - "title" : "Termination b type", - "type" : "string" - }, - "type" : { - "enum" : [ - "cat3", - "cat5", - "cat5e", - "cat6", - "cat6a", - "cat7", - "cat7a", - "cat8", - "dac-active", - "dac-passive", - "mrj21-trunk", - "coaxial", - "mmf", - "mmf-om1", - "mmf-om2", - "mmf-om3", - "mmf-om4", - "mmf-om5", - "smf", - "smf-os1", - "smf-os2", - "aoc", - "power" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "termination_a_type", - "termination_a_id", - "termination_b_type", - "termination_b_id" - ], - "type" : "object" - }, - "Circuit" : { - "properties" : { - "cid" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Circuit ID", - "type" : "string" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "commit_rate" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Commit rate (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "install_date" : { - "format" : "date", - "title" : "Date installed", - "type" : "string", - "x-nullable" : true - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "provider" : { "$ref" : "#/definitions/NestedProvider" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Planned", - "Provisioning", - "Active", - "Offline", - "Deprovisioning", - "Decommissioned" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "planned", - "provisioning", - "active", - "offline", - "deprovisioning", - "decommissioned" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "termination_a" : { "$ref" : "#/definitions/CircuitCircuitTermination" }, - "termination_z" : { "$ref" : "#/definitions/CircuitCircuitTermination" }, - "type" : { "$ref" : "#/definitions/NestedCircuitType" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "cid", - "provider", - "type" - ], - "type" : "object" - }, - "CircuitCircuitTermination" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "port_speed" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Port speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "provider_network" : { "$ref" : "#/definitions/NestedProviderNetwork" }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "upstream_speed" : { - "description" : "Upstream speed, if different from port speed", - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Upstream speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "xconnect_id" : { - "maxLength" : 50, - "title" : "Cross-connect ID", - "type" : "string" - } - }, - "required" : [ - "site", - "provider_network" - ], - "type" : "object" - }, - "CircuitTermination" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "circuit" : { "$ref" : "#/definitions/NestedCircuit" }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "port_speed" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Port speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "pp_info" : { - "maxLength" : 100, - "title" : "Patch panel/port(s)", - "type" : "string" - }, - "provider_network" : { "$ref" : "#/definitions/NestedProviderNetwork" }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "term_side" : { - "enum" : [ - "A", - "Z" - ], - "title" : "Termination", - "type" : "string" - }, - "upstream_speed" : { - "description" : "Upstream speed, if different from port speed", - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Upstream speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "xconnect_id" : { - "maxLength" : 50, - "title" : "Cross-connect ID", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "circuit", - "term_side" - ], - "type" : "object" - }, - "CircuitType" : { - "properties" : { - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "Cluster" : { - "properties" : { - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedClusterGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "type" : { "$ref" : "#/definitions/NestedClusterType" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ - "name", - "type" - ], - "type" : "object" - }, - "ClusterGroup" : { - "properties" : { - "cluster_count" : { - "readOnly" : true, - "title" : "Cluster count", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "ClusterType" : { - "properties" : { - "cluster_count" : { - "readOnly" : true, - "title" : "Cluster count", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "ComponentNestedModule" : { - "properties" : { - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "module_bay" : { "$ref" : "#/definitions/ModuleNestedModuleBay" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "device" ], - "type" : "object", - "x-nullable" : true - }, - "ConfigContext" : { - "properties" : { - "clusters" : { - "items" : { "$ref" : "#/definitions/NestedCluster" }, - "type" : "array", - "uniqueItems" : true - }, - "cluster_groups" : { - "items" : { "$ref" : "#/definitions/NestedClusterGroup" }, - "type" : "array", - "uniqueItems" : true - }, - "cluster_types" : { - "items" : { "$ref" : "#/definitions/NestedClusterType" }, - "type" : "array", - "uniqueItems" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "data" : { - "title" : "Data", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_types" : { - "items" : { "$ref" : "#/definitions/NestedDeviceType" }, - "type" : "array", - "uniqueItems" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_active" : { - "title" : "Is active", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "platforms" : { - "items" : { "$ref" : "#/definitions/NestedPlatform" }, - "type" : "array", - "uniqueItems" : true - }, - "regions" : { - "items" : { "$ref" : "#/definitions/NestedRegion" }, - "type" : "array", - "uniqueItems" : true - }, - "roles" : { - "items" : { "$ref" : "#/definitions/NestedDeviceRole" }, - "type" : "array", - "uniqueItems" : true - }, - "sites" : { - "items" : { "$ref" : "#/definitions/NestedSite" }, - "type" : "array", - "uniqueItems" : true - }, - "site_groups" : { - "items" : { "$ref" : "#/definitions/NestedSiteGroup" }, - "type" : "array", - "uniqueItems" : true - }, - "tags" : { - "items" : { - "format" : "slug", - "pattern" : "^[-a-zA-Z0-9_]+$", - "type" : "string" - }, - "type" : "array", - "uniqueItems" : true - }, - "tenants" : { - "items" : { "$ref" : "#/definitions/NestedTenant" }, - "type" : "array", - "uniqueItems" : true - }, - "tenant_groups" : { - "items" : { "$ref" : "#/definitions/NestedTenantGroup" }, - "type" : "array", - "uniqueItems" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "weight" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Weight", - "type" : "integer" - } - }, - "required" : [ - "name", - "data" - ], - "type" : "object" - }, - "ConsolePort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "speed" : { - "properties" : { - "label" : { - "enum" : [ - "1200 bps", - "2400 bps", - "4800 bps", - "9600 bps", - "19.2 kbps", - "38.4 kbps", - "57.6 kbps", - "115.2 kbps" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 1200, - 2400, - 4800, - 9600, - 19200, - 38400, - 57600, - 115200 - ], - "type" : "integer" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Speed", - "type" : "object", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "DE-9", - "DB-25", - "RJ-11", - "RJ-12", - "RJ-45", - "Mini-DIN 8", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "ConsolePortTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "DE-9", - "DB-25", - "RJ-11", - "RJ-12", - "RJ-45", - "Mini-DIN 8", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "ConsoleServerPort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "speed" : { - "properties" : { - "label" : { - "enum" : [ - "1200 bps", - "2400 bps", - "4800 bps", - "9600 bps", - "19.2 kbps", - "38.4 kbps", - "57.6 kbps", - "115.2 kbps" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 1200, - 2400, - 4800, - 9600, - 19200, - 38400, - 57600, - 115200 - ], - "type" : "integer" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Speed", - "type" : "object", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "DE-9", - "DB-25", - "RJ-11", - "RJ-12", - "RJ-45", - "Mini-DIN 8", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "ConsoleServerPortTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "DE-9", - "DB-25", - "RJ-11", - "RJ-12", - "RJ-45", - "Mini-DIN 8", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "Contact" : { - "properties" : { - "address" : { - "maxLength" : 200, - "title" : "Address", - "type" : "string" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "email" : { - "format" : "email", - "maxLength" : 254, - "title" : "Email", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedContactGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link" : { - "format" : "uri", - "maxLength" : 200, - "title" : "Link", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "phone" : { - "maxLength" : 50, - "title" : "Phone", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "title" : { - "maxLength" : 100, - "title" : "Title", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "ContactAssignment" : { - "properties" : { - "contact" : { "$ref" : "#/definitions/NestedContact" }, - "content_type" : { - "title" : "Content type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "object" : { - "readOnly" : true, - "title" : "Object", - "type" : "object" - }, - "object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Object id", - "type" : "integer" - }, - "priority" : { - "properties" : { - "label" : { - "enum" : [ - "Primary", - "Secondary", - "Tertiary", - "Inactive" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "primary", - "secondary", - "tertiary", - "inactive" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Priority", - "type" : "object" - }, - "role" : { "$ref" : "#/definitions/NestedContactRole" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "content_type", - "object_id", - "contact" - ], - "type" : "object" - }, - "ContactGroup" : { - "properties" : { - "contact_count" : { - "readOnly" : true, - "title" : "Contact count", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedContactGroup" }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "ContactRole" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "ContentType" : { - "properties" : { - "app_label" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "App label", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Python model class name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "app_label", - "model" - ], - "type" : "object" - }, - "CustomField" : { - "properties" : { - "choices" : { - "description" : "Comma-separated list of available choices (for selection fields)", - "items" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Choices", - "type" : "string" - }, - "type" : "array", - "x-nullable" : true - }, - "content_types" : { - "items" : { "type" : "string" }, - "type" : "array", - "uniqueItems" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "data_type" : { - "readOnly" : true, - "title" : "Data type", - "type" : "string" - }, - "default" : { - "description" : "Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").", - "title" : "Default", - "type" : "string", - "x-nullable" : true - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "filter_logic" : { - "properties" : { - "label" : { - "enum" : [ - "Disabled", - "Loose", - "Exact" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "disabled", - "loose", - "exact" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Filter logic", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Name of the field as displayed to users (if not provided, the field's name will be used)", - "maxLength" : 50, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "Internal field name", - "maxLength" : 50, - "minLength" : 1, - "pattern" : "^[a-z0-9_]+$", - "title" : "Name", - "type" : "string" - }, - "object_type" : { - "title" : "Object type", - "type" : "string" - }, - "required" : { - "description" : "If true, this field is required when creating new objects or editing an existing object.", - "title" : "Required", - "type" : "boolean" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "Text", - "Text (long)", - "Integer", - "Boolean (true/false)", - "Date", - "URL", - "JSON", - "Selection", - "Multiple selection", - "Object", - "Multiple objects" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "text", - "longtext", - "integer", - "boolean", - "date", - "url", - "json", - "select", - "multiselect", - "object", - "multiobject" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "validation_maximum" : { - "description" : "Maximum allowed value (for numeric fields)", - "maximum" : 2147483647, - "minimum" : -2147483648, - "title" : "Maximum value", - "type" : "integer", - "x-nullable" : true - }, - "validation_minimum" : { - "description" : "Minimum allowed value (for numeric fields)", - "maximum" : 2147483647, - "minimum" : -2147483648, - "title" : "Minimum value", - "type" : "integer", - "x-nullable" : true - }, - "validation_regex" : { - "description" : "Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters.", - "maxLength" : 500, - "title" : "Validation regex", - "type" : "string" - }, - "weight" : { - "description" : "Fields with higher weights appear lower in a form.", - "maximum" : 32767, - "minimum" : 0, - "title" : "Weight", - "type" : "integer" - } - }, - "required" : [ - "content_types", - "type", - "name" - ], - "type" : "object" - }, - "CustomLink" : { - "properties" : { - "button_class" : { - "description" : "The class of the first link in a group will be used for the dropdown button", - "enum" : [ - "outline-dark", - "blue", - "indigo", - "purple", - "pink", - "red", - "orange", - "yellow", - "green", - "teal", - "cyan", - "gray", - "black", - "white", - "ghost-dark" - ], - "title" : "Button class", - "type" : "string" - }, - "content_type" : { - "title" : "Content type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "group_name" : { - "description" : "Links with the same group will appear as a dropdown menu", - "maxLength" : 50, - "title" : "Group name", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_text" : { - "description" : "Jinja2 template code for link text", - "maxLength" : 500, - "minLength" : 1, - "title" : "Link text", - "type" : "string" - }, - "link_url" : { - "description" : "Jinja2 template code for link URL", - "maxLength" : 500, - "minLength" : 1, - "title" : "Link URL", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "new_window" : { - "description" : "Force link to open in a new window", - "title" : "New window", - "type" : "boolean" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "weight" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Weight", - "type" : "integer" - } - }, - "required" : [ - "content_type", - "name", - "link_text", - "link_url" - ], - "type" : "object" - }, - "Device" : { - "properties" : { - "airflow" : { - "properties" : { - "label" : { - "enum" : [ - "Front to rear", - "Rear to front", - "Left to right", - "Right to left", - "Side to rear", - "Passive", - "Mixed" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "front-to-rear", - "rear-to-front", - "left-to-right", - "right-to-left", - "side-to-rear", - "passive", - "mixed" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Airflow", - "type" : "object" - }, - "asset_tag" : { - "description" : "A unique tag used to identify this device", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "cluster" : { "$ref" : "#/definitions/NestedCluster" }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_role" : { "$ref" : "#/definitions/NestedDeviceRole" }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "face" : { - "properties" : { - "label" : { - "enum" : [ - "Front", - "Rear" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "front", - "rear" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Face", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "local_context_data" : { - "title" : "Local context data", - "type" : "object", - "x-nullable" : true - }, - "location" : { "$ref" : "#/definitions/NestedLocation" }, - "name" : { - "maxLength" : 64, - "title" : "Name", - "type" : "string", - "x-nullable" : true - }, - "parent_device" : { "$ref" : "#/definitions/NestedDevice" }, - "platform" : { "$ref" : "#/definitions/NestedPlatform" }, - "position" : { - "minimum" : 1, - "title" : "Position (U)", - "type" : "integer", - "x-nullable" : true - }, - "primary_ip" : { "$ref" : "#/definitions/NestedIPAddress" }, - "primary_ip4" : { "$ref" : "#/definitions/NestedIPAddress" }, - "primary_ip6" : { "$ref" : "#/definitions/NestedIPAddress" }, - "rack" : { "$ref" : "#/definitions/NestedRack" }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Offline", - "Active", - "Planned", - "Staged", - "Failed", - "Inventory", - "Decommissioning" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "offline", - "active", - "planned", - "staged", - "failed", - "inventory", - "decommissioning" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vc_position" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Vc position", - "type" : "integer", - "x-nullable" : true - }, - "vc_priority" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Vc priority", - "type" : "integer", - "x-nullable" : true - }, - "virtual_chassis" : { "$ref" : "#/definitions/NestedVirtualChassis" } - }, - "required" : [ - "name", - "device_type", - "device_role", - "site" - ], - "type" : "object" - }, - "DeviceBay" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "installed_device" : { "$ref" : "#/definitions/NestedDevice" }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "DeviceBayTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "name" - ], - "type" : "object" - }, - "DeviceNAPALM" : { - "properties" : { "method" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "title" : "Method", - "type" : "object" - } }, - "required" : [ "method" ], - "type" : "object" - }, - "DeviceRole" : { - "properties" : { - "color" : { - "maxLength" : 6, - "minLength" : 1, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - }, - "vm_role" : { - "description" : "Virtual machines may be assigned to this role", - "title" : "VM Role", - "type" : "boolean" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "DeviceType" : { - "properties" : { - "airflow" : { - "properties" : { - "label" : { - "enum" : [ - "Front to rear", - "Rear to front", - "Left to right", - "Right to left", - "Side to rear", - "Passive", - "Mixed" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "front-to-rear", - "rear-to-front", - "left-to-right", - "right-to-left", - "side-to-rear", - "passive", - "mixed" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Airflow", - "type" : "object" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "front_image" : { - "format" : "uri", - "readOnly" : true, - "title" : "Front image", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_full_depth" : { - "description" : "Device consumes both front and rear rack faces", - "title" : "Is full depth", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Model", - "type" : "string" - }, - "part_number" : { - "description" : "Discrete part number (optional)", - "maxLength" : 50, - "title" : "Part number", - "type" : "string" - }, - "rear_image" : { - "format" : "uri", - "readOnly" : true, - "title" : "Rear image", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "subdevice_role" : { - "properties" : { - "label" : { - "enum" : [ - "Parent", - "Child" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "parent", - "child" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Subdevice role", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "u_height" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Height (U)", - "type" : "integer" - } - }, - "required" : [ - "manufacturer", - "model", - "slug" - ], - "type" : "object" - }, - "DeviceWithConfigContext" : { - "properties" : { - "airflow" : { - "properties" : { - "label" : { - "enum" : [ - "Front to rear", - "Rear to front", - "Left to right", - "Right to left", - "Side to rear", - "Passive", - "Mixed" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "front-to-rear", - "rear-to-front", - "left-to-right", - "right-to-left", - "side-to-rear", - "passive", - "mixed" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Airflow", - "type" : "object" - }, - "asset_tag" : { - "description" : "A unique tag used to identify this device", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "cluster" : { "$ref" : "#/definitions/NestedCluster" }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "config_context" : { - "readOnly" : true, - "title" : "Config context", - "type" : "object" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_role" : { "$ref" : "#/definitions/NestedDeviceRole" }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "face" : { - "properties" : { - "label" : { - "enum" : [ - "Front", - "Rear" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "front", - "rear" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Face", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "local_context_data" : { - "title" : "Local context data", - "type" : "object", - "x-nullable" : true - }, - "location" : { "$ref" : "#/definitions/NestedLocation" }, - "name" : { - "maxLength" : 64, - "title" : "Name", - "type" : "string", - "x-nullable" : true - }, - "parent_device" : { "$ref" : "#/definitions/NestedDevice" }, - "platform" : { "$ref" : "#/definitions/NestedPlatform" }, - "position" : { - "minimum" : 1, - "title" : "Position (U)", - "type" : "integer", - "x-nullable" : true - }, - "primary_ip" : { "$ref" : "#/definitions/NestedIPAddress" }, - "primary_ip4" : { "$ref" : "#/definitions/NestedIPAddress" }, - "primary_ip6" : { "$ref" : "#/definitions/NestedIPAddress" }, - "rack" : { "$ref" : "#/definitions/NestedRack" }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Offline", - "Active", - "Planned", - "Staged", - "Failed", - "Inventory", - "Decommissioning" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "offline", - "active", - "planned", - "staged", - "failed", - "inventory", - "decommissioning" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vc_position" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Vc position", - "type" : "integer", - "x-nullable" : true - }, - "vc_priority" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Vc priority", - "type" : "integer", - "x-nullable" : true - }, - "virtual_chassis" : { "$ref" : "#/definitions/NestedVirtualChassis" } - }, - "required" : [ - "name", - "device_type", - "device_role", - "site" - ], - "type" : "object" - }, - "ExportTemplate" : { - "properties" : { - "as_attachment" : { - "description" : "Download file as attachment", - "title" : "As attachment", - "type" : "boolean" - }, - "content_type" : { - "title" : "Content type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "file_extension" : { - "description" : "Extension to append to the rendered filename", - "maxLength" : 15, - "title" : "File extension", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mime_type" : { - "description" : "Defaults to text/plain", - "maxLength" : 50, - "title" : "MIME type", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "template_code" : { - "description" : "Jinja2 template code. The list of objects being exported is passed as a context variable named queryset.", - "minLength" : 1, - "title" : "Template code", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "content_type", - "name", - "template_code" - ], - "type" : "object" - }, - "FHRPGroup" : { - "properties" : { - "auth_key" : { - "maxLength" : 255, - "title" : "Authentication key", - "type" : "string" - }, - "auth_type" : { - "enum" : [ - "plaintext", - "md5" - ], - "title" : "Authentication type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group_id" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Group ID", - "type" : "integer" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ip_addresses" : { - "items" : { "$ref" : "#/definitions/NestedIPAddress" }, - "readOnly" : true, - "type" : "array" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "protocol" : { - "enum" : [ - "vrrp2", - "vrrp3", - "carp", - "clusterxl", - "hsrp", - "glbp", - "other" - ], - "title" : "Protocol", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "protocol", - "group_id" - ], - "type" : "object" - }, - "FHRPGroupAssignment" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedFHRPGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "interface" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Interface", - "type" : "object" - }, - "interface_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Interface id", - "type" : "integer" - }, - "interface_type" : { - "title" : "Interface type", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "priority" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Priority", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "group", - "interface_type", - "interface_id", - "priority" - ], - "type" : "object" - }, - "FrontPort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rear_port" : { "$ref" : "#/definitions/FrontPortRearPort" }, - "rear_port_position" : { - "default" : 1, - "maximum" : 1024, - "minimum" : 1, - "title" : "Rear port position", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "8P8C", - "8P6C", - "8P4C", - "8P2C", - "6P6C", - "6P4C", - "6P2C", - "4P4C", - "4P2C", - "GG45", - "TERA 4P", - "TERA 2P", - "TERA 1P", - "110 Punch", - "BNC", - "F Connector", - "N Connector", - "MRJ21", - "FC", - "LC", - "LC/PC", - "LC/UPC", - "LC/APC", - "LSH", - "LSH/PC", - "LSH/UPC", - "LSH/APC", - "MPO", - "MTRJ", - "SC", - "SC/PC", - "SC/UPC", - "SC/APC", - "ST", - "CS", - "SN", - "SMA 905", - "SMA 906", - "URM-P2", - "URM-P4", - "URM-P8", - "Splice", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name", - "type", - "rear_port" - ], - "type" : "object" - }, - "FrontPortRearPort" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "FrontPortTemplate" : { - "properties" : { - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rear_port" : { "$ref" : "#/definitions/NestedRearPortTemplate" }, - "rear_port_position" : { - "default" : 1, - "maximum" : 1024, - "minimum" : 1, - "title" : "Rear port position", - "type" : "integer" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "8P8C", - "8P6C", - "8P4C", - "8P2C", - "6P6C", - "6P4C", - "6P2C", - "4P4C", - "4P2C", - "GG45", - "TERA 4P", - "TERA 2P", - "TERA 1P", - "110 Punch", - "BNC", - "F Connector", - "N Connector", - "MRJ21", - "FC", - "LC", - "LC/PC", - "LC/UPC", - "LC/APC", - "LSH", - "LSH/PC", - "LSH/UPC", - "LSH/APC", - "MPO", - "MTRJ", - "SC", - "SC/PC", - "SC/UPC", - "SC/APC", - "ST", - "CS", - "SN", - "SMA 905", - "SMA 906", - "URM-P2", - "URM-P4", - "URM-P8", - "Splice", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "type", - "rear_port" - ], - "type" : "object" - }, - "Group" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 150, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user_count" : { - "readOnly" : true, - "title" : "User count", - "type" : "integer" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "ImageAttachment" : { - "properties" : { - "content_type" : { - "title" : "Content type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "image" : { - "format" : "uri", - "readOnly" : true, - "title" : "Image", - "type" : "string" - }, - "image_height" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Image height", - "type" : "integer" - }, - "image_width" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Image width", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 50, - "title" : "Name", - "type" : "string" - }, - "object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Object id", - "type" : "integer" - }, - "parent" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Parent", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "content_type", - "object_id", - "image_height", - "image_width" - ], - "type" : "object" - }, - "Interface" : { - "properties" : { - "bridge" : { "$ref" : "#/definitions/NestedInterface" }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "count_fhrp_groups" : { - "readOnly" : true, - "title" : "Count fhrp groups", - "type" : "integer" - }, - "count_ipaddresses" : { - "readOnly" : true, - "title" : "Count ipaddresses", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "duplex" : { - "properties" : { - "label" : { - "enum" : [ - "Half", - "Full", - "Auto" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "half", - "full", - "auto" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Duplex", - "type" : "object" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "lag" : { "$ref" : "#/definitions/NestedInterface" }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mac_address" : { - "title" : "MAC Address", - "type" : "string", - "x-nullable" : true - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "mgmt_only" : { - "description" : "This interface is used only for out-of-band management", - "title" : "Management only", - "type" : "boolean" - }, - "mode" : { - "properties" : { - "label" : { - "enum" : [ - "Access", - "Tagged", - "Tagged (All)" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "access", - "tagged", - "tagged-all" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Mode", - "type" : "object" - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "mtu" : { - "maximum" : 65536, - "minimum" : 1, - "title" : "MTU", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedInterface" }, - "rf_channel" : { - "properties" : { - "label" : { - "enum" : [ - "1 (2412 MHz)", - "2 (2417 MHz)", - "3 (2422 MHz)", - "4 (2427 MHz)", - "5 (2432 MHz)", - "6 (2437 MHz)", - "7 (2442 MHz)", - "8 (2447 MHz)", - "9 (2452 MHz)", - "10 (2457 MHz)", - "11 (2462 MHz)", - "12 (2467 MHz)", - "13 (2472 MHz)", - "32 (5160/20 MHz)", - "34 (5170/40 MHz)", - "36 (5180/20 MHz)", - "38 (5190/40 MHz)", - "40 (5200/20 MHz)", - "42 (5210/80 MHz)", - "44 (5220/20 MHz)", - "46 (5230/40 MHz)", - "48 (5240/20 MHz)", - "50 (5250/160 MHz)", - "52 (5260/20 MHz)", - "54 (5270/40 MHz)", - "56 (5280/20 MHz)", - "58 (5290/80 MHz)", - "60 (5300/20 MHz)", - "62 (5310/40 MHz)", - "64 (5320/20 MHz)", - "100 (5500/20 MHz)", - "102 (5510/40 MHz)", - "104 (5520/20 MHz)", - "106 (5530/80 MHz)", - "108 (5540/20 MHz)", - "110 (5550/40 MHz)", - "112 (5560/20 MHz)", - "114 (5570/160 MHz)", - "116 (5580/20 MHz)", - "118 (5590/40 MHz)", - "120 (5600/20 MHz)", - "122 (5610/80 MHz)", - "124 (5620/20 MHz)", - "126 (5630/40 MHz)", - "128 (5640/20 MHz)", - "132 (5660/20 MHz)", - "134 (5670/40 MHz)", - "136 (5680/20 MHz)", - "138 (5690/80 MHz)", - "140 (5700/20 MHz)", - "142 (5710/40 MHz)", - "144 (5720/20 MHz)", - "149 (5745/20 MHz)", - "151 (5755/40 MHz)", - "153 (5765/20 MHz)", - "155 (5775/80 MHz)", - "157 (5785/20 MHz)", - "159 (5795/40 MHz)", - "161 (5805/20 MHz)", - "163 (5815/160 MHz)", - "165 (5825/20 MHz)", - "167 (5835/40 MHz)", - "169 (5845/20 MHz)", - "171 (5855/80 MHz)", - "173 (5865/20 MHz)", - "175 (5875/40 MHz)", - "177 (5885/20 MHz)", - "1 (5955/20 MHz)", - "3 (5965/40 MHz)", - "5 (5975/20 MHz)", - "7 (5985/80 MHz)", - "9 (5995/20 MHz)", - "11 (6005/40 MHz)", - "13 (6015/20 MHz)", - "15 (6025/160 MHz)", - "17 (6035/20 MHz)", - "19 (6045/40 MHz)", - "21 (6055/20 MHz)", - "23 (6065/80 MHz)", - "25 (6075/20 MHz)", - "27 (6085/40 MHz)", - "29 (6095/20 MHz)", - "31 (6105/320 MHz)", - "33 (6115/20 MHz)", - "35 (6125/40 MHz)", - "37 (6135/20 MHz)", - "39 (6145/80 MHz)", - "41 (6155/20 MHz)", - "43 (6165/40 MHz)", - "45 (6175/20 MHz)", - "47 (6185/160 MHz)", - "49 (6195/20 MHz)", - "51 (6205/40 MHz)", - "53 (6215/20 MHz)", - "55 (6225/80 MHz)", - "57 (6235/20 MHz)", - "59 (6245/40 MHz)", - "61 (6255/20 MHz)", - "65 (6275/20 MHz)", - "67 (6285/40 MHz)", - "69 (6295/20 MHz)", - "71 (6305/80 MHz)", - "73 (6315/20 MHz)", - "75 (6325/40 MHz)", - "77 (6335/20 MHz)", - "79 (6345/160 MHz)", - "81 (6355/20 MHz)", - "83 (6365/40 MHz)", - "85 (6375/20 MHz)", - "87 (6385/80 MHz)", - "89 (6395/20 MHz)", - "91 (6405/40 MHz)", - "93 (6415/20 MHz)", - "95 (6425/320 MHz)", - "97 (6435/20 MHz)", - "99 (6445/40 MHz)", - "101 (6455/20 MHz)", - "103 (6465/80 MHz)", - "105 (6475/20 MHz)", - "107 (6485/40 MHz)", - "109 (6495/20 MHz)", - "111 (6505/160 MHz)", - "113 (6515/20 MHz)", - "115 (6525/40 MHz)", - "117 (6535/20 MHz)", - "119 (6545/80 MHz)", - "121 (6555/20 MHz)", - "123 (6565/40 MHz)", - "125 (6575/20 MHz)", - "129 (6595/20 MHz)", - "131 (6605/40 MHz)", - "133 (6615/20 MHz)", - "135 (6625/80 MHz)", - "137 (6635/20 MHz)", - "139 (6645/40 MHz)", - "141 (6655/20 MHz)", - "143 (6665/160 MHz)", - "145 (6675/20 MHz)", - "147 (6685/40 MHz)", - "149 (6695/20 MHz)", - "151 (6705/80 MHz)", - "153 (6715/20 MHz)", - "155 (6725/40 MHz)", - "157 (6735/20 MHz)", - "159 (6745/320 MHz)", - "161 (6755/20 MHz)", - "163 (6765/40 MHz)", - "165 (6775/20 MHz)", - "167 (6785/80 MHz)", - "169 (6795/20 MHz)", - "171 (6805/40 MHz)", - "173 (6815/20 MHz)", - "175 (6825/160 MHz)", - "177 (6835/20 MHz)", - "179 (6845/40 MHz)", - "181 (6855/20 MHz)", - "183 (6865/80 MHz)", - "185 (6875/20 MHz)", - "187 (6885/40 MHz)", - "189 (6895/20 MHz)", - "193 (6915/20 MHz)", - "195 (6925/40 MHz)", - "197 (6935/20 MHz)", - "199 (6945/80 MHz)", - "201 (6955/20 MHz)", - "203 (6965/40 MHz)", - "205 (6975/20 MHz)", - "207 (6985/160 MHz)", - "209 (6995/20 MHz)", - "211 (7005/40 MHz)", - "213 (7015/20 MHz)", - "215 (7025/80 MHz)", - "217 (7035/20 MHz)", - "219 (7045/40 MHz)", - "221 (7055/20 MHz)", - "225 (7075/20 MHz)", - "227 (7085/40 MHz)", - "229 (7095/20 MHz)", - "233 (7115/20 MHz)", - "1 (58.32/2.16 GHz)", - "2 (60.48/2.16 GHz)", - "3 (62.64/2.16 GHz)", - "4 (64.80/2.16 GHz)", - "5 (66.96/2.16 GHz)", - "6 (69.12/2.16 GHz)", - "9 (59.40/4.32 GHz)", - "10 (61.56/4.32 GHz)", - "11 (63.72/4.32 GHz)", - "12 (65.88/4.32 GHz)", - "13 (68.04/4.32 GHz)", - "17 (60.48/6.48 GHz)", - "18 (62.64/6.48 GHz)", - "19 (64.80/6.48 GHz)", - "20 (66.96/6.48 GHz)", - "25 (61.56/8.64 GHz)", - "26 (63.72/8.64 GHz)", - "27 (65.88/8.64 GHz)" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "2.4g-1-2412-22", - "2.4g-2-2417-22", - "2.4g-3-2422-22", - "2.4g-4-2427-22", - "2.4g-5-2432-22", - "2.4g-6-2437-22", - "2.4g-7-2442-22", - "2.4g-8-2447-22", - "2.4g-9-2452-22", - "2.4g-10-2457-22", - "2.4g-11-2462-22", - "2.4g-12-2467-22", - "2.4g-13-2472-22", - "5g-32-5160-20", - "5g-34-5170-40", - "5g-36-5180-20", - "5g-38-5190-40", - "5g-40-5200-20", - "5g-42-5210-80", - "5g-44-5220-20", - "5g-46-5230-40", - "5g-48-5240-20", - "5g-50-5250-160", - "5g-52-5260-20", - "5g-54-5270-40", - "5g-56-5280-20", - "5g-58-5290-80", - "5g-60-5300-20", - "5g-62-5310-40", - "5g-64-5320-20", - "5g-100-5500-20", - "5g-102-5510-40", - "5g-104-5520-20", - "5g-106-5530-80", - "5g-108-5540-20", - "5g-110-5550-40", - "5g-112-5560-20", - "5g-114-5570-160", - "5g-116-5580-20", - "5g-118-5590-40", - "5g-120-5600-20", - "5g-122-5610-80", - "5g-124-5620-20", - "5g-126-5630-40", - "5g-128-5640-20", - "5g-132-5660-20", - "5g-134-5670-40", - "5g-136-5680-20", - "5g-138-5690-80", - "5g-140-5700-20", - "5g-142-5710-40", - "5g-144-5720-20", - "5g-149-5745-20", - "5g-151-5755-40", - "5g-153-5765-20", - "5g-155-5775-80", - "5g-157-5785-20", - "5g-159-5795-40", - "5g-161-5805-20", - "5g-163-5815-160", - "5g-165-5825-20", - "5g-167-5835-40", - "5g-169-5845-20", - "5g-171-5855-80", - "5g-173-5865-20", - "5g-175-5875-40", - "5g-177-5885-20", - "6g-1-5955-20", - "6g-3-5965-40", - "6g-5-5975-20", - "6g-7-5985-80", - "6g-9-5995-20", - "6g-11-6005-40", - "6g-13-6015-20", - "6g-15-6025-160", - "6g-17-6035-20", - "6g-19-6045-40", - "6g-21-6055-20", - "6g-23-6065-80", - "6g-25-6075-20", - "6g-27-6085-40", - "6g-29-6095-20", - "6g-31-6105-320", - "6g-33-6115-20", - "6g-35-6125-40", - "6g-37-6135-20", - "6g-39-6145-80", - "6g-41-6155-20", - "6g-43-6165-40", - "6g-45-6175-20", - "6g-47-6185-160", - "6g-49-6195-20", - "6g-51-6205-40", - "6g-53-6215-20", - "6g-55-6225-80", - "6g-57-6235-20", - "6g-59-6245-40", - "6g-61-6255-20", - "6g-65-6275-20", - "6g-67-6285-40", - "6g-69-6295-20", - "6g-71-6305-80", - "6g-73-6315-20", - "6g-75-6325-40", - "6g-77-6335-20", - "6g-79-6345-160", - "6g-81-6355-20", - "6g-83-6365-40", - "6g-85-6375-20", - "6g-87-6385-80", - "6g-89-6395-20", - "6g-91-6405-40", - "6g-93-6415-20", - "6g-95-6425-320", - "6g-97-6435-20", - "6g-99-6445-40", - "6g-101-6455-20", - "6g-103-6465-80", - "6g-105-6475-20", - "6g-107-6485-40", - "6g-109-6495-20", - "6g-111-6505-160", - "6g-113-6515-20", - "6g-115-6525-40", - "6g-117-6535-20", - "6g-119-6545-80", - "6g-121-6555-20", - "6g-123-6565-40", - "6g-125-6575-20", - "6g-129-6595-20", - "6g-131-6605-40", - "6g-133-6615-20", - "6g-135-6625-80", - "6g-137-6635-20", - "6g-139-6645-40", - "6g-141-6655-20", - "6g-143-6665-160", - "6g-145-6675-20", - "6g-147-6685-40", - "6g-149-6695-20", - "6g-151-6705-80", - "6g-153-6715-20", - "6g-155-6725-40", - "6g-157-6735-20", - "6g-159-6745-320", - "6g-161-6755-20", - "6g-163-6765-40", - "6g-165-6775-20", - "6g-167-6785-80", - "6g-169-6795-20", - "6g-171-6805-40", - "6g-173-6815-20", - "6g-175-6825-160", - "6g-177-6835-20", - "6g-179-6845-40", - "6g-181-6855-20", - "6g-183-6865-80", - "6g-185-6875-20", - "6g-187-6885-40", - "6g-189-6895-20", - "6g-193-6915-20", - "6g-195-6925-40", - "6g-197-6935-20", - "6g-199-6945-80", - "6g-201-6955-20", - "6g-203-6965-40", - "6g-205-6975-20", - "6g-207-6985-160", - "6g-209-6995-20", - "6g-211-7005-40", - "6g-213-7015-20", - "6g-215-7025-80", - "6g-217-7035-20", - "6g-219-7045-40", - "6g-221-7055-20", - "6g-225-7075-20", - "6g-227-7085-40", - "6g-229-7095-20", - "6g-233-7115-20", - "60g-1-58320-2160", - "60g-2-60480-2160", - "60g-3-62640-2160", - "60g-4-64800-2160", - "60g-5-66960-2160", - "60g-6-69120-2160", - "60g-9-59400-4320", - "60g-10-61560-4320", - "60g-11-63720-4320", - "60g-12-65880-4320", - "60g-13-68040-4320", - "60g-17-60480-6480", - "60g-18-62640-6480", - "60g-19-64800-6480", - "60g-20-66960-6480", - "60g-25-61560-6480", - "60g-26-63720-6480", - "60g-27-65880-6480" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Rf channel", - "type" : "object" - }, - "rf_channel_frequency" : { - "format" : "decimal", - "title" : "Channel frequency (MHz)", - "type" : "number", - "x-nullable" : true - }, - "rf_channel_width" : { - "format" : "decimal", - "title" : "Channel width (MHz)", - "type" : "number", - "x-nullable" : true - }, - "rf_role" : { - "properties" : { - "label" : { - "enum" : [ - "Access point", - "Station" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "ap", - "station" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Rf role", - "type" : "object" - }, - "speed" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "tagged_vlans" : { - "items" : { "$ref" : "#/definitions/NestedVLAN" }, - "type" : "array", - "uniqueItems" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tx_power" : { - "maximum" : 127, - "minimum" : 0, - "title" : "Transmit power (dBm)", - "type" : "integer", - "x-nullable" : true - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "Virtual", - "Bridge", - "Link Aggregation Group (LAG)", - "100BASE-TX (10/100ME)", - "1000BASE-T (1GE)", - "2.5GBASE-T (2.5GE)", - "5GBASE-T (5GE)", - "10GBASE-T (10GE)", - "10GBASE-CX4 (10GE)", - "GBIC (1GE)", - "SFP (1GE)", - "SFP+ (10GE)", - "XFP (10GE)", - "XENPAK (10GE)", - "X2 (10GE)", - "SFP28 (25GE)", - "SFP56 (50GE)", - "QSFP+ (40GE)", - "QSFP28 (50GE)", - "CFP (100GE)", - "CFP2 (100GE)", - "CFP2 (200GE)", - "CFP4 (100GE)", - "Cisco CPAK (100GE)", - "QSFP28 (100GE)", - "QSFP56 (200GE)", - "QSFP-DD (400GE)", - "OSFP (400GE)", - "IEEE 802.11a", - "IEEE 802.11b/g", - "IEEE 802.11n", - "IEEE 802.11ac", - "IEEE 802.11ad", - "IEEE 802.11ax", - "IEEE 802.15.1 (Bluetooth)", - "GSM", - "CDMA", - "LTE", - "OC-3/STM-1", - "OC-12/STM-4", - "OC-48/STM-16", - "OC-192/STM-64", - "OC-768/STM-256", - "OC-1920/STM-640", - "OC-3840/STM-1234", - "SFP (1GFC)", - "SFP (2GFC)", - "SFP (4GFC)", - "SFP+ (8GFC)", - "SFP+ (16GFC)", - "SFP28 (32GFC)", - "QSFP+ (64GFC)", - "QSFP28 (128GFC)", - "SDR (2 Gbps)", - "DDR (4 Gbps)", - "QDR (8 Gbps)", - "FDR10 (10 Gbps)", - "FDR (13.5 Gbps)", - "EDR (25 Gbps)", - "HDR (50 Gbps)", - "NDR (100 Gbps)", - "XDR (250 Gbps)", - "T1 (1.544 Mbps)", - "E1 (2.048 Mbps)", - "T3 (45 Mbps)", - "E3 (34 Mbps)", - "xDSL", - "DOCSIS", - "GPON (2.5 Gbps / 1.25 Gps)", - "XG-PON (10 Gbps / 2.5 Gbps)", - "XGS-PON (10 Gbps)", - "NG-PON2 (TWDM-PON) (4x10 Gbps)", - "EPON (1 Gbps)", - "10G-EPON (10 Gbps)", - "Cisco StackWise", - "Cisco StackWise Plus", - "Cisco FlexStack", - "Cisco FlexStack Plus", - "Cisco StackWise-80", - "Cisco StackWise-160", - "Cisco StackWise-320", - "Cisco StackWise-480", - "Juniper VCP", - "Extreme SummitStack", - "Extreme SummitStack-128", - "Extreme SummitStack-256", - "Extreme SummitStack-512", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "virtual", - "bridge", - "lag", - "100base-tx", - "1000base-t", - "2.5gbase-t", - "5gbase-t", - "10gbase-t", - "10gbase-cx4", - "1000base-x-gbic", - "1000base-x-sfp", - "10gbase-x-sfpp", - "10gbase-x-xfp", - "10gbase-x-xenpak", - "10gbase-x-x2", - "25gbase-x-sfp28", - "50gbase-x-sfp56", - "40gbase-x-qsfpp", - "50gbase-x-sfp28", - "100gbase-x-cfp", - "100gbase-x-cfp2", - "200gbase-x-cfp2", - "100gbase-x-cfp4", - "100gbase-x-cpak", - "100gbase-x-qsfp28", - "200gbase-x-qsfp56", - "400gbase-x-qsfpdd", - "400gbase-x-osfp", - "ieee802.11a", - "ieee802.11g", - "ieee802.11n", - "ieee802.11ac", - "ieee802.11ad", - "ieee802.11ax", - "ieee802.15.1", - "gsm", - "cdma", - "lte", - "sonet-oc3", - "sonet-oc12", - "sonet-oc48", - "sonet-oc192", - "sonet-oc768", - "sonet-oc1920", - "sonet-oc3840", - "1gfc-sfp", - "2gfc-sfp", - "4gfc-sfp", - "8gfc-sfpp", - "16gfc-sfpp", - "32gfc-sfp28", - "64gfc-qsfpp", - "128gfc-qsfp28", - "infiniband-sdr", - "infiniband-ddr", - "infiniband-qdr", - "infiniband-fdr10", - "infiniband-fdr", - "infiniband-edr", - "infiniband-hdr", - "infiniband-ndr", - "infiniband-xdr", - "t1", - "e1", - "t3", - "e3", - "xdsl", - "docsis", - "gpon", - "xg-pon", - "xgs-pon", - "ng-pon2", - "epon", - "10g-epon", - "cisco-stackwise", - "cisco-stackwise-plus", - "cisco-flexstack", - "cisco-flexstack-plus", - "cisco-stackwise-80", - "cisco-stackwise-160", - "cisco-stackwise-320", - "cisco-stackwise-480", - "juniper-vcp", - "extreme-summitstack", - "extreme-summitstack-128", - "extreme-summitstack-256", - "extreme-summitstack-512", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "untagged_vlan" : { "$ref" : "#/definitions/NestedVLAN" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" }, - "wireless_lans" : { - "items" : { "$ref" : "#/definitions/NestedWirelessLAN" }, - "type" : "array", - "uniqueItems" : true - }, - "wireless_link" : { "$ref" : "#/definitions/NestedWirelessLink" }, - "wwn" : { - "description" : "64-bit World Wide Name", - "title" : "WWN", - "type" : "string", - "x-nullable" : true - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name", - "type" - ], - "type" : "object" - }, - "InterfaceTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mgmt_only" : { - "title" : "Management only", - "type" : "boolean" - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "Virtual", - "Bridge", - "Link Aggregation Group (LAG)", - "100BASE-TX (10/100ME)", - "1000BASE-T (1GE)", - "2.5GBASE-T (2.5GE)", - "5GBASE-T (5GE)", - "10GBASE-T (10GE)", - "10GBASE-CX4 (10GE)", - "GBIC (1GE)", - "SFP (1GE)", - "SFP+ (10GE)", - "XFP (10GE)", - "XENPAK (10GE)", - "X2 (10GE)", - "SFP28 (25GE)", - "SFP56 (50GE)", - "QSFP+ (40GE)", - "QSFP28 (50GE)", - "CFP (100GE)", - "CFP2 (100GE)", - "CFP2 (200GE)", - "CFP4 (100GE)", - "Cisco CPAK (100GE)", - "QSFP28 (100GE)", - "QSFP56 (200GE)", - "QSFP-DD (400GE)", - "OSFP (400GE)", - "IEEE 802.11a", - "IEEE 802.11b/g", - "IEEE 802.11n", - "IEEE 802.11ac", - "IEEE 802.11ad", - "IEEE 802.11ax", - "IEEE 802.15.1 (Bluetooth)", - "GSM", - "CDMA", - "LTE", - "OC-3/STM-1", - "OC-12/STM-4", - "OC-48/STM-16", - "OC-192/STM-64", - "OC-768/STM-256", - "OC-1920/STM-640", - "OC-3840/STM-1234", - "SFP (1GFC)", - "SFP (2GFC)", - "SFP (4GFC)", - "SFP+ (8GFC)", - "SFP+ (16GFC)", - "SFP28 (32GFC)", - "QSFP+ (64GFC)", - "QSFP28 (128GFC)", - "SDR (2 Gbps)", - "DDR (4 Gbps)", - "QDR (8 Gbps)", - "FDR10 (10 Gbps)", - "FDR (13.5 Gbps)", - "EDR (25 Gbps)", - "HDR (50 Gbps)", - "NDR (100 Gbps)", - "XDR (250 Gbps)", - "T1 (1.544 Mbps)", - "E1 (2.048 Mbps)", - "T3 (45 Mbps)", - "E3 (34 Mbps)", - "xDSL", - "DOCSIS", - "GPON (2.5 Gbps / 1.25 Gps)", - "XG-PON (10 Gbps / 2.5 Gbps)", - "XGS-PON (10 Gbps)", - "NG-PON2 (TWDM-PON) (4x10 Gbps)", - "EPON (1 Gbps)", - "10G-EPON (10 Gbps)", - "Cisco StackWise", - "Cisco StackWise Plus", - "Cisco FlexStack", - "Cisco FlexStack Plus", - "Cisco StackWise-80", - "Cisco StackWise-160", - "Cisco StackWise-320", - "Cisco StackWise-480", - "Juniper VCP", - "Extreme SummitStack", - "Extreme SummitStack-128", - "Extreme SummitStack-256", - "Extreme SummitStack-512", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "virtual", - "bridge", - "lag", - "100base-tx", - "1000base-t", - "2.5gbase-t", - "5gbase-t", - "10gbase-t", - "10gbase-cx4", - "1000base-x-gbic", - "1000base-x-sfp", - "10gbase-x-sfpp", - "10gbase-x-xfp", - "10gbase-x-xenpak", - "10gbase-x-x2", - "25gbase-x-sfp28", - "50gbase-x-sfp56", - "40gbase-x-qsfpp", - "50gbase-x-sfp28", - "100gbase-x-cfp", - "100gbase-x-cfp2", - "200gbase-x-cfp2", - "100gbase-x-cfp4", - "100gbase-x-cpak", - "100gbase-x-qsfp28", - "200gbase-x-qsfp56", - "400gbase-x-qsfpdd", - "400gbase-x-osfp", - "ieee802.11a", - "ieee802.11g", - "ieee802.11n", - "ieee802.11ac", - "ieee802.11ad", - "ieee802.11ax", - "ieee802.15.1", - "gsm", - "cdma", - "lte", - "sonet-oc3", - "sonet-oc12", - "sonet-oc48", - "sonet-oc192", - "sonet-oc768", - "sonet-oc1920", - "sonet-oc3840", - "1gfc-sfp", - "2gfc-sfp", - "4gfc-sfp", - "8gfc-sfpp", - "16gfc-sfpp", - "32gfc-sfp28", - "64gfc-qsfpp", - "128gfc-qsfp28", - "infiniband-sdr", - "infiniband-ddr", - "infiniband-qdr", - "infiniband-fdr10", - "infiniband-fdr", - "infiniband-edr", - "infiniband-hdr", - "infiniband-ndr", - "infiniband-xdr", - "t1", - "e1", - "t3", - "e3", - "xdsl", - "docsis", - "gpon", - "xg-pon", - "xgs-pon", - "ng-pon2", - "epon", - "10g-epon", - "cisco-stackwise", - "cisco-stackwise-plus", - "cisco-flexstack", - "cisco-flexstack-plus", - "cisco-stackwise-80", - "cisco-stackwise-160", - "cisco-stackwise-320", - "cisco-stackwise-480", - "juniper-vcp", - "extreme-summitstack", - "extreme-summitstack-128", - "extreme-summitstack-256", - "extreme-summitstack-512", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "type" - ], - "type" : "object" - }, - "InventoryItem" : { - "properties" : { - "asset_tag" : { - "description" : "A unique tag used to identify this item", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "component" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Component", - "type" : "object" - }, - "component_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Component id", - "type" : "integer", - "x-nullable" : true - }, - "component_type" : { - "title" : "Component type", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "discovered" : { - "description" : "This item was automatically discovered", - "title" : "Discovered", - "type" : "boolean" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "part_id" : { - "description" : "Manufacturer-assigned part identifier", - "maxLength" : 50, - "title" : "Part ID", - "type" : "string" - }, - "role" : { "$ref" : "#/definitions/NestedInventoryItemRole" }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "InventoryItemRole" : { - "properties" : { - "color" : { - "maxLength" : 6, - "minLength" : 1, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "inventoryitem_count" : { - "readOnly" : true, - "title" : "Inventoryitem count", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "InventoryItemTemplate" : { - "properties" : { - "component" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Component", - "type" : "object" - }, - "component_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Component id", - "type" : "integer", - "x-nullable" : true - }, - "component_type" : { - "title" : "Component type", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "part_id" : { - "description" : "Manufacturer-assigned part identifier", - "maxLength" : 50, - "title" : "Part ID", - "type" : "string" - }, - "role" : { "$ref" : "#/definitions/NestedInventoryItemRole" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "device_type", - "name" - ], - "type" : "object" - }, - "IPAddress" : { - "properties" : { - "address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "Address", - "type" : "string" - }, - "assigned_object" : { - "readOnly" : true, - "title" : "Assigned object", - "type" : "object" - }, - "assigned_object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Assigned object id", - "type" : "integer", - "x-nullable" : true - }, - "assigned_object_type" : { - "title" : "Assigned object type", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "dns_name" : { - "description" : "Hostname or FQDN (not case-sensitive)", - "maxLength" : 255, - "pattern" : "^([0-9A-Za-z_-]+|\\*)(\\.[0-9A-Za-z_-]+)*\\.?$", - "title" : "DNS Name", - "type" : "string" - }, - "family" : { - "properties" : { - "label" : { - "enum" : [ - "IPv4", - "IPv6" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 4, - 6 - ], - "type" : "integer" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Family", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "nat_inside" : { "$ref" : "#/definitions/NestedIPAddress" }, - "nat_outside" : { "$ref" : "#/definitions/NestedIPAddress" }, - "role" : { - "properties" : { - "label" : { - "enum" : [ - "Loopback", - "Secondary", - "Anycast", - "VIP", - "VRRP", - "HSRP", - "GLBP", - "CARP" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "loopback", - "secondary", - "anycast", - "vip", - "vrrp", - "hsrp", - "glbp", - "carp" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Role", - "type" : "object" - }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Active", - "Reserved", - "Deprecated", - "DHCP", - "SLAAC" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "active", - "reserved", - "deprecated", - "dhcp", - "slaac" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" } - }, - "required" : [ "address" ], - "type" : "object" - }, - "IPRange" : { - "properties" : { - "children" : { - "readOnly" : true, - "title" : "Children", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "end_address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "End address", - "type" : "string" - }, - "family" : { - "properties" : { - "label" : { - "enum" : [ - "IPv4", - "IPv6" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 4, - 6 - ], - "type" : "integer" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Family", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "role" : { "$ref" : "#/definitions/NestedRole" }, - "size" : { - "readOnly" : true, - "title" : "Size", - "type" : "integer" - }, - "start_address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "Start address", - "type" : "string" - }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Active", - "Reserved", - "Deprecated" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "active", - "reserved", - "deprecated" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" } - }, - "required" : [ - "start_address", - "end_address" - ], - "type" : "object" - }, - "JobResult" : { - "properties" : { - "completed" : { - "format" : "date-time", - "title" : "Completed", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "data" : { - "title" : "Data", - "type" : "string", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "job_id" : { - "format" : "uuid", - "title" : "Job id", - "type" : "string" - }, - "name" : { - "maxLength" : 255, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "obj_type" : { - "readOnly" : true, - "title" : "Obj type", - "type" : "string" - }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Pending", - "Running", - "Completed", - "Errored", - "Failed" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "pending", - "running", - "completed", - "errored", - "failed" - ], - "type" : "string" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user" : { "$ref" : "#/definitions/NestedUser" } - }, - "required" : [ - "name", - "job_id" - ], - "type" : "object" - }, - "JournalEntry" : { - "properties" : { - "assigned_object" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Assigned object", - "type" : "object" - }, - "assigned_object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Assigned object id", - "type" : "integer" - }, - "assigned_object_type" : { - "title" : "Assigned object type", - "type" : "string" - }, - "comments" : { - "minLength" : 1, - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "created_by" : { - "title" : "Created by", - "type" : "integer", - "x-nullable" : true - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "kind" : { - "properties" : { - "label" : { - "enum" : [ - "Info", - "Success", - "Warning", - "Danger" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "info", - "success", - "warning", - "danger" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Kind", - "type" : "object" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "assigned_object_type", - "assigned_object_id", - "comments" - ], - "type" : "object" - }, - "Location" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedLocation" }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug", - "site" - ], - "type" : "object" - }, - "Manufacturer" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "devicetype_count" : { - "readOnly" : true, - "title" : "Devicetype count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "inventoryitem_count" : { - "readOnly" : true, - "title" : "Inventoryitem count", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "platform_count" : { - "readOnly" : true, - "title" : "Platform count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "Module" : { - "properties" : { - "asset_tag" : { - "description" : "A unique tag used to identify this device", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_bay" : { "$ref" : "#/definitions/NestedModuleBay" }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device", - "module_bay", - "module_type" - ], - "type" : "object" - }, - "ModuleBay" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "installed_module" : { "$ref" : "#/definitions/ModuleBayNestedModule" }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "position" : { - "description" : "Identifier to reference when renaming installed components", - "maxLength" : 30, - "title" : "Position", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "ModuleBayNestedModule" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "type" : "object", - "x-nullable" : true - }, - "ModuleBayTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "position" : { - "description" : "Identifier to reference when renaming installed components", - "maxLength" : 30, - "title" : "Position", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "name" - ], - "type" : "object" - }, - "ModuleNestedModuleBay" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "ModuleType" : { - "properties" : { - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Model", - "type" : "string" - }, - "part_number" : { - "description" : "Discrete part number (optional)", - "maxLength" : 50, - "title" : "Part number", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "manufacturer", - "model" - ], - "type" : "object" - }, - "NestedASN" : { - "properties" : { - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "asn" ], - "type" : "object" - }, - "NestedCable" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "maxLength" : 100, - "title" : "Label", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "type" : "object" - }, - "NestedCircuit" : { - "properties" : { - "cid" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Circuit ID", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "cid" ], - "type" : "object" - }, - "NestedCircuitType" : { - "properties" : { - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedCluster" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedClusterGroup" : { - "properties" : { - "cluster_count" : { - "readOnly" : true, - "title" : "Cluster count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedClusterType" : { - "properties" : { - "cluster_count" : { - "readOnly" : true, - "title" : "Cluster count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedContact" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "NestedContactGroup" : { - "properties" : { - "contact_count" : { - "readOnly" : true, - "title" : "Contact count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedContactRole" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedDevice" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "title" : "Name", - "type" : "string", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "type" : "object" - }, - "NestedDeviceRole" : { - "properties" : { - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedDeviceType" : { - "properties" : { - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Model", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "model", - "slug" - ], - "type" : "object" - }, - "NestedFHRPGroup" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group_id" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Group ID", - "type" : "integer" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "protocol" : { - "enum" : [ - "vrrp2", - "vrrp3", - "carp", - "clusterxl", - "hsrp", - "glbp", - "other" - ], - "title" : "Protocol", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "protocol", - "group_id" - ], - "type" : "object" - }, - "NestedGroup" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 150, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "NestedInterface" : { - "properties" : { - "cable" : { - "title" : "Cable", - "type" : "integer", - "x-nullable" : true - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedInventoryItemRole" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "inventoryitem_count" : { - "readOnly" : true, - "title" : "Inventoryitem count", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedIPAddress" : { - "properties" : { - "address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "Address", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "integer" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "address" ], - "type" : "object" - }, - "NestedLocation" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedManufacturer" : { - "properties" : { - "devicetype_count" : { - "readOnly" : true, - "title" : "Devicetype count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedModule" : { - "properties" : { - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "module_bay" : { "$ref" : "#/definitions/ModuleNestedModuleBay" }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "type" : "object" - }, - "NestedModuleBay" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "module" : { "$ref" : "#/definitions/NestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "NestedModuleType" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Model", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "model" ], - "type" : "object", - "x-nullable" : true - }, - "NestedPlatform" : { - "properties" : { - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedPowerPanel" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "powerfeed_count" : { - "readOnly" : true, - "title" : "Powerfeed count", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "NestedPowerPort" : { - "properties" : { - "cable" : { - "title" : "Cable", - "type" : "integer", - "x-nullable" : true - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedPowerPortTemplate" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedProvider" : { - "properties" : { - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedProviderNetwork" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedRack" : { - "properties" : { - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedRackRole" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedRearPortTemplate" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "NestedRegion" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedRIR" : { - "properties" : { - "aggregate_count" : { - "readOnly" : true, - "title" : "Aggregate count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedRole" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedRouteTarget" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "description" : "Route target value (formatted in accordance with RFC 4360)", - "maxLength" : 21, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "NestedSite" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedSiteGroup" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedTag" : { - "properties" : { - "color" : { - "maxLength" : 6, - "minLength" : 1, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "Id", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedTenant" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedTenantGroup" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tenant_count" : { - "readOnly" : true, - "title" : "Tenant count", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedUser" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "username" : { - "description" : "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", - "maxLength" : 150, - "minLength" : 1, - "pattern" : "^[\\w.@+-]+$", - "title" : "Username", - "type" : "string" - } - }, - "required" : [ "username" ], - "type" : "object" - }, - "NestedVirtualChassis" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "master" : { "$ref" : "#/definitions/NestedDevice" }, - "member_count" : { - "readOnly" : true, - "title" : "Member count", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "master" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedVirtualMachine" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedVLAN" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vid" : { - "maximum" : 4094, - "minimum" : 1, - "title" : "ID", - "type" : "integer" - } - }, - "required" : [ - "vid", - "name" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedVLANGroup" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "NestedVMInterface" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtual_machine" : { "$ref" : "#/definitions/NestedVirtualMachine" } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedVRF" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rd" : { - "description" : "Unique route distinguisher (as defined in RFC 4364)", - "maxLength" : 21, - "title" : "Route distinguisher", - "type" : "string", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object", - "x-nullable" : true - }, - "NestedWirelessLAN" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ssid" : { - "maxLength" : 32, - "minLength" : 1, - "title" : "SSID", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "ssid" ], - "type" : "object" - }, - "NestedWirelessLANGroup" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "wirelesslan_count" : { - "readOnly" : true, - "title" : "Wirelesslan count", - "type" : "integer" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object", - "x-nullable" : true - }, - "NestedWirelessLink" : { - "properties" : { - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ssid" : { - "maxLength" : 32, - "title" : "SSID", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "type" : "object" - }, - "ObjectChange" : { - "properties" : { - "action" : { - "properties" : { - "label" : { - "enum" : [ - "Created", - "Updated", - "Deleted" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "create", - "update", - "delete" - ], - "type" : "string" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Action", - "type" : "object" - }, - "changed_object" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nSerialize a nested representation of the changed object.\n", - "readOnly" : true, - "title" : "Changed object", - "type" : "object" - }, - "changed_object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Changed object id", - "type" : "integer" - }, - "changed_object_type" : { - "readOnly" : true, - "title" : "Changed object type", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "postchange_data" : { - "readOnly" : true, - "title" : "Postchange data", - "type" : "string" - }, - "prechange_data" : { - "readOnly" : true, - "title" : "Prechange data", - "type" : "string" - }, - "request_id" : { - "format" : "uuid", - "readOnly" : true, - "title" : "Request id", - "type" : "string" - }, - "time" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Time", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user" : { "$ref" : "#/definitions/NestedUser" }, - "user_name" : { - "minLength" : 1, - "readOnly" : true, - "title" : "User name", - "type" : "string" - } - }, - "required" : [ "changed_object_id" ], - "type" : "object" - }, - "ObjectPermission" : { - "properties" : { - "actions" : { - "description" : "The list of actions granted by this permission", - "items" : { - "maxLength" : 30, - "minLength" : 1, - "title" : "Actions", - "type" : "string" - }, - "type" : "array" - }, - "constraints" : { - "description" : "Queryset filter matching the applicable objects of the selected type(s)", - "title" : "Constraints", - "type" : "string", - "x-nullable" : true - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "groups" : { - "items" : { "$ref" : "#/definitions/NestedGroup" }, - "type" : "array", - "uniqueItems" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "object_types" : { - "items" : { "type" : "string" }, - "type" : "array", - "uniqueItems" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "users" : { - "items" : { "$ref" : "#/definitions/NestedUser" }, - "type" : "array", - "uniqueItems" : true - } - }, - "required" : [ - "name", - "object_types", - "actions" - ], - "type" : "object" - }, - "Platform" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { "$ref" : "#/definitions/NestedManufacturer" }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "napalm_args" : { - "description" : "Additional arguments to pass when initiating the NAPALM driver (JSON format)", - "title" : "NAPALM arguments", - "type" : "string", - "x-nullable" : true - }, - "napalm_driver" : { - "description" : "The name of the NAPALM driver to use when interacting with devices", - "maxLength" : 50, - "title" : "NAPALM driver", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "PowerFeed" : { - "properties" : { - "amperage" : { - "maximum" : 32767, - "minimum" : 1, - "title" : "Amperage", - "type" : "integer" - }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "max_utilization" : { - "description" : "Maximum permissible draw (percentage)", - "maximum" : 100, - "minimum" : 1, - "title" : "Max utilization", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "phase" : { - "default" : { - "label" : "Single phase", - "value" : "single-phase" - }, - "properties" : { - "label" : { - "enum" : [ - "Single phase", - "Three-phase" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "single-phase", - "three-phase" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Phase", - "type" : "object" - }, - "power_panel" : { "$ref" : "#/definitions/NestedPowerPanel" }, - "rack" : { "$ref" : "#/definitions/NestedRack" }, - "status" : { - "default" : { - "label" : "Active", - "value" : "active" - }, - "properties" : { - "label" : { - "enum" : [ - "Offline", - "Active", - "Planned", - "Failed" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "offline", - "active", - "planned", - "failed" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "supply" : { - "default" : { - "label" : "AC", - "value" : "ac" - }, - "properties" : { - "label" : { - "enum" : [ - "AC", - "DC" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "ac", - "dc" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Supply", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "default" : { - "label" : "Primary", - "value" : "primary" - }, - "properties" : { - "label" : { - "enum" : [ - "Primary", - "Redundant" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "primary", - "redundant" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "voltage" : { - "maximum" : 32767, - "minimum" : -32768, - "title" : "Voltage", - "type" : "integer" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "power_panel", - "name" - ], - "type" : "object" - }, - "PowerOutlet" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "feed_leg" : { - "properties" : { - "label" : { - "enum" : [ - "A", - "B", - "C" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "A", - "B", - "C" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Feed leg", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "power_port" : { "$ref" : "#/definitions/NestedPowerPort" }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "C5", - "C7", - "C13", - "C15", - "C19", - "C21", - "P+N+E 4H", - "P+N+E 6H", - "P+N+E 9H", - "2P+E 4H", - "2P+E 6H", - "2P+E 9H", - "3P+E 4H", - "3P+E 6H", - "3P+E 9H", - "3P+N+E 4H", - "3P+N+E 6H", - "3P+N+E 9H", - "NEMA 1-15R", - "NEMA 5-15R", - "NEMA 5-20R", - "NEMA 5-30R", - "NEMA 5-50R", - "NEMA 6-15R", - "NEMA 6-20R", - "NEMA 6-30R", - "NEMA 6-50R", - "NEMA 10-30R", - "NEMA 10-50R", - "NEMA 14-20R", - "NEMA 14-30R", - "NEMA 14-50R", - "NEMA 14-60R", - "NEMA 15-15R", - "NEMA 15-20R", - "NEMA 15-30R", - "NEMA 15-50R", - "NEMA 15-60R", - "NEMA L1-15R", - "NEMA L5-15R", - "NEMA L5-20R", - "NEMA L5-30R", - "NEMA L5-50R", - "NEMA L6-15R", - "NEMA L6-20R", - "NEMA L6-30R", - "NEMA L6-50R", - "NEMA L10-30R", - "NEMA L14-20R", - "NEMA L14-30R", - "NEMA L14-50R", - "NEMA L14-60R", - "NEMA L15-20R", - "NEMA L15-30R", - "NEMA L15-50R", - "NEMA L15-60R", - "NEMA L21-20R", - "NEMA L21-30R", - "NEMA L22-30R", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ITA Type E (CEE 7/5)", - "ITA Type F (CEE 7/3)", - "ITA Type G (BS 1363)", - "ITA Type H", - "ITA Type I", - "ITA Type J", - "ITA Type K", - "ITA Type L (CEI 23-50)", - "ITA Type M (BS 546)", - "ITA Type N", - "ITA Type O", - "ITA Multistandard", - "USB Type A", - "USB Micro B", - "USB Type C", - "DC Terminal", - "HDOT Cx", - "Saf-D-Grid", - "Neutrik powerCON (20A)", - "Neutrik powerCON (32A)", - "Neutrik powerCON TRUE1", - "Neutrik powerCON TRUE1 TOP", - "Ubiquiti SmartPower", - "Hardwired", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "iec-60320-c5", - "iec-60320-c7", - "iec-60320-c13", - "iec-60320-c15", - "iec-60320-c19", - "iec-60320-c21", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15r", - "nema-5-15r", - "nema-5-20r", - "nema-5-30r", - "nema-5-50r", - "nema-6-15r", - "nema-6-20r", - "nema-6-30r", - "nema-6-50r", - "nema-10-30r", - "nema-10-50r", - "nema-14-20r", - "nema-14-30r", - "nema-14-50r", - "nema-14-60r", - "nema-15-15r", - "nema-15-20r", - "nema-15-30r", - "nema-15-50r", - "nema-15-60r", - "nema-l1-15r", - "nema-l5-15r", - "nema-l5-20r", - "nema-l5-30r", - "nema-l5-50r", - "nema-l6-15r", - "nema-l6-20r", - "nema-l6-30r", - "nema-l6-50r", - "nema-l10-30r", - "nema-l14-20r", - "nema-l14-30r", - "nema-l14-50r", - "nema-l14-60r", - "nema-l15-20r", - "nema-l15-30r", - "nema-l15-50r", - "nema-l15-60r", - "nema-l21-20r", - "nema-l21-30r", - "nema-l22-30r", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ita-e", - "ita-f", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "ita-multistandard", - "usb-a", - "usb-micro-b", - "usb-c", - "dc-terminal", - "hdot-cx", - "saf-d-grid", - "neutrik-powercon-20a", - "neutrik-powercon-32a", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "PowerOutletTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "feed_leg" : { - "properties" : { - "label" : { - "enum" : [ - "A", - "B", - "C" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "A", - "B", - "C" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Feed leg", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "power_port" : { "$ref" : "#/definitions/NestedPowerPortTemplate" }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "C5", - "C7", - "C13", - "C15", - "C19", - "C21", - "P+N+E 4H", - "P+N+E 6H", - "P+N+E 9H", - "2P+E 4H", - "2P+E 6H", - "2P+E 9H", - "3P+E 4H", - "3P+E 6H", - "3P+E 9H", - "3P+N+E 4H", - "3P+N+E 6H", - "3P+N+E 9H", - "NEMA 1-15R", - "NEMA 5-15R", - "NEMA 5-20R", - "NEMA 5-30R", - "NEMA 5-50R", - "NEMA 6-15R", - "NEMA 6-20R", - "NEMA 6-30R", - "NEMA 6-50R", - "NEMA 10-30R", - "NEMA 10-50R", - "NEMA 14-20R", - "NEMA 14-30R", - "NEMA 14-50R", - "NEMA 14-60R", - "NEMA 15-15R", - "NEMA 15-20R", - "NEMA 15-30R", - "NEMA 15-50R", - "NEMA 15-60R", - "NEMA L1-15R", - "NEMA L5-15R", - "NEMA L5-20R", - "NEMA L5-30R", - "NEMA L5-50R", - "NEMA L6-15R", - "NEMA L6-20R", - "NEMA L6-30R", - "NEMA L6-50R", - "NEMA L10-30R", - "NEMA L14-20R", - "NEMA L14-30R", - "NEMA L14-50R", - "NEMA L14-60R", - "NEMA L15-20R", - "NEMA L15-30R", - "NEMA L15-50R", - "NEMA L15-60R", - "NEMA L21-20R", - "NEMA L21-30R", - "NEMA L22-30R", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ITA Type E (CEE 7/5)", - "ITA Type F (CEE 7/3)", - "ITA Type G (BS 1363)", - "ITA Type H", - "ITA Type I", - "ITA Type J", - "ITA Type K", - "ITA Type L (CEI 23-50)", - "ITA Type M (BS 546)", - "ITA Type N", - "ITA Type O", - "ITA Multistandard", - "USB Type A", - "USB Micro B", - "USB Type C", - "DC Terminal", - "HDOT Cx", - "Saf-D-Grid", - "Neutrik powerCON (20A)", - "Neutrik powerCON (32A)", - "Neutrik powerCON TRUE1", - "Neutrik powerCON TRUE1 TOP", - "Ubiquiti SmartPower", - "Hardwired", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "iec-60320-c5", - "iec-60320-c7", - "iec-60320-c13", - "iec-60320-c15", - "iec-60320-c19", - "iec-60320-c21", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15r", - "nema-5-15r", - "nema-5-20r", - "nema-5-30r", - "nema-5-50r", - "nema-6-15r", - "nema-6-20r", - "nema-6-30r", - "nema-6-50r", - "nema-10-30r", - "nema-10-50r", - "nema-14-20r", - "nema-14-30r", - "nema-14-50r", - "nema-14-60r", - "nema-15-15r", - "nema-15-20r", - "nema-15-30r", - "nema-15-50r", - "nema-15-60r", - "nema-l1-15r", - "nema-l5-15r", - "nema-l5-20r", - "nema-l5-30r", - "nema-l5-50r", - "nema-l6-15r", - "nema-l6-20r", - "nema-l6-30r", - "nema-l6-50r", - "nema-l10-30r", - "nema-l14-20r", - "nema-l14-30r", - "nema-l14-50r", - "nema-l14-60r", - "nema-l15-20r", - "nema-l15-30r", - "nema-l15-50r", - "nema-l15-60r", - "nema-l21-20r", - "nema-l21-30r", - "nema-l22-30r", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ita-e", - "ita-f", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "ita-multistandard", - "usb-a", - "usb-micro-b", - "usb-c", - "dc-terminal", - "hdot-cx", - "saf-d-grid", - "neutrik-powercon-20a", - "neutrik-powercon-32a", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "PowerPanel" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "location" : { "$ref" : "#/definitions/NestedLocation" }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "powerfeed_count" : { - "readOnly" : true, - "title" : "Powerfeed count", - "type" : "integer" - }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "site", - "name" - ], - "type" : "object" - }, - "PowerPort" : { - "properties" : { - "allocated_draw" : { - "description" : "Allocated power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Allocated draw", - "type" : "integer", - "x-nullable" : true - }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "maximum_draw" : { - "description" : "Maximum power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Maximum draw", - "type" : "integer", - "x-nullable" : true - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "C6", - "C8", - "C14", - "C16", - "C20", - "C22", - "P+N+E 4H", - "P+N+E 6H", - "P+N+E 9H", - "2P+E 4H", - "2P+E 6H", - "2P+E 9H", - "3P+E 4H", - "3P+E 6H", - "3P+E 9H", - "3P+N+E 4H", - "3P+N+E 6H", - "3P+N+E 9H", - "NEMA 1-15P", - "NEMA 5-15P", - "NEMA 5-20P", - "NEMA 5-30P", - "NEMA 5-50P", - "NEMA 6-15P", - "NEMA 6-20P", - "NEMA 6-30P", - "NEMA 6-50P", - "NEMA 10-30P", - "NEMA 10-50P", - "NEMA 14-20P", - "NEMA 14-30P", - "NEMA 14-50P", - "NEMA 14-60P", - "NEMA 15-15P", - "NEMA 15-20P", - "NEMA 15-30P", - "NEMA 15-50P", - "NEMA 15-60P", - "NEMA L1-15P", - "NEMA L5-15P", - "NEMA L5-20P", - "NEMA L5-30P", - "NEMA L5-50P", - "NEMA L6-15P", - "NEMA L6-20P", - "NEMA L6-30P", - "NEMA L6-50P", - "NEMA L10-30P", - "NEMA L14-20P", - "NEMA L14-30P", - "NEMA L14-50P", - "NEMA L14-60P", - "NEMA L15-20P", - "NEMA L15-30P", - "NEMA L15-50P", - "NEMA L15-60P", - "NEMA L21-20P", - "NEMA L21-30P", - "NEMA L22-30P", - "CS6361C", - "CS6365C", - "CS8165C", - "CS8265C", - "CS8365C", - "CS8465C", - "ITA Type C (CEE 7/16)", - "ITA Type E (CEE 7/6)", - "ITA Type F (CEE 7/4)", - "ITA Type E/F (CEE 7/7)", - "ITA Type G (BS 1363)", - "ITA Type H", - "ITA Type I", - "ITA Type J", - "ITA Type K", - "ITA Type L (CEI 23-50)", - "ITA Type M (BS 546)", - "ITA Type N", - "ITA Type O", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", - "USB 3.0 Type B", - "USB 3.0 Micro B", - "DC Terminal", - "Saf-D-Grid", - "Neutrik powerCON (20A)", - "Neutrik powerCON (32A)", - "Neutrik powerCON TRUE1", - "Neutrik powerCON TRUE1 TOP", - "Ubiquiti SmartPower", - "Hardwired", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "iec-60320-c6", - "iec-60320-c8", - "iec-60320-c14", - "iec-60320-c16", - "iec-60320-c20", - "iec-60320-c22", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15p", - "nema-5-15p", - "nema-5-20p", - "nema-5-30p", - "nema-5-50p", - "nema-6-15p", - "nema-6-20p", - "nema-6-30p", - "nema-6-50p", - "nema-10-30p", - "nema-10-50p", - "nema-14-20p", - "nema-14-30p", - "nema-14-50p", - "nema-14-60p", - "nema-15-15p", - "nema-15-20p", - "nema-15-30p", - "nema-15-50p", - "nema-15-60p", - "nema-l1-15p", - "nema-l5-15p", - "nema-l5-20p", - "nema-l5-30p", - "nema-l5-50p", - "nema-l6-15p", - "nema-l6-20p", - "nema-l6-30p", - "nema-l6-50p", - "nema-l10-30p", - "nema-l14-20p", - "nema-l14-30p", - "nema-l14-50p", - "nema-l14-60p", - "nema-l15-20p", - "nema-l15-30p", - "nema-l15-50p", - "nema-l15-60p", - "nema-l21-20p", - "nema-l21-30p", - "nema-l22-30p", - "cs6361c", - "cs6365c", - "cs8165c", - "cs8265c", - "cs8365c", - "cs8465c", - "ita-c", - "ita-e", - "ita-f", - "ita-ef", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "usb-3-b", - "usb-3-micro-b", - "dc-terminal", - "saf-d-grid", - "neutrik-powercon-20", - "neutrik-powercon-32", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "PowerPortTemplate" : { - "properties" : { - "allocated_draw" : { - "description" : "Allocated power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Allocated draw", - "type" : "integer", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "maximum_draw" : { - "description" : "Maximum power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Maximum draw", - "type" : "integer", - "x-nullable" : true - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "C6", - "C8", - "C14", - "C16", - "C20", - "C22", - "P+N+E 4H", - "P+N+E 6H", - "P+N+E 9H", - "2P+E 4H", - "2P+E 6H", - "2P+E 9H", - "3P+E 4H", - "3P+E 6H", - "3P+E 9H", - "3P+N+E 4H", - "3P+N+E 6H", - "3P+N+E 9H", - "NEMA 1-15P", - "NEMA 5-15P", - "NEMA 5-20P", - "NEMA 5-30P", - "NEMA 5-50P", - "NEMA 6-15P", - "NEMA 6-20P", - "NEMA 6-30P", - "NEMA 6-50P", - "NEMA 10-30P", - "NEMA 10-50P", - "NEMA 14-20P", - "NEMA 14-30P", - "NEMA 14-50P", - "NEMA 14-60P", - "NEMA 15-15P", - "NEMA 15-20P", - "NEMA 15-30P", - "NEMA 15-50P", - "NEMA 15-60P", - "NEMA L1-15P", - "NEMA L5-15P", - "NEMA L5-20P", - "NEMA L5-30P", - "NEMA L5-50P", - "NEMA L6-15P", - "NEMA L6-20P", - "NEMA L6-30P", - "NEMA L6-50P", - "NEMA L10-30P", - "NEMA L14-20P", - "NEMA L14-30P", - "NEMA L14-50P", - "NEMA L14-60P", - "NEMA L15-20P", - "NEMA L15-30P", - "NEMA L15-50P", - "NEMA L15-60P", - "NEMA L21-20P", - "NEMA L21-30P", - "NEMA L22-30P", - "CS6361C", - "CS6365C", - "CS8165C", - "CS8265C", - "CS8365C", - "CS8465C", - "ITA Type C (CEE 7/16)", - "ITA Type E (CEE 7/6)", - "ITA Type F (CEE 7/4)", - "ITA Type E/F (CEE 7/7)", - "ITA Type G (BS 1363)", - "ITA Type H", - "ITA Type I", - "ITA Type J", - "ITA Type K", - "ITA Type L (CEI 23-50)", - "ITA Type M (BS 546)", - "ITA Type N", - "ITA Type O", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", - "USB 3.0 Type B", - "USB 3.0 Micro B", - "DC Terminal", - "Saf-D-Grid", - "Neutrik powerCON (20A)", - "Neutrik powerCON (32A)", - "Neutrik powerCON TRUE1", - "Neutrik powerCON TRUE1 TOP", - "Ubiquiti SmartPower", - "Hardwired", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "iec-60320-c6", - "iec-60320-c8", - "iec-60320-c14", - "iec-60320-c16", - "iec-60320-c20", - "iec-60320-c22", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15p", - "nema-5-15p", - "nema-5-20p", - "nema-5-30p", - "nema-5-50p", - "nema-6-15p", - "nema-6-20p", - "nema-6-30p", - "nema-6-50p", - "nema-10-30p", - "nema-10-50p", - "nema-14-20p", - "nema-14-30p", - "nema-14-50p", - "nema-14-60p", - "nema-15-15p", - "nema-15-20p", - "nema-15-30p", - "nema-15-50p", - "nema-15-60p", - "nema-l1-15p", - "nema-l5-15p", - "nema-l5-20p", - "nema-l5-30p", - "nema-l5-50p", - "nema-l6-15p", - "nema-l6-20p", - "nema-l6-30p", - "nema-l6-50p", - "nema-l10-30p", - "nema-l14-20p", - "nema-l14-30p", - "nema-l14-50p", - "nema-l14-60p", - "nema-l15-20p", - "nema-l15-30p", - "nema-l15-50p", - "nema-l15-60p", - "nema-l21-20p", - "nema-l21-30p", - "nema-l22-30p", - "cs6361c", - "cs6365c", - "cs8165c", - "cs8265c", - "cs8365c", - "cs8465c", - "ita-c", - "ita-e", - "ita-f", - "ita-ef", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "usb-3-b", - "usb-3-micro-b", - "dc-terminal", - "saf-d-grid", - "neutrik-powercon-20", - "neutrik-powercon-32", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "Prefix" : { - "properties" : { - "children" : { - "readOnly" : true, - "title" : "Children", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "family" : { - "properties" : { - "label" : { - "enum" : [ - "IPv4", - "IPv6" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 4, - 6 - ], - "type" : "integer" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Family", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_pool" : { - "description" : "All IP addresses within this prefix are considered usable", - "title" : "Is a pool", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mark_utilized" : { - "description" : "Treat as 100% utilized", - "title" : "Mark utilized", - "type" : "boolean" - }, - "prefix" : { - "description" : "IPv4 or IPv6 network with mask", - "title" : "Prefix", - "type" : "string" - }, - "role" : { "$ref" : "#/definitions/NestedRole" }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Container", - "Active", - "Reserved", - "Deprecated" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "container", - "active", - "reserved", - "deprecated" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan" : { "$ref" : "#/definitions/NestedVLAN" }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ "prefix" ], - "type" : "object" - }, - "PrefixLength" : { - "properties" : { "prefix_length" : { - "title" : "Prefix length", - "type" : "integer" - } }, - "required" : [ "prefix_length" ], - "type" : "object" - }, - "Provider" : { - "properties" : { - "account" : { - "maxLength" : 30, - "title" : "Account number", - "type" : "string" - }, - "admin_contact" : { - "title" : "Admin contact", - "type" : "string" - }, - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer", - "x-nullable" : true - }, - "asns" : { - "items" : { "$ref" : "#/definitions/NestedASN" }, - "type" : "array", - "uniqueItems" : true - }, - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "noc_contact" : { - "title" : "NOC contact", - "type" : "string" - }, - "portal_url" : { - "format" : "uri", - "maxLength" : 200, - "title" : "Portal URL", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "ProviderNetwork" : { - "properties" : { - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "provider" : { "$ref" : "#/definitions/NestedProvider" }, - "service_id" : { - "maxLength" : 100, - "title" : "Service ID", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "provider", - "name" - ], - "type" : "object" - }, - "Rack" : { - "properties" : { - "asset_tag" : { - "description" : "A unique tag used to identify this rack", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "desc_units" : { - "description" : "Units are numbered top-to-bottom", - "title" : "Descending units", - "type" : "boolean" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "facility_id" : { - "maxLength" : 50, - "title" : "Facility ID", - "type" : "string", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "location" : { "$ref" : "#/definitions/NestedLocation" }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "outer_depth" : { - "description" : "Outer dimension of rack (depth)", - "maximum" : 32767, - "minimum" : 0, - "title" : "Outer depth", - "type" : "integer", - "x-nullable" : true - }, - "outer_unit" : { - "properties" : { - "label" : { - "enum" : [ - "Millimeters", - "Inches" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "mm", - "in" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Outer unit", - "type" : "object" - }, - "outer_width" : { - "description" : "Outer dimension of rack (width)", - "maximum" : 32767, - "minimum" : 0, - "title" : "Outer width", - "type" : "integer", - "x-nullable" : true - }, - "powerfeed_count" : { - "readOnly" : true, - "title" : "Powerfeed count", - "type" : "integer" - }, - "role" : { "$ref" : "#/definitions/NestedRackRole" }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Reserved", - "Available", - "Planned", - "Active", - "Deprecated" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "reserved", - "available", - "planned", - "active", - "deprecated" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "2-post frame", - "4-post frame", - "4-post cabinet", - "Wall-mounted frame", - "Wall-mounted cabinet" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "2-post-frame", - "4-post-frame", - "4-post-cabinet", - "wall-frame", - "wall-cabinet" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "u_height" : { - "description" : "Height in rack units", - "maximum" : 100, - "minimum" : 1, - "title" : "Height (U)", - "type" : "integer" - }, - "width" : { - "properties" : { - "label" : { - "enum" : [ - "10 inches", - "19 inches", - "21 inches", - "23 inches" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - 10, - 19, - 21, - 23 - ], - "type" : "integer" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Width", - "type" : "object" - } - }, - "required" : [ - "name", - "site" - ], - "type" : "object" - }, - "RackReservation" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "minLength" : 1, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "rack" : { "$ref" : "#/definitions/NestedRack" }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "units" : { - "items" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Units", - "type" : "integer" - }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user" : { "$ref" : "#/definitions/NestedUser" } - }, - "required" : [ - "rack", - "units", - "user", - "description" - ], - "type" : "object" - }, - "RackRole" : { - "properties" : { - "color" : { - "maxLength" : 6, - "minLength" : 1, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "RackUnit" : { - "properties" : { - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "face" : { - "properties" : { - "label" : { - "enum" : [ - "Front", - "Rear" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "front", - "rear" - ], - "type" : "string" - } - }, - "readOnly" : true, - "required" : [ - "label", - "value" - ], - "title" : "Face", - "type" : "object" - }, - "id" : { - "readOnly" : true, - "title" : "Id", - "type" : "integer" - }, - "name" : { - "minLength" : 1, - "readOnly" : true, - "title" : "Name", - "type" : "string" - }, - "occupied" : { - "readOnly" : true, - "title" : "Occupied", - "type" : "boolean" - } - }, - "type" : "object" - }, - "RearPort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { "$ref" : "#/definitions/ComponentNestedModule" }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "positions" : { - "maximum" : 1024, - "minimum" : 1, - "title" : "Positions", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "8P8C", - "8P6C", - "8P4C", - "8P2C", - "6P6C", - "6P4C", - "6P2C", - "4P4C", - "4P2C", - "GG45", - "TERA 4P", - "TERA 2P", - "TERA 1P", - "110 Punch", - "BNC", - "F Connector", - "N Connector", - "MRJ21", - "FC", - "LC", - "LC/PC", - "LC/UPC", - "LC/APC", - "LSH", - "LSH/PC", - "LSH/UPC", - "LSH/APC", - "MPO", - "MTRJ", - "SC", - "SC/PC", - "SC/UPC", - "SC/APC", - "ST", - "CS", - "SN", - "SMA 905", - "SMA 906", - "URM-P2", - "URM-P4", - "URM-P8", - "Splice", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name", - "type" - ], - "type" : "object" - }, - "RearPortTemplate" : { - "properties" : { - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { "$ref" : "#/definitions/NestedDeviceType" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { "$ref" : "#/definitions/NestedModuleType" }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "positions" : { - "maximum" : 1024, - "minimum" : 1, - "title" : "Positions", - "type" : "integer" - }, - "type" : { - "properties" : { - "label" : { - "enum" : [ - "8P8C", - "8P6C", - "8P4C", - "8P2C", - "6P6C", - "6P4C", - "6P2C", - "4P4C", - "4P2C", - "GG45", - "TERA 4P", - "TERA 2P", - "TERA 1P", - "110 Punch", - "BNC", - "F Connector", - "N Connector", - "MRJ21", - "FC", - "LC", - "LC/PC", - "LC/UPC", - "LC/APC", - "LSH", - "LSH/PC", - "LSH/UPC", - "LSH/APC", - "MPO", - "MTRJ", - "SC", - "SC/PC", - "SC/UPC", - "SC/APC", - "ST", - "CS", - "SN", - "SMA 905", - "SMA 906", - "URM-P2", - "URM-P4", - "URM-P8", - "Splice", - "Other" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Type", - "type" : "object" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "type" - ], - "type" : "object" - }, - "Region" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedRegion" }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "RIR" : { - "properties" : { - "aggregate_count" : { - "readOnly" : true, - "title" : "Aggregate count", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_private" : { - "description" : "IP space managed by this RIR is considered private", - "title" : "Private", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "Role" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - }, - "weight" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Weight", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "RouteTarget" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "Route target value (formatted in accordance with RFC 4360)", - "maxLength" : 21, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "Service" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { "$ref" : "#/definitions/NestedDevice" }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ipaddresses" : { - "items" : { "$ref" : "#/definitions/NestedIPAddress" }, - "type" : "array", - "uniqueItems" : true - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "ports" : { - "items" : { - "maximum" : 65535, - "minimum" : 1, - "title" : "Ports", - "type" : "integer" - }, - "type" : "array" - }, - "protocol" : { - "properties" : { - "label" : { - "enum" : [ - "TCP", - "UDP", - "SCTP" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "tcp", - "udp", - "sctp" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Protocol", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtual_machine" : { "$ref" : "#/definitions/NestedVirtualMachine" } - }, - "required" : [ - "name", - "ports" - ], - "type" : "object" - }, - "ServiceTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "ports" : { - "items" : { - "maximum" : 65535, - "minimum" : 1, - "title" : "Ports", - "type" : "integer" - }, - "type" : "array" - }, - "protocol" : { - "properties" : { - "label" : { - "enum" : [ - "TCP", - "UDP", - "SCTP" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "tcp", - "udp", - "sctp" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Protocol", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "ports" - ], - "type" : "object" - }, - "Site" : { - "properties" : { - "asns" : { - "items" : { "$ref" : "#/definitions/NestedASN" }, - "type" : "array", - "uniqueItems" : true - }, - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "facility" : { - "description" : "Local facility ID or description", - "maxLength" : 50, - "title" : "Facility", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedSiteGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "latitude" : { - "description" : "GPS coordinate (latitude)", - "format" : "decimal", - "title" : "Latitude", - "type" : "number", - "x-nullable" : true - }, - "longitude" : { - "description" : "GPS coordinate (longitude)", - "format" : "decimal", - "title" : "Longitude", - "type" : "number", - "x-nullable" : true - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "physical_address" : { - "maxLength" : 200, - "title" : "Physical address", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "region" : { "$ref" : "#/definitions/NestedRegion" }, - "shipping_address" : { - "maxLength" : 200, - "title" : "Shipping address", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Planned", - "Staging", - "Active", - "Decommissioning", - "Retired" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "planned", - "staging", - "active", - "decommissioning", - "retired" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "time_zone" : { - "title" : "Time zone", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "SiteGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedSiteGroup" }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "Tag" : { - "properties" : { - "color" : { - "maxLength" : 6, - "minLength" : 1, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "Id", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tagged_items" : { - "readOnly" : true, - "title" : "Tagged items", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "Tenant" : { - "properties" : { - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "cluster_count" : { - "readOnly" : true, - "title" : "Cluster count", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedTenantGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ipaddress_count" : { - "readOnly" : true, - "title" : "Ipaddress count", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - }, - "vrf_count" : { - "readOnly" : true, - "title" : "Vrf count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "TenantGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedTenantGroup" }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant_count" : { - "readOnly" : true, - "title" : "Tenant count", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "Token" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "expires" : { - "format" : "date-time", - "title" : "Expires", - "type" : "string", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "key" : { - "maxLength" : 40, - "minLength" : 40, - "title" : "Key", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user" : { "$ref" : "#/definitions/NestedUser" }, - "write_enabled" : { - "description" : "Permit create/update/delete operations using this key", - "title" : "Write enabled", - "type" : "boolean" - } - }, - "required" : [ "user" ], - "type" : "object" - }, - "User" : { - "properties" : { - "date_joined" : { - "format" : "date-time", - "title" : "Date joined", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "email" : { - "format" : "email", - "maxLength" : 254, - "title" : "Email address", - "type" : "string" - }, - "first_name" : { - "maxLength" : 150, - "title" : "First name", - "type" : "string" - }, - "groups" : { - "items" : { "$ref" : "#/definitions/NestedGroup" }, - "type" : "array", - "uniqueItems" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_active" : { - "description" : "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", - "title" : "Active", - "type" : "boolean" - }, - "is_staff" : { - "description" : "Designates whether the user can log into this admin site.", - "title" : "Staff status", - "type" : "boolean" - }, - "last_name" : { - "maxLength" : 150, - "title" : "Last name", - "type" : "string" - }, - "password" : { - "maxLength" : 128, - "minLength" : 1, - "title" : "Password", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "username" : { - "description" : "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", - "maxLength" : 150, - "minLength" : 1, - "pattern" : "^[\\w.@+-]+$", - "title" : "Username", - "type" : "string" - } - }, - "required" : [ - "username", - "password" - ], - "type" : "object" - }, - "VirtualChassis" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "domain" : { - "maxLength" : 30, - "title" : "Domain", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "master" : { "$ref" : "#/definitions/NestedDevice" }, - "member_count" : { - "readOnly" : true, - "title" : "Member count", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "VirtualMachineWithConfigContext" : { - "properties" : { - "cluster" : { "$ref" : "#/definitions/NestedCluster" }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "config_context" : { - "readOnly" : true, - "title" : "Config context", - "type" : "object" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "disk" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Disk (GB)", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "local_context_data" : { - "title" : "Local context data", - "type" : "object", - "x-nullable" : true - }, - "memory" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Memory (MB)", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "platform" : { "$ref" : "#/definitions/NestedPlatform" }, - "primary_ip" : { "$ref" : "#/definitions/NestedIPAddress" }, - "primary_ip4" : { "$ref" : "#/definitions/NestedIPAddress" }, - "primary_ip6" : { "$ref" : "#/definitions/NestedIPAddress" }, - "role" : { "$ref" : "#/definitions/NestedDeviceRole" }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Offline", - "Active", - "Planned", - "Staged", - "Failed", - "Decommissioning" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "offline", - "active", - "planned", - "staged", - "failed", - "decommissioning" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vcpus" : { - "format" : "decimal", - "minimum" : 0.01, - "title" : "VCPUs", - "type" : "number", - "x-nullable" : true - } - }, - "required" : [ - "name", - "cluster" - ], - "type" : "object" - }, - "VLAN" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedVLANGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "role" : { "$ref" : "#/definitions/NestedRole" }, - "site" : { "$ref" : "#/definitions/NestedSite" }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Active", - "Reserved", - "Deprecated" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "active", - "reserved", - "deprecated" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vid" : { - "maximum" : 4094, - "minimum" : 1, - "title" : "ID", - "type" : "integer" - } - }, - "required" : [ - "vid", - "name" - ], - "type" : "object" - }, - "VLANGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "max_vid" : { - "description" : "Highest permissible ID of a child VLAN", - "maximum" : 4094, - "minimum" : 1, - "title" : "Maximum VLAN ID", - "type" : "integer" - }, - "min_vid" : { - "description" : "Lowest permissible ID of a child VLAN", - "maximum" : 4094, - "minimum" : 1, - "title" : "Minimum VLAN ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "scope" : { - "readOnly" : true, - "title" : "Scope", - "type" : "object" - }, - "scope_id" : { - "title" : "Scope id", - "type" : "integer", - "x-nullable" : true - }, - "scope_type" : { - "title" : "Scope type", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "VMInterface" : { - "properties" : { - "bridge" : { "$ref" : "#/definitions/NestedVMInterface" }, - "count_fhrp_groups" : { - "readOnly" : true, - "title" : "Count fhrp groups", - "type" : "integer" - }, - "count_ipaddresses" : { - "readOnly" : true, - "title" : "Count ipaddresses", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mac_address" : { - "title" : "MAC Address", - "type" : "string", - "x-nullable" : true - }, - "mode" : { - "properties" : { - "label" : { - "enum" : [ - "Access", - "Tagged", - "Tagged (All)" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "access", - "tagged", - "tagged-all" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Mode", - "type" : "object" - }, - "mtu" : { - "maximum" : 65536, - "minimum" : 1, - "title" : "MTU", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedVMInterface" }, - "tagged_vlans" : { - "items" : { "$ref" : "#/definitions/NestedVLAN" }, - "type" : "array", - "uniqueItems" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "untagged_vlan" : { "$ref" : "#/definitions/NestedVLAN" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtual_machine" : { "$ref" : "#/definitions/NestedVirtualMachine" }, - "vrf" : { "$ref" : "#/definitions/NestedVRF" } - }, - "required" : [ - "virtual_machine", - "name" - ], - "type" : "object" - }, - "VRF" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enforce_unique" : { - "description" : "Prevent duplicate prefixes/IP addresses within this VRF", - "title" : "Enforce unique space", - "type" : "boolean" - }, - "export_targets" : { - "items" : { "$ref" : "#/definitions/NestedRouteTarget" }, - "type" : "array", - "uniqueItems" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "import_targets" : { - "items" : { "$ref" : "#/definitions/NestedRouteTarget" }, - "type" : "array", - "uniqueItems" : true - }, - "ipaddress_count" : { - "readOnly" : true, - "title" : "Ipaddress count", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rd" : { - "description" : "Unique route distinguisher (as defined in RFC 4364)", - "maxLength" : 21, - "title" : "Route distinguisher", - "type" : "string", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { "$ref" : "#/definitions/NestedTenant" }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "Webhook" : { - "properties" : { - "additional_headers" : { - "description" : "User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format Name: Value. Jinja2 template processing is supported with the same context as the request body (below).", - "title" : "Additional headers", - "type" : "string" - }, - "body_template" : { - "description" : "Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data.", - "title" : "Body template", - "type" : "string" - }, - "ca_file_path" : { - "description" : "The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults.", - "maxLength" : 4096, - "title" : "CA File Path", - "type" : "string", - "x-nullable" : true - }, - "conditions" : { - "description" : "A set of conditions which determine whether the webhook will be generated.", - "title" : "Conditions", - "type" : "string", - "x-nullable" : true - }, - "content_types" : { - "items" : { "type" : "string" }, - "type" : "array", - "uniqueItems" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "http_content_type" : { - "description" : "The complete list of official content types is available here.", - "maxLength" : 100, - "minLength" : 1, - "title" : "HTTP content type", - "type" : "string" - }, - "http_method" : { - "enum" : [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ], - "title" : "HTTP method", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 150, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "payload_url" : { - "description" : "This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body.", - "maxLength" : 500, - "minLength" : 1, - "title" : "URL", - "type" : "string" - }, - "secret" : { - "description" : "When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request.", - "maxLength" : 255, - "title" : "Secret", - "type" : "string" - }, - "ssl_verification" : { - "description" : "Enable SSL certificate verification. Disable with caution!", - "title" : "SSL verification", - "type" : "boolean" - }, - "type_create" : { - "default" : false, - "description" : "Call this webhook when a matching object is created.", - "title" : "Type create", - "type" : "boolean" - }, - "type_delete" : { - "default" : false, - "description" : "Call this webhook when a matching object is deleted.", - "title" : "Type delete", - "type" : "boolean" - }, - "type_update" : { - "default" : false, - "description" : "Call this webhook when a matching object is updated.", - "title" : "Type update", - "type" : "boolean" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "content_types", - "name", - "payload_url" - ], - "type" : "object" - }, - "WirelessLAN" : { - "properties" : { - "auth_cipher" : { - "properties" : { - "label" : { - "enum" : [ - "Auto", - "TKIP", - "AES" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "auto", - "tkip", - "aes" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Auth cipher", - "type" : "object" - }, - "auth_psk" : { - "maxLength" : 64, - "title" : "Pre-shared key", - "type" : "string" - }, - "auth_type" : { - "properties" : { - "label" : { - "enum" : [ - "Open", - "WEP", - "WPA Personal (PSK)", - "WPA Enterprise" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "open", - "wep", - "wpa-personal", - "wpa-enterprise" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Auth type", - "type" : "object" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { "$ref" : "#/definitions/NestedWirelessLANGroup" }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "ssid" : { - "maxLength" : 32, - "minLength" : 1, - "title" : "SSID", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan" : { "$ref" : "#/definitions/NestedVLAN" } - }, - "required" : [ "ssid" ], - "type" : "object" - }, - "WirelessLANGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { "$ref" : "#/definitions/NestedWirelessLANGroup" }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "wirelesslan_count" : { - "readOnly" : true, - "title" : "Wirelesslan count", - "type" : "integer" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WirelessLink" : { - "properties" : { - "auth_cipher" : { - "properties" : { - "label" : { - "enum" : [ - "Auto", - "TKIP", - "AES" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "auto", - "tkip", - "aes" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Auth cipher", - "type" : "object" - }, - "auth_psk" : { - "maxLength" : 64, - "title" : "Pre-shared key", - "type" : "string" - }, - "auth_type" : { - "properties" : { - "label" : { - "enum" : [ - "Open", - "WEP", - "WPA Personal (PSK)", - "WPA Enterprise" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "open", - "wep", - "wpa-personal", - "wpa-enterprise" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Auth type", - "type" : "object" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "interface_a" : { "$ref" : "#/definitions/NestedInterface" }, - "interface_b" : { "$ref" : "#/definitions/NestedInterface" }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "ssid" : { - "maxLength" : 32, - "title" : "SSID", - "type" : "string" - }, - "status" : { - "properties" : { - "label" : { - "enum" : [ - "Connected", - "Planned", - "Decommissioning" - ], - "type" : "string" - }, - "value" : { - "enum" : [ - "connected", - "planned", - "decommissioning" - ], - "type" : "string" - } - }, - "required" : [ - "label", - "value" - ], - "title" : "Status", - "type" : "object" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "interface_a", - "interface_b" - ], - "type" : "object" - }, - "WritableAggregate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "date_added" : { - "format" : "date", - "title" : "Date added", - "type" : "string", - "x-nullable" : true - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "prefix" : { - "title" : "Prefix", - "type" : "string" - }, - "rir" : { - "title" : "RIR", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "prefix", - "rir" - ], - "type" : "object" - }, - "WritableASN" : { - "properties" : { - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "provider_count" : { - "readOnly" : true, - "title" : "Provider count", - "type" : "integer" - }, - "rir" : { - "title" : "RIR", - "type" : "integer" - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "asn", - "rir" - ], - "type" : "object" - }, - "WritableAvailableIP" : { - "properties" : { - "address" : { - "minLength" : 1, - "readOnly" : true, - "title" : "Address", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "integer" - } - }, - "type" : "object" - }, - "WritableCable" : { - "properties" : { - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "maxLength" : 100, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "length" : { - "format" : "decimal", - "title" : "Length", - "type" : "number", - "x-nullable" : true - }, - "length_unit" : { - "enum" : [ - "km", - "m", - "cm", - "mi", - "ft", - "in" - ], - "title" : "Length unit", - "type" : "string" - }, - "status" : { - "enum" : [ - "connected", - "planned", - "decommissioning" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "termination_a" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Termination a", - "type" : "object" - }, - "termination_a_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Termination a id", - "type" : "integer" - }, - "termination_a_type" : { - "title" : "Termination a type", - "type" : "string" - }, - "termination_b" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Termination b", - "type" : "object" - }, - "termination_b_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Termination b id", - "type" : "integer" - }, - "termination_b_type" : { - "title" : "Termination b type", - "type" : "string" - }, - "type" : { - "enum" : [ - "cat3", - "cat5", - "cat5e", - "cat6", - "cat6a", - "cat7", - "cat7a", - "cat8", - "dac-active", - "dac-passive", - "mrj21-trunk", - "coaxial", - "mmf", - "mmf-om1", - "mmf-om2", - "mmf-om3", - "mmf-om4", - "mmf-om5", - "smf", - "smf-os1", - "smf-os2", - "aoc", - "power" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "termination_a_type", - "termination_a_id", - "termination_b_type", - "termination_b_id" - ], - "type" : "object" - }, - "WritableCircuit" : { - "properties" : { - "cid" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Circuit ID", - "type" : "string" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "commit_rate" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Commit rate (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "install_date" : { - "format" : "date", - "title" : "Date installed", - "type" : "string", - "x-nullable" : true - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "provider" : { - "title" : "Provider", - "type" : "integer" - }, - "status" : { - "enum" : [ - "planned", - "provisioning", - "active", - "offline", - "deprovisioning", - "decommissioned" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "termination_a" : { - "readOnly" : true, - "title" : "Termination a", - "type" : "integer" - }, - "termination_z" : { - "readOnly" : true, - "title" : "Termination z", - "type" : "integer" - }, - "type" : { - "title" : "Type", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "cid", - "provider", - "type" - ], - "type" : "object" - }, - "WritableCircuitTermination" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "circuit" : { - "title" : "Circuit", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "port_speed" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Port speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "pp_info" : { - "maxLength" : 100, - "title" : "Patch panel/port(s)", - "type" : "string" - }, - "provider_network" : { - "title" : "Provider network", - "type" : "integer", - "x-nullable" : true - }, - "site" : { - "title" : "Site", - "type" : "integer", - "x-nullable" : true - }, - "term_side" : { - "enum" : [ - "A", - "Z" - ], - "title" : "Termination", - "type" : "string" - }, - "upstream_speed" : { - "description" : "Upstream speed, if different from port speed", - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Upstream speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "xconnect_id" : { - "maxLength" : 50, - "title" : "Cross-connect ID", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "circuit", - "term_side" - ], - "type" : "object" - }, - "WritableCluster" : { - "properties" : { - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "site" : { - "title" : "Site", - "type" : "integer", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "type" : { - "title" : "Type", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ - "name", - "type", - "group", - "site" - ], - "type" : "object" - }, - "WritableConfigContext" : { - "properties" : { - "clusters" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "cluster_groups" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "cluster_types" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "data" : { - "title" : "Data", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_types" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_active" : { - "title" : "Is active", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "platforms" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "regions" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "roles" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "sites" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "site_groups" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "tags" : { - "items" : { - "format" : "slug", - "pattern" : "^[-a-zA-Z0-9_]+$", - "type" : "string" - }, - "type" : "array", - "uniqueItems" : true - }, - "tenants" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "tenant_groups" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "weight" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Weight", - "type" : "integer" - } - }, - "required" : [ - "name", - "data" - ], - "type" : "object" - }, - "WritableConsolePort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "speed" : { - "description" : "Port speed in bits per second", - "enum" : [ - 1200, - 2400, - 4800, - 9600, - 19200, - 38400, - 57600, - 115200 - ], - "title" : "Speed", - "type" : "integer", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "description" : "Physical port type", - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "WritableConsolePortTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name" - ], - "type" : "object" - }, - "WritableConsoleServerPort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "speed" : { - "description" : "Port speed in bits per second", - "enum" : [ - 1200, - 2400, - 4800, - 9600, - 19200, - 38400, - 57600, - 115200 - ], - "title" : "Speed", - "type" : "integer", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "description" : "Physical port type", - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "WritableConsoleServerPortTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "enum" : [ - "de-9", - "db-25", - "rj-11", - "rj-12", - "rj-45", - "mini-din-8", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name" - ], - "type" : "object" - }, - "WritableContact" : { - "properties" : { - "address" : { - "maxLength" : 200, - "title" : "Address", - "type" : "string" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "email" : { - "format" : "email", - "maxLength" : 254, - "title" : "Email", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link" : { - "format" : "uri", - "maxLength" : 200, - "title" : "Link", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "phone" : { - "maxLength" : 50, - "title" : "Phone", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "title" : { - "maxLength" : 100, - "title" : "Title", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "group", - "name" - ], - "type" : "object" - }, - "WritableContactAssignment" : { - "properties" : { - "contact" : { - "title" : "Contact", - "type" : "integer" - }, - "content_type" : { - "title" : "Content type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "object" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Object", - "type" : "object" - }, - "object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Object id", - "type" : "integer" - }, - "priority" : { - "enum" : [ - "primary", - "secondary", - "tertiary", - "inactive" - ], - "title" : "Priority", - "type" : "string" - }, - "role" : { - "title" : "Role", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "content_type", - "object_id", - "contact", - "role", - "priority" - ], - "type" : "object" - }, - "WritableContactGroup" : { - "properties" : { - "contact_count" : { - "readOnly" : true, - "title" : "Contact count", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug", - "parent" - ], - "type" : "object" - }, - "WritableCreateAvailableVLAN" : { - "properties" : { - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "role" : { - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "site" : { - "title" : "Site", - "type" : "integer", - "x-nullable" : true - }, - "status" : { - "enum" : [ - "active", - "reserved", - "deprecated" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "WritableCustomField" : { - "properties" : { - "choices" : { - "description" : "Comma-separated list of available choices (for selection fields)", - "items" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Choices", - "type" : "string" - }, - "type" : "array", - "x-nullable" : true - }, - "content_types" : { - "items" : { "type" : "string" }, - "type" : "array", - "uniqueItems" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "data_type" : { - "readOnly" : true, - "title" : "Data type", - "type" : "string" - }, - "default" : { - "description" : "Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\").", - "title" : "Default", - "type" : "string", - "x-nullable" : true - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "filter_logic" : { - "description" : "Loose matches any instance of a given string; exact matches the entire field.", - "enum" : [ - "disabled", - "loose", - "exact" - ], - "title" : "Filter logic", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Name of the field as displayed to users (if not provided, the field's name will be used)", - "maxLength" : 50, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "Internal field name", - "maxLength" : 50, - "minLength" : 1, - "pattern" : "^[a-z0-9_]+$", - "title" : "Name", - "type" : "string" - }, - "object_type" : { - "title" : "Object type", - "type" : "string" - }, - "required" : { - "description" : "If true, this field is required when creating new objects or editing an existing object.", - "title" : "Required", - "type" : "boolean" - }, - "type" : { - "description" : "The type of data this custom field holds", - "enum" : [ - "text", - "longtext", - "integer", - "boolean", - "date", - "url", - "json", - "select", - "multiselect", - "object", - "multiobject" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "validation_maximum" : { - "description" : "Maximum allowed value (for numeric fields)", - "maximum" : 2147483647, - "minimum" : -2147483648, - "title" : "Maximum value", - "type" : "integer", - "x-nullable" : true - }, - "validation_minimum" : { - "description" : "Minimum allowed value (for numeric fields)", - "maximum" : 2147483647, - "minimum" : -2147483648, - "title" : "Minimum value", - "type" : "integer", - "x-nullable" : true - }, - "validation_regex" : { - "description" : "Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters.", - "maxLength" : 500, - "title" : "Validation regex", - "type" : "string" - }, - "weight" : { - "description" : "Fields with higher weights appear lower in a form.", - "maximum" : 32767, - "minimum" : 0, - "title" : "Weight", - "type" : "integer" - } - }, - "required" : [ - "content_types", - "name" - ], - "type" : "object" - }, - "WritableDeviceBay" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "installed_device" : { - "title" : "Installed device", - "type" : "integer", - "x-nullable" : true - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "WritableDeviceBayTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "name" - ], - "type" : "object" - }, - "WritableDeviceType" : { - "properties" : { - "airflow" : { - "enum" : [ - "front-to-rear", - "rear-to-front", - "left-to-right", - "right-to-left", - "side-to-rear", - "passive", - "mixed" - ], - "title" : "Airflow", - "type" : "string" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "front_image" : { - "format" : "uri", - "readOnly" : true, - "title" : "Front image", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_full_depth" : { - "description" : "Device consumes both front and rear rack faces", - "title" : "Is full depth", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { - "title" : "Manufacturer", - "type" : "integer" - }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Model", - "type" : "string" - }, - "part_number" : { - "description" : "Discrete part number (optional)", - "maxLength" : 50, - "title" : "Part number", - "type" : "string" - }, - "rear_image" : { - "format" : "uri", - "readOnly" : true, - "title" : "Rear image", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "subdevice_role" : { - "description" : "Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child.", - "enum" : [ - "parent", - "child" - ], - "title" : "Parent/child status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "u_height" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Height (U)", - "type" : "integer" - } - }, - "required" : [ - "manufacturer", - "model", - "slug" - ], - "type" : "object" - }, - "WritableDeviceWithConfigContext" : { - "properties" : { - "airflow" : { - "enum" : [ - "front-to-rear", - "rear-to-front", - "left-to-right", - "right-to-left", - "side-to-rear", - "passive", - "mixed" - ], - "title" : "Airflow", - "type" : "string" - }, - "asset_tag" : { - "description" : "A unique tag used to identify this device", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "cluster" : { - "title" : "Cluster", - "type" : "integer", - "x-nullable" : true - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "config_context" : { - "readOnly" : true, - "title" : "Config context", - "type" : "object" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device_role" : { - "title" : "Device role", - "type" : "integer" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "face" : { - "enum" : [ - "front", - "rear" - ], - "title" : "Rack face", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "local_context_data" : { - "title" : "Local context data", - "type" : "object", - "x-nullable" : true - }, - "location" : { - "title" : "Location", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "title" : "Name", - "type" : "string", - "x-nullable" : true - }, - "parent_device" : { "$ref" : "#/definitions/NestedDevice" }, - "platform" : { - "title" : "Platform", - "type" : "integer", - "x-nullable" : true - }, - "position" : { - "minimum" : 1, - "title" : "Position (U)", - "type" : "integer", - "x-nullable" : true - }, - "primary_ip" : { - "readOnly" : true, - "title" : "Primary ip", - "type" : "string" - }, - "primary_ip4" : { - "title" : "Primary IPv4", - "type" : "integer", - "x-nullable" : true - }, - "primary_ip6" : { - "title" : "Primary IPv6", - "type" : "integer", - "x-nullable" : true - }, - "rack" : { - "title" : "Rack", - "type" : "integer", - "x-nullable" : true - }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "site" : { - "title" : "Site", - "type" : "integer" - }, - "status" : { - "enum" : [ - "offline", - "active", - "planned", - "staged", - "failed", - "inventory", - "decommissioning" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vc_position" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Vc position", - "type" : "integer", - "x-nullable" : true - }, - "vc_priority" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Vc priority", - "type" : "integer", - "x-nullable" : true - }, - "virtual_chassis" : { - "title" : "Virtual chassis", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ - "name", - "device_type", - "device_role", - "tenant", - "site", - "rack", - "face", - "virtual_chassis" - ], - "type" : "object" - }, - "WritableFHRPGroupAssignment" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "interface" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Interface", - "type" : "object" - }, - "interface_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Interface id", - "type" : "integer" - }, - "interface_type" : { - "title" : "Interface type", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "priority" : { - "maximum" : 255, - "minimum" : 0, - "title" : "Priority", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "group", - "interface_type", - "interface_id", - "priority" - ], - "type" : "object" - }, - "WritableFrontPort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rear_port" : { - "title" : "Rear port", - "type" : "integer" - }, - "rear_port_position" : { - "default" : 1, - "maximum" : 1024, - "minimum" : 1, - "title" : "Rear port position", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name", - "type", - "rear_port" - ], - "type" : "object" - }, - "WritableFrontPortTemplate" : { - "properties" : { - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "rear_port" : { - "title" : "Rear port", - "type" : "integer" - }, - "rear_port_position" : { - "default" : 1, - "maximum" : 1024, - "minimum" : 1, - "title" : "Rear port position", - "type" : "integer" - }, - "type" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name", - "type", - "rear_port" - ], - "type" : "object" - }, - "WritableInterface" : { - "properties" : { - "bridge" : { - "title" : "Bridge interface", - "type" : "integer", - "x-nullable" : true - }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "count_fhrp_groups" : { - "readOnly" : true, - "title" : "Count fhrp groups", - "type" : "integer" - }, - "count_ipaddresses" : { - "readOnly" : true, - "title" : "Count ipaddresses", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "duplex" : { - "enum" : [ - "half", - "full", - "auto" - ], - "title" : "Duplex", - "type" : "string", - "x-nullable" : true - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "lag" : { - "title" : "Parent LAG", - "type" : "integer", - "x-nullable" : true - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mac_address" : { - "title" : "MAC Address", - "type" : "string", - "x-nullable" : true - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "mgmt_only" : { - "description" : "This interface is used only for out-of-band management", - "title" : "Management only", - "type" : "boolean" - }, - "mode" : { - "enum" : [ - "access", - "tagged", - "tagged-all" - ], - "title" : "Mode", - "type" : "string" - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "mtu" : { - "maximum" : 65536, - "minimum" : 1, - "title" : "MTU", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent interface", - "type" : "integer", - "x-nullable" : true - }, - "rf_channel" : { - "enum" : [ - "2.4g-1-2412-22", - "2.4g-2-2417-22", - "2.4g-3-2422-22", - "2.4g-4-2427-22", - "2.4g-5-2432-22", - "2.4g-6-2437-22", - "2.4g-7-2442-22", - "2.4g-8-2447-22", - "2.4g-9-2452-22", - "2.4g-10-2457-22", - "2.4g-11-2462-22", - "2.4g-12-2467-22", - "2.4g-13-2472-22", - "5g-32-5160-20", - "5g-34-5170-40", - "5g-36-5180-20", - "5g-38-5190-40", - "5g-40-5200-20", - "5g-42-5210-80", - "5g-44-5220-20", - "5g-46-5230-40", - "5g-48-5240-20", - "5g-50-5250-160", - "5g-52-5260-20", - "5g-54-5270-40", - "5g-56-5280-20", - "5g-58-5290-80", - "5g-60-5300-20", - "5g-62-5310-40", - "5g-64-5320-20", - "5g-100-5500-20", - "5g-102-5510-40", - "5g-104-5520-20", - "5g-106-5530-80", - "5g-108-5540-20", - "5g-110-5550-40", - "5g-112-5560-20", - "5g-114-5570-160", - "5g-116-5580-20", - "5g-118-5590-40", - "5g-120-5600-20", - "5g-122-5610-80", - "5g-124-5620-20", - "5g-126-5630-40", - "5g-128-5640-20", - "5g-132-5660-20", - "5g-134-5670-40", - "5g-136-5680-20", - "5g-138-5690-80", - "5g-140-5700-20", - "5g-142-5710-40", - "5g-144-5720-20", - "5g-149-5745-20", - "5g-151-5755-40", - "5g-153-5765-20", - "5g-155-5775-80", - "5g-157-5785-20", - "5g-159-5795-40", - "5g-161-5805-20", - "5g-163-5815-160", - "5g-165-5825-20", - "5g-167-5835-40", - "5g-169-5845-20", - "5g-171-5855-80", - "5g-173-5865-20", - "5g-175-5875-40", - "5g-177-5885-20", - "6g-1-5955-20", - "6g-3-5965-40", - "6g-5-5975-20", - "6g-7-5985-80", - "6g-9-5995-20", - "6g-11-6005-40", - "6g-13-6015-20", - "6g-15-6025-160", - "6g-17-6035-20", - "6g-19-6045-40", - "6g-21-6055-20", - "6g-23-6065-80", - "6g-25-6075-20", - "6g-27-6085-40", - "6g-29-6095-20", - "6g-31-6105-320", - "6g-33-6115-20", - "6g-35-6125-40", - "6g-37-6135-20", - "6g-39-6145-80", - "6g-41-6155-20", - "6g-43-6165-40", - "6g-45-6175-20", - "6g-47-6185-160", - "6g-49-6195-20", - "6g-51-6205-40", - "6g-53-6215-20", - "6g-55-6225-80", - "6g-57-6235-20", - "6g-59-6245-40", - "6g-61-6255-20", - "6g-65-6275-20", - "6g-67-6285-40", - "6g-69-6295-20", - "6g-71-6305-80", - "6g-73-6315-20", - "6g-75-6325-40", - "6g-77-6335-20", - "6g-79-6345-160", - "6g-81-6355-20", - "6g-83-6365-40", - "6g-85-6375-20", - "6g-87-6385-80", - "6g-89-6395-20", - "6g-91-6405-40", - "6g-93-6415-20", - "6g-95-6425-320", - "6g-97-6435-20", - "6g-99-6445-40", - "6g-101-6455-20", - "6g-103-6465-80", - "6g-105-6475-20", - "6g-107-6485-40", - "6g-109-6495-20", - "6g-111-6505-160", - "6g-113-6515-20", - "6g-115-6525-40", - "6g-117-6535-20", - "6g-119-6545-80", - "6g-121-6555-20", - "6g-123-6565-40", - "6g-125-6575-20", - "6g-129-6595-20", - "6g-131-6605-40", - "6g-133-6615-20", - "6g-135-6625-80", - "6g-137-6635-20", - "6g-139-6645-40", - "6g-141-6655-20", - "6g-143-6665-160", - "6g-145-6675-20", - "6g-147-6685-40", - "6g-149-6695-20", - "6g-151-6705-80", - "6g-153-6715-20", - "6g-155-6725-40", - "6g-157-6735-20", - "6g-159-6745-320", - "6g-161-6755-20", - "6g-163-6765-40", - "6g-165-6775-20", - "6g-167-6785-80", - "6g-169-6795-20", - "6g-171-6805-40", - "6g-173-6815-20", - "6g-175-6825-160", - "6g-177-6835-20", - "6g-179-6845-40", - "6g-181-6855-20", - "6g-183-6865-80", - "6g-185-6875-20", - "6g-187-6885-40", - "6g-189-6895-20", - "6g-193-6915-20", - "6g-195-6925-40", - "6g-197-6935-20", - "6g-199-6945-80", - "6g-201-6955-20", - "6g-203-6965-40", - "6g-205-6975-20", - "6g-207-6985-160", - "6g-209-6995-20", - "6g-211-7005-40", - "6g-213-7015-20", - "6g-215-7025-80", - "6g-217-7035-20", - "6g-219-7045-40", - "6g-221-7055-20", - "6g-225-7075-20", - "6g-227-7085-40", - "6g-229-7095-20", - "6g-233-7115-20", - "60g-1-58320-2160", - "60g-2-60480-2160", - "60g-3-62640-2160", - "60g-4-64800-2160", - "60g-5-66960-2160", - "60g-6-69120-2160", - "60g-9-59400-4320", - "60g-10-61560-4320", - "60g-11-63720-4320", - "60g-12-65880-4320", - "60g-13-68040-4320", - "60g-17-60480-6480", - "60g-18-62640-6480", - "60g-19-64800-6480", - "60g-20-66960-6480", - "60g-25-61560-6480", - "60g-26-63720-6480", - "60g-27-65880-6480" - ], - "title" : "Wireless channel", - "type" : "string" - }, - "rf_channel_frequency" : { - "format" : "decimal", - "title" : "Channel frequency (MHz)", - "type" : "number", - "x-nullable" : true - }, - "rf_channel_width" : { - "format" : "decimal", - "title" : "Channel width (MHz)", - "type" : "number", - "x-nullable" : true - }, - "rf_role" : { - "enum" : [ - "ap", - "station" - ], - "title" : "Wireless role", - "type" : "string" - }, - "speed" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Speed (Kbps)", - "type" : "integer", - "x-nullable" : true - }, - "tagged_vlans" : { - "items" : { - "title" : "Tagged VLANs", - "type" : "integer" - }, - "type" : "array", - "uniqueItems" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tx_power" : { - "maximum" : 127, - "minimum" : 0, - "title" : "Transmit power (dBm)", - "type" : "integer", - "x-nullable" : true - }, - "type" : { - "enum" : [ - "virtual", - "bridge", - "lag", - "100base-tx", - "1000base-t", - "2.5gbase-t", - "5gbase-t", - "10gbase-t", - "10gbase-cx4", - "1000base-x-gbic", - "1000base-x-sfp", - "10gbase-x-sfpp", - "10gbase-x-xfp", - "10gbase-x-xenpak", - "10gbase-x-x2", - "25gbase-x-sfp28", - "50gbase-x-sfp56", - "40gbase-x-qsfpp", - "50gbase-x-sfp28", - "100gbase-x-cfp", - "100gbase-x-cfp2", - "200gbase-x-cfp2", - "100gbase-x-cfp4", - "100gbase-x-cpak", - "100gbase-x-qsfp28", - "200gbase-x-qsfp56", - "400gbase-x-qsfpdd", - "400gbase-x-osfp", - "ieee802.11a", - "ieee802.11g", - "ieee802.11n", - "ieee802.11ac", - "ieee802.11ad", - "ieee802.11ax", - "ieee802.15.1", - "gsm", - "cdma", - "lte", - "sonet-oc3", - "sonet-oc12", - "sonet-oc48", - "sonet-oc192", - "sonet-oc768", - "sonet-oc1920", - "sonet-oc3840", - "1gfc-sfp", - "2gfc-sfp", - "4gfc-sfp", - "8gfc-sfpp", - "16gfc-sfpp", - "32gfc-sfp28", - "64gfc-qsfpp", - "128gfc-qsfp28", - "infiniband-sdr", - "infiniband-ddr", - "infiniband-qdr", - "infiniband-fdr10", - "infiniband-fdr", - "infiniband-edr", - "infiniband-hdr", - "infiniband-ndr", - "infiniband-xdr", - "t1", - "e1", - "t3", - "e3", - "xdsl", - "docsis", - "gpon", - "xg-pon", - "xgs-pon", - "ng-pon2", - "epon", - "10g-epon", - "cisco-stackwise", - "cisco-stackwise-plus", - "cisco-flexstack", - "cisco-flexstack-plus", - "cisco-stackwise-80", - "cisco-stackwise-160", - "cisco-stackwise-320", - "cisco-stackwise-480", - "juniper-vcp", - "extreme-summitstack", - "extreme-summitstack-128", - "extreme-summitstack-256", - "extreme-summitstack-512", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "untagged_vlan" : { - "title" : "Untagged VLAN", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vrf" : { - "title" : "VRF", - "type" : "integer", - "x-nullable" : true - }, - "wireless_lans" : { - "items" : { - "title" : "Wireless LANs", - "type" : "integer" - }, - "type" : "array", - "uniqueItems" : true - }, - "wireless_link" : { - "title" : "Wireless link", - "type" : "integer", - "x-nullable" : true - }, - "wwn" : { - "description" : "64-bit World Wide Name", - "title" : "WWN", - "type" : "string", - "x-nullable" : true - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name", - "type" - ], - "type" : "object" - }, - "WritableInterfaceTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mgmt_only" : { - "title" : "Management only", - "type" : "boolean" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "enum" : [ - "virtual", - "bridge", - "lag", - "100base-tx", - "1000base-t", - "2.5gbase-t", - "5gbase-t", - "10gbase-t", - "10gbase-cx4", - "1000base-x-gbic", - "1000base-x-sfp", - "10gbase-x-sfpp", - "10gbase-x-xfp", - "10gbase-x-xenpak", - "10gbase-x-x2", - "25gbase-x-sfp28", - "50gbase-x-sfp56", - "40gbase-x-qsfpp", - "50gbase-x-sfp28", - "100gbase-x-cfp", - "100gbase-x-cfp2", - "200gbase-x-cfp2", - "100gbase-x-cfp4", - "100gbase-x-cpak", - "100gbase-x-qsfp28", - "200gbase-x-qsfp56", - "400gbase-x-qsfpdd", - "400gbase-x-osfp", - "ieee802.11a", - "ieee802.11g", - "ieee802.11n", - "ieee802.11ac", - "ieee802.11ad", - "ieee802.11ax", - "ieee802.15.1", - "gsm", - "cdma", - "lte", - "sonet-oc3", - "sonet-oc12", - "sonet-oc48", - "sonet-oc192", - "sonet-oc768", - "sonet-oc1920", - "sonet-oc3840", - "1gfc-sfp", - "2gfc-sfp", - "4gfc-sfp", - "8gfc-sfpp", - "16gfc-sfpp", - "32gfc-sfp28", - "64gfc-qsfpp", - "128gfc-qsfp28", - "infiniband-sdr", - "infiniband-ddr", - "infiniband-qdr", - "infiniband-fdr10", - "infiniband-fdr", - "infiniband-edr", - "infiniband-hdr", - "infiniband-ndr", - "infiniband-xdr", - "t1", - "e1", - "t3", - "e3", - "xdsl", - "docsis", - "gpon", - "xg-pon", - "xgs-pon", - "ng-pon2", - "epon", - "10g-epon", - "cisco-stackwise", - "cisco-stackwise-plus", - "cisco-flexstack", - "cisco-flexstack-plus", - "cisco-stackwise-80", - "cisco-stackwise-160", - "cisco-stackwise-320", - "cisco-stackwise-480", - "juniper-vcp", - "extreme-summitstack", - "extreme-summitstack-128", - "extreme-summitstack-256", - "extreme-summitstack-512", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name", - "type" - ], - "type" : "object" - }, - "WritableInventoryItem" : { - "properties" : { - "asset_tag" : { - "description" : "A unique tag used to identify this item", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "component" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Component", - "type" : "object" - }, - "component_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Component id", - "type" : "integer", - "x-nullable" : true - }, - "component_type" : { - "title" : "Component type", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "discovered" : { - "description" : "This item was automatically discovered", - "title" : "Discovered", - "type" : "boolean" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { - "title" : "Manufacturer", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "part_id" : { - "description" : "Manufacturer-assigned part identifier", - "maxLength" : 50, - "title" : "Part ID", - "type" : "string" - }, - "role" : { - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "WritableInventoryItemTemplate" : { - "properties" : { - "component" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Component", - "type" : "object" - }, - "component_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Component id", - "type" : "integer", - "x-nullable" : true - }, - "component_type" : { - "title" : "Component type", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { - "title" : "Manufacturer", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "part_id" : { - "description" : "Manufacturer-assigned part identifier", - "maxLength" : 50, - "title" : "Part ID", - "type" : "string" - }, - "role" : { - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "device_type", - "name" - ], - "type" : "object" - }, - "WritableIPAddress" : { - "properties" : { - "address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "Address", - "type" : "string" - }, - "assigned_object" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Assigned object", - "type" : "object" - }, - "assigned_object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Assigned object id", - "type" : "integer", - "x-nullable" : true - }, - "assigned_object_type" : { - "title" : "Assigned object type", - "type" : "string", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "dns_name" : { - "description" : "Hostname or FQDN (not case-sensitive)", - "maxLength" : 255, - "pattern" : "^([0-9A-Za-z_-]+|\\*)(\\.[0-9A-Za-z_-]+)*\\.?$", - "title" : "DNS Name", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "nat_inside" : { - "description" : "The IP for which this address is the \"outside\" IP", - "title" : "NAT (Inside)", - "type" : "integer", - "x-nullable" : true - }, - "nat_outside" : { - "readOnly" : true, - "title" : "Nat outside", - "type" : "string" - }, - "role" : { - "description" : "The functional role of this IP", - "enum" : [ - "loopback", - "secondary", - "anycast", - "vip", - "vrrp", - "hsrp", - "glbp", - "carp" - ], - "title" : "Role", - "type" : "string" - }, - "status" : { - "description" : "The operational status of this IP", - "enum" : [ - "active", - "reserved", - "deprecated", - "dhcp", - "slaac" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vrf" : { - "title" : "VRF", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ "address" ], - "type" : "object" - }, - "WritableIPRange" : { - "properties" : { - "children" : { - "readOnly" : true, - "title" : "Children", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "end_address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "End address", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "role" : { - "description" : "The primary function of this range", - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "size" : { - "readOnly" : true, - "title" : "Size", - "type" : "integer" - }, - "start_address" : { - "description" : "IPv4 or IPv6 address (with mask)", - "title" : "Start address", - "type" : "string" - }, - "status" : { - "description" : "Operational status of this range", - "enum" : [ - "active", - "reserved", - "deprecated" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vrf" : { - "title" : "VRF", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ - "start_address", - "end_address" - ], - "type" : "object" - }, - "WritableJournalEntry" : { - "properties" : { - "assigned_object" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "readOnly" : true, - "title" : "Assigned object", - "type" : "object" - }, - "assigned_object_id" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Assigned object id", - "type" : "integer" - }, - "assigned_object_type" : { - "title" : "Assigned object type", - "type" : "string" - }, - "comments" : { - "minLength" : 1, - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "created_by" : { - "title" : "Created by", - "type" : "integer", - "x-nullable" : true - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "kind" : { - "enum" : [ - "info", - "success", - "warning", - "danger" - ], - "title" : "Kind", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "assigned_object_type", - "assigned_object_id", - "comments" - ], - "type" : "object" - }, - "WritableLocation" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "site" : { - "title" : "Site", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug", - "site" - ], - "type" : "object" - }, - "WritableModule" : { - "properties" : { - "asset_tag" : { - "description" : "A unique tag used to identify this device", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_bay" : { - "title" : "Module bay", - "type" : "integer" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer" - }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device", - "module_bay", - "module_type" - ], - "type" : "object" - }, - "WritableModuleBay" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "installed_module" : { - "title" : "Installed module", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "position" : { - "description" : "Identifier to reference when renaming installed components", - "maxLength" : 30, - "title" : "Position", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device", - "name", - "installed_module" - ], - "type" : "object" - }, - "WritableModuleBayTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "position" : { - "description" : "Identifier to reference when renaming installed components", - "maxLength" : 30, - "title" : "Position", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "name" - ], - "type" : "object" - }, - "WritableModuleType" : { - "properties" : { - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { - "title" : "Manufacturer", - "type" : "integer" - }, - "model" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Model", - "type" : "string" - }, - "part_number" : { - "description" : "Discrete part number (optional)", - "maxLength" : 50, - "title" : "Part number", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "manufacturer", - "model" - ], - "type" : "object" - }, - "WritableObjectPermission" : { - "properties" : { - "actions" : { - "description" : "The list of actions granted by this permission", - "items" : { - "maxLength" : 30, - "minLength" : 1, - "title" : "Actions", - "type" : "string" - }, - "type" : "array" - }, - "constraints" : { - "description" : "Queryset filter matching the applicable objects of the selected type(s)", - "title" : "Constraints", - "type" : "string", - "x-nullable" : true - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "groups" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "object_types" : { - "items" : { "type" : "string" }, - "type" : "array", - "uniqueItems" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "users" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - } - }, - "required" : [ - "name", - "object_types", - "actions" - ], - "type" : "object" - }, - "WritablePlatform" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "manufacturer" : { - "description" : "Optionally limit this platform to devices of a certain manufacturer", - "title" : "Manufacturer", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "napalm_args" : { - "description" : "Additional arguments to pass when initiating the NAPALM driver (JSON format)", - "title" : "NAPALM arguments", - "type" : "string", - "x-nullable" : true - }, - "napalm_driver" : { - "description" : "The name of the NAPALM driver to use when interacting with devices", - "maxLength" : 50, - "title" : "NAPALM driver", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritablePowerFeed" : { - "properties" : { - "amperage" : { - "maximum" : 32767, - "minimum" : 1, - "title" : "Amperage", - "type" : "integer" - }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "max_utilization" : { - "description" : "Maximum permissible draw (percentage)", - "maximum" : 100, - "minimum" : 1, - "title" : "Max utilization", - "type" : "integer" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "phase" : { - "enum" : [ - "single-phase", - "three-phase" - ], - "title" : "Phase", - "type" : "string" - }, - "power_panel" : { - "title" : "Power panel", - "type" : "integer" - }, - "rack" : { - "title" : "Rack", - "type" : "integer", - "x-nullable" : true - }, - "status" : { - "enum" : [ - "offline", - "active", - "planned", - "failed" - ], - "title" : "Status", - "type" : "string" - }, - "supply" : { - "enum" : [ - "ac", - "dc" - ], - "title" : "Supply", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "enum" : [ - "primary", - "redundant" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "voltage" : { - "maximum" : 32767, - "minimum" : -32768, - "title" : "Voltage", - "type" : "integer" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "power_panel", - "name" - ], - "type" : "object" - }, - "WritablePowerOutlet" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "feed_leg" : { - "description" : "Phase (for three-phase feeds)", - "enum" : [ - "A", - "B", - "C" - ], - "title" : "Feed leg", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "power_port" : { - "title" : "Power port", - "type" : "integer", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "description" : "Physical port type", - "enum" : [ - "iec-60320-c5", - "iec-60320-c7", - "iec-60320-c13", - "iec-60320-c15", - "iec-60320-c19", - "iec-60320-c21", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15r", - "nema-5-15r", - "nema-5-20r", - "nema-5-30r", - "nema-5-50r", - "nema-6-15r", - "nema-6-20r", - "nema-6-30r", - "nema-6-50r", - "nema-10-30r", - "nema-10-50r", - "nema-14-20r", - "nema-14-30r", - "nema-14-50r", - "nema-14-60r", - "nema-15-15r", - "nema-15-20r", - "nema-15-30r", - "nema-15-50r", - "nema-15-60r", - "nema-l1-15r", - "nema-l5-15r", - "nema-l5-20r", - "nema-l5-30r", - "nema-l5-50r", - "nema-l6-15r", - "nema-l6-20r", - "nema-l6-30r", - "nema-l6-50r", - "nema-l10-30r", - "nema-l14-20r", - "nema-l14-30r", - "nema-l14-50r", - "nema-l14-60r", - "nema-l15-20r", - "nema-l15-30r", - "nema-l15-50r", - "nema-l15-60r", - "nema-l21-20r", - "nema-l21-30r", - "nema-l22-30r", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ita-e", - "ita-f", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "ita-multistandard", - "usb-a", - "usb-micro-b", - "usb-c", - "dc-terminal", - "hdot-cx", - "saf-d-grid", - "neutrik-powercon-20a", - "neutrik-powercon-32a", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "WritablePowerOutletTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "feed_leg" : { - "description" : "Phase (for three-phase feeds)", - "enum" : [ - "A", - "B", - "C" - ], - "title" : "Feed leg", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "power_port" : { - "title" : "Power port", - "type" : "integer", - "x-nullable" : true - }, - "type" : { - "enum" : [ - "iec-60320-c5", - "iec-60320-c7", - "iec-60320-c13", - "iec-60320-c15", - "iec-60320-c19", - "iec-60320-c21", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15r", - "nema-5-15r", - "nema-5-20r", - "nema-5-30r", - "nema-5-50r", - "nema-6-15r", - "nema-6-20r", - "nema-6-30r", - "nema-6-50r", - "nema-10-30r", - "nema-10-50r", - "nema-14-20r", - "nema-14-30r", - "nema-14-50r", - "nema-14-60r", - "nema-15-15r", - "nema-15-20r", - "nema-15-30r", - "nema-15-50r", - "nema-15-60r", - "nema-l1-15r", - "nema-l5-15r", - "nema-l5-20r", - "nema-l5-30r", - "nema-l5-50r", - "nema-l6-15r", - "nema-l6-20r", - "nema-l6-30r", - "nema-l6-50r", - "nema-l10-30r", - "nema-l14-20r", - "nema-l14-30r", - "nema-l14-50r", - "nema-l14-60r", - "nema-l15-20r", - "nema-l15-30r", - "nema-l15-50r", - "nema-l15-60r", - "nema-l21-20r", - "nema-l21-30r", - "nema-l22-30r", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ita-e", - "ita-f", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "ita-multistandard", - "usb-a", - "usb-micro-b", - "usb-c", - "dc-terminal", - "hdot-cx", - "saf-d-grid", - "neutrik-powercon-20a", - "neutrik-powercon-32a", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name" - ], - "type" : "object" - }, - "WritablePowerPanel" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "location" : { - "title" : "Location", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "powerfeed_count" : { - "readOnly" : true, - "title" : "Powerfeed count", - "type" : "integer" - }, - "site" : { - "title" : "Site", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "site", - "name" - ], - "type" : "object" - }, - "WritablePowerPort" : { - "properties" : { - "allocated_draw" : { - "description" : "Allocated power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Allocated draw", - "type" : "integer", - "x-nullable" : true - }, - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "connected_endpoint" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the type of connected object.\n", - "readOnly" : true, - "title" : "Connected endpoint", - "type" : "object" - }, - "connected_endpoint_reachable" : { - "readOnly" : true, - "title" : "Connected endpoint reachable", - "type" : "boolean" - }, - "connected_endpoint_type" : { - "readOnly" : true, - "title" : "Connected endpoint type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "maximum_draw" : { - "description" : "Maximum power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Maximum draw", - "type" : "integer", - "x-nullable" : true - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "description" : "Physical port type", - "enum" : [ - "iec-60320-c6", - "iec-60320-c8", - "iec-60320-c14", - "iec-60320-c16", - "iec-60320-c20", - "iec-60320-c22", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15p", - "nema-5-15p", - "nema-5-20p", - "nema-5-30p", - "nema-5-50p", - "nema-6-15p", - "nema-6-20p", - "nema-6-30p", - "nema-6-50p", - "nema-10-30p", - "nema-10-50p", - "nema-14-20p", - "nema-14-30p", - "nema-14-50p", - "nema-14-60p", - "nema-15-15p", - "nema-15-20p", - "nema-15-30p", - "nema-15-50p", - "nema-15-60p", - "nema-l1-15p", - "nema-l5-15p", - "nema-l5-20p", - "nema-l5-30p", - "nema-l5-50p", - "nema-l6-15p", - "nema-l6-20p", - "nema-l6-30p", - "nema-l6-50p", - "nema-l10-30p", - "nema-l14-20p", - "nema-l14-30p", - "nema-l14-50p", - "nema-l14-60p", - "nema-l15-20p", - "nema-l15-30p", - "nema-l15-50p", - "nema-l15-60p", - "nema-l21-20p", - "nema-l21-30p", - "nema-l22-30p", - "cs6361c", - "cs6365c", - "cs8165c", - "cs8265c", - "cs8365c", - "cs8465c", - "ita-c", - "ita-e", - "ita-f", - "ita-ef", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "usb-3-b", - "usb-3-micro-b", - "dc-terminal", - "saf-d-grid", - "neutrik-powercon-20", - "neutrik-powercon-32", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name" - ], - "type" : "object" - }, - "WritablePowerPortTemplate" : { - "properties" : { - "allocated_draw" : { - "description" : "Allocated power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Allocated draw", - "type" : "integer", - "x-nullable" : true - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "maximum_draw" : { - "description" : "Maximum power draw (watts)", - "maximum" : 32767, - "minimum" : 1, - "title" : "Maximum draw", - "type" : "integer", - "x-nullable" : true - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "type" : { - "enum" : [ - "iec-60320-c6", - "iec-60320-c8", - "iec-60320-c14", - "iec-60320-c16", - "iec-60320-c20", - "iec-60320-c22", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "nema-1-15p", - "nema-5-15p", - "nema-5-20p", - "nema-5-30p", - "nema-5-50p", - "nema-6-15p", - "nema-6-20p", - "nema-6-30p", - "nema-6-50p", - "nema-10-30p", - "nema-10-50p", - "nema-14-20p", - "nema-14-30p", - "nema-14-50p", - "nema-14-60p", - "nema-15-15p", - "nema-15-20p", - "nema-15-30p", - "nema-15-50p", - "nema-15-60p", - "nema-l1-15p", - "nema-l5-15p", - "nema-l5-20p", - "nema-l5-30p", - "nema-l5-50p", - "nema-l6-15p", - "nema-l6-20p", - "nema-l6-30p", - "nema-l6-50p", - "nema-l10-30p", - "nema-l14-20p", - "nema-l14-30p", - "nema-l14-50p", - "nema-l14-60p", - "nema-l15-20p", - "nema-l15-30p", - "nema-l15-50p", - "nema-l15-60p", - "nema-l21-20p", - "nema-l21-30p", - "nema-l22-30p", - "cs6361c", - "cs6365c", - "cs8165c", - "cs8265c", - "cs8365c", - "cs8465c", - "ita-c", - "ita-e", - "ita-f", - "ita-ef", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", - "usb-3-b", - "usb-3-micro-b", - "dc-terminal", - "saf-d-grid", - "neutrik-powercon-20", - "neutrik-powercon-32", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name" - ], - "type" : "object" - }, - "WritablePrefix" : { - "properties" : { - "children" : { - "readOnly" : true, - "title" : "Children", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "family" : { - "readOnly" : true, - "title" : "Family", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_pool" : { - "description" : "All IP addresses within this prefix are considered usable", - "title" : "Is a pool", - "type" : "boolean" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mark_utilized" : { - "description" : "Treat as 100% utilized", - "title" : "Mark utilized", - "type" : "boolean" - }, - "prefix" : { - "description" : "IPv4 or IPv6 network with mask", - "title" : "Prefix", - "type" : "string" - }, - "role" : { - "description" : "The primary function of this prefix", - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "site" : { - "title" : "Site", - "type" : "integer", - "x-nullable" : true - }, - "status" : { - "description" : "Operational status of this prefix", - "enum" : [ - "container", - "active", - "reserved", - "deprecated" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan" : { - "title" : "VLAN", - "type" : "integer", - "x-nullable" : true - }, - "vrf" : { - "title" : "VRF", - "type" : "integer", - "x-nullable" : true - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ "prefix" ], - "type" : "object" - }, - "WritableProvider" : { - "properties" : { - "account" : { - "maxLength" : 30, - "title" : "Account number", - "type" : "string" - }, - "admin_contact" : { - "title" : "Admin contact", - "type" : "string" - }, - "asn" : { - "description" : "32-bit autonomous system number", - "maximum" : 4294967295, - "minimum" : 1, - "title" : "ASN", - "type" : "integer", - "x-nullable" : true - }, - "asns" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "noc_contact" : { - "title" : "NOC contact", - "type" : "string" - }, - "portal_url" : { - "format" : "uri", - "maxLength" : 200, - "title" : "Portal URL", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritableProviderNetwork" : { - "properties" : { - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "provider" : { - "title" : "Provider", - "type" : "integer" - }, - "service_id" : { - "maxLength" : 100, - "title" : "Service ID", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "provider", - "name" - ], - "type" : "object" - }, - "WritableRack" : { - "properties" : { - "asset_tag" : { - "description" : "A unique tag used to identify this rack", - "maxLength" : 50, - "title" : "Asset tag", - "type" : "string", - "x-nullable" : true - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "desc_units" : { - "description" : "Units are numbered top-to-bottom", - "title" : "Descending units", - "type" : "boolean" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "facility_id" : { - "maxLength" : 50, - "title" : "Facility ID", - "type" : "string", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "location" : { - "title" : "Location", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "outer_depth" : { - "description" : "Outer dimension of rack (depth)", - "maximum" : 32767, - "minimum" : 0, - "title" : "Outer depth", - "type" : "integer", - "x-nullable" : true - }, - "outer_unit" : { - "enum" : [ - "mm", - "in" - ], - "title" : "Outer unit", - "type" : "string" - }, - "outer_width" : { - "description" : "Outer dimension of rack (width)", - "maximum" : 32767, - "minimum" : 0, - "title" : "Outer width", - "type" : "integer", - "x-nullable" : true - }, - "powerfeed_count" : { - "readOnly" : true, - "title" : "Powerfeed count", - "type" : "integer" - }, - "role" : { - "description" : "Functional role", - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "serial" : { - "maxLength" : 50, - "title" : "Serial number", - "type" : "string" - }, - "site" : { - "title" : "Site", - "type" : "integer" - }, - "status" : { - "enum" : [ - "reserved", - "available", - "planned", - "active", - "deprecated" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "type" : { - "enum" : [ - "2-post-frame", - "4-post-frame", - "4-post-cabinet", - "wall-frame", - "wall-cabinet" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "u_height" : { - "description" : "Height in rack units", - "maximum" : 100, - "minimum" : 1, - "title" : "Height (U)", - "type" : "integer" - }, - "width" : { - "description" : "Rail-to-rail width", - "enum" : [ - 10, - 19, - 21, - 23 - ], - "title" : "Width", - "type" : "integer" - } - }, - "required" : [ - "name", - "site", - "location" - ], - "type" : "object" - }, - "WritableRackReservation" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "minLength" : 1, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "rack" : { - "title" : "Rack", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "units" : { - "items" : { - "maximum" : 32767, - "minimum" : 0, - "title" : "Units", - "type" : "integer" - }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user" : { - "title" : "User", - "type" : "integer" - } - }, - "required" : [ - "rack", - "units", - "user", - "description" - ], - "type" : "object" - }, - "WritableRearPort" : { - "properties" : { - "cable" : { "$ref" : "#/definitions/NestedCable" }, - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "link_peer" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, - "description" : "\nReturn the appropriate serializer for the link termination model.\n", - "readOnly" : true, - "title" : "Link peer", - "type" : "object" - }, - "link_peer_type" : { - "readOnly" : true, - "title" : "Link peer type", - "type" : "string" - }, - "mark_connected" : { - "description" : "Treat as if a cable is connected", - "title" : "Mark connected", - "type" : "boolean" - }, - "module" : { - "title" : "Module", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "positions" : { - "maximum" : 1024, - "minimum" : 1, - "title" : "Positions", - "type" : "integer" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "type" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_occupied" : { - "readOnly" : true, - "title" : "occupied", - "type" : "boolean" - } - }, - "required" : [ - "device", - "name", - "type" - ], - "type" : "object" - }, - "WritableRearPortTemplate" : { - "properties" : { - "color" : { - "maxLength" : 6, - "pattern" : "^[0-9a-f]{6}$", - "title" : "Color", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_type" : { - "title" : "Device type", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "label" : { - "description" : "Physical label", - "maxLength" : 64, - "title" : "Label", - "type" : "string" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "module_type" : { - "title" : "Module type", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "description" : "\n{module} is accepted as a substitution for the module bay position when attached to a module type.\n", - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "positions" : { - "maximum" : 1024, - "minimum" : 1, - "title" : "Positions", - "type" : "integer" - }, - "type" : { - "enum" : [ - "8p8c", - "8p6c", - "8p4c", - "8p2c", - "6p6c", - "6p4c", - "6p2c", - "4p4c", - "4p2c", - "gg45", - "tera-4p", - "tera-2p", - "tera-1p", - "110-punch", - "bnc", - "f", - "n", - "mrj21", - "fc", - "lc", - "lc-pc", - "lc-upc", - "lc-apc", - "lsh", - "lsh-pc", - "lsh-upc", - "lsh-apc", - "mpo", - "mtrj", - "sc", - "sc-pc", - "sc-upc", - "sc-apc", - "st", - "cs", - "sn", - "sma-905", - "sma-906", - "urm-p2", - "urm-p4", - "urm-p8", - "splice", - "other" - ], - "title" : "Type", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "device_type", - "module_type", - "name", - "type" - ], - "type" : "object" - }, - "WritableRegion" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritableRouteTarget" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "description" : "Route target value (formatted in accordance with RFC 4360)", - "maxLength" : 21, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "WritableService" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device" : { - "title" : "Device", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ipaddresses" : { - "items" : { - "title" : "IP addresses", - "type" : "integer" - }, - "type" : "array", - "uniqueItems" : true - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "ports" : { - "items" : { - "maximum" : 65535, - "minimum" : 1, - "title" : "Ports", - "type" : "integer" - }, - "type" : "array" - }, - "protocol" : { - "enum" : [ - "tcp", - "udp", - "sctp" - ], - "title" : "Protocol", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtual_machine" : { - "title" : "Virtual machine", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ - "name", - "ports", - "protocol" - ], - "type" : "object" - }, - "WritableServiceTemplate" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "ports" : { - "items" : { - "maximum" : 65535, - "minimum" : 1, - "title" : "Ports", - "type" : "integer" - }, - "type" : "array" - }, - "protocol" : { - "enum" : [ - "tcp", - "udp", - "sctp" - ], - "title" : "Protocol", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "name", - "ports", - "protocol" - ], - "type" : "object" - }, - "WritableSite" : { - "properties" : { - "asns" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "facility" : { - "description" : "Local facility ID or description", - "maxLength" : 50, - "title" : "Facility", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "latitude" : { - "description" : "GPS coordinate (latitude)", - "format" : "decimal", - "title" : "Latitude", - "type" : "number", - "x-nullable" : true - }, - "longitude" : { - "description" : "GPS coordinate (longitude)", - "format" : "decimal", - "title" : "Longitude", - "type" : "number", - "x-nullable" : true - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "physical_address" : { - "maxLength" : 200, - "title" : "Physical address", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "region" : { - "title" : "Region", - "type" : "integer", - "x-nullable" : true - }, - "shipping_address" : { - "maxLength" : 200, - "title" : "Shipping address", - "type" : "string" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "status" : { - "enum" : [ - "planned", - "staging", - "active", - "decommissioning", - "retired" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "time_zone" : { - "title" : "Time zone", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritableSiteGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritableTenant" : { - "properties" : { - "circuit_count" : { - "readOnly" : true, - "title" : "Circuit count", - "type" : "integer" - }, - "cluster_count" : { - "readOnly" : true, - "title" : "Cluster count", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "device_count" : { - "readOnly" : true, - "title" : "Device count", - "type" : "integer" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "ipaddress_count" : { - "readOnly" : true, - "title" : "Ipaddress count", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rack_count" : { - "readOnly" : true, - "title" : "Rack count", - "type" : "integer" - }, - "site_count" : { - "readOnly" : true, - "title" : "Site count", - "type" : "integer" - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtualmachine_count" : { - "readOnly" : true, - "title" : "Virtualmachine count", - "type" : "integer" - }, - "vlan_count" : { - "readOnly" : true, - "title" : "Vlan count", - "type" : "integer" - }, - "vrf_count" : { - "readOnly" : true, - "title" : "Vrf count", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritableTenantGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant_count" : { - "readOnly" : true, - "title" : "Tenant count", - "type" : "integer" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug" - ], - "type" : "object" - }, - "WritableToken" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "expires" : { - "format" : "date-time", - "title" : "Expires", - "type" : "string", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "key" : { - "maxLength" : 40, - "minLength" : 40, - "title" : "Key", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "user" : { - "title" : "User", - "type" : "integer" - }, - "write_enabled" : { - "description" : "Permit create/update/delete operations using this key", - "title" : "Write enabled", - "type" : "boolean" - } - }, - "required" : [ "user" ], - "type" : "object" - }, - "WritableUser" : { - "properties" : { - "date_joined" : { - "format" : "date-time", - "title" : "Date joined", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "email" : { - "format" : "email", - "maxLength" : 254, - "title" : "Email address", - "type" : "string" - }, - "first_name" : { - "maxLength" : 150, - "title" : "First name", - "type" : "string" - }, - "groups" : { - "description" : "The groups this user belongs to. A user will get all permissions granted to each of their groups.", - "items" : { - "description" : "The groups this user belongs to. A user will get all permissions granted to each of their groups.", - "type" : "integer" - }, - "type" : "array", - "uniqueItems" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "is_active" : { - "description" : "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", - "title" : "Active", - "type" : "boolean" - }, - "is_staff" : { - "description" : "Designates whether the user can log into this admin site.", - "title" : "Staff status", - "type" : "boolean" - }, - "last_name" : { - "maxLength" : 150, - "title" : "Last name", - "type" : "string" - }, - "password" : { - "maxLength" : 128, - "minLength" : 1, - "title" : "Password", - "type" : "string" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "username" : { - "description" : "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", - "maxLength" : 150, - "minLength" : 1, - "pattern" : "^[\\w.@+-]+$", - "title" : "Username", - "type" : "string" - } - }, - "required" : [ - "username", - "password" - ], - "type" : "object" - }, - "WritableVirtualChassis" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "domain" : { - "maxLength" : 30, - "title" : "Domain", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "master" : { - "title" : "Master", - "type" : "integer", - "x-nullable" : true - }, - "member_count" : { - "readOnly" : true, - "title" : "Member count", - "type" : "integer" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "WritableVirtualMachineWithConfigContext" : { - "properties" : { - "cluster" : { - "title" : "Cluster", - "type" : "integer" - }, - "comments" : { - "title" : "Comments", - "type" : "string" - }, - "config_context" : { - "readOnly" : true, - "title" : "Config context", - "type" : "object" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "disk" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Disk (GB)", - "type" : "integer", - "x-nullable" : true - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "local_context_data" : { - "title" : "Local context data", - "type" : "object", - "x-nullable" : true - }, - "memory" : { - "maximum" : 2147483647, - "minimum" : 0, - "title" : "Memory (MB)", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "platform" : { - "title" : "Platform", - "type" : "integer", - "x-nullable" : true - }, - "primary_ip" : { - "readOnly" : true, - "title" : "Primary ip", - "type" : "string" - }, - "primary_ip4" : { - "title" : "Primary IPv4", - "type" : "integer", - "x-nullable" : true - }, - "primary_ip6" : { - "title" : "Primary IPv6", - "type" : "integer", - "x-nullable" : true - }, - "role" : { - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "site" : { - "readOnly" : true, - "title" : "Site", - "type" : "string" - }, - "status" : { - "enum" : [ - "offline", - "active", - "planned", - "staged", - "failed", - "decommissioning" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vcpus" : { - "format" : "decimal", - "minimum" : 0.01, - "title" : "VCPUs", - "type" : "number", - "x-nullable" : true - } - }, - "required" : [ - "name", - "cluster" - ], - "type" : "object" - }, - "WritableVLAN" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "role" : { - "title" : "Role", - "type" : "integer", - "x-nullable" : true - }, - "site" : { - "title" : "Site", - "type" : "integer", - "x-nullable" : true - }, - "status" : { - "enum" : [ - "active", - "reserved", - "deprecated" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vid" : { - "maximum" : 4094, - "minimum" : 1, - "title" : "ID", - "type" : "integer" - } - }, - "required" : [ - "group", - "vid", - "name" - ], - "type" : "object" - }, - "WritableVMInterface" : { - "properties" : { - "bridge" : { - "title" : "Bridge interface", - "type" : "integer", - "x-nullable" : true - }, - "count_fhrp_groups" : { - "readOnly" : true, - "title" : "Count fhrp groups", - "type" : "integer" - }, - "count_ipaddresses" : { - "readOnly" : true, - "title" : "Count ipaddresses", - "type" : "integer" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enabled" : { - "title" : "Enabled", - "type" : "boolean" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "mac_address" : { - "title" : "MAC Address", - "type" : "string", - "x-nullable" : true - }, - "mode" : { - "enum" : [ - "access", - "tagged", - "tagged-all" - ], - "title" : "Mode", - "type" : "string" - }, - "mtu" : { - "maximum" : 65536, - "minimum" : 1, - "title" : "MTU", - "type" : "integer", - "x-nullable" : true - }, - "name" : { - "maxLength" : 64, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent interface", - "type" : "integer", - "x-nullable" : true - }, - "tagged_vlans" : { - "items" : { - "title" : "Tagged VLANs", - "type" : "integer" - }, - "type" : "array", - "uniqueItems" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "untagged_vlan" : { - "title" : "Untagged VLAN", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "virtual_machine" : { - "title" : "Virtual machine", - "type" : "integer" - }, - "vrf" : { - "title" : "VRF", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ - "virtual_machine", - "name" - ], - "type" : "object" - }, - "WritableVRF" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "enforce_unique" : { - "description" : "Prevent duplicate prefixes/IP addresses within this VRF", - "title" : "Enforce unique space", - "type" : "boolean" - }, - "export_targets" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "import_targets" : { - "items" : { "type" : "integer" }, - "type" : "array", - "uniqueItems" : true - }, - "ipaddress_count" : { - "readOnly" : true, - "title" : "Ipaddress count", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "prefix_count" : { - "readOnly" : true, - "title" : "Prefix count", - "type" : "integer" - }, - "rd" : { - "description" : "Unique route distinguisher (as defined in RFC 4364)", - "maxLength" : 21, - "title" : "Route distinguisher", - "type" : "string", - "x-nullable" : true - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "tenant" : { - "title" : "Tenant", - "type" : "integer", - "x-nullable" : true - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ "name" ], - "type" : "object" - }, - "WritableWirelessLAN" : { - "properties" : { - "auth_cipher" : { - "enum" : [ - "auto", - "tkip", - "aes" - ], - "title" : "Auth cipher", - "type" : "string" - }, - "auth_psk" : { - "maxLength" : 64, - "title" : "Pre-shared key", - "type" : "string" - }, - "auth_type" : { - "enum" : [ - "open", - "wep", - "wpa-personal", - "wpa-enterprise" - ], - "title" : "Auth type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "group" : { - "title" : "Group", - "type" : "integer", - "x-nullable" : true - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "ssid" : { - "maxLength" : 32, - "minLength" : 1, - "title" : "SSID", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "vlan" : { - "title" : "VLAN", - "type" : "integer", - "x-nullable" : true - } - }, - "required" : [ "ssid" ], - "type" : "object" - }, - "WritableWirelessLANGroup" : { - "properties" : { - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "name" : { - "maxLength" : 100, - "minLength" : 1, - "title" : "Name", - "type" : "string" - }, - "parent" : { - "title" : "Parent", - "type" : "integer", - "x-nullable" : true - }, - "slug" : { - "format" : "slug", - "maxLength" : 100, - "minLength" : 1, - "pattern" : "^[-a-zA-Z0-9_]+$", - "title" : "Slug", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - }, - "wirelesslan_count" : { - "readOnly" : true, - "title" : "Wirelesslan count", - "type" : "integer" - }, - "_depth" : { - "readOnly" : true, - "title" : "depth", - "type" : "integer" - } - }, - "required" : [ - "name", - "slug", - "parent" - ], - "type" : "object" - }, - "WritableWirelessLink" : { - "properties" : { - "auth_cipher" : { - "enum" : [ - "auto", - "tkip", - "aes" - ], - "title" : "Auth cipher", - "type" : "string" - }, - "auth_psk" : { - "maxLength" : 64, - "title" : "Pre-shared key", - "type" : "string" - }, - "auth_type" : { - "enum" : [ - "open", - "wep", - "wpa-personal", - "wpa-enterprise" - ], - "title" : "Auth type", - "type" : "string" - }, - "created" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Created", - "type" : "string" - }, - "custom_fields" : { - "default" : { }, - "title" : "Custom fields", - "type" : "object" - }, - "description" : { - "maxLength" : 200, - "title" : "Description", - "type" : "string" - }, - "display" : { - "readOnly" : true, - "title" : "Display", - "type" : "string" - }, - "id" : { - "readOnly" : true, - "title" : "ID", - "type" : "integer" - }, - "interface_a" : { - "title" : "Interface a", - "type" : "integer" - }, - "interface_b" : { - "title" : "Interface b", - "type" : "integer" - }, - "last_updated" : { - "format" : "date-time", - "readOnly" : true, - "title" : "Last updated", - "type" : "string" - }, - "ssid" : { - "maxLength" : 32, - "title" : "SSID", - "type" : "string" - }, - "status" : { - "enum" : [ - "connected", - "planned", - "decommissioning" - ], - "title" : "Status", - "type" : "string" - }, - "tags" : { - "items" : { "$ref" : "#/definitions/NestedTag" }, - "type" : "array" - }, - "url" : { - "format" : "uri", - "readOnly" : true, - "title" : "Url", - "type" : "string" - } - }, - "required" : [ - "interface_a", - "interface_b" - ], - "type" : "object" - } - }, - "host" : "127.0.0.1:8000", - "info" : { - "description" : "API to access NetBox", - "license" : { "name" : "Apache v2 License" }, - "termsOfService" : "https://github.com/netbox-community/netbox", - "title" : "NetBox API", - "version" : "3.2" - }, - "paths" : { - "/circuits/circuit-terminations/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "circuits_circuit-terminations_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "term_side", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "port_speed", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "upstream_speed", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "circuit_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_network_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "term_side__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "port_speed__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "port_speed__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "port_speed__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "port_speed__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "port_speed__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "upstream_speed__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "upstream_speed__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "upstream_speed__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "upstream_speed__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "upstream_speed__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "xconnect_id__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "circuit_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_network_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/CircuitTermination" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuitTermination" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - }, - "post" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuitTermination" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuitTermination" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/circuit-terminations/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this circuit termination.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuitTermination" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_circuit-terminations_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuitTermination" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/circuit-terminations/{id}/paths/" : { - "get" : { - "description" : "Return all CablePaths which traverse a given pass-through port.", - "operationId" : "circuits_circuit-terminations_paths", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitTermination" } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this circuit termination.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/circuits/circuit-types/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_circuit-types_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "circuits_circuit-types_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/CircuitType" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "circuits_circuit-types_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CircuitType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitType" } - } }, - "tags" : [ "circuits" ] - }, - "post" : { - "description" : "", - "operationId" : "circuits_circuit-types_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CircuitType" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitType" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_circuit-types_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CircuitType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitType" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/circuit-types/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_circuit-types_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "", - "operationId" : "circuits_circuit-types_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitType" } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this circuit type.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "circuits_circuit-types_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CircuitType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitType" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_circuit-types_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CircuitType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CircuitType" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/circuits/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_circuits_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "circuits_circuits_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "install_date", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "commit_rate", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_network_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cid__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "install_date__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "install_date__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "install_date__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "install_date__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "install_date__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "commit_rate__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "commit_rate__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "commit_rate__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "commit_rate__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "commit_rate__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_network_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Circuit" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "circuits_circuits_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuit" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Circuit" } - } }, - "tags" : [ "circuits" ] - }, - "post" : { - "description" : "", - "operationId" : "circuits_circuits_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuit" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Circuit" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_circuits_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuit" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Circuit" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/circuits/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_circuits_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "", - "operationId" : "circuits_circuits_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Circuit" } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this circuit.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "circuits_circuits_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuit" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Circuit" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_circuits_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCircuit" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Circuit" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/provider-networks/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_provider-networks_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "circuits_provider-networks_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "service_id__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "provider__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ProviderNetwork" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "circuits_provider-networks_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProviderNetwork" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ProviderNetwork" } - } }, - "tags" : [ "circuits" ] - }, - "post" : { - "description" : "", - "operationId" : "circuits_provider-networks_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProviderNetwork" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ProviderNetwork" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_provider-networks_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProviderNetwork" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ProviderNetwork" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/provider-networks/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_provider-networks_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "", - "operationId" : "circuits_provider-networks_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ProviderNetwork" } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this provider network.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "circuits_provider-networks_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProviderNetwork" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ProviderNetwork" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_provider-networks_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProviderNetwork" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ProviderNetwork" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/providers/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_providers_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "circuits_providers_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "account__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Provider" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "circuits_providers_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProvider" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Provider" } - } }, - "tags" : [ "circuits" ] - }, - "post" : { - "description" : "", - "operationId" : "circuits_providers_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProvider" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Provider" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_providers_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProvider" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Provider" } - } }, - "tags" : [ "circuits" ] - } - }, - "/circuits/providers/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "circuits_providers_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "circuits" ] - }, - "get" : { - "description" : "", - "operationId" : "circuits_providers_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Provider" } - } }, - "tags" : [ "circuits" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this provider.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "circuits_providers_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProvider" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Provider" } - } }, - "tags" : [ "circuits" ] - }, - "put" : { - "description" : "", - "operationId" : "circuits_providers_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableProvider" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Provider" } - } }, - "tags" : [ "circuits" ] - } - }, - "/dcim/cables/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_cables_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_cables_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length_unit", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "length_unit__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_a_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "termination_b_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Cable" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_cables_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCable" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Cable" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_cables_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCable" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Cable" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_cables_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCable" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Cable" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/cables/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_cables_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_cables_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Cable" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this cable.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_cables_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCable" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Cable" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_cables_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCable" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Cable" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/connected-device/" : { - "get" : { - "description" : "This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer\ninterface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors\nvia a protocol such as LLDP. Two query parameters must be included in the request:\n\n* `peer_device`: The name of the peer device\n* `peer_interface`: The name of the peer interface", - "operationId" : "dcim_connected-device_list", - "parameters" : [ - { - "description" : "The name of the peer device", - "in" : "query", - "name" : "peer_device", - "required" : true, - "type" : "string" - }, - { - "description" : "The name of the peer interface", - "in" : "query", - "name" : "peer_interface", - "required" : true, - "type" : "string" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Device" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ] - }, - "/dcim/console-port-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-port-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_console-port-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ConsolePortTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-port-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_console-port-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePortTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-port-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-port-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-port-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_console-port-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this console port template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-port-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-port-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-ports/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-ports_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_console-ports_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "connected", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ConsolePort" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-ports_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_console-ports_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePort" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-ports_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-ports/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-ports_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_console-ports_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this console port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-ports_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-ports_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsolePort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-ports/{id}/trace/" : { - "get" : { - "description" : "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", - "operationId" : "dcim_console-ports_trace", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsolePort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this console port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/console-server-port-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_console-server-port-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPortTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-server-port-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this console server port template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-server-port-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-server-ports/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-server-ports_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_console-server-ports_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "connected", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ConsoleServerPort" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-server-ports_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_console-server-ports_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPort" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-server-ports_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-server-ports/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_console-server-ports_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_console-server-ports_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this console server port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_console-server-ports_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_console-server-ports_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConsoleServerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/console-server-ports/{id}/trace/" : { - "get" : { - "description" : "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", - "operationId" : "dcim_console-server-ports_trace", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConsoleServerPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this console server port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/device-bay-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_device-bay-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/DeviceBayTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBayTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBayTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-bay-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this device bay template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-bay-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBayTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-bays/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-bays_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_device-bays_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/DeviceBay" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-bays_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBay" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_device-bays_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBay" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBay" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-bays_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBay" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-bays/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-bays_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_device-bays_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBay" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this device bay.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-bays_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBay" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-bays_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceBay" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-roles/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-roles_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_device-roles_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vm_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/DeviceRole" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-roles_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_device-roles_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-roles_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-roles/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-roles_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_device-roles_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this device role.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-roles_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-roles_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceRole" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-types/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-types_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_device-types_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "is_full_depth", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "subdevice_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "airflow", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "console_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "console_server_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_outlets", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "interfaces", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "pass_through_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_bays", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_bays", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "inventory_items", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "subdevice_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "airflow__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/DeviceType" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-types_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceType" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_device-types_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceType" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceType" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-types_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceType" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/device-types/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_device-types_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_device-types_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceType" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this device type.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_device-types_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceType" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_device-types_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceType" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/devices/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_devices_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_devices_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "face", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "position", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "airflow", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_position", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_priority", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "local_context_data", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "is_full_depth", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "has_primary_ip", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_member", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "console_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "console_server_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_outlets", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "interfaces", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "pass_through_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_bays", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_bays", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "face__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "position__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "position__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "position__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "position__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "position__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "airflow__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_position__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_position__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_position__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_position__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_position__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_priority__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_priority__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_priority__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_priority__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vc_priority__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/DeviceWithConfigContext" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_devices_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceWithConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceWithConfigContext" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_devices_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceWithConfigContext" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceWithConfigContext" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_devices_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceWithConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceWithConfigContext" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/devices/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_devices_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_devices_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceWithConfigContext" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this device.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_devices_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceWithConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceWithConfigContext" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_devices_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableDeviceWithConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceWithConfigContext" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/devices/{id}/napalm/" : { - "get" : { - "description" : "Execute a NAPALM method on a Device", - "operationId" : "dcim_devices_napalm", - "parameters" : [ { - "in" : "query", - "name" : "method", - "required" : true, - "type" : "string" - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/DeviceNAPALM" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this device.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/front-port-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_front-port-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_front-port-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/FrontPortTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_front-port-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_front-port-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPortTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_front-port-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/front-port-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_front-port-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_front-port-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this front port template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_front-port-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_front-port-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/front-ports/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_front-ports_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_front-ports_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/FrontPort" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_front-ports_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_front-ports_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPort" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_front-ports_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/front-ports/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_front-ports_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_front-ports_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this front port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_front-ports_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_front-ports_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableFrontPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/front-ports/{id}/paths/" : { - "get" : { - "description" : "Return all CablePaths which traverse a given pass-through port.", - "operationId" : "dcim_front-ports_paths", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/FrontPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this front port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/interface-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_interface-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_interface-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mgmt_only", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/InterfaceTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_interface-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterfaceTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InterfaceTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_interface-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterfaceTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InterfaceTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_interface-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterfaceTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InterfaceTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/interface-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_interface-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_interface-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InterfaceTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this interface template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_interface-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterfaceTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InterfaceTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_interface-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterfaceTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InterfaceTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/interfaces/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_interfaces_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_interfaces_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "enabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mtu", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mgmt_only", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mode", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_frequency", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_width", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tx_power", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "connected", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "kind", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "bridge_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "lag_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "speed", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "duplex", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vlan_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vlan", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vrf_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vrf", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mtu__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mtu__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mtu__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mtu__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mtu__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mode__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_frequency__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_frequency__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_frequency__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_frequency__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_frequency__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_width__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_width__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_width__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_width__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rf_channel_width__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tx_power__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tx_power__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tx_power__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tx_power__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tx_power__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "bridge_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "lag_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "speed__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "speed__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "speed__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "speed__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "speed__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "duplex__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "mac_address__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "wwn__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vrf_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "vrf__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Interface" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_interfaces_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterface" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_interfaces_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterface" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_interfaces_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterface" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/interfaces/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_interfaces_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_interfaces_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this interface.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_interfaces_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterface" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_interfaces_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInterface" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/interfaces/{id}/trace/" : { - "get" : { - "description" : "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", - "operationId" : "dcim_interfaces_trace", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Interface" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this interface.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/inventory-item-roles/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_inventory-item-roles_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/InventoryItemRole" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/inventory-item-roles/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this inventory item role.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_inventory-item-roles_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemRole" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/inventory-item-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_inventory-item-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/InventoryItemTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItemTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItemTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItemTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/inventory-item-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this inventory item template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItemTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_inventory-item-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItemTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItemTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/inventory-items/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_inventory-items_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_inventory-items_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "discovered", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_id__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "component_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/InventoryItem" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_inventory-items_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItem" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItem" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_inventory-items_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItem" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItem" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_inventory-items_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItem" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItem" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/inventory-items/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_inventory-items_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_inventory-items_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItem" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this inventory item.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_inventory-items_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItem" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItem" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_inventory-items_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableInventoryItem" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/InventoryItem" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/locations/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_locations_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_locations_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Location" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_locations_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableLocation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Location" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_locations_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableLocation" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Location" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_locations_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableLocation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Location" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/locations/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_locations_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_locations_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Location" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this location.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_locations_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableLocation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Location" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_locations_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableLocation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Location" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/manufacturers/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_manufacturers_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_manufacturers_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Manufacturer" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_manufacturers_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_manufacturers_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_manufacturers_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/manufacturers/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_manufacturers_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_manufacturers_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this manufacturer.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_manufacturers_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_manufacturers_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Manufacturer" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/module-bay-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_module-bay-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ModuleBayTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBayTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBayTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/module-bay-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this module bay template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBayTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_module-bay-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBayTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBayTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/module-bays/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_module-bays_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_module-bays_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ModuleBay" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_module-bays_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBay" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_module-bays_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBay" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBay" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_module-bays_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBay" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/module-bays/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_module-bays_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_module-bays_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBay" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this module bay.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_module-bays_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBay" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_module-bays_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleBay" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleBay" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/module-types/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_module-types_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_module-types_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "console_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "console_server_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_outlets", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "interfaces", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "pass_through_ports", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "part_number__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ModuleType" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_module-types_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleType" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_module-types_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleType" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleType" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_module-types_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleType" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/module-types/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_module-types_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_module-types_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleType" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this module type.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_module-types_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleType" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_module-types_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModuleType" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ModuleType" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/modules/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_modules_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_modules_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_bay_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_bay_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Module" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_modules_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModule" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Module" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_modules_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModule" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Module" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_modules_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModule" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Module" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/modules/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_modules_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_modules_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Module" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this module.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_modules_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModule" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Module" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_modules_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableModule" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Module" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/platforms/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_platforms_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_platforms_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "napalm_driver__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "manufacturer__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Platform" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_platforms_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePlatform" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Platform" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_platforms_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePlatform" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Platform" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_platforms_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePlatform" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Platform" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/platforms/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_platforms_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_platforms_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Platform" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this platform.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_platforms_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePlatform" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Platform" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_platforms_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePlatform" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Platform" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-feeds/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-feeds_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_power-feeds_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "supply", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "phase", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "voltage", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "amperage", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "max_utilization", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "connected", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_panel_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "supply__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "phase__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "voltage__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "voltage__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "voltage__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "voltage__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "voltage__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "amperage__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "amperage__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "amperage__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "amperage__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "amperage__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "max_utilization__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "max_utilization__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "max_utilization__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "max_utilization__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "max_utilization__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "power_panel_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/PowerFeed" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-feeds_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerFeed" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_power-feeds_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerFeed" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-feeds_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerFeed" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-feeds/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-feeds_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_power-feeds_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power feed.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-feeds_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerFeed" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-feeds_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerFeed" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-feeds/{id}/trace/" : { - "get" : { - "description" : "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", - "operationId" : "dcim_power-feeds_trace", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerFeed" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power feed.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/power-outlet-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_power-outlet-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "feed_leg", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "feed_leg__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/PowerOutletTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutletTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutletTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutletTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutletTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutletTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutletTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-outlet-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutletTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power outlet template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutletTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutletTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-outlet-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutletTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutletTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-outlets/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-outlets_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_power-outlets_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "feed_leg", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "connected", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "feed_leg__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/PowerOutlet" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-outlets_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutlet" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_power-outlets_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutlet" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-outlets_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutlet" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-outlets/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-outlets_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_power-outlets_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power outlet.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-outlets_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutlet" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-outlets_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerOutlet" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-outlets/{id}/trace/" : { - "get" : { - "description" : "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", - "operationId" : "dcim_power-outlets_trace", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerOutlet" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power outlet.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/power-panels/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-panels_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_power-panels_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/PowerPanel" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-panels_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPanel" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPanel" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_power-panels_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPanel" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPanel" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-panels_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPanel" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPanel" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-panels/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-panels_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_power-panels_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPanel" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power panel.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-panels_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPanel" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPanel" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-panels_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPanel" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPanel" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-port-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-port-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_power-port-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/PowerPortTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-port-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_power-port-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPortTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-port-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-port-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-port-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_power-port-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power port template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-port-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-port-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-ports/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-ports_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_power-ports_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "connected", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "maximum_draw__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "allocated_draw__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/PowerPort" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-ports_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_power-ports_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPort" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-ports_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-ports/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_power-ports_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_power-ports_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_power-ports_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_power-ports_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritablePowerPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/power-ports/{id}/trace/" : { - "get" : { - "description" : "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", - "operationId" : "dcim_power-ports_trace", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/PowerPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this power port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/rack-reservations/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rack-reservations_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_rack-reservations_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "rack_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/RackReservation" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_rack-reservations_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRackReservation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackReservation" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_rack-reservations_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRackReservation" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackReservation" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rack-reservations_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRackReservation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackReservation" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rack-reservations/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rack-reservations_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_rack-reservations_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackReservation" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rack reservation.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_rack-reservations_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRackReservation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackReservation" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rack-reservations_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRackReservation" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackReservation" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rack-roles/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rack-roles_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_rack-roles_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/RackRole" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_rack-roles_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/RackRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackRole" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_rack-roles_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/RackRole" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackRole" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rack-roles_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/RackRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackRole" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rack-roles/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rack-roles_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_rack-roles_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackRole" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rack role.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_rack-roles_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/RackRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackRole" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rack-roles_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/RackRole" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RackRole" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/racks/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_racks_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_racks_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "desc_units", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_width", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_depth", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_unit", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "width", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility_id__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asset_tag__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "u_height__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_width__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_width__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_width__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_width__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_width__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_depth__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_depth__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_depth__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_depth__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_depth__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "outer_unit__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "width__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "serial__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Rack" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_racks_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRack" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Rack" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_racks_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRack" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Rack" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_racks_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRack" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Rack" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/racks/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_racks_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_racks_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Rack" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rack.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_racks_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRack" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Rack" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_racks_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRack" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Rack" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/racks/{id}/elevation/" : { - "get" : { - "description" : "Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG.", - "operationId" : "dcim_racks_elevation", - "parameters" : [ - { - "in" : "query", - "minLength" : 1, - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "default" : "front", - "enum" : [ - "front", - "rear" - ], - "in" : "query", - "name" : "face", - "required" : false, - "type" : "string" - }, - { - "default" : "json", - "enum" : [ - "json", - "svg" - ], - "in" : "query", - "name" : "render", - "required" : false, - "type" : "string" - }, - { - "default" : 220, - "in" : "query", - "name" : "unit_width", - "required" : false, - "type" : "integer" - }, - { - "default" : 22, - "in" : "query", - "name" : "unit_height", - "required" : false, - "type" : "integer" - }, - { - "default" : 30, - "in" : "query", - "name" : "legend_width", - "required" : false, - "type" : "integer" - }, - { - "in" : "query", - "name" : "exclude", - "required" : false, - "type" : "integer" - }, - { - "default" : true, - "in" : "query", - "name" : "expand_devices", - "required" : false, - "type" : "boolean" - }, - { - "default" : true, - "in" : "query", - "name" : "include_images", - "required" : false, - "type" : "boolean" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "items" : { "$ref" : "#/definitions/RackUnit" }, - "type" : "array" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rack.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/rear-port-templates/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_rear-port-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "devicetype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "moduletype_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/RearPortTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPortTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rear-port-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rear port template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPortTemplate" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rear-port-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPortTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPortTemplate" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rear-ports/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rear-ports_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_rear-ports_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "label__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "color__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "positions__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "location__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "virtual_chassis__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "module_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/RearPort" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_rear-ports_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_rear-ports_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPort" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rear-ports_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rear-ports/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_rear-ports_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_rear-ports_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rear port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_rear-ports_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_rear-ports_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRearPort" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/rear-ports/{id}/paths/" : { - "get" : { - "description" : "Return all CablePaths which traverse a given pass-through port.", - "operationId" : "dcim_rear-ports_paths", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/RearPort" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this rear port.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/dcim/regions/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_regions_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_regions_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Region" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_regions_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRegion" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Region" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_regions_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRegion" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Region" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_regions_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRegion" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Region" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/regions/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_regions_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_regions_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Region" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this region.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_regions_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRegion" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Region" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_regions_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableRegion" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Region" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/site-groups/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_site-groups_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_site-groups_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "parent__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/SiteGroup" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_site-groups_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSiteGroup" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/SiteGroup" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_site-groups_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSiteGroup" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/SiteGroup" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_site-groups_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSiteGroup" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/SiteGroup" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/site-groups/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_site-groups_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_site-groups_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/SiteGroup" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this site group.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_site-groups_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSiteGroup" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/SiteGroup" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_site-groups_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSiteGroup" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/SiteGroup" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/sites/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_sites_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_sites_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "latitude", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "longitude", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "slug__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "facility__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "latitude__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "latitude__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "latitude__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "latitude__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "latitude__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "longitude__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "longitude__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "longitude__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "longitude__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "longitude__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "contact_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "asn_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/Site" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_sites_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSite" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Site" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_sites_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSite" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Site" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_sites_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSite" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Site" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/sites/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_sites_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_sites_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Site" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this site.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_sites_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSite" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Site" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_sites_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableSite" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/Site" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/virtual-chassis/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "dcim_virtual-chassis_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "master_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "master", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "domain__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "master_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "master__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/VirtualChassis" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableVirtualChassis" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/VirtualChassis" } - } }, - "tags" : [ "dcim" ] - }, - "post" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableVirtualChassis" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/VirtualChassis" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableVirtualChassis" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/VirtualChassis" } - } }, - "tags" : [ "dcim" ] - } - }, - "/dcim/virtual-chassis/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "dcim" ] - }, - "get" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/VirtualChassis" } - } }, - "tags" : [ "dcim" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this virtual chassis.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableVirtualChassis" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/VirtualChassis" } - } }, - "tags" : [ "dcim" ] - }, - "put" : { - "description" : "", - "operationId" : "dcim_virtual-chassis_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableVirtualChassis" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/VirtualChassis" } - } }, - "tags" : [ "dcim" ] - } - }, - "/extras/config-contexts/" : { - "delete" : { - "description" : "", - "operationId" : "extras_config-contexts_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "extras_config-contexts_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "is_active", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "region__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "site__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "device_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "role__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "platform__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "cluster_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_group__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tenant__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ConfigContext" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_config-contexts_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_config-contexts_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_config-contexts_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/config-contexts/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_config-contexts_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_config-contexts_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this config context.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "extras_config-contexts_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_config-contexts_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableConfigContext" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ConfigContext" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/content-types/" : { - "get" : { - "description" : "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", - "operationId" : "extras_content-types_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "number" - }, - { - "description" : "", - "in" : "query", - "name" : "app_label", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "model", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ContentType" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ] - }, - "/extras/content-types/{id}/" : { - "get" : { - "description" : "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", - "operationId" : "extras_content-types_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ContentType" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this content type.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/extras/custom-fields/" : { - "delete" : { - "description" : "", - "operationId" : "extras_custom-fields_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "extras_custom-fields_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "required", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "filter_logic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "filter_logic__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_types__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/CustomField" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_custom-fields_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_custom-fields_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_custom-fields_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/custom-fields/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_custom-fields_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_custom-fields_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this custom field.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "extras_custom-fields_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_custom-fields_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableCustomField" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomField" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/custom-links/" : { - "delete" : { - "description" : "", - "operationId" : "extras_custom-links_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "extras_custom-links_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "enabled", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "new_window", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_text__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "link_url__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "weight__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "group_name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/CustomLink" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_custom-links_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_custom-links_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_custom-links_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/custom-links/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_custom-links_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_custom-links_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this custom link.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "extras_custom-links_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_custom-links_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/CustomLink" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/CustomLink" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/export-templates/" : { - "delete" : { - "description" : "", - "operationId" : "extras_export-templates_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "extras_export-templates_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "description__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ExportTemplate" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_export-templates_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_export-templates_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_export-templates_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/export-templates/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_export-templates_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_export-templates_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this export template.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "extras_export-templates_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_export-templates_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ExportTemplate" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/image-attachments/" : { - "delete" : { - "description" : "", - "operationId" : "extras_image-attachments_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "extras_image-attachments_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "content_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ImageAttachment" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_image-attachments_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_image-attachments_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_image-attachments_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/image-attachments/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_image-attachments_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_image-attachments_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this image attachment.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "extras_image-attachments_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_image-attachments_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ImageAttachment" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/job-results/" : { - "get" : { - "description" : "Retrieve a list of job results", - "operationId" : "extras_job-results_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "completed", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "obj_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "status__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "obj_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/JobResult" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ] - }, - "/extras/job-results/{id}/" : { - "get" : { - "description" : "Retrieve a list of job results", - "operationId" : "extras_job-results_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JobResult" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this job result.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/extras/journal-entries/" : { - "delete" : { - "description" : "", - "operationId" : "extras_journal-entries_bulk_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "Overrides ListModelMixin to allow processing ExportTemplates.", - "operationId" : "extras_journal-entries_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "kind", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "last_updated__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created_by_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created_by", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "kind__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "tag__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "assigned_object_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created_by_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "created_by__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/JournalEntry" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ], - "patch" : { - "description" : "", - "operationId" : "extras_journal-entries_bulk_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - }, - "post" : { - "description" : "", - "operationId" : "extras_journal-entries_create", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "201" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_journal-entries_bulk_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/journal-entries/{id}/" : { - "delete" : { - "description" : "", - "operationId" : "extras_journal-entries_delete", - "parameters" : [ ], - "responses" : { "204" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "get" : { - "description" : "", - "operationId" : "extras_journal-entries_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this journal entry.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ], - "patch" : { - "description" : "", - "operationId" : "extras_journal-entries_partial_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - }, - "put" : { - "description" : "", - "operationId" : "extras_journal-entries_update", - "parameters" : [ { - "in" : "body", - "name" : "data", - "required" : true, - "schema" : { "$ref" : "#/definitions/WritableJournalEntry" } - } ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/JournalEntry" } - } }, - "tags" : [ "extras" ] - } - }, - "/extras/object-changes/" : { - "get" : { - "description" : "Retrieve a list of recent changes.", - "operationId" : "extras_object-changes_list", - "parameters" : [ - { - "description" : "", - "in" : "query", - "name" : "id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "request_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "action", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_type_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "q", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "time", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_type", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_id", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_name__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "action__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_type_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_id__lte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_id__lt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_id__gte", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_id__gt", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__ic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__nic", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__iew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__niew", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__isw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__nisw", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__ie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "object_repr__nie", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "changed_object_type__n", - "required" : false, - "type" : "string" - }, - { - "description" : "", - "in" : "query", - "name" : "user_id__n", - "required" : false, - "type" : "string" - }, - { - "description" : "Number of results to return per page.", - "in" : "query", - "name" : "limit", - "required" : false, - "type" : "integer" - }, - { - "description" : "The initial index from which to return the results.", - "in" : "query", - "name" : "offset", - "required" : false, - "type" : "integer" - } - ], - "responses" : { "200" : { - "description" : "", - "schema" : { - "properties" : { - "count" : { "type" : "integer" }, - "next" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "previous" : { - "format" : "uri", - "type" : "string", - "x-nullable" : true - }, - "results" : { - "items" : { "$ref" : "#/definitions/ObjectChange" }, - "type" : "array" - } - }, - "required" : [ - "count", - "results" - ], - "type" : "object" - } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ] - }, - "/extras/object-changes/{id}/" : { - "get" : { - "description" : "Retrieve a list of recent changes.", - "operationId" : "extras_object-changes_read", - "parameters" : [ ], - "responses" : { "200" : { - "description" : "", - "schema" : { "$ref" : "#/definitions/ObjectChange" } - } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "description" : "A unique integer value identifying this object change.", - "in" : "path", - "name" : "id", - "required" : true, - "type" : "integer" - } ] - }, - "/extras/reports/" : { - "get" : { - "description" : "Compile all reports and their related results (if any). Result data is deferred in the list view.", - "operationId" : "extras_reports_list", - "parameters" : [ ], - "responses" : { "200" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "parameters" : [ ] - }, - "/extras/reports/{id}/" : { - "get" : { - "description" : "Retrieve a single Report identified as \".\".", - "operationId" : "extras_reports_read", - "parameters" : [ ], - "responses" : { "200" : { "description" : "" } }, - "tags" : [ "extras" ] - }, - "parameters" : [ { - "in" : "path", - "name" : "id", - "required" : true, - "type" : "string" - } ] - }, - "/extras/reports/{id}/run/" : { - "parameters" : [ { - "in" : "path", - "name" : "id", - "required" : true, - "type" : "string" - } ], - "post" : { - "description" : "Run a Report identified as \".