diff --git a/go.mod b/go.mod index a493c01da..9e8c7f498 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,6 @@ require ( github.com/go-openapi/runtime v0.19.15 github.com/go-openapi/strfmt v0.19.5 github.com/hashicorp/terraform-plugin-sdk v1.13.0 - github.com/netbox-community/go-netbox v0.0.0-20200507032154-fbb6900a912a + github.com/netbox-community/go-netbox v0.0.0-20200527232624-eea85738db88 github.com/pkg/errors v0.9.1 ) diff --git a/go.sum b/go.sum index 748529e7a..cf4c72edd 100644 --- a/go.sum +++ b/go.sum @@ -23,6 +23,7 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo github.com/apparentlymart/go-cidr v1.0.1 h1:NmIwLZ/KdsjIUlhf+/Np40atNXm/+lZ5txfTJ/SpF+U= github.com/apparentlymart/go-cidr v1.0.1/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc= 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-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0= github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= @@ -43,6 +44,7 @@ github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= @@ -61,6 +63,7 @@ github.com/go-openapi/analysis v0.19.5 h1:8b2ZgKfKIUTVQpTb77MoRDIMEIwvDVw40o3aOX github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= +github.com/go-openapi/errors v0.19.2 h1:a2kIyV3w+OS3S97zxUndRVD46+FhGOUBDFY7nmu4CsY= github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= github.com/go-openapi/errors v0.19.4 h1:fSGwO1tSYHFu70NKaWJt5Qh0qoBRtCm/mXS1yhf+0W0= github.com/go-openapi/errors v0.19.4/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= @@ -71,6 +74,7 @@ github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm7232 github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= +github.com/go-openapi/jsonreference v0.19.2 h1:o20suLFB4Ri0tuzpWtyHlh7E7HnkqTNLq6aR6WVNS1w= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= @@ -78,6 +82,7 @@ github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= +github.com/go-openapi/loads v0.19.3 h1:jwIoahqCmaA5OBoc/B+1+Mu2L0Gr8xYQnbeyQEo/7b0= github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI= github.com/go-openapi/loads v0.19.4 h1:5I4CCSqoWzT+82bBkNIvmLc0UOsoKKQ4Fz+3VxOB7SY= github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk= @@ -102,20 +107,25 @@ github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.8 h1:vfK6jLhs7OI4tAXkvkooviaE1JEPcw3mutyegLHHjmk= github.com/go-openapi/swag v0.19.8/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= +github.com/go-openapi/validate v0.19.3 h1:PAH/2DylwWcIU1s0Y7k3yNmeAgWOcKrNE2Q7Ww/kCg4= github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo= github.com/go-openapi/validate v0.19.7 h1:fR4tP2xc+25pdo5Qvv4v6g+5QKFgNg8nrifTE7V8ibA= github.com/go-openapi/validate v0.19.7/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +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/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= 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/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 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= @@ -131,6 +141,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -168,7 +179,9 @@ github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f h1:UdxlrJz4JOnY8W+Db github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl/v2 v2.0.0 h1:efQznTz+ydmQXq3BOnRa3AXzvCeTq1P4dKj/z5GLlY8= github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90= +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-config-inspect v0.0.0-20191115094559-17f92b0546e8 h1:+RyjwU+Gnd/aTJBPZVDNm903eXVjjqhbaR4Ypx3xYyY= github.com/hashicorp/terraform-config-inspect v0.0.0-20191115094559-17f92b0546e8/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A= github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= github.com/hashicorp/terraform-plugin-sdk v1.13.0 h1:8v2/ZNiI12OHxEn8pzJ3noCHyRc0biKbKj+iFv5ZWKw= @@ -184,15 +197,19 @@ github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5i github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/keybase/go-crypto v0.0.0-20161004153544-93f5b35093ba/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.0 h1:aizVhC/NAAcKWb+5QsU1iNOZb4Yws5UO2I+aIprQITM= github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= @@ -223,19 +240,21 @@ github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.1 h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE= github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/netbox-community/go-netbox v0.0.0-20200507032154-fbb6900a912a h1:kUoTvthn7S1S+f7owhYuJZZ4qyRSfVpgAYAjV98Vahk= -github.com/netbox-community/go-netbox v0.0.0-20200507032154-fbb6900a912a/go.mod h1:LvtLfQx0+TPD3sGqPgYfTj0Wet3+sDHt9RuKAG+68ZU= +github.com/netbox-community/go-netbox v0.0.0-20200527232624-eea85738db88 h1:5POc5O33QEsHnb7BPlde7vlNlYNwGZ0mY1rAZsB4q6o= +github.com/netbox-community/go-netbox v0.0.0-20200527232624-eea85738db88/go.mod h1:LvtLfQx0+TPD3sGqPgYfTj0Wet3+sDHt9RuKAG+68ZU= github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.1 h1:LrvDIY//XNo65Lq84G/akBuMGlawHvGBABv8f/ZN6DI= github.com/posener/complete v1.2.1/go.mod h1:6gapUrK/U1TAN7ciCoNRIdVC5sbdBTUh1DKN0g6uH7E= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= @@ -246,7 +265,9 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= 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 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/ulikunitz/xz v0.5.5 h1:pFrO0lVpTBXLpYw+pnLj6TbvHuyjXMfjGeCwSqCVwok= github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= @@ -261,6 +282,7 @@ github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.mongodb.org/mongo-driver v1.1.1 h1:Sq1fR+0c58RME5EoqKdjkiQAmPjmfHlZOoRI6fTUOcs= go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= go.mongodb.org/mongo-driver v1.1.2 h1:jxcFYjlkl8xaERsgLo+RNquI0epW6zuy/ZRQs6jnrFA= go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= @@ -375,6 +397,7 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1 h1:zvIju4sqAGvwKspUQOhwnpcqSbzi7/H6QomNNjTL4sk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_parameters.go index b7e4950cd..66c54cd59 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitTerminationsCreateParams creates a new CircuitsCircuitTerminationsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_responses.go index e053a6854..dac947c34 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTerminationsCreateReader is a Reader for the CircuitsCircuitTerminationsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_parameters.go index 54ac9aa18..2e2dc5e18 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitTerminationsDeleteParams creates a new CircuitsCircuitTerminationsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_responses.go index d567bdd6e..d429e23e3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // CircuitsCircuitTerminationsDeleteReader is a Reader for the CircuitsCircuitTerminationsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go index 81213b9c0..49531fbbd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitTerminationsListParams creates a new CircuitsCircuitTerminationsListParams object @@ -79,6 +78,8 @@ type CircuitsCircuitTerminationsListParams struct { /*CircuitID*/ CircuitID *string + /*CircuitIDn*/ + CircuitIDn *string /*Limit Number of results to return per page. @@ -91,18 +92,62 @@ type CircuitsCircuitTerminationsListParams struct { Offset *int64 /*PortSpeed*/ PortSpeed *string + /*PortSpeedGt*/ + PortSpeedGt *string + /*PortSpeedGte*/ + PortSpeedGte *string + /*PortSpeedLt*/ + PortSpeedLt *string + /*PortSpeedLte*/ + PortSpeedLte *string + /*PortSpeedn*/ + PortSpeedn *string /*Q*/ Q *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*TermSide*/ TermSide *string + /*TermSiden*/ + TermSiden *string /*UpstreamSpeed*/ UpstreamSpeed *string + /*UpstreamSpeedGt*/ + UpstreamSpeedGt *string + /*UpstreamSpeedGte*/ + UpstreamSpeedGte *string + /*UpstreamSpeedLt*/ + UpstreamSpeedLt *string + /*UpstreamSpeedLte*/ + UpstreamSpeedLte *string + /*UpstreamSpeedn*/ + UpstreamSpeedn *string /*XconnectID*/ XconnectID *string + /*XconnectIDIc*/ + XconnectIDIc *string + /*XconnectIDIe*/ + XconnectIDIe *string + /*XconnectIDIew*/ + XconnectIDIew *string + /*XconnectIDIsw*/ + XconnectIDIsw *string + /*XconnectIDn*/ + XconnectIDn *string + /*XconnectIDNic*/ + XconnectIDNic *string + /*XconnectIDNie*/ + XconnectIDNie *string + /*XconnectIDNiew*/ + XconnectIDNiew *string + /*XconnectIDNisw*/ + XconnectIDNisw *string timeout time.Duration Context context.Context @@ -153,6 +198,17 @@ func (o *CircuitsCircuitTerminationsListParams) SetCircuitID(circuitID *string) o.CircuitID = circuitID } +// WithCircuitIDn adds the circuitIDn to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithCircuitIDn(circuitIDn *string) *CircuitsCircuitTerminationsListParams { + o.SetCircuitIDn(circuitIDn) + return o +} + +// SetCircuitIDn adds the circuitIdN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetCircuitIDn(circuitIDn *string) { + o.CircuitIDn = circuitIDn +} + // WithLimit adds the limit to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithLimit(limit *int64) *CircuitsCircuitTerminationsListParams { o.SetLimit(limit) @@ -186,6 +242,61 @@ func (o *CircuitsCircuitTerminationsListParams) SetPortSpeed(portSpeed *string) o.PortSpeed = portSpeed } +// WithPortSpeedGt adds the portSpeedGt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedGt(portSpeedGt *string) *CircuitsCircuitTerminationsListParams { + o.SetPortSpeedGt(portSpeedGt) + return o +} + +// SetPortSpeedGt adds the portSpeedGt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedGt(portSpeedGt *string) { + o.PortSpeedGt = portSpeedGt +} + +// WithPortSpeedGte adds the portSpeedGte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedGte(portSpeedGte *string) *CircuitsCircuitTerminationsListParams { + o.SetPortSpeedGte(portSpeedGte) + return o +} + +// SetPortSpeedGte adds the portSpeedGte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedGte(portSpeedGte *string) { + o.PortSpeedGte = portSpeedGte +} + +// WithPortSpeedLt adds the portSpeedLt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedLt(portSpeedLt *string) *CircuitsCircuitTerminationsListParams { + o.SetPortSpeedLt(portSpeedLt) + return o +} + +// SetPortSpeedLt adds the portSpeedLt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedLt(portSpeedLt *string) { + o.PortSpeedLt = portSpeedLt +} + +// WithPortSpeedLte adds the portSpeedLte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedLte(portSpeedLte *string) *CircuitsCircuitTerminationsListParams { + o.SetPortSpeedLte(portSpeedLte) + return o +} + +// SetPortSpeedLte adds the portSpeedLte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedLte(portSpeedLte *string) { + o.PortSpeedLte = portSpeedLte +} + +// WithPortSpeedn adds the portSpeedn to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithPortSpeedn(portSpeedn *string) *CircuitsCircuitTerminationsListParams { + o.SetPortSpeedn(portSpeedn) + return o +} + +// SetPortSpeedn adds the portSpeedN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetPortSpeedn(portSpeedn *string) { + o.PortSpeedn = portSpeedn +} + // WithQ adds the q to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithQ(q *string) *CircuitsCircuitTerminationsListParams { o.SetQ(q) @@ -208,6 +319,17 @@ func (o *CircuitsCircuitTerminationsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithSiten(siten *string) *CircuitsCircuitTerminationsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithSiteID(siteID *string) *CircuitsCircuitTerminationsListParams { o.SetSiteID(siteID) @@ -219,6 +341,17 @@ func (o *CircuitsCircuitTerminationsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithSiteIDn(siteIDn *string) *CircuitsCircuitTerminationsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTermSide adds the termSide to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithTermSide(termSide *string) *CircuitsCircuitTerminationsListParams { o.SetTermSide(termSide) @@ -230,6 +363,17 @@ func (o *CircuitsCircuitTerminationsListParams) SetTermSide(termSide *string) { o.TermSide = termSide } +// WithTermSiden adds the termSiden to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithTermSiden(termSiden *string) *CircuitsCircuitTerminationsListParams { + o.SetTermSiden(termSiden) + return o +} + +// SetTermSiden adds the termSideN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetTermSiden(termSiden *string) { + o.TermSiden = termSiden +} + // WithUpstreamSpeed adds the upstreamSpeed to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeed(upstreamSpeed *string) *CircuitsCircuitTerminationsListParams { o.SetUpstreamSpeed(upstreamSpeed) @@ -241,6 +385,61 @@ func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeed(upstreamSpeed * o.UpstreamSpeed = upstreamSpeed } +// WithUpstreamSpeedGt adds the upstreamSpeedGt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedGt(upstreamSpeedGt *string) *CircuitsCircuitTerminationsListParams { + o.SetUpstreamSpeedGt(upstreamSpeedGt) + return o +} + +// SetUpstreamSpeedGt adds the upstreamSpeedGt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedGt(upstreamSpeedGt *string) { + o.UpstreamSpeedGt = upstreamSpeedGt +} + +// WithUpstreamSpeedGte adds the upstreamSpeedGte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedGte(upstreamSpeedGte *string) *CircuitsCircuitTerminationsListParams { + o.SetUpstreamSpeedGte(upstreamSpeedGte) + return o +} + +// SetUpstreamSpeedGte adds the upstreamSpeedGte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedGte(upstreamSpeedGte *string) { + o.UpstreamSpeedGte = upstreamSpeedGte +} + +// WithUpstreamSpeedLt adds the upstreamSpeedLt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedLt(upstreamSpeedLt *string) *CircuitsCircuitTerminationsListParams { + o.SetUpstreamSpeedLt(upstreamSpeedLt) + return o +} + +// SetUpstreamSpeedLt adds the upstreamSpeedLt to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedLt(upstreamSpeedLt *string) { + o.UpstreamSpeedLt = upstreamSpeedLt +} + +// WithUpstreamSpeedLte adds the upstreamSpeedLte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedLte(upstreamSpeedLte *string) *CircuitsCircuitTerminationsListParams { + o.SetUpstreamSpeedLte(upstreamSpeedLte) + return o +} + +// SetUpstreamSpeedLte adds the upstreamSpeedLte to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedLte(upstreamSpeedLte *string) { + o.UpstreamSpeedLte = upstreamSpeedLte +} + +// WithUpstreamSpeedn adds the upstreamSpeedn to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithUpstreamSpeedn(upstreamSpeedn *string) *CircuitsCircuitTerminationsListParams { + o.SetUpstreamSpeedn(upstreamSpeedn) + return o +} + +// SetUpstreamSpeedn adds the upstreamSpeedN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetUpstreamSpeedn(upstreamSpeedn *string) { + o.UpstreamSpeedn = upstreamSpeedn +} + // WithXconnectID adds the xconnectID to the circuits circuit terminations list params func (o *CircuitsCircuitTerminationsListParams) WithXconnectID(xconnectID *string) *CircuitsCircuitTerminationsListParams { o.SetXconnectID(xconnectID) @@ -252,6 +451,105 @@ func (o *CircuitsCircuitTerminationsListParams) SetXconnectID(xconnectID *string o.XconnectID = xconnectID } +// WithXconnectIDIc adds the xconnectIDIc to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIc(xconnectIDIc *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDIc(xconnectIDIc) + return o +} + +// SetXconnectIDIc adds the xconnectIdIc to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIc(xconnectIDIc *string) { + o.XconnectIDIc = xconnectIDIc +} + +// WithXconnectIDIe adds the xconnectIDIe to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIe(xconnectIDIe *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDIe(xconnectIDIe) + return o +} + +// SetXconnectIDIe adds the xconnectIdIe to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIe(xconnectIDIe *string) { + o.XconnectIDIe = xconnectIDIe +} + +// WithXconnectIDIew adds the xconnectIDIew to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIew(xconnectIDIew *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDIew(xconnectIDIew) + return o +} + +// SetXconnectIDIew adds the xconnectIdIew to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIew(xconnectIDIew *string) { + o.XconnectIDIew = xconnectIDIew +} + +// WithXconnectIDIsw adds the xconnectIDIsw to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDIsw(xconnectIDIsw *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDIsw(xconnectIDIsw) + return o +} + +// SetXconnectIDIsw adds the xconnectIdIsw to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDIsw(xconnectIDIsw *string) { + o.XconnectIDIsw = xconnectIDIsw +} + +// WithXconnectIDn adds the xconnectIDn to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDn(xconnectIDn *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDn(xconnectIDn) + return o +} + +// SetXconnectIDn adds the xconnectIdN to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDn(xconnectIDn *string) { + o.XconnectIDn = xconnectIDn +} + +// WithXconnectIDNic adds the xconnectIDNic to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNic(xconnectIDNic *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDNic(xconnectIDNic) + return o +} + +// SetXconnectIDNic adds the xconnectIdNic to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNic(xconnectIDNic *string) { + o.XconnectIDNic = xconnectIDNic +} + +// WithXconnectIDNie adds the xconnectIDNie to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNie(xconnectIDNie *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDNie(xconnectIDNie) + return o +} + +// SetXconnectIDNie adds the xconnectIdNie to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNie(xconnectIDNie *string) { + o.XconnectIDNie = xconnectIDNie +} + +// WithXconnectIDNiew adds the xconnectIDNiew to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNiew(xconnectIDNiew *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDNiew(xconnectIDNiew) + return o +} + +// SetXconnectIDNiew adds the xconnectIdNiew to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNiew(xconnectIDNiew *string) { + o.XconnectIDNiew = xconnectIDNiew +} + +// WithXconnectIDNisw adds the xconnectIDNisw to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) WithXconnectIDNisw(xconnectIDNisw *string) *CircuitsCircuitTerminationsListParams { + o.SetXconnectIDNisw(xconnectIDNisw) + return o +} + +// SetXconnectIDNisw adds the xconnectIdNisw to the circuits circuit terminations list params +func (o *CircuitsCircuitTerminationsListParams) SetXconnectIDNisw(xconnectIDNisw *string) { + o.XconnectIDNisw = xconnectIDNisw +} + // WriteToRequest writes these params to a swagger request func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -276,6 +574,22 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.CircuitIDn != nil { + + // query param circuit_id__n + var qrCircuitIDn string + if o.CircuitIDn != nil { + qrCircuitIDn = *o.CircuitIDn + } + qCircuitIDn := qrCircuitIDn + if qCircuitIDn != "" { + if err := r.SetQueryParam("circuit_id__n", qCircuitIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -324,6 +638,86 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.PortSpeedGt != nil { + + // query param port_speed__gt + var qrPortSpeedGt string + if o.PortSpeedGt != nil { + qrPortSpeedGt = *o.PortSpeedGt + } + qPortSpeedGt := qrPortSpeedGt + if qPortSpeedGt != "" { + if err := r.SetQueryParam("port_speed__gt", qPortSpeedGt); err != nil { + return err + } + } + + } + + if o.PortSpeedGte != nil { + + // query param port_speed__gte + var qrPortSpeedGte string + if o.PortSpeedGte != nil { + qrPortSpeedGte = *o.PortSpeedGte + } + qPortSpeedGte := qrPortSpeedGte + if qPortSpeedGte != "" { + if err := r.SetQueryParam("port_speed__gte", qPortSpeedGte); err != nil { + return err + } + } + + } + + if o.PortSpeedLt != nil { + + // query param port_speed__lt + var qrPortSpeedLt string + if o.PortSpeedLt != nil { + qrPortSpeedLt = *o.PortSpeedLt + } + qPortSpeedLt := qrPortSpeedLt + if qPortSpeedLt != "" { + if err := r.SetQueryParam("port_speed__lt", qPortSpeedLt); err != nil { + return err + } + } + + } + + if o.PortSpeedLte != nil { + + // query param port_speed__lte + var qrPortSpeedLte string + if o.PortSpeedLte != nil { + qrPortSpeedLte = *o.PortSpeedLte + } + qPortSpeedLte := qrPortSpeedLte + if qPortSpeedLte != "" { + if err := r.SetQueryParam("port_speed__lte", qPortSpeedLte); err != nil { + return err + } + } + + } + + if o.PortSpeedn != nil { + + // query param port_speed__n + var qrPortSpeedn string + if o.PortSpeedn != nil { + qrPortSpeedn = *o.PortSpeedn + } + qPortSpeedn := qrPortSpeedn + if qPortSpeedn != "" { + if err := r.SetQueryParam("port_speed__n", qPortSpeedn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -356,6 +750,22 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -372,6 +782,22 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.TermSide != nil { // query param term_side @@ -388,6 +814,22 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.TermSiden != nil { + + // query param term_side__n + var qrTermSiden string + if o.TermSiden != nil { + qrTermSiden = *o.TermSiden + } + qTermSiden := qrTermSiden + if qTermSiden != "" { + if err := r.SetQueryParam("term_side__n", qTermSiden); err != nil { + return err + } + } + + } + if o.UpstreamSpeed != nil { // query param upstream_speed @@ -404,6 +846,86 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.UpstreamSpeedGt != nil { + + // query param upstream_speed__gt + var qrUpstreamSpeedGt string + if o.UpstreamSpeedGt != nil { + qrUpstreamSpeedGt = *o.UpstreamSpeedGt + } + qUpstreamSpeedGt := qrUpstreamSpeedGt + if qUpstreamSpeedGt != "" { + if err := r.SetQueryParam("upstream_speed__gt", qUpstreamSpeedGt); err != nil { + return err + } + } + + } + + if o.UpstreamSpeedGte != nil { + + // query param upstream_speed__gte + var qrUpstreamSpeedGte string + if o.UpstreamSpeedGte != nil { + qrUpstreamSpeedGte = *o.UpstreamSpeedGte + } + qUpstreamSpeedGte := qrUpstreamSpeedGte + if qUpstreamSpeedGte != "" { + if err := r.SetQueryParam("upstream_speed__gte", qUpstreamSpeedGte); err != nil { + return err + } + } + + } + + if o.UpstreamSpeedLt != nil { + + // query param upstream_speed__lt + var qrUpstreamSpeedLt string + if o.UpstreamSpeedLt != nil { + qrUpstreamSpeedLt = *o.UpstreamSpeedLt + } + qUpstreamSpeedLt := qrUpstreamSpeedLt + if qUpstreamSpeedLt != "" { + if err := r.SetQueryParam("upstream_speed__lt", qUpstreamSpeedLt); err != nil { + return err + } + } + + } + + if o.UpstreamSpeedLte != nil { + + // query param upstream_speed__lte + var qrUpstreamSpeedLte string + if o.UpstreamSpeedLte != nil { + qrUpstreamSpeedLte = *o.UpstreamSpeedLte + } + qUpstreamSpeedLte := qrUpstreamSpeedLte + if qUpstreamSpeedLte != "" { + if err := r.SetQueryParam("upstream_speed__lte", qUpstreamSpeedLte); err != nil { + return err + } + } + + } + + if o.UpstreamSpeedn != nil { + + // query param upstream_speed__n + var qrUpstreamSpeedn string + if o.UpstreamSpeedn != nil { + qrUpstreamSpeedn = *o.UpstreamSpeedn + } + qUpstreamSpeedn := qrUpstreamSpeedn + if qUpstreamSpeedn != "" { + if err := r.SetQueryParam("upstream_speed__n", qUpstreamSpeedn); err != nil { + return err + } + } + + } + if o.XconnectID != nil { // query param xconnect_id @@ -420,6 +942,150 @@ func (o *CircuitsCircuitTerminationsListParams) WriteToRequest(r runtime.ClientR } + if o.XconnectIDIc != nil { + + // query param xconnect_id__ic + var qrXconnectIDIc string + if o.XconnectIDIc != nil { + qrXconnectIDIc = *o.XconnectIDIc + } + qXconnectIDIc := qrXconnectIDIc + if qXconnectIDIc != "" { + if err := r.SetQueryParam("xconnect_id__ic", qXconnectIDIc); err != nil { + return err + } + } + + } + + if o.XconnectIDIe != nil { + + // query param xconnect_id__ie + var qrXconnectIDIe string + if o.XconnectIDIe != nil { + qrXconnectIDIe = *o.XconnectIDIe + } + qXconnectIDIe := qrXconnectIDIe + if qXconnectIDIe != "" { + if err := r.SetQueryParam("xconnect_id__ie", qXconnectIDIe); err != nil { + return err + } + } + + } + + if o.XconnectIDIew != nil { + + // query param xconnect_id__iew + var qrXconnectIDIew string + if o.XconnectIDIew != nil { + qrXconnectIDIew = *o.XconnectIDIew + } + qXconnectIDIew := qrXconnectIDIew + if qXconnectIDIew != "" { + if err := r.SetQueryParam("xconnect_id__iew", qXconnectIDIew); err != nil { + return err + } + } + + } + + if o.XconnectIDIsw != nil { + + // query param xconnect_id__isw + var qrXconnectIDIsw string + if o.XconnectIDIsw != nil { + qrXconnectIDIsw = *o.XconnectIDIsw + } + qXconnectIDIsw := qrXconnectIDIsw + if qXconnectIDIsw != "" { + if err := r.SetQueryParam("xconnect_id__isw", qXconnectIDIsw); err != nil { + return err + } + } + + } + + if o.XconnectIDn != nil { + + // query param xconnect_id__n + var qrXconnectIDn string + if o.XconnectIDn != nil { + qrXconnectIDn = *o.XconnectIDn + } + qXconnectIDn := qrXconnectIDn + if qXconnectIDn != "" { + if err := r.SetQueryParam("xconnect_id__n", qXconnectIDn); err != nil { + return err + } + } + + } + + if o.XconnectIDNic != nil { + + // query param xconnect_id__nic + var qrXconnectIDNic string + if o.XconnectIDNic != nil { + qrXconnectIDNic = *o.XconnectIDNic + } + qXconnectIDNic := qrXconnectIDNic + if qXconnectIDNic != "" { + if err := r.SetQueryParam("xconnect_id__nic", qXconnectIDNic); err != nil { + return err + } + } + + } + + if o.XconnectIDNie != nil { + + // query param xconnect_id__nie + var qrXconnectIDNie string + if o.XconnectIDNie != nil { + qrXconnectIDNie = *o.XconnectIDNie + } + qXconnectIDNie := qrXconnectIDNie + if qXconnectIDNie != "" { + if err := r.SetQueryParam("xconnect_id__nie", qXconnectIDNie); err != nil { + return err + } + } + + } + + if o.XconnectIDNiew != nil { + + // query param xconnect_id__niew + var qrXconnectIDNiew string + if o.XconnectIDNiew != nil { + qrXconnectIDNiew = *o.XconnectIDNiew + } + qXconnectIDNiew := qrXconnectIDNiew + if qXconnectIDNiew != "" { + if err := r.SetQueryParam("xconnect_id__niew", qXconnectIDNiew); err != nil { + return err + } + } + + } + + if o.XconnectIDNisw != nil { + + // query param xconnect_id__nisw + var qrXconnectIDNisw string + if o.XconnectIDNisw != nil { + qrXconnectIDNisw = *o.XconnectIDNisw + } + qXconnectIDNisw := qrXconnectIDNisw + if qXconnectIDNisw != "" { + if err := r.SetQueryParam("xconnect_id__nisw", qXconnectIDNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_responses.go index 204daee1c..7994169ab 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTerminationsListReader is a Reader for the CircuitsCircuitTerminationsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_parameters.go index cee175913..dcbe17f4b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitTerminationsPartialUpdateParams creates a new CircuitsCircuitTerminationsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_responses.go index 6e776afff..3226b1d48 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTerminationsPartialUpdateReader is a Reader for the CircuitsCircuitTerminationsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_parameters.go index 6eefe5556..0f5858d14 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitTerminationsReadParams creates a new CircuitsCircuitTerminationsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_responses.go index 8b424ae8a..107633faf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTerminationsReadReader is a Reader for the CircuitsCircuitTerminationsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_parameters.go index 736902f74..2eb325afe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitTerminationsUpdateParams creates a new CircuitsCircuitTerminationsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_responses.go index ee934cf79..f71e5618a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_terminations_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTerminationsUpdateReader is a Reader for the CircuitsCircuitTerminationsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_parameters.go index 6ce2bf703..d82611a2a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitTypesCreateParams creates a new CircuitsCircuitTypesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_responses.go index 8dffc9b70..3519303e7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTypesCreateReader is a Reader for the CircuitsCircuitTypesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_parameters.go index 090a1de1e..5d2f3e007 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitTypesDeleteParams creates a new CircuitsCircuitTypesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_responses.go index 04ae5ed4e..f3f604de9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // CircuitsCircuitTypesDeleteReader is a Reader for the CircuitsCircuitTypesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go index 0dd8d3e01..95e391996 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitTypesListParams creates a new CircuitsCircuitTypesListParams object @@ -79,6 +78,16 @@ type CircuitsCircuitTypesListParams struct { /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +95,24 @@ type CircuitsCircuitTypesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,6 +122,24 @@ type CircuitsCircuitTypesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -145,6 +190,61 @@ func (o *CircuitsCircuitTypesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithIDGt(iDGt *string) *CircuitsCircuitTypesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithIDGte(iDGte *string) *CircuitsCircuitTypesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithIDLt(iDLt *string) *CircuitsCircuitTypesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithIDLte(iDLte *string) *CircuitsCircuitTypesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithIDn(iDn *string) *CircuitsCircuitTypesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithLimit(limit *int64) *CircuitsCircuitTypesListParams { o.SetLimit(limit) @@ -167,6 +267,105 @@ func (o *CircuitsCircuitTypesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameIc(nameIc *string) *CircuitsCircuitTypesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameIe(nameIe *string) *CircuitsCircuitTypesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameIew(nameIew *string) *CircuitsCircuitTypesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameIsw(nameIsw *string) *CircuitsCircuitTypesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNamen(namen *string) *CircuitsCircuitTypesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameNic(nameNic *string) *CircuitsCircuitTypesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameNie(nameNie *string) *CircuitsCircuitTypesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameNiew(nameNiew *string) *CircuitsCircuitTypesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithNameNisw(nameNisw *string) *CircuitsCircuitTypesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the circuits circuit types list params func (o *CircuitsCircuitTypesListParams) WithOffset(offset *int64) *CircuitsCircuitTypesListParams { o.SetOffset(offset) @@ -200,6 +399,105 @@ func (o *CircuitsCircuitTypesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugIc(slugIc *string) *CircuitsCircuitTypesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugIe(slugIe *string) *CircuitsCircuitTypesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugIew(slugIew *string) *CircuitsCircuitTypesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugIsw(slugIsw *string) *CircuitsCircuitTypesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugn(slugn *string) *CircuitsCircuitTypesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugNic(slugNic *string) *CircuitsCircuitTypesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugNie(slugNie *string) *CircuitsCircuitTypesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugNiew(slugNiew *string) *CircuitsCircuitTypesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) WithSlugNisw(slugNisw *string) *CircuitsCircuitTypesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the circuits circuit types list params +func (o *CircuitsCircuitTypesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -224,6 +522,86 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +634,150 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -304,6 +826,150 @@ func (o *CircuitsCircuitTypesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_responses.go index 7847c4361..e1ae03495 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTypesListReader is a Reader for the CircuitsCircuitTypesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_parameters.go index 667c391e3..8d342a4e3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitTypesPartialUpdateParams creates a new CircuitsCircuitTypesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_responses.go index c680dcfa0..e6025787d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTypesPartialUpdateReader is a Reader for the CircuitsCircuitTypesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_parameters.go index c30cfcbfc..c1eeb745c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitTypesReadParams creates a new CircuitsCircuitTypesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_responses.go index a310cb26f..9ca322ef0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTypesReadReader is a Reader for the CircuitsCircuitTypesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_parameters.go index 7a5e81ef3..e91bf5cce 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitTypesUpdateParams creates a new CircuitsCircuitTypesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_responses.go index 71a22d36a..72ee1aef7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuit_types_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitTypesUpdateReader is a Reader for the CircuitsCircuitTypesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_parameters.go index abab131aa..c3a71d019 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitsCreateParams creates a new CircuitsCircuitsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_responses.go index efded629b..4d546d40f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitsCreateReader is a Reader for the CircuitsCircuitsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_parameters.go index 992e44cf6..378007f6b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitsDeleteParams creates a new CircuitsCircuitsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_responses.go index a16c4520e..265566773 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // CircuitsCircuitsDeleteReader is a Reader for the CircuitsCircuitsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go index 17aa03a9e..7f6e08617 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitsListParams creates a new CircuitsCircuitsListParams object @@ -79,21 +78,66 @@ type CircuitsCircuitsListParams struct { /*Cid*/ Cid *string + /*CidIc*/ + CidIc *string + /*CidIe*/ + CidIe *string + /*CidIew*/ + CidIew *string + /*CidIsw*/ + CidIsw *string + /*Cidn*/ + Cidn *string + /*CidNic*/ + CidNic *string + /*CidNie*/ + CidNie *string + /*CidNiew*/ + CidNiew *string + /*CidNisw*/ + CidNisw *string /*CommitRate*/ CommitRate *string + /*CommitRateGt*/ + CommitRateGt *string + /*CommitRateGte*/ + CommitRateGte *string + /*CommitRateLt*/ + CommitRateLt *string + /*CommitRateLte*/ + CommitRateLte *string + /*CommitRaten*/ + CommitRaten *string /*Created*/ Created *string /*CreatedGte*/ CreatedGte *string /*CreatedLte*/ CreatedLte *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*InstallDate*/ InstallDate *string + /*InstallDateGt*/ + InstallDateGt *string + /*InstallDateGte*/ + InstallDateGte *string + /*InstallDateLt*/ + InstallDateLt *string + /*InstallDateLte*/ + InstallDateLte *string + /*InstallDaten*/ + InstallDaten *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -112,34 +156,62 @@ type CircuitsCircuitsListParams struct { Offset *int64 /*Provider*/ Provider *string + /*Providern*/ + Providern *string /*ProviderID*/ ProviderID *string + /*ProviderIDn*/ + ProviderIDn *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*Type*/ Type *string + /*Typen*/ + Typen *string /*TypeID*/ TypeID *string + /*TypeIDn*/ + TypeIDn *string timeout time.Duration Context context.Context @@ -190,6 +262,105 @@ func (o *CircuitsCircuitsListParams) SetCid(cid *string) { o.Cid = cid } +// WithCidIc adds the cidIc to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidIc(cidIc *string) *CircuitsCircuitsListParams { + o.SetCidIc(cidIc) + return o +} + +// SetCidIc adds the cidIc to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidIc(cidIc *string) { + o.CidIc = cidIc +} + +// WithCidIe adds the cidIe to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidIe(cidIe *string) *CircuitsCircuitsListParams { + o.SetCidIe(cidIe) + return o +} + +// SetCidIe adds the cidIe to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidIe(cidIe *string) { + o.CidIe = cidIe +} + +// WithCidIew adds the cidIew to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidIew(cidIew *string) *CircuitsCircuitsListParams { + o.SetCidIew(cidIew) + return o +} + +// SetCidIew adds the cidIew to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidIew(cidIew *string) { + o.CidIew = cidIew +} + +// WithCidIsw adds the cidIsw to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidIsw(cidIsw *string) *CircuitsCircuitsListParams { + o.SetCidIsw(cidIsw) + return o +} + +// SetCidIsw adds the cidIsw to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidIsw(cidIsw *string) { + o.CidIsw = cidIsw +} + +// WithCidn adds the cidn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidn(cidn *string) *CircuitsCircuitsListParams { + o.SetCidn(cidn) + return o +} + +// SetCidn adds the cidN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidn(cidn *string) { + o.Cidn = cidn +} + +// WithCidNic adds the cidNic to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidNic(cidNic *string) *CircuitsCircuitsListParams { + o.SetCidNic(cidNic) + return o +} + +// SetCidNic adds the cidNic to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidNic(cidNic *string) { + o.CidNic = cidNic +} + +// WithCidNie adds the cidNie to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidNie(cidNie *string) *CircuitsCircuitsListParams { + o.SetCidNie(cidNie) + return o +} + +// SetCidNie adds the cidNie to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidNie(cidNie *string) { + o.CidNie = cidNie +} + +// WithCidNiew adds the cidNiew to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidNiew(cidNiew *string) *CircuitsCircuitsListParams { + o.SetCidNiew(cidNiew) + return o +} + +// SetCidNiew adds the cidNiew to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidNiew(cidNiew *string) { + o.CidNiew = cidNiew +} + +// WithCidNisw adds the cidNisw to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCidNisw(cidNisw *string) *CircuitsCircuitsListParams { + o.SetCidNisw(cidNisw) + return o +} + +// SetCidNisw adds the cidNisw to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCidNisw(cidNisw *string) { + o.CidNisw = cidNisw +} + // WithCommitRate adds the commitRate to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithCommitRate(commitRate *string) *CircuitsCircuitsListParams { o.SetCommitRate(commitRate) @@ -201,6 +372,61 @@ func (o *CircuitsCircuitsListParams) SetCommitRate(commitRate *string) { o.CommitRate = commitRate } +// WithCommitRateGt adds the commitRateGt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCommitRateGt(commitRateGt *string) *CircuitsCircuitsListParams { + o.SetCommitRateGt(commitRateGt) + return o +} + +// SetCommitRateGt adds the commitRateGt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCommitRateGt(commitRateGt *string) { + o.CommitRateGt = commitRateGt +} + +// WithCommitRateGte adds the commitRateGte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCommitRateGte(commitRateGte *string) *CircuitsCircuitsListParams { + o.SetCommitRateGte(commitRateGte) + return o +} + +// SetCommitRateGte adds the commitRateGte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCommitRateGte(commitRateGte *string) { + o.CommitRateGte = commitRateGte +} + +// WithCommitRateLt adds the commitRateLt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCommitRateLt(commitRateLt *string) *CircuitsCircuitsListParams { + o.SetCommitRateLt(commitRateLt) + return o +} + +// SetCommitRateLt adds the commitRateLt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCommitRateLt(commitRateLt *string) { + o.CommitRateLt = commitRateLt +} + +// WithCommitRateLte adds the commitRateLte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCommitRateLte(commitRateLte *string) *CircuitsCircuitsListParams { + o.SetCommitRateLte(commitRateLte) + return o +} + +// SetCommitRateLte adds the commitRateLte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCommitRateLte(commitRateLte *string) { + o.CommitRateLte = commitRateLte +} + +// WithCommitRaten adds the commitRaten to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithCommitRaten(commitRaten *string) *CircuitsCircuitsListParams { + o.SetCommitRaten(commitRaten) + return o +} + +// SetCommitRaten adds the commitRateN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetCommitRaten(commitRaten *string) { + o.CommitRaten = commitRaten +} + // WithCreated adds the created to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithCreated(created *string) *CircuitsCircuitsListParams { o.SetCreated(created) @@ -234,15 +460,70 @@ func (o *CircuitsCircuitsListParams) SetCreatedLte(createdLte *string) { o.CreatedLte = createdLte } -// WithIDIn adds the iDIn to the circuits circuits list params -func (o *CircuitsCircuitsListParams) WithIDIn(iDIn *string) *CircuitsCircuitsListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithID(id *string) *CircuitsCircuitsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithIDGt(iDGt *string) *CircuitsCircuitsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithIDGte(iDGte *string) *CircuitsCircuitsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithIDLt(iDLt *string) *CircuitsCircuitsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithIDLte(iDLte *string) *CircuitsCircuitsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithIDn(iDn *string) *CircuitsCircuitsListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the circuits circuits list params -func (o *CircuitsCircuitsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithInstallDate adds the installDate to the circuits circuits list params @@ -256,6 +537,61 @@ func (o *CircuitsCircuitsListParams) SetInstallDate(installDate *string) { o.InstallDate = installDate } +// WithInstallDateGt adds the installDateGt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithInstallDateGt(installDateGt *string) *CircuitsCircuitsListParams { + o.SetInstallDateGt(installDateGt) + return o +} + +// SetInstallDateGt adds the installDateGt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetInstallDateGt(installDateGt *string) { + o.InstallDateGt = installDateGt +} + +// WithInstallDateGte adds the installDateGte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithInstallDateGte(installDateGte *string) *CircuitsCircuitsListParams { + o.SetInstallDateGte(installDateGte) + return o +} + +// SetInstallDateGte adds the installDateGte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetInstallDateGte(installDateGte *string) { + o.InstallDateGte = installDateGte +} + +// WithInstallDateLt adds the installDateLt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithInstallDateLt(installDateLt *string) *CircuitsCircuitsListParams { + o.SetInstallDateLt(installDateLt) + return o +} + +// SetInstallDateLt adds the installDateLt to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetInstallDateLt(installDateLt *string) { + o.InstallDateLt = installDateLt +} + +// WithInstallDateLte adds the installDateLte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithInstallDateLte(installDateLte *string) *CircuitsCircuitsListParams { + o.SetInstallDateLte(installDateLte) + return o +} + +// SetInstallDateLte adds the installDateLte to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetInstallDateLte(installDateLte *string) { + o.InstallDateLte = installDateLte +} + +// WithInstallDaten adds the installDaten to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithInstallDaten(installDaten *string) *CircuitsCircuitsListParams { + o.SetInstallDaten(installDaten) + return o +} + +// SetInstallDaten adds the installDateN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetInstallDaten(installDaten *string) { + o.InstallDaten = installDaten +} + // WithLastUpdated adds the lastUpdated to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithLastUpdated(lastUpdated *string) *CircuitsCircuitsListParams { o.SetLastUpdated(lastUpdated) @@ -322,6 +658,17 @@ func (o *CircuitsCircuitsListParams) SetProvider(provider *string) { o.Provider = provider } +// WithProvidern adds the providern to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithProvidern(providern *string) *CircuitsCircuitsListParams { + o.SetProvidern(providern) + return o +} + +// SetProvidern adds the providerN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetProvidern(providern *string) { + o.Providern = providern +} + // WithProviderID adds the providerID to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithProviderID(providerID *string) *CircuitsCircuitsListParams { o.SetProviderID(providerID) @@ -333,6 +680,17 @@ func (o *CircuitsCircuitsListParams) SetProviderID(providerID *string) { o.ProviderID = providerID } +// WithProviderIDn adds the providerIDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithProviderIDn(providerIDn *string) *CircuitsCircuitsListParams { + o.SetProviderIDn(providerIDn) + return o +} + +// SetProviderIDn adds the providerIdN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetProviderIDn(providerIDn *string) { + o.ProviderIDn = providerIDn +} + // WithQ adds the q to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithQ(q *string) *CircuitsCircuitsListParams { o.SetQ(q) @@ -355,6 +713,17 @@ func (o *CircuitsCircuitsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithRegionn(regionn *string) *CircuitsCircuitsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithRegionID(regionID *string) *CircuitsCircuitsListParams { o.SetRegionID(regionID) @@ -366,6 +735,17 @@ func (o *CircuitsCircuitsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithRegionIDn(regionIDn *string) *CircuitsCircuitsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithSite(site *string) *CircuitsCircuitsListParams { o.SetSite(site) @@ -377,6 +757,17 @@ func (o *CircuitsCircuitsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithSiten(siten *string) *CircuitsCircuitsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithSiteID(siteID *string) *CircuitsCircuitsListParams { o.SetSiteID(siteID) @@ -388,6 +779,17 @@ func (o *CircuitsCircuitsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithSiteIDn(siteIDn *string) *CircuitsCircuitsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithStatus(status *string) *CircuitsCircuitsListParams { o.SetStatus(status) @@ -399,6 +801,17 @@ func (o *CircuitsCircuitsListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithStatusn(statusn *string) *CircuitsCircuitsListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithTag(tag *string) *CircuitsCircuitsListParams { o.SetTag(tag) @@ -410,6 +823,17 @@ func (o *CircuitsCircuitsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTagn(tagn *string) *CircuitsCircuitsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithTenant(tenant *string) *CircuitsCircuitsListParams { o.SetTenant(tenant) @@ -421,6 +845,17 @@ func (o *CircuitsCircuitsListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTenantn(tenantn *string) *CircuitsCircuitsListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithTenantGroup(tenantGroup *string) *CircuitsCircuitsListParams { o.SetTenantGroup(tenantGroup) @@ -432,6 +867,17 @@ func (o *CircuitsCircuitsListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTenantGroupn(tenantGroupn *string) *CircuitsCircuitsListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithTenantGroupID(tenantGroupID *string) *CircuitsCircuitsListParams { o.SetTenantGroupID(tenantGroupID) @@ -443,6 +889,17 @@ func (o *CircuitsCircuitsListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTenantGroupIDn(tenantGroupIDn *string) *CircuitsCircuitsListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithTenantID(tenantID *string) *CircuitsCircuitsListParams { o.SetTenantID(tenantID) @@ -454,6 +911,17 @@ func (o *CircuitsCircuitsListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTenantIDn(tenantIDn *string) *CircuitsCircuitsListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithType adds the typeVar to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithType(typeVar *string) *CircuitsCircuitsListParams { o.SetType(typeVar) @@ -465,6 +933,17 @@ func (o *CircuitsCircuitsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTypen(typen *string) *CircuitsCircuitsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WithTypeID adds the typeID to the circuits circuits list params func (o *CircuitsCircuitsListParams) WithTypeID(typeID *string) *CircuitsCircuitsListParams { o.SetTypeID(typeID) @@ -476,6 +955,17 @@ func (o *CircuitsCircuitsListParams) SetTypeID(typeID *string) { o.TypeID = typeID } +// WithTypeIDn adds the typeIDn to the circuits circuits list params +func (o *CircuitsCircuitsListParams) WithTypeIDn(typeIDn *string) *CircuitsCircuitsListParams { + o.SetTypeIDn(typeIDn) + return o +} + +// SetTypeIDn adds the typeIdN to the circuits circuits list params +func (o *CircuitsCircuitsListParams) SetTypeIDn(typeIDn *string) { + o.TypeIDn = typeIDn +} + // WriteToRequest writes these params to a swagger request func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -500,6 +990,150 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.CidIc != nil { + + // query param cid__ic + var qrCidIc string + if o.CidIc != nil { + qrCidIc = *o.CidIc + } + qCidIc := qrCidIc + if qCidIc != "" { + if err := r.SetQueryParam("cid__ic", qCidIc); err != nil { + return err + } + } + + } + + if o.CidIe != nil { + + // query param cid__ie + var qrCidIe string + if o.CidIe != nil { + qrCidIe = *o.CidIe + } + qCidIe := qrCidIe + if qCidIe != "" { + if err := r.SetQueryParam("cid__ie", qCidIe); err != nil { + return err + } + } + + } + + if o.CidIew != nil { + + // query param cid__iew + var qrCidIew string + if o.CidIew != nil { + qrCidIew = *o.CidIew + } + qCidIew := qrCidIew + if qCidIew != "" { + if err := r.SetQueryParam("cid__iew", qCidIew); err != nil { + return err + } + } + + } + + if o.CidIsw != nil { + + // query param cid__isw + var qrCidIsw string + if o.CidIsw != nil { + qrCidIsw = *o.CidIsw + } + qCidIsw := qrCidIsw + if qCidIsw != "" { + if err := r.SetQueryParam("cid__isw", qCidIsw); err != nil { + return err + } + } + + } + + if o.Cidn != nil { + + // query param cid__n + var qrCidn string + if o.Cidn != nil { + qrCidn = *o.Cidn + } + qCidn := qrCidn + if qCidn != "" { + if err := r.SetQueryParam("cid__n", qCidn); err != nil { + return err + } + } + + } + + if o.CidNic != nil { + + // query param cid__nic + var qrCidNic string + if o.CidNic != nil { + qrCidNic = *o.CidNic + } + qCidNic := qrCidNic + if qCidNic != "" { + if err := r.SetQueryParam("cid__nic", qCidNic); err != nil { + return err + } + } + + } + + if o.CidNie != nil { + + // query param cid__nie + var qrCidNie string + if o.CidNie != nil { + qrCidNie = *o.CidNie + } + qCidNie := qrCidNie + if qCidNie != "" { + if err := r.SetQueryParam("cid__nie", qCidNie); err != nil { + return err + } + } + + } + + if o.CidNiew != nil { + + // query param cid__niew + var qrCidNiew string + if o.CidNiew != nil { + qrCidNiew = *o.CidNiew + } + qCidNiew := qrCidNiew + if qCidNiew != "" { + if err := r.SetQueryParam("cid__niew", qCidNiew); err != nil { + return err + } + } + + } + + if o.CidNisw != nil { + + // query param cid__nisw + var qrCidNisw string + if o.CidNisw != nil { + qrCidNisw = *o.CidNisw + } + qCidNisw := qrCidNisw + if qCidNisw != "" { + if err := r.SetQueryParam("cid__nisw", qCidNisw); err != nil { + return err + } + } + + } + if o.CommitRate != nil { // query param commit_rate @@ -516,6 +1150,86 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.CommitRateGt != nil { + + // query param commit_rate__gt + var qrCommitRateGt string + if o.CommitRateGt != nil { + qrCommitRateGt = *o.CommitRateGt + } + qCommitRateGt := qrCommitRateGt + if qCommitRateGt != "" { + if err := r.SetQueryParam("commit_rate__gt", qCommitRateGt); err != nil { + return err + } + } + + } + + if o.CommitRateGte != nil { + + // query param commit_rate__gte + var qrCommitRateGte string + if o.CommitRateGte != nil { + qrCommitRateGte = *o.CommitRateGte + } + qCommitRateGte := qrCommitRateGte + if qCommitRateGte != "" { + if err := r.SetQueryParam("commit_rate__gte", qCommitRateGte); err != nil { + return err + } + } + + } + + if o.CommitRateLt != nil { + + // query param commit_rate__lt + var qrCommitRateLt string + if o.CommitRateLt != nil { + qrCommitRateLt = *o.CommitRateLt + } + qCommitRateLt := qrCommitRateLt + if qCommitRateLt != "" { + if err := r.SetQueryParam("commit_rate__lt", qCommitRateLt); err != nil { + return err + } + } + + } + + if o.CommitRateLte != nil { + + // query param commit_rate__lte + var qrCommitRateLte string + if o.CommitRateLte != nil { + qrCommitRateLte = *o.CommitRateLte + } + qCommitRateLte := qrCommitRateLte + if qCommitRateLte != "" { + if err := r.SetQueryParam("commit_rate__lte", qCommitRateLte); err != nil { + return err + } + } + + } + + if o.CommitRaten != nil { + + // query param commit_rate__n + var qrCommitRaten string + if o.CommitRaten != nil { + qrCommitRaten = *o.CommitRaten + } + qCommitRaten := qrCommitRaten + if qCommitRaten != "" { + if err := r.SetQueryParam("commit_rate__n", qCommitRaten); err != nil { + return err + } + } + + } + if o.Created != nil { // query param created @@ -564,16 +1278,96 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } - if o.IDIn != nil { + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -596,6 +1390,86 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.InstallDateGt != nil { + + // query param install_date__gt + var qrInstallDateGt string + if o.InstallDateGt != nil { + qrInstallDateGt = *o.InstallDateGt + } + qInstallDateGt := qrInstallDateGt + if qInstallDateGt != "" { + if err := r.SetQueryParam("install_date__gt", qInstallDateGt); err != nil { + return err + } + } + + } + + if o.InstallDateGte != nil { + + // query param install_date__gte + var qrInstallDateGte string + if o.InstallDateGte != nil { + qrInstallDateGte = *o.InstallDateGte + } + qInstallDateGte := qrInstallDateGte + if qInstallDateGte != "" { + if err := r.SetQueryParam("install_date__gte", qInstallDateGte); err != nil { + return err + } + } + + } + + if o.InstallDateLt != nil { + + // query param install_date__lt + var qrInstallDateLt string + if o.InstallDateLt != nil { + qrInstallDateLt = *o.InstallDateLt + } + qInstallDateLt := qrInstallDateLt + if qInstallDateLt != "" { + if err := r.SetQueryParam("install_date__lt", qInstallDateLt); err != nil { + return err + } + } + + } + + if o.InstallDateLte != nil { + + // query param install_date__lte + var qrInstallDateLte string + if o.InstallDateLte != nil { + qrInstallDateLte = *o.InstallDateLte + } + qInstallDateLte := qrInstallDateLte + if qInstallDateLte != "" { + if err := r.SetQueryParam("install_date__lte", qInstallDateLte); err != nil { + return err + } + } + + } + + if o.InstallDaten != nil { + + // query param install_date__n + var qrInstallDaten string + if o.InstallDaten != nil { + qrInstallDaten = *o.InstallDaten + } + qInstallDaten := qrInstallDaten + if qInstallDaten != "" { + if err := r.SetQueryParam("install_date__n", qInstallDaten); err != nil { + return err + } + } + + } + if o.LastUpdated != nil { // query param last_updated @@ -692,6 +1566,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Providern != nil { + + // query param provider__n + var qrProvidern string + if o.Providern != nil { + qrProvidern = *o.Providern + } + qProvidern := qrProvidern + if qProvidern != "" { + if err := r.SetQueryParam("provider__n", qProvidern); err != nil { + return err + } + } + + } + if o.ProviderID != nil { // query param provider_id @@ -708,6 +1598,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.ProviderIDn != nil { + + // query param provider_id__n + var qrProviderIDn string + if o.ProviderIDn != nil { + qrProviderIDn = *o.ProviderIDn + } + qProviderIDn := qrProviderIDn + if qProviderIDn != "" { + if err := r.SetQueryParam("provider_id__n", qProviderIDn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -740,6 +1646,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -756,6 +1678,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -772,6 +1710,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -788,6 +1742,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -804,6 +1774,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -820,6 +1806,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -836,6 +1838,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -852,6 +1870,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -868,6 +1902,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -884,6 +1934,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.Type != nil { // query param type @@ -900,6 +1966,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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.TypeID != nil { // query param type_id @@ -916,6 +1998,22 @@ func (o *CircuitsCircuitsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TypeIDn != nil { + + // query param type_id__n + var qrTypeIDn string + if o.TypeIDn != nil { + qrTypeIDn = *o.TypeIDn + } + qTypeIDn := qrTypeIDn + if qTypeIDn != "" { + if err := r.SetQueryParam("type_id__n", qTypeIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_responses.go index cd34ddb89..9dcd6d2a1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitsListReader is a Reader for the CircuitsCircuitsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_parameters.go index 67cde7482..3c8d02bfb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitsPartialUpdateParams creates a new CircuitsCircuitsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_responses.go index 9d5507ee1..29932075c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitsPartialUpdateReader is a Reader for the CircuitsCircuitsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_parameters.go index 3ae330b3f..1f913b5a9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsCircuitsReadParams creates a new CircuitsCircuitsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_responses.go index 1bdb85b86..4c31ab88b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitsReadReader is a Reader for the CircuitsCircuitsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_parameters.go index ebb363662..215cb92dd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsCircuitsUpdateParams creates a new CircuitsCircuitsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_responses.go index 75473e8d6..05ea01771 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_circuits_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsCircuitsUpdateReader is a Reader for the CircuitsCircuitsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_client.go index 0490c960e..86205ce2f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new circuits API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,78 +40,63 @@ type Client struct { formats strfmt.Registry } -/* -CircuitsChoicesList circuits choices list API -*/ -func (a *Client) CircuitsChoicesList(params *CircuitsChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCircuitsChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + CircuitsCircuitTerminationsCreate(params *CircuitsCircuitTerminationsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "circuits__choices_list", - Method: "GET", - PathPattern: "/circuits/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CircuitsChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CircuitsChoicesListOK) - 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 circuits__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + CircuitsCircuitTerminationsDelete(params *CircuitsCircuitTerminationsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsDeleteNoContent, error) -/* -CircuitsChoicesRead circuits choices read API -*/ -func (a *Client) CircuitsChoicesRead(params *CircuitsChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCircuitsChoicesReadParams() - } + CircuitsCircuitTerminationsList(params *CircuitsCircuitTerminationsListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "circuits__choices_read", - Method: "GET", - PathPattern: "/circuits/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CircuitsChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CircuitsChoicesReadOK) - 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 circuits__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + CircuitsCircuitTerminationsPartialUpdate(params *CircuitsCircuitTerminationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsPartialUpdateOK, error) + + CircuitsCircuitTerminationsRead(params *CircuitsCircuitTerminationsReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsReadOK, error) + + CircuitsCircuitTerminationsUpdate(params *CircuitsCircuitTerminationsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsUpdateOK, error) + + CircuitsCircuitTypesCreate(params *CircuitsCircuitTypesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesCreateCreated, error) + + CircuitsCircuitTypesDelete(params *CircuitsCircuitTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesDeleteNoContent, error) + + CircuitsCircuitTypesList(params *CircuitsCircuitTypesListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesListOK, error) + + CircuitsCircuitTypesPartialUpdate(params *CircuitsCircuitTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesPartialUpdateOK, error) + + CircuitsCircuitTypesRead(params *CircuitsCircuitTypesReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesReadOK, error) + + CircuitsCircuitTypesUpdate(params *CircuitsCircuitTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesUpdateOK, error) + + CircuitsCircuitsCreate(params *CircuitsCircuitsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsCreateCreated, error) + + CircuitsCircuitsDelete(params *CircuitsCircuitsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsDeleteNoContent, error) + + CircuitsCircuitsList(params *CircuitsCircuitsListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsListOK, error) + + CircuitsCircuitsPartialUpdate(params *CircuitsCircuitsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsPartialUpdateOK, error) + + CircuitsCircuitsRead(params *CircuitsCircuitsReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsReadOK, error) + + CircuitsCircuitsUpdate(params *CircuitsCircuitsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsUpdateOK, error) + + CircuitsProvidersCreate(params *CircuitsProvidersCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersCreateCreated, error) + + CircuitsProvidersDelete(params *CircuitsProvidersDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersDeleteNoContent, error) + + CircuitsProvidersGraphs(params *CircuitsProvidersGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersGraphsOK, error) + + CircuitsProvidersList(params *CircuitsProvidersListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersListOK, error) + + CircuitsProvidersPartialUpdate(params *CircuitsProvidersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersPartialUpdateOK, error) + + CircuitsProvidersRead(params *CircuitsProvidersReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersReadOK, error) + + CircuitsProvidersUpdate(params *CircuitsProvidersUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -CircuitsCircuitTerminationsCreate circuits circuit terminations create API + CircuitsCircuitTerminationsCreate circuits circuit terminations create API */ func (a *Client) CircuitsCircuitTerminationsCreate(params *CircuitsCircuitTerminationsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsCreateCreated, error) { // TODO: Validate the params before sending @@ -147,7 +131,7 @@ func (a *Client) CircuitsCircuitTerminationsCreate(params *CircuitsCircuitTermin } /* -CircuitsCircuitTerminationsDelete circuits circuit terminations delete API + CircuitsCircuitTerminationsDelete circuits circuit terminations delete API */ func (a *Client) CircuitsCircuitTerminationsDelete(params *CircuitsCircuitTerminationsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -182,7 +166,7 @@ func (a *Client) CircuitsCircuitTerminationsDelete(params *CircuitsCircuitTermin } /* -CircuitsCircuitTerminationsList Call to super to allow for caching + CircuitsCircuitTerminationsList Call to super to allow for caching */ func (a *Client) CircuitsCircuitTerminationsList(params *CircuitsCircuitTerminationsListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsListOK, error) { // TODO: Validate the params before sending @@ -217,7 +201,7 @@ func (a *Client) CircuitsCircuitTerminationsList(params *CircuitsCircuitTerminat } /* -CircuitsCircuitTerminationsPartialUpdate circuits circuit terminations partial update API + CircuitsCircuitTerminationsPartialUpdate circuits circuit terminations partial update API */ func (a *Client) CircuitsCircuitTerminationsPartialUpdate(params *CircuitsCircuitTerminationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -252,7 +236,7 @@ func (a *Client) CircuitsCircuitTerminationsPartialUpdate(params *CircuitsCircui } /* -CircuitsCircuitTerminationsRead Call to super to allow for caching + CircuitsCircuitTerminationsRead Call to super to allow for caching */ func (a *Client) CircuitsCircuitTerminationsRead(params *CircuitsCircuitTerminationsReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsReadOK, error) { // TODO: Validate the params before sending @@ -287,7 +271,7 @@ func (a *Client) CircuitsCircuitTerminationsRead(params *CircuitsCircuitTerminat } /* -CircuitsCircuitTerminationsUpdate circuits circuit terminations update API + CircuitsCircuitTerminationsUpdate circuits circuit terminations update API */ func (a *Client) CircuitsCircuitTerminationsUpdate(params *CircuitsCircuitTerminationsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTerminationsUpdateOK, error) { // TODO: Validate the params before sending @@ -322,7 +306,7 @@ func (a *Client) CircuitsCircuitTerminationsUpdate(params *CircuitsCircuitTermin } /* -CircuitsCircuitTypesCreate circuits circuit types create API + CircuitsCircuitTypesCreate circuits circuit types create API */ func (a *Client) CircuitsCircuitTypesCreate(params *CircuitsCircuitTypesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesCreateCreated, error) { // TODO: Validate the params before sending @@ -357,7 +341,7 @@ func (a *Client) CircuitsCircuitTypesCreate(params *CircuitsCircuitTypesCreatePa } /* -CircuitsCircuitTypesDelete circuits circuit types delete API + CircuitsCircuitTypesDelete circuits circuit types delete API */ func (a *Client) CircuitsCircuitTypesDelete(params *CircuitsCircuitTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -392,7 +376,7 @@ func (a *Client) CircuitsCircuitTypesDelete(params *CircuitsCircuitTypesDeletePa } /* -CircuitsCircuitTypesList Call to super to allow for caching + CircuitsCircuitTypesList Call to super to allow for caching */ func (a *Client) CircuitsCircuitTypesList(params *CircuitsCircuitTypesListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesListOK, error) { // TODO: Validate the params before sending @@ -427,7 +411,7 @@ func (a *Client) CircuitsCircuitTypesList(params *CircuitsCircuitTypesListParams } /* -CircuitsCircuitTypesPartialUpdate circuits circuit types partial update API + CircuitsCircuitTypesPartialUpdate circuits circuit types partial update API */ func (a *Client) CircuitsCircuitTypesPartialUpdate(params *CircuitsCircuitTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -462,7 +446,7 @@ func (a *Client) CircuitsCircuitTypesPartialUpdate(params *CircuitsCircuitTypesP } /* -CircuitsCircuitTypesRead Call to super to allow for caching + CircuitsCircuitTypesRead Call to super to allow for caching */ func (a *Client) CircuitsCircuitTypesRead(params *CircuitsCircuitTypesReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesReadOK, error) { // TODO: Validate the params before sending @@ -497,7 +481,7 @@ func (a *Client) CircuitsCircuitTypesRead(params *CircuitsCircuitTypesReadParams } /* -CircuitsCircuitTypesUpdate circuits circuit types update API + CircuitsCircuitTypesUpdate circuits circuit types update API */ func (a *Client) CircuitsCircuitTypesUpdate(params *CircuitsCircuitTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitTypesUpdateOK, error) { // TODO: Validate the params before sending @@ -532,7 +516,7 @@ func (a *Client) CircuitsCircuitTypesUpdate(params *CircuitsCircuitTypesUpdatePa } /* -CircuitsCircuitsCreate circuits circuits create API + CircuitsCircuitsCreate circuits circuits create API */ func (a *Client) CircuitsCircuitsCreate(params *CircuitsCircuitsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsCreateCreated, error) { // TODO: Validate the params before sending @@ -567,7 +551,7 @@ func (a *Client) CircuitsCircuitsCreate(params *CircuitsCircuitsCreateParams, au } /* -CircuitsCircuitsDelete circuits circuits delete API + CircuitsCircuitsDelete circuits circuits delete API */ func (a *Client) CircuitsCircuitsDelete(params *CircuitsCircuitsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -602,7 +586,7 @@ func (a *Client) CircuitsCircuitsDelete(params *CircuitsCircuitsDeleteParams, au } /* -CircuitsCircuitsList Call to super to allow for caching + CircuitsCircuitsList Call to super to allow for caching */ func (a *Client) CircuitsCircuitsList(params *CircuitsCircuitsListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsListOK, error) { // TODO: Validate the params before sending @@ -637,7 +621,7 @@ func (a *Client) CircuitsCircuitsList(params *CircuitsCircuitsListParams, authIn } /* -CircuitsCircuitsPartialUpdate circuits circuits partial update API + CircuitsCircuitsPartialUpdate circuits circuits partial update API */ func (a *Client) CircuitsCircuitsPartialUpdate(params *CircuitsCircuitsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -672,7 +656,7 @@ func (a *Client) CircuitsCircuitsPartialUpdate(params *CircuitsCircuitsPartialUp } /* -CircuitsCircuitsRead Call to super to allow for caching + CircuitsCircuitsRead Call to super to allow for caching */ func (a *Client) CircuitsCircuitsRead(params *CircuitsCircuitsReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsReadOK, error) { // TODO: Validate the params before sending @@ -707,7 +691,7 @@ func (a *Client) CircuitsCircuitsRead(params *CircuitsCircuitsReadParams, authIn } /* -CircuitsCircuitsUpdate circuits circuits update API + CircuitsCircuitsUpdate circuits circuits update API */ func (a *Client) CircuitsCircuitsUpdate(params *CircuitsCircuitsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsCircuitsUpdateOK, error) { // TODO: Validate the params before sending @@ -742,7 +726,7 @@ func (a *Client) CircuitsCircuitsUpdate(params *CircuitsCircuitsUpdateParams, au } /* -CircuitsProvidersCreate circuits providers create API + CircuitsProvidersCreate circuits providers create API */ func (a *Client) CircuitsProvidersCreate(params *CircuitsProvidersCreateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersCreateCreated, error) { // TODO: Validate the params before sending @@ -777,7 +761,7 @@ func (a *Client) CircuitsProvidersCreate(params *CircuitsProvidersCreateParams, } /* -CircuitsProvidersDelete circuits providers delete API + CircuitsProvidersDelete circuits providers delete API */ func (a *Client) CircuitsProvidersDelete(params *CircuitsProvidersDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersDeleteNoContent, error) { // TODO: Validate the params before sending @@ -812,7 +796,7 @@ func (a *Client) CircuitsProvidersDelete(params *CircuitsProvidersDeleteParams, } /* -CircuitsProvidersGraphs A convenience method for rendering graphs for a particular provider. + CircuitsProvidersGraphs A convenience method for rendering graphs for a particular provider. */ func (a *Client) CircuitsProvidersGraphs(params *CircuitsProvidersGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersGraphsOK, error) { // TODO: Validate the params before sending @@ -847,7 +831,7 @@ func (a *Client) CircuitsProvidersGraphs(params *CircuitsProvidersGraphsParams, } /* -CircuitsProvidersList Call to super to allow for caching + CircuitsProvidersList Call to super to allow for caching */ func (a *Client) CircuitsProvidersList(params *CircuitsProvidersListParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersListOK, error) { // TODO: Validate the params before sending @@ -882,7 +866,7 @@ func (a *Client) CircuitsProvidersList(params *CircuitsProvidersListParams, auth } /* -CircuitsProvidersPartialUpdate circuits providers partial update API + CircuitsProvidersPartialUpdate circuits providers partial update API */ func (a *Client) CircuitsProvidersPartialUpdate(params *CircuitsProvidersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -917,7 +901,7 @@ func (a *Client) CircuitsProvidersPartialUpdate(params *CircuitsProvidersPartial } /* -CircuitsProvidersRead Call to super to allow for caching + CircuitsProvidersRead Call to super to allow for caching */ func (a *Client) CircuitsProvidersRead(params *CircuitsProvidersReadParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersReadOK, error) { // TODO: Validate the params before sending @@ -952,7 +936,7 @@ func (a *Client) CircuitsProvidersRead(params *CircuitsProvidersReadParams, auth } /* -CircuitsProvidersUpdate circuits providers update API + CircuitsProvidersUpdate circuits providers update API */ func (a *Client) CircuitsProvidersUpdate(params *CircuitsProvidersUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*CircuitsProvidersUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go index c58b66834..f66535633 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsProvidersCreateParams creates a new CircuitsProvidersCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_responses.go index 09408fb2d..6c8e34f5a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsProvidersCreateReader is a Reader for the CircuitsProvidersCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_parameters.go index 0fdcb699f..9972e87dd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsProvidersDeleteParams creates a new CircuitsProvidersDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_responses.go index 25cef4786..f9ea15203 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // CircuitsProvidersDeleteReader is a Reader for the CircuitsProvidersDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_parameters.go index 46df29695..e6b8dacf9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsProvidersGraphsParams creates a new CircuitsProvidersGraphsParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_responses.go index 818f497b3..a0a98e0a6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_graphs_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsProvidersGraphsReader is a Reader for the CircuitsProvidersGraphs structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go index 0d38877f9..85bc393dd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsProvidersListParams creates a new CircuitsProvidersListParams object @@ -79,19 +78,54 @@ type CircuitsProvidersListParams struct { /*Account*/ Account *string + /*AccountIc*/ + AccountIc *string + /*AccountIe*/ + AccountIe *string + /*AccountIew*/ + AccountIew *string + /*AccountIsw*/ + AccountIsw *string + /*Accountn*/ + Accountn *string + /*AccountNic*/ + AccountNic *string + /*AccountNie*/ + AccountNie *string + /*AccountNiew*/ + AccountNiew *string + /*AccountNisw*/ + AccountNisw *string /*Asn*/ Asn *string + /*AsnGt*/ + AsnGt *string + /*AsnGte*/ + AsnGte *string + /*AsnLt*/ + AsnLt *string + /*AsnLte*/ + AsnLte *string + /*Asnn*/ + Asnn *string /*Created*/ Created *string /*CreatedGte*/ CreatedGte *string /*CreatedLte*/ CreatedLte *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -105,6 +139,24 @@ type CircuitsProvidersListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -114,16 +166,44 @@ type CircuitsProvidersListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string timeout time.Duration Context context.Context @@ -174,6 +254,105 @@ func (o *CircuitsProvidersListParams) SetAccount(account *string) { o.Account = account } +// WithAccountIc adds the accountIc to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountIc(accountIc *string) *CircuitsProvidersListParams { + o.SetAccountIc(accountIc) + return o +} + +// SetAccountIc adds the accountIc to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountIc(accountIc *string) { + o.AccountIc = accountIc +} + +// WithAccountIe adds the accountIe to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountIe(accountIe *string) *CircuitsProvidersListParams { + o.SetAccountIe(accountIe) + return o +} + +// SetAccountIe adds the accountIe to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountIe(accountIe *string) { + o.AccountIe = accountIe +} + +// WithAccountIew adds the accountIew to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountIew(accountIew *string) *CircuitsProvidersListParams { + o.SetAccountIew(accountIew) + return o +} + +// SetAccountIew adds the accountIew to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountIew(accountIew *string) { + o.AccountIew = accountIew +} + +// WithAccountIsw adds the accountIsw to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountIsw(accountIsw *string) *CircuitsProvidersListParams { + o.SetAccountIsw(accountIsw) + return o +} + +// SetAccountIsw adds the accountIsw to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountIsw(accountIsw *string) { + o.AccountIsw = accountIsw +} + +// WithAccountn adds the accountn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountn(accountn *string) *CircuitsProvidersListParams { + o.SetAccountn(accountn) + return o +} + +// SetAccountn adds the accountN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountn(accountn *string) { + o.Accountn = accountn +} + +// WithAccountNic adds the accountNic to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountNic(accountNic *string) *CircuitsProvidersListParams { + o.SetAccountNic(accountNic) + return o +} + +// SetAccountNic adds the accountNic to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountNic(accountNic *string) { + o.AccountNic = accountNic +} + +// WithAccountNie adds the accountNie to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountNie(accountNie *string) *CircuitsProvidersListParams { + o.SetAccountNie(accountNie) + return o +} + +// SetAccountNie adds the accountNie to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountNie(accountNie *string) { + o.AccountNie = accountNie +} + +// WithAccountNiew adds the accountNiew to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountNiew(accountNiew *string) *CircuitsProvidersListParams { + o.SetAccountNiew(accountNiew) + return o +} + +// SetAccountNiew adds the accountNiew to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountNiew(accountNiew *string) { + o.AccountNiew = accountNiew +} + +// WithAccountNisw adds the accountNisw to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAccountNisw(accountNisw *string) *CircuitsProvidersListParams { + o.SetAccountNisw(accountNisw) + return o +} + +// SetAccountNisw adds the accountNisw to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAccountNisw(accountNisw *string) { + o.AccountNisw = accountNisw +} + // WithAsn adds the asn to the circuits providers list params func (o *CircuitsProvidersListParams) WithAsn(asn *string) *CircuitsProvidersListParams { o.SetAsn(asn) @@ -185,6 +364,61 @@ func (o *CircuitsProvidersListParams) SetAsn(asn *string) { o.Asn = asn } +// WithAsnGt adds the asnGt to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnGt(asnGt *string) *CircuitsProvidersListParams { + o.SetAsnGt(asnGt) + return o +} + +// SetAsnGt adds the asnGt to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnGt(asnGt *string) { + o.AsnGt = asnGt +} + +// WithAsnGte adds the asnGte to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnGte(asnGte *string) *CircuitsProvidersListParams { + o.SetAsnGte(asnGte) + return o +} + +// SetAsnGte adds the asnGte to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnGte(asnGte *string) { + o.AsnGte = asnGte +} + +// WithAsnLt adds the asnLt to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnLt(asnLt *string) *CircuitsProvidersListParams { + o.SetAsnLt(asnLt) + return o +} + +// SetAsnLt adds the asnLt to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnLt(asnLt *string) { + o.AsnLt = asnLt +} + +// WithAsnLte adds the asnLte to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnLte(asnLte *string) *CircuitsProvidersListParams { + o.SetAsnLte(asnLte) + return o +} + +// SetAsnLte adds the asnLte to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnLte(asnLte *string) { + o.AsnLte = asnLte +} + +// WithAsnn adds the asnn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithAsnn(asnn *string) *CircuitsProvidersListParams { + o.SetAsnn(asnn) + return o +} + +// SetAsnn adds the asnN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetAsnn(asnn *string) { + o.Asnn = asnn +} + // WithCreated adds the created to the circuits providers list params func (o *CircuitsProvidersListParams) WithCreated(created *string) *CircuitsProvidersListParams { o.SetCreated(created) @@ -218,15 +452,70 @@ func (o *CircuitsProvidersListParams) SetCreatedLte(createdLte *string) { o.CreatedLte = createdLte } -// WithIDIn adds the iDIn to the circuits providers list params -func (o *CircuitsProvidersListParams) WithIDIn(iDIn *string) *CircuitsProvidersListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the circuits providers list params +func (o *CircuitsProvidersListParams) WithID(id *string) *CircuitsProvidersListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the circuits providers list params +func (o *CircuitsProvidersListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the circuits providers list params +func (o *CircuitsProvidersListParams) WithIDGt(iDGt *string) *CircuitsProvidersListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the circuits providers list params +func (o *CircuitsProvidersListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the circuits providers list params +func (o *CircuitsProvidersListParams) WithIDGte(iDGte *string) *CircuitsProvidersListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the circuits providers list params +func (o *CircuitsProvidersListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the circuits providers list params +func (o *CircuitsProvidersListParams) WithIDLt(iDLt *string) *CircuitsProvidersListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the circuits providers list params +func (o *CircuitsProvidersListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the circuits providers list params +func (o *CircuitsProvidersListParams) WithIDLte(iDLte *string) *CircuitsProvidersListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the circuits providers list params +func (o *CircuitsProvidersListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithIDn(iDn *string) *CircuitsProvidersListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the circuits providers list params -func (o *CircuitsProvidersListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the circuits providers list params @@ -284,6 +573,105 @@ func (o *CircuitsProvidersListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameIc(nameIc *string) *CircuitsProvidersListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameIe(nameIe *string) *CircuitsProvidersListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameIew(nameIew *string) *CircuitsProvidersListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameIsw(nameIsw *string) *CircuitsProvidersListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNamen(namen *string) *CircuitsProvidersListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameNic(nameNic *string) *CircuitsProvidersListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameNie(nameNie *string) *CircuitsProvidersListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameNiew(nameNiew *string) *CircuitsProvidersListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the circuits providers list params +func (o *CircuitsProvidersListParams) WithNameNisw(nameNisw *string) *CircuitsProvidersListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the circuits providers list params +func (o *CircuitsProvidersListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the circuits providers list params func (o *CircuitsProvidersListParams) WithOffset(offset *int64) *CircuitsProvidersListParams { o.SetOffset(offset) @@ -317,6 +705,17 @@ func (o *CircuitsProvidersListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithRegionn(regionn *string) *CircuitsProvidersListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the circuits providers list params func (o *CircuitsProvidersListParams) WithRegionID(regionID *string) *CircuitsProvidersListParams { o.SetRegionID(regionID) @@ -328,6 +727,17 @@ func (o *CircuitsProvidersListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithRegionIDn(regionIDn *string) *CircuitsProvidersListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the circuits providers list params func (o *CircuitsProvidersListParams) WithSite(site *string) *CircuitsProvidersListParams { o.SetSite(site) @@ -339,6 +749,17 @@ func (o *CircuitsProvidersListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSiten(siten *string) *CircuitsProvidersListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the circuits providers list params func (o *CircuitsProvidersListParams) WithSiteID(siteID *string) *CircuitsProvidersListParams { o.SetSiteID(siteID) @@ -350,6 +771,17 @@ func (o *CircuitsProvidersListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSiteIDn(siteIDn *string) *CircuitsProvidersListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithSlug adds the slug to the circuits providers list params func (o *CircuitsProvidersListParams) WithSlug(slug *string) *CircuitsProvidersListParams { o.SetSlug(slug) @@ -361,6 +793,105 @@ func (o *CircuitsProvidersListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugIc(slugIc *string) *CircuitsProvidersListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugIe(slugIe *string) *CircuitsProvidersListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugIew(slugIew *string) *CircuitsProvidersListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugIsw(slugIsw *string) *CircuitsProvidersListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugn(slugn *string) *CircuitsProvidersListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugNic(slugNic *string) *CircuitsProvidersListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugNie(slugNie *string) *CircuitsProvidersListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugNiew(slugNiew *string) *CircuitsProvidersListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the circuits providers list params +func (o *CircuitsProvidersListParams) WithSlugNisw(slugNisw *string) *CircuitsProvidersListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the circuits providers list params +func (o *CircuitsProvidersListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WithTag adds the tag to the circuits providers list params func (o *CircuitsProvidersListParams) WithTag(tag *string) *CircuitsProvidersListParams { o.SetTag(tag) @@ -372,6 +903,17 @@ func (o *CircuitsProvidersListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the circuits providers list params +func (o *CircuitsProvidersListParams) WithTagn(tagn *string) *CircuitsProvidersListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the circuits providers list params +func (o *CircuitsProvidersListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -396,106 +938,410 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } - if o.Asn != nil { + if o.AccountIc != nil { - // query param asn - var qrAsn string - if o.Asn != nil { - qrAsn = *o.Asn + // query param account__ic + var qrAccountIc string + if o.AccountIc != nil { + qrAccountIc = *o.AccountIc } - qAsn := qrAsn - if qAsn != "" { - if err := r.SetQueryParam("asn", qAsn); err != nil { + qAccountIc := qrAccountIc + if qAccountIc != "" { + if err := r.SetQueryParam("account__ic", qAccountIc); err != nil { return err } } } - if o.Created != nil { + if o.AccountIe != nil { - // query param created - var qrCreated string - if o.Created != nil { - qrCreated = *o.Created + // query param account__ie + var qrAccountIe string + if o.AccountIe != nil { + qrAccountIe = *o.AccountIe } - qCreated := qrCreated - if qCreated != "" { - if err := r.SetQueryParam("created", qCreated); err != nil { + qAccountIe := qrAccountIe + if qAccountIe != "" { + if err := r.SetQueryParam("account__ie", qAccountIe); err != nil { return err } } } - if o.CreatedGte != nil { + if o.AccountIew != nil { - // query param created__gte - var qrCreatedGte string - if o.CreatedGte != nil { - qrCreatedGte = *o.CreatedGte + // query param account__iew + var qrAccountIew string + if o.AccountIew != nil { + qrAccountIew = *o.AccountIew } - qCreatedGte := qrCreatedGte - if qCreatedGte != "" { - if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { + qAccountIew := qrAccountIew + if qAccountIew != "" { + if err := r.SetQueryParam("account__iew", qAccountIew); err != nil { return err } } } - if o.CreatedLte != nil { + if o.AccountIsw != nil { - // query param created__lte - var qrCreatedLte string - if o.CreatedLte != nil { - qrCreatedLte = *o.CreatedLte + // query param account__isw + var qrAccountIsw string + if o.AccountIsw != nil { + qrAccountIsw = *o.AccountIsw } - qCreatedLte := qrCreatedLte - if qCreatedLte != "" { - if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { + qAccountIsw := qrAccountIsw + if qAccountIsw != "" { + if err := r.SetQueryParam("account__isw", qAccountIsw); err != nil { return err } } } - if o.IDIn != nil { + if o.Accountn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param account__n + var qrAccountn string + if o.Accountn != nil { + qrAccountn = *o.Accountn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qAccountn := qrAccountn + if qAccountn != "" { + if err := r.SetQueryParam("account__n", qAccountn); err != nil { return err } } } - if o.LastUpdated != nil { + if o.AccountNic != nil { - // query param last_updated - var qrLastUpdated string - if o.LastUpdated != nil { - qrLastUpdated = *o.LastUpdated + // query param account__nic + var qrAccountNic string + if o.AccountNic != nil { + qrAccountNic = *o.AccountNic } - qLastUpdated := qrLastUpdated - if qLastUpdated != "" { - if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + qAccountNic := qrAccountNic + if qAccountNic != "" { + if err := r.SetQueryParam("account__nic", qAccountNic); err != nil { return err } } } - if o.LastUpdatedGte != nil { + if o.AccountNie != nil { - // query param last_updated__gte - var qrLastUpdatedGte string + // query param account__nie + var qrAccountNie string + if o.AccountNie != nil { + qrAccountNie = *o.AccountNie + } + qAccountNie := qrAccountNie + if qAccountNie != "" { + if err := r.SetQueryParam("account__nie", qAccountNie); err != nil { + return err + } + } + + } + + if o.AccountNiew != nil { + + // query param account__niew + var qrAccountNiew string + if o.AccountNiew != nil { + qrAccountNiew = *o.AccountNiew + } + qAccountNiew := qrAccountNiew + if qAccountNiew != "" { + if err := r.SetQueryParam("account__niew", qAccountNiew); err != nil { + return err + } + } + + } + + if o.AccountNisw != nil { + + // query param account__nisw + var qrAccountNisw string + if o.AccountNisw != nil { + qrAccountNisw = *o.AccountNisw + } + qAccountNisw := qrAccountNisw + if qAccountNisw != "" { + if err := r.SetQueryParam("account__nisw", qAccountNisw); err != nil { + return err + } + } + + } + + if o.Asn != nil { + + // query param asn + var qrAsn string + if o.Asn != nil { + qrAsn = *o.Asn + } + qAsn := qrAsn + if qAsn != "" { + if err := r.SetQueryParam("asn", qAsn); err != nil { + return err + } + } + + } + + if o.AsnGt != nil { + + // query param asn__gt + var qrAsnGt string + if o.AsnGt != nil { + qrAsnGt = *o.AsnGt + } + qAsnGt := qrAsnGt + if qAsnGt != "" { + if err := r.SetQueryParam("asn__gt", qAsnGt); err != nil { + return err + } + } + + } + + if o.AsnGte != nil { + + // query param asn__gte + var qrAsnGte string + if o.AsnGte != nil { + qrAsnGte = *o.AsnGte + } + qAsnGte := qrAsnGte + if qAsnGte != "" { + if err := r.SetQueryParam("asn__gte", qAsnGte); err != nil { + return err + } + } + + } + + if o.AsnLt != nil { + + // query param asn__lt + var qrAsnLt 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.Created != nil { + + // query param created + var qrCreated string + if o.Created != nil { + qrCreated = *o.Created + } + qCreated := qrCreated + if qCreated != "" { + if err := r.SetQueryParam("created", qCreated); err != nil { + return err + } + } + + } + + if o.CreatedGte != nil { + + // query param created__gte + var qrCreatedGte string + if o.CreatedGte != nil { + qrCreatedGte = *o.CreatedGte + } + qCreatedGte := qrCreatedGte + if qCreatedGte != "" { + if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { + return err + } + } + + } + + if o.CreatedLte != nil { + + // query param created__lte + var qrCreatedLte string + if o.CreatedLte != nil { + qrCreatedLte = *o.CreatedLte + } + qCreatedLte := qrCreatedLte + if qCreatedLte != "" { + if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.LastUpdated != nil { + + // query param last_updated + var qrLastUpdated string + if o.LastUpdated != nil { + qrLastUpdated = *o.LastUpdated + } + qLastUpdated := qrLastUpdated + if qLastUpdated != "" { + if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + return err + } + } + + } + + if o.LastUpdatedGte != nil { + + // query param last_updated__gte + var qrLastUpdatedGte string if o.LastUpdatedGte != nil { qrLastUpdatedGte = *o.LastUpdatedGte } @@ -556,6 +1402,150 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -604,6 +1594,22 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + 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 @@ -620,6 +1626,22 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + 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 @@ -636,6 +1658,22 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -652,6 +1690,22 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Slug != nil { // query param slug @@ -668,6 +1722,150 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -684,6 +1882,22 @@ func (o *CircuitsProvidersListParams) WriteToRequest(r runtime.ClientRequest, re } + 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/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_responses.go index a6314bf4c..0ee27b8ba 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsProvidersListReader is a Reader for the CircuitsProvidersList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go index 13364d32f..79a68e208 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsProvidersPartialUpdateParams creates a new CircuitsProvidersPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_responses.go index 91dae2956..9b7556150 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsProvidersPartialUpdateReader is a Reader for the CircuitsProvidersPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_parameters.go index ac87e5ff9..8ce4579ac 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewCircuitsProvidersReadParams creates a new CircuitsProvidersReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_responses.go index 8c1540d11..6293ffbf4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsProvidersReadReader is a Reader for the CircuitsProvidersRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go index d16b6dc2b..ebd314009 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewCircuitsProvidersUpdateParams creates a new CircuitsProvidersUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_responses.go index 3bca3d0f5..9e3ed8532 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/circuits/circuits_providers_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // CircuitsProvidersUpdateReader is a Reader for the CircuitsProvidersUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_parameters.go index ff952d361..f21ed5604 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimCablesCreateParams creates a new DcimCablesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_responses.go index 3369523c2..bf1d8d1dc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimCablesCreateReader is a Reader for the DcimCablesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_parameters.go index 091d4f2f8..29d1e2a01 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimCablesDeleteParams creates a new DcimCablesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_responses.go index db9c771a8..035119f75 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimCablesDeleteReader is a Reader for the DcimCablesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go index 051a634f0..20d1e22f4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimCablesListParams creates a new DcimCablesListParams object @@ -79,18 +78,60 @@ type DcimCablesListParams struct { /*Color*/ Color *string + /*Colorn*/ + Colorn *string /*Device*/ Device *string /*DeviceID*/ DeviceID *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Label*/ Label *string + /*LabelIc*/ + LabelIc *string + /*LabelIe*/ + LabelIe *string + /*LabelIew*/ + LabelIew *string + /*LabelIsw*/ + LabelIsw *string + /*Labeln*/ + Labeln *string + /*LabelNic*/ + LabelNic *string + /*LabelNie*/ + LabelNie *string + /*LabelNiew*/ + LabelNiew *string + /*LabelNisw*/ + LabelNisw *string /*Length*/ Length *string + /*LengthGt*/ + LengthGt *string + /*LengthGte*/ + LengthGte *string + /*LengthLt*/ + LengthLt *string + /*LengthLte*/ + LengthLte *string + /*Lengthn*/ + Lengthn *string /*LengthUnit*/ LengthUnit *string + /*LengthUnitn*/ + LengthUnitn *string /*Limit Number of results to return per page. @@ -113,12 +154,16 @@ type DcimCablesListParams struct { SiteID *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tenant*/ Tenant *string /*TenantID*/ TenantID *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -169,6 +214,17 @@ func (o *DcimCablesListParams) SetColor(color *string) { o.Color = color } +// WithColorn adds the colorn to the dcim cables list params +func (o *DcimCablesListParams) WithColorn(colorn *string) *DcimCablesListParams { + o.SetColorn(colorn) + return o +} + +// SetColorn adds the colorN to the dcim cables list params +func (o *DcimCablesListParams) SetColorn(colorn *string) { + o.Colorn = colorn +} + // WithDevice adds the device to the dcim cables list params func (o *DcimCablesListParams) WithDevice(device *string) *DcimCablesListParams { o.SetDevice(device) @@ -202,6 +258,61 @@ func (o *DcimCablesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim cables list params +func (o *DcimCablesListParams) WithIDGt(iDGt *string) *DcimCablesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim cables list params +func (o *DcimCablesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim cables list params +func (o *DcimCablesListParams) WithIDGte(iDGte *string) *DcimCablesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim cables list params +func (o *DcimCablesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim cables list params +func (o *DcimCablesListParams) WithIDLt(iDLt *string) *DcimCablesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim cables list params +func (o *DcimCablesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim cables list params +func (o *DcimCablesListParams) WithIDLte(iDLte *string) *DcimCablesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim cables list params +func (o *DcimCablesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim cables list params +func (o *DcimCablesListParams) WithIDn(iDn *string) *DcimCablesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim cables list params +func (o *DcimCablesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLabel adds the label to the dcim cables list params func (o *DcimCablesListParams) WithLabel(label *string) *DcimCablesListParams { o.SetLabel(label) @@ -213,6 +324,105 @@ func (o *DcimCablesListParams) SetLabel(label *string) { o.Label = label } +// WithLabelIc adds the labelIc to the dcim cables list params +func (o *DcimCablesListParams) WithLabelIc(labelIc *string) *DcimCablesListParams { + o.SetLabelIc(labelIc) + return o +} + +// SetLabelIc adds the labelIc to the dcim cables list params +func (o *DcimCablesListParams) SetLabelIc(labelIc *string) { + o.LabelIc = labelIc +} + +// WithLabelIe adds the labelIe to the dcim cables list params +func (o *DcimCablesListParams) WithLabelIe(labelIe *string) *DcimCablesListParams { + o.SetLabelIe(labelIe) + return o +} + +// SetLabelIe adds the labelIe to the dcim cables list params +func (o *DcimCablesListParams) SetLabelIe(labelIe *string) { + o.LabelIe = labelIe +} + +// WithLabelIew adds the labelIew to the dcim cables list params +func (o *DcimCablesListParams) WithLabelIew(labelIew *string) *DcimCablesListParams { + o.SetLabelIew(labelIew) + return o +} + +// SetLabelIew adds the labelIew to the dcim cables list params +func (o *DcimCablesListParams) SetLabelIew(labelIew *string) { + o.LabelIew = labelIew +} + +// WithLabelIsw adds the labelIsw to the dcim cables list params +func (o *DcimCablesListParams) WithLabelIsw(labelIsw *string) *DcimCablesListParams { + o.SetLabelIsw(labelIsw) + return o +} + +// SetLabelIsw adds the labelIsw to the dcim cables list params +func (o *DcimCablesListParams) SetLabelIsw(labelIsw *string) { + o.LabelIsw = labelIsw +} + +// WithLabeln adds the labeln to the dcim cables list params +func (o *DcimCablesListParams) WithLabeln(labeln *string) *DcimCablesListParams { + o.SetLabeln(labeln) + return o +} + +// SetLabeln adds the labelN to the dcim cables list params +func (o *DcimCablesListParams) SetLabeln(labeln *string) { + o.Labeln = labeln +} + +// WithLabelNic adds the labelNic to the dcim cables list params +func (o *DcimCablesListParams) WithLabelNic(labelNic *string) *DcimCablesListParams { + o.SetLabelNic(labelNic) + return o +} + +// SetLabelNic adds the labelNic to the dcim cables list params +func (o *DcimCablesListParams) SetLabelNic(labelNic *string) { + o.LabelNic = labelNic +} + +// WithLabelNie adds the labelNie to the dcim cables list params +func (o *DcimCablesListParams) WithLabelNie(labelNie *string) *DcimCablesListParams { + o.SetLabelNie(labelNie) + return o +} + +// SetLabelNie adds the labelNie to the dcim cables list params +func (o *DcimCablesListParams) SetLabelNie(labelNie *string) { + o.LabelNie = labelNie +} + +// WithLabelNiew adds the labelNiew to the dcim cables list params +func (o *DcimCablesListParams) WithLabelNiew(labelNiew *string) *DcimCablesListParams { + o.SetLabelNiew(labelNiew) + return o +} + +// SetLabelNiew adds the labelNiew to the dcim cables list params +func (o *DcimCablesListParams) SetLabelNiew(labelNiew *string) { + o.LabelNiew = labelNiew +} + +// WithLabelNisw adds the labelNisw to the dcim cables list params +func (o *DcimCablesListParams) WithLabelNisw(labelNisw *string) *DcimCablesListParams { + o.SetLabelNisw(labelNisw) + return o +} + +// SetLabelNisw adds the labelNisw to the dcim cables list params +func (o *DcimCablesListParams) SetLabelNisw(labelNisw *string) { + o.LabelNisw = labelNisw +} + // WithLength adds the length to the dcim cables list params func (o *DcimCablesListParams) WithLength(length *string) *DcimCablesListParams { o.SetLength(length) @@ -224,6 +434,61 @@ func (o *DcimCablesListParams) SetLength(length *string) { o.Length = length } +// WithLengthGt adds the lengthGt to the dcim cables list params +func (o *DcimCablesListParams) WithLengthGt(lengthGt *string) *DcimCablesListParams { + o.SetLengthGt(lengthGt) + return o +} + +// SetLengthGt adds the lengthGt to the dcim cables list params +func (o *DcimCablesListParams) SetLengthGt(lengthGt *string) { + o.LengthGt = lengthGt +} + +// WithLengthGte adds the lengthGte to the dcim cables list params +func (o *DcimCablesListParams) WithLengthGte(lengthGte *string) *DcimCablesListParams { + o.SetLengthGte(lengthGte) + return o +} + +// SetLengthGte adds the lengthGte to the dcim cables list params +func (o *DcimCablesListParams) SetLengthGte(lengthGte *string) { + o.LengthGte = lengthGte +} + +// WithLengthLt adds the lengthLt to the dcim cables list params +func (o *DcimCablesListParams) WithLengthLt(lengthLt *string) *DcimCablesListParams { + o.SetLengthLt(lengthLt) + return o +} + +// SetLengthLt adds the lengthLt to the dcim cables list params +func (o *DcimCablesListParams) SetLengthLt(lengthLt *string) { + o.LengthLt = lengthLt +} + +// WithLengthLte adds the lengthLte to the dcim cables list params +func (o *DcimCablesListParams) WithLengthLte(lengthLte *string) *DcimCablesListParams { + o.SetLengthLte(lengthLte) + return o +} + +// SetLengthLte adds the lengthLte to the dcim cables list params +func (o *DcimCablesListParams) SetLengthLte(lengthLte *string) { + o.LengthLte = lengthLte +} + +// WithLengthn adds the lengthn to the dcim cables list params +func (o *DcimCablesListParams) WithLengthn(lengthn *string) *DcimCablesListParams { + o.SetLengthn(lengthn) + return o +} + +// SetLengthn adds the lengthN to the dcim cables list params +func (o *DcimCablesListParams) SetLengthn(lengthn *string) { + o.Lengthn = lengthn +} + // WithLengthUnit adds the lengthUnit to the dcim cables list params func (o *DcimCablesListParams) WithLengthUnit(lengthUnit *string) *DcimCablesListParams { o.SetLengthUnit(lengthUnit) @@ -235,6 +500,17 @@ func (o *DcimCablesListParams) SetLengthUnit(lengthUnit *string) { o.LengthUnit = lengthUnit } +// WithLengthUnitn adds the lengthUnitn to the dcim cables list params +func (o *DcimCablesListParams) WithLengthUnitn(lengthUnitn *string) *DcimCablesListParams { + o.SetLengthUnitn(lengthUnitn) + return o +} + +// SetLengthUnitn adds the lengthUnitN to the dcim cables list params +func (o *DcimCablesListParams) SetLengthUnitn(lengthUnitn *string) { + o.LengthUnitn = lengthUnitn +} + // WithLimit adds the limit to the dcim cables list params func (o *DcimCablesListParams) WithLimit(limit *int64) *DcimCablesListParams { o.SetLimit(limit) @@ -323,6 +599,17 @@ func (o *DcimCablesListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the dcim cables list params +func (o *DcimCablesListParams) WithStatusn(statusn *string) *DcimCablesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim cables list params +func (o *DcimCablesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTenant adds the tenant to the dcim cables list params func (o *DcimCablesListParams) WithTenant(tenant *string) *DcimCablesListParams { o.SetTenant(tenant) @@ -356,6 +643,17 @@ func (o *DcimCablesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim cables list params +func (o *DcimCablesListParams) WithTypen(typen *string) *DcimCablesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim cables list params +func (o *DcimCablesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -380,6 +678,22 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.Colorn != nil { + + // query param color__n + var qrColorn string + if o.Colorn != nil { + qrColorn = *o.Colorn + } + qColorn := qrColorn + if qColorn != "" { + if err := r.SetQueryParam("color__n", qColorn); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -428,6 +742,86 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Label != nil { // query param label @@ -444,6 +838,150 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.LabelIc != nil { + + // query param label__ic + var qrLabelIc string + if o.LabelIc != nil { + qrLabelIc = *o.LabelIc + } + qLabelIc := qrLabelIc + if qLabelIc != "" { + if err := r.SetQueryParam("label__ic", qLabelIc); err != nil { + return err + } + } + + } + + if o.LabelIe != nil { + + // query param label__ie + var qrLabelIe string + if o.LabelIe != nil { + qrLabelIe = *o.LabelIe + } + qLabelIe := qrLabelIe + if qLabelIe != "" { + if err := r.SetQueryParam("label__ie", qLabelIe); err != nil { + return err + } + } + + } + + if o.LabelIew != nil { + + // query param label__iew + var qrLabelIew string + if o.LabelIew != nil { + qrLabelIew = *o.LabelIew + } + qLabelIew := qrLabelIew + if qLabelIew != "" { + if err := r.SetQueryParam("label__iew", qLabelIew); err != nil { + return err + } + } + + } + + if o.LabelIsw != nil { + + // query param label__isw + var qrLabelIsw string + if o.LabelIsw != nil { + qrLabelIsw = *o.LabelIsw + } + qLabelIsw := qrLabelIsw + if qLabelIsw != "" { + if err := r.SetQueryParam("label__isw", qLabelIsw); err != nil { + return err + } + } + + } + + if o.Labeln != nil { + + // query param label__n + var qrLabeln string + if o.Labeln != nil { + qrLabeln = *o.Labeln + } + qLabeln := qrLabeln + if qLabeln != "" { + if err := r.SetQueryParam("label__n", qLabeln); err != nil { + return err + } + } + + } + + if o.LabelNic != nil { + + // query param label__nic + var qrLabelNic string + if o.LabelNic != nil { + qrLabelNic = *o.LabelNic + } + qLabelNic := qrLabelNic + if qLabelNic != "" { + if err := r.SetQueryParam("label__nic", qLabelNic); err != nil { + return err + } + } + + } + + if o.LabelNie != nil { + + // query param label__nie + var qrLabelNie string + if o.LabelNie != nil { + qrLabelNie = *o.LabelNie + } + qLabelNie := qrLabelNie + if qLabelNie != "" { + if err := r.SetQueryParam("label__nie", qLabelNie); err != nil { + return err + } + } + + } + + if o.LabelNiew != nil { + + // query param label__niew + var qrLabelNiew string + if o.LabelNiew != nil { + qrLabelNiew = *o.LabelNiew + } + qLabelNiew := qrLabelNiew + if qLabelNiew != "" { + if err := r.SetQueryParam("label__niew", qLabelNiew); err != nil { + return err + } + } + + } + + if o.LabelNisw != nil { + + // query param label__nisw + var qrLabelNisw string + if o.LabelNisw != nil { + qrLabelNisw = *o.LabelNisw + } + qLabelNisw := qrLabelNisw + if qLabelNisw != "" { + if err := r.SetQueryParam("label__nisw", qLabelNisw); err != nil { + return err + } + } + + } + if o.Length != nil { // query param length @@ -460,6 +998,86 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.LengthGt != nil { + + // query param length__gt + var qrLengthGt string + if o.LengthGt != nil { + qrLengthGt = *o.LengthGt + } + qLengthGt := qrLengthGt + if qLengthGt != "" { + if err := r.SetQueryParam("length__gt", qLengthGt); err != nil { + return err + } + } + + } + + if o.LengthGte != nil { + + // query param length__gte + var qrLengthGte string + if o.LengthGte != nil { + qrLengthGte = *o.LengthGte + } + qLengthGte := qrLengthGte + if qLengthGte != "" { + if err := r.SetQueryParam("length__gte", qLengthGte); err != nil { + return err + } + } + + } + + if o.LengthLt != nil { + + // query param length__lt + var qrLengthLt string + if o.LengthLt != nil { + qrLengthLt = *o.LengthLt + } + qLengthLt := qrLengthLt + if qLengthLt != "" { + if err := r.SetQueryParam("length__lt", qLengthLt); err != nil { + return err + } + } + + } + + if o.LengthLte != nil { + + // query param length__lte + var qrLengthLte string + if o.LengthLte != nil { + qrLengthLte = *o.LengthLte + } + qLengthLte := qrLengthLte + if qLengthLte != "" { + if err := r.SetQueryParam("length__lte", qLengthLte); err != nil { + return err + } + } + + } + + if o.Lengthn != nil { + + // query param length__n + var qrLengthn string + if o.Lengthn != nil { + qrLengthn = *o.Lengthn + } + qLengthn := qrLengthn + if qLengthn != "" { + if err := r.SetQueryParam("length__n", qLengthn); err != nil { + return err + } + } + + } + if o.LengthUnit != nil { // query param length_unit @@ -476,6 +1094,22 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.LengthUnitn != nil { + + // query param length_unit__n + var qrLengthUnitn string + if o.LengthUnitn != nil { + qrLengthUnitn = *o.LengthUnitn + } + qLengthUnitn := qrLengthUnitn + if qLengthUnitn != "" { + if err := r.SetQueryParam("length_unit__n", qLengthUnitn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -604,6 +1238,22 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tenant != nil { // query param tenant @@ -652,6 +1302,22 @@ func (o *DcimCablesListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_responses.go index caddb309a..639697ad9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimCablesListReader is a Reader for the DcimCablesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_parameters.go index 6f8b638e9..ccc168662 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimCablesPartialUpdateParams creates a new DcimCablesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_responses.go index 8515b4eb8..8479b480d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimCablesPartialUpdateReader is a Reader for the DcimCablesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_parameters.go index 2eda6ca6f..0e6a6d285 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimCablesReadParams creates a new DcimCablesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_responses.go index bdad60730..d7aead2b4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimCablesReadReader is a Reader for the DcimCablesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_parameters.go index 14710002c..956e6795e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimCablesUpdateParams creates a new DcimCablesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_responses.go index 234dc2c5c..41ee9c4bd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_cables_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimCablesUpdateReader is a Reader for the DcimCablesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_client.go index 46d6c01ad..b448ceebc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new dcim API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,78 +40,425 @@ type Client struct { formats strfmt.Registry } -/* -DcimChoicesList dcim choices list API -*/ -func (a *Client) DcimChoicesList(params *DcimChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDcimChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + DcimCablesCreate(params *DcimCablesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "dcim__choices_list", - Method: "GET", - PathPattern: "/dcim/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DcimChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*DcimChoicesListOK) - 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__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + DcimCablesDelete(params *DcimCablesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesDeleteNoContent, error) -/* -DcimChoicesRead dcim choices read API -*/ -func (a *Client) DcimChoicesRead(params *DcimChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDcimChoicesReadParams() - } + DcimCablesList(params *DcimCablesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "dcim__choices_read", - Method: "GET", - PathPattern: "/dcim/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DcimChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*DcimChoicesReadOK) - 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__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + DcimCablesPartialUpdate(params *DcimCablesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesPartialUpdateOK, error) + + DcimCablesRead(params *DcimCablesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesReadOK, error) + + DcimCablesUpdate(params *DcimCablesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesUpdateOK, error) + + DcimConnectedDeviceList(params *DcimConnectedDeviceListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConnectedDeviceListOK, error) + + DcimConsoleConnectionsList(params *DcimConsoleConnectionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleConnectionsListOK, error) + + DcimConsolePortTemplatesCreate(params *DcimConsolePortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesCreateCreated, error) + + DcimConsolePortTemplatesDelete(params *DcimConsolePortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesDeleteNoContent, error) + + DcimConsolePortTemplatesList(params *DcimConsolePortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesListOK, error) + + DcimConsolePortTemplatesPartialUpdate(params *DcimConsolePortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesPartialUpdateOK, error) + + DcimConsolePortTemplatesRead(params *DcimConsolePortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesReadOK, error) + + DcimConsolePortTemplatesUpdate(params *DcimConsolePortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesUpdateOK, error) + + DcimConsolePortsCreate(params *DcimConsolePortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsCreateCreated, error) + + DcimConsolePortsDelete(params *DcimConsolePortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsDeleteNoContent, error) + + DcimConsolePortsList(params *DcimConsolePortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsListOK, error) + + DcimConsolePortsPartialUpdate(params *DcimConsolePortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsPartialUpdateOK, error) + + DcimConsolePortsRead(params *DcimConsolePortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsReadOK, error) + + DcimConsolePortsTrace(params *DcimConsolePortsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsTraceOK, error) + + DcimConsolePortsUpdate(params *DcimConsolePortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsUpdateOK, error) + + DcimConsoleServerPortTemplatesCreate(params *DcimConsoleServerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesCreateCreated, error) + + DcimConsoleServerPortTemplatesDelete(params *DcimConsoleServerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesDeleteNoContent, error) + + DcimConsoleServerPortTemplatesList(params *DcimConsoleServerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesListOK, error) + + DcimConsoleServerPortTemplatesPartialUpdate(params *DcimConsoleServerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesPartialUpdateOK, error) + + DcimConsoleServerPortTemplatesRead(params *DcimConsoleServerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesReadOK, error) + + DcimConsoleServerPortTemplatesUpdate(params *DcimConsoleServerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesUpdateOK, error) + + DcimConsoleServerPortsCreate(params *DcimConsoleServerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsCreateCreated, error) + + DcimConsoleServerPortsDelete(params *DcimConsoleServerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsDeleteNoContent, error) + + DcimConsoleServerPortsList(params *DcimConsoleServerPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsListOK, error) + + DcimConsoleServerPortsPartialUpdate(params *DcimConsoleServerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsPartialUpdateOK, error) + + DcimConsoleServerPortsRead(params *DcimConsoleServerPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsReadOK, error) + + DcimConsoleServerPortsTrace(params *DcimConsoleServerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsTraceOK, error) + + DcimConsoleServerPortsUpdate(params *DcimConsoleServerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsUpdateOK, error) + + DcimDeviceBayTemplatesCreate(params *DcimDeviceBayTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesCreateCreated, error) + + DcimDeviceBayTemplatesDelete(params *DcimDeviceBayTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesDeleteNoContent, error) + + DcimDeviceBayTemplatesList(params *DcimDeviceBayTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesListOK, error) + + DcimDeviceBayTemplatesPartialUpdate(params *DcimDeviceBayTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesPartialUpdateOK, error) + + DcimDeviceBayTemplatesRead(params *DcimDeviceBayTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesReadOK, error) + + DcimDeviceBayTemplatesUpdate(params *DcimDeviceBayTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesUpdateOK, error) + + DcimDeviceBaysCreate(params *DcimDeviceBaysCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysCreateCreated, error) + + DcimDeviceBaysDelete(params *DcimDeviceBaysDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysDeleteNoContent, error) + + DcimDeviceBaysList(params *DcimDeviceBaysListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysListOK, error) + + DcimDeviceBaysPartialUpdate(params *DcimDeviceBaysPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysPartialUpdateOK, error) + + DcimDeviceBaysRead(params *DcimDeviceBaysReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysReadOK, error) + + DcimDeviceBaysUpdate(params *DcimDeviceBaysUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysUpdateOK, error) + + DcimDeviceRolesCreate(params *DcimDeviceRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesCreateCreated, error) + + DcimDeviceRolesDelete(params *DcimDeviceRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesDeleteNoContent, error) + + DcimDeviceRolesList(params *DcimDeviceRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesListOK, error) + + DcimDeviceRolesPartialUpdate(params *DcimDeviceRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesPartialUpdateOK, error) + + DcimDeviceRolesRead(params *DcimDeviceRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesReadOK, error) + + DcimDeviceRolesUpdate(params *DcimDeviceRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesUpdateOK, error) + + DcimDeviceTypesCreate(params *DcimDeviceTypesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesCreateCreated, error) + + DcimDeviceTypesDelete(params *DcimDeviceTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesDeleteNoContent, error) + + DcimDeviceTypesList(params *DcimDeviceTypesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesListOK, error) + + DcimDeviceTypesPartialUpdate(params *DcimDeviceTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesPartialUpdateOK, error) + + DcimDeviceTypesRead(params *DcimDeviceTypesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesReadOK, error) + + DcimDeviceTypesUpdate(params *DcimDeviceTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesUpdateOK, error) + + DcimDevicesCreate(params *DcimDevicesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesCreateCreated, error) + + DcimDevicesDelete(params *DcimDevicesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesDeleteNoContent, error) + + DcimDevicesGraphs(params *DcimDevicesGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesGraphsOK, error) + + DcimDevicesList(params *DcimDevicesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesListOK, error) + + DcimDevicesNapalm(params *DcimDevicesNapalmParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesNapalmOK, error) + + DcimDevicesPartialUpdate(params *DcimDevicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesPartialUpdateOK, error) + + DcimDevicesRead(params *DcimDevicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesReadOK, error) + + DcimDevicesUpdate(params *DcimDevicesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesUpdateOK, error) + + DcimFrontPortTemplatesCreate(params *DcimFrontPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesCreateCreated, error) + + DcimFrontPortTemplatesDelete(params *DcimFrontPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesDeleteNoContent, error) + + DcimFrontPortTemplatesList(params *DcimFrontPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesListOK, error) + + DcimFrontPortTemplatesPartialUpdate(params *DcimFrontPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesPartialUpdateOK, error) + + DcimFrontPortTemplatesRead(params *DcimFrontPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesReadOK, error) + + DcimFrontPortTemplatesUpdate(params *DcimFrontPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesUpdateOK, error) + + DcimFrontPortsCreate(params *DcimFrontPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsCreateCreated, error) + + DcimFrontPortsDelete(params *DcimFrontPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsDeleteNoContent, error) + + DcimFrontPortsList(params *DcimFrontPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsListOK, error) + + DcimFrontPortsPartialUpdate(params *DcimFrontPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsPartialUpdateOK, error) + + DcimFrontPortsRead(params *DcimFrontPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsReadOK, error) + + DcimFrontPortsUpdate(params *DcimFrontPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsUpdateOK, error) + + DcimInterfaceConnectionsList(params *DcimInterfaceConnectionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceConnectionsListOK, error) + + DcimInterfaceTemplatesCreate(params *DcimInterfaceTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesCreateCreated, error) + + DcimInterfaceTemplatesDelete(params *DcimInterfaceTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesDeleteNoContent, error) + + DcimInterfaceTemplatesList(params *DcimInterfaceTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesListOK, error) + + DcimInterfaceTemplatesPartialUpdate(params *DcimInterfaceTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesPartialUpdateOK, error) + + DcimInterfaceTemplatesRead(params *DcimInterfaceTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesReadOK, error) + + DcimInterfaceTemplatesUpdate(params *DcimInterfaceTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesUpdateOK, error) + + DcimInterfacesCreate(params *DcimInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesCreateCreated, error) + + DcimInterfacesDelete(params *DcimInterfacesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesDeleteNoContent, error) + + DcimInterfacesGraphs(params *DcimInterfacesGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesGraphsOK, error) + + DcimInterfacesList(params *DcimInterfacesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesListOK, error) + + DcimInterfacesPartialUpdate(params *DcimInterfacesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesPartialUpdateOK, error) + + DcimInterfacesRead(params *DcimInterfacesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesReadOK, error) + + DcimInterfacesTrace(params *DcimInterfacesTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesTraceOK, error) + + DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesUpdateOK, error) + + DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsCreateCreated, error) + + DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsDeleteNoContent, error) + + DcimInventoryItemsList(params *DcimInventoryItemsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsListOK, error) + + DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsPartialUpdateOK, error) + + DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsReadOK, error) + + DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsUpdateOK, error) + + DcimManufacturersCreate(params *DcimManufacturersCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersCreateCreated, error) + + DcimManufacturersDelete(params *DcimManufacturersDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersDeleteNoContent, error) + + DcimManufacturersList(params *DcimManufacturersListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersListOK, error) + + DcimManufacturersPartialUpdate(params *DcimManufacturersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersPartialUpdateOK, error) + + DcimManufacturersRead(params *DcimManufacturersReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersReadOK, error) + + DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersUpdateOK, error) + + DcimPlatformsCreate(params *DcimPlatformsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsCreateCreated, error) + + DcimPlatformsDelete(params *DcimPlatformsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsDeleteNoContent, error) + + DcimPlatformsList(params *DcimPlatformsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsListOK, error) + + DcimPlatformsPartialUpdate(params *DcimPlatformsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsPartialUpdateOK, error) + + DcimPlatformsRead(params *DcimPlatformsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsReadOK, error) + + DcimPlatformsUpdate(params *DcimPlatformsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsUpdateOK, error) + + DcimPowerConnectionsList(params *DcimPowerConnectionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerConnectionsListOK, error) + + DcimPowerFeedsCreate(params *DcimPowerFeedsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsCreateCreated, error) + + DcimPowerFeedsDelete(params *DcimPowerFeedsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsDeleteNoContent, error) + + DcimPowerFeedsList(params *DcimPowerFeedsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsListOK, error) + + DcimPowerFeedsPartialUpdate(params *DcimPowerFeedsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsPartialUpdateOK, error) + + DcimPowerFeedsRead(params *DcimPowerFeedsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsReadOK, error) + + DcimPowerFeedsUpdate(params *DcimPowerFeedsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsUpdateOK, error) + + DcimPowerOutletTemplatesCreate(params *DcimPowerOutletTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesCreateCreated, error) + + DcimPowerOutletTemplatesDelete(params *DcimPowerOutletTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesDeleteNoContent, error) + + DcimPowerOutletTemplatesList(params *DcimPowerOutletTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesListOK, error) + + DcimPowerOutletTemplatesPartialUpdate(params *DcimPowerOutletTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesPartialUpdateOK, error) + + DcimPowerOutletTemplatesRead(params *DcimPowerOutletTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesReadOK, error) + + DcimPowerOutletTemplatesUpdate(params *DcimPowerOutletTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesUpdateOK, error) + + DcimPowerOutletsCreate(params *DcimPowerOutletsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsCreateCreated, error) + + DcimPowerOutletsDelete(params *DcimPowerOutletsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsDeleteNoContent, error) + + DcimPowerOutletsList(params *DcimPowerOutletsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsListOK, error) + + DcimPowerOutletsPartialUpdate(params *DcimPowerOutletsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsPartialUpdateOK, error) + + DcimPowerOutletsRead(params *DcimPowerOutletsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsReadOK, error) + + DcimPowerOutletsTrace(params *DcimPowerOutletsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsTraceOK, error) + + DcimPowerOutletsUpdate(params *DcimPowerOutletsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsUpdateOK, error) + + DcimPowerPanelsCreate(params *DcimPowerPanelsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsCreateCreated, error) + + DcimPowerPanelsDelete(params *DcimPowerPanelsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsDeleteNoContent, error) + + DcimPowerPanelsList(params *DcimPowerPanelsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsListOK, error) + + DcimPowerPanelsPartialUpdate(params *DcimPowerPanelsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsPartialUpdateOK, error) + + DcimPowerPanelsRead(params *DcimPowerPanelsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsReadOK, error) + + DcimPowerPanelsUpdate(params *DcimPowerPanelsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsUpdateOK, error) + + DcimPowerPortTemplatesCreate(params *DcimPowerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesCreateCreated, error) + + DcimPowerPortTemplatesDelete(params *DcimPowerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesDeleteNoContent, error) + + DcimPowerPortTemplatesList(params *DcimPowerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesListOK, error) + + DcimPowerPortTemplatesPartialUpdate(params *DcimPowerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesPartialUpdateOK, error) + + DcimPowerPortTemplatesRead(params *DcimPowerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesReadOK, error) + + DcimPowerPortTemplatesUpdate(params *DcimPowerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesUpdateOK, error) + + DcimPowerPortsCreate(params *DcimPowerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsCreateCreated, error) + + DcimPowerPortsDelete(params *DcimPowerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsDeleteNoContent, error) + + DcimPowerPortsList(params *DcimPowerPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsListOK, error) + + DcimPowerPortsPartialUpdate(params *DcimPowerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsPartialUpdateOK, error) + + DcimPowerPortsRead(params *DcimPowerPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsReadOK, error) + + DcimPowerPortsTrace(params *DcimPowerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsTraceOK, error) + + DcimPowerPortsUpdate(params *DcimPowerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsUpdateOK, error) + + DcimRackGroupsCreate(params *DcimRackGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsCreateCreated, error) + + DcimRackGroupsDelete(params *DcimRackGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsDeleteNoContent, error) + + DcimRackGroupsList(params *DcimRackGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsListOK, error) + + DcimRackGroupsPartialUpdate(params *DcimRackGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsPartialUpdateOK, error) + + DcimRackGroupsRead(params *DcimRackGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsReadOK, error) + + DcimRackGroupsUpdate(params *DcimRackGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsUpdateOK, error) + + DcimRackReservationsCreate(params *DcimRackReservationsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsCreateCreated, error) + + DcimRackReservationsDelete(params *DcimRackReservationsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsDeleteNoContent, error) + + DcimRackReservationsList(params *DcimRackReservationsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsListOK, error) + + DcimRackReservationsPartialUpdate(params *DcimRackReservationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsPartialUpdateOK, error) + + DcimRackReservationsRead(params *DcimRackReservationsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsReadOK, error) + + DcimRackReservationsUpdate(params *DcimRackReservationsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsUpdateOK, error) + + DcimRackRolesCreate(params *DcimRackRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesCreateCreated, error) + + DcimRackRolesDelete(params *DcimRackRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesDeleteNoContent, error) + + DcimRackRolesList(params *DcimRackRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesListOK, error) + + DcimRackRolesPartialUpdate(params *DcimRackRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesPartialUpdateOK, error) + + DcimRackRolesRead(params *DcimRackRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesReadOK, error) + + DcimRackRolesUpdate(params *DcimRackRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesUpdateOK, error) + + DcimRacksCreate(params *DcimRacksCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksCreateCreated, error) + + DcimRacksDelete(params *DcimRacksDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksDeleteNoContent, error) + + DcimRacksElevation(params *DcimRacksElevationParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksElevationOK, error) + + DcimRacksList(params *DcimRacksListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksListOK, error) + + DcimRacksPartialUpdate(params *DcimRacksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksPartialUpdateOK, error) + + DcimRacksRead(params *DcimRacksReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksReadOK, error) + + DcimRacksUpdate(params *DcimRacksUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksUpdateOK, error) + + DcimRearPortTemplatesCreate(params *DcimRearPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesCreateCreated, error) + + DcimRearPortTemplatesDelete(params *DcimRearPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesDeleteNoContent, error) + + DcimRearPortTemplatesList(params *DcimRearPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesListOK, error) + + DcimRearPortTemplatesPartialUpdate(params *DcimRearPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesPartialUpdateOK, error) + + DcimRearPortTemplatesRead(params *DcimRearPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesReadOK, error) + + DcimRearPortTemplatesUpdate(params *DcimRearPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesUpdateOK, error) + + DcimRearPortsCreate(params *DcimRearPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsCreateCreated, error) + + DcimRearPortsDelete(params *DcimRearPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsDeleteNoContent, error) + + DcimRearPortsList(params *DcimRearPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsListOK, error) + + DcimRearPortsPartialUpdate(params *DcimRearPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsPartialUpdateOK, error) + + DcimRearPortsRead(params *DcimRearPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsReadOK, error) + + DcimRearPortsUpdate(params *DcimRearPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsUpdateOK, error) + + DcimRegionsCreate(params *DcimRegionsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsCreateCreated, error) + + DcimRegionsDelete(params *DcimRegionsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsDeleteNoContent, error) + + DcimRegionsList(params *DcimRegionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsListOK, error) + + DcimRegionsPartialUpdate(params *DcimRegionsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsPartialUpdateOK, error) + + DcimRegionsRead(params *DcimRegionsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsReadOK, error) + + DcimRegionsUpdate(params *DcimRegionsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsUpdateOK, error) + + DcimSitesCreate(params *DcimSitesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesCreateCreated, error) + + DcimSitesDelete(params *DcimSitesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesDeleteNoContent, error) + + DcimSitesGraphs(params *DcimSitesGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesGraphsOK, error) + + DcimSitesList(params *DcimSitesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesListOK, error) + + DcimSitesPartialUpdate(params *DcimSitesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesPartialUpdateOK, error) + + DcimSitesRead(params *DcimSitesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesReadOK, error) + + DcimSitesUpdate(params *DcimSitesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesUpdateOK, error) + + DcimVirtualChassisCreate(params *DcimVirtualChassisCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisCreateCreated, error) + + DcimVirtualChassisDelete(params *DcimVirtualChassisDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisDeleteNoContent, error) + + DcimVirtualChassisList(params *DcimVirtualChassisListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisListOK, error) + + DcimVirtualChassisPartialUpdate(params *DcimVirtualChassisPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisPartialUpdateOK, error) + + DcimVirtualChassisRead(params *DcimVirtualChassisReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisReadOK, error) + + DcimVirtualChassisUpdate(params *DcimVirtualChassisUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -DcimCablesCreate dcim cables create API + DcimCablesCreate dcim cables create API */ func (a *Client) DcimCablesCreate(params *DcimCablesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesCreateCreated, error) { // TODO: Validate the params before sending @@ -147,7 +493,7 @@ func (a *Client) DcimCablesCreate(params *DcimCablesCreateParams, authInfo runti } /* -DcimCablesDelete dcim cables delete API + DcimCablesDelete dcim cables delete API */ func (a *Client) DcimCablesDelete(params *DcimCablesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -182,7 +528,7 @@ func (a *Client) DcimCablesDelete(params *DcimCablesDeleteParams, authInfo runti } /* -DcimCablesList Call to super to allow for caching + DcimCablesList Call to super to allow for caching */ func (a *Client) DcimCablesList(params *DcimCablesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesListOK, error) { // TODO: Validate the params before sending @@ -217,7 +563,7 @@ func (a *Client) DcimCablesList(params *DcimCablesListParams, authInfo runtime.C } /* -DcimCablesPartialUpdate dcim cables partial update API + DcimCablesPartialUpdate dcim cables partial update API */ func (a *Client) DcimCablesPartialUpdate(params *DcimCablesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -252,7 +598,7 @@ func (a *Client) DcimCablesPartialUpdate(params *DcimCablesPartialUpdateParams, } /* -DcimCablesRead Call to super to allow for caching + DcimCablesRead Call to super to allow for caching */ func (a *Client) DcimCablesRead(params *DcimCablesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesReadOK, error) { // TODO: Validate the params before sending @@ -287,7 +633,7 @@ func (a *Client) DcimCablesRead(params *DcimCablesReadParams, authInfo runtime.C } /* -DcimCablesUpdate dcim cables update API + DcimCablesUpdate dcim cables update API */ func (a *Client) DcimCablesUpdate(params *DcimCablesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimCablesUpdateOK, error) { // TODO: Validate the params before sending @@ -322,7 +668,7 @@ func (a *Client) DcimCablesUpdate(params *DcimCablesUpdateParams, authInfo runti } /* -DcimConnectedDeviceList This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer + DcimConnectedDeviceList This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors via a protocol such as LLDP. Two query parameters must be included in the request: @@ -362,7 +708,7 @@ func (a *Client) DcimConnectedDeviceList(params *DcimConnectedDeviceListParams, } /* -DcimConsoleConnectionsList dcim console connections list API + DcimConsoleConnectionsList dcim console connections list API */ func (a *Client) DcimConsoleConnectionsList(params *DcimConsoleConnectionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleConnectionsListOK, error) { // TODO: Validate the params before sending @@ -397,7 +743,7 @@ func (a *Client) DcimConsoleConnectionsList(params *DcimConsoleConnectionsListPa } /* -DcimConsolePortTemplatesCreate dcim console port templates create API + DcimConsolePortTemplatesCreate dcim console port templates create API */ func (a *Client) DcimConsolePortTemplatesCreate(params *DcimConsolePortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -432,7 +778,7 @@ func (a *Client) DcimConsolePortTemplatesCreate(params *DcimConsolePortTemplates } /* -DcimConsolePortTemplatesDelete dcim console port templates delete API + DcimConsolePortTemplatesDelete dcim console port templates delete API */ func (a *Client) DcimConsolePortTemplatesDelete(params *DcimConsolePortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -467,7 +813,7 @@ func (a *Client) DcimConsolePortTemplatesDelete(params *DcimConsolePortTemplates } /* -DcimConsolePortTemplatesList Call to super to allow for caching + DcimConsolePortTemplatesList Call to super to allow for caching */ func (a *Client) DcimConsolePortTemplatesList(params *DcimConsolePortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesListOK, error) { // TODO: Validate the params before sending @@ -502,7 +848,7 @@ func (a *Client) DcimConsolePortTemplatesList(params *DcimConsolePortTemplatesLi } /* -DcimConsolePortTemplatesPartialUpdate dcim console port templates partial update API + DcimConsolePortTemplatesPartialUpdate dcim console port templates partial update API */ func (a *Client) DcimConsolePortTemplatesPartialUpdate(params *DcimConsolePortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -537,7 +883,7 @@ func (a *Client) DcimConsolePortTemplatesPartialUpdate(params *DcimConsolePortTe } /* -DcimConsolePortTemplatesRead Call to super to allow for caching + DcimConsolePortTemplatesRead Call to super to allow for caching */ func (a *Client) DcimConsolePortTemplatesRead(params *DcimConsolePortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -572,7 +918,7 @@ func (a *Client) DcimConsolePortTemplatesRead(params *DcimConsolePortTemplatesRe } /* -DcimConsolePortTemplatesUpdate dcim console port templates update API + DcimConsolePortTemplatesUpdate dcim console port templates update API */ func (a *Client) DcimConsolePortTemplatesUpdate(params *DcimConsolePortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -607,7 +953,7 @@ func (a *Client) DcimConsolePortTemplatesUpdate(params *DcimConsolePortTemplates } /* -DcimConsolePortsCreate dcim console ports create API + DcimConsolePortsCreate dcim console ports create API */ func (a *Client) DcimConsolePortsCreate(params *DcimConsolePortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsCreateCreated, error) { // TODO: Validate the params before sending @@ -642,7 +988,7 @@ func (a *Client) DcimConsolePortsCreate(params *DcimConsolePortsCreateParams, au } /* -DcimConsolePortsDelete dcim console ports delete API + DcimConsolePortsDelete dcim console ports delete API */ func (a *Client) DcimConsolePortsDelete(params *DcimConsolePortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -677,7 +1023,7 @@ func (a *Client) DcimConsolePortsDelete(params *DcimConsolePortsDeleteParams, au } /* -DcimConsolePortsList Call to super to allow for caching + DcimConsolePortsList Call to super to allow for caching */ func (a *Client) DcimConsolePortsList(params *DcimConsolePortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsListOK, error) { // TODO: Validate the params before sending @@ -712,7 +1058,7 @@ func (a *Client) DcimConsolePortsList(params *DcimConsolePortsListParams, authIn } /* -DcimConsolePortsPartialUpdate dcim console ports partial update API + DcimConsolePortsPartialUpdate dcim console ports partial update API */ func (a *Client) DcimConsolePortsPartialUpdate(params *DcimConsolePortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -747,7 +1093,7 @@ func (a *Client) DcimConsolePortsPartialUpdate(params *DcimConsolePortsPartialUp } /* -DcimConsolePortsRead Call to super to allow for caching + DcimConsolePortsRead Call to super to allow for caching */ func (a *Client) DcimConsolePortsRead(params *DcimConsolePortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsReadOK, error) { // TODO: Validate the params before sending @@ -782,7 +1128,7 @@ func (a *Client) DcimConsolePortsRead(params *DcimConsolePortsReadParams, authIn } /* -DcimConsolePortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). + DcimConsolePortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). */ func (a *Client) DcimConsolePortsTrace(params *DcimConsolePortsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsTraceOK, error) { // TODO: Validate the params before sending @@ -817,7 +1163,7 @@ func (a *Client) DcimConsolePortsTrace(params *DcimConsolePortsTraceParams, auth } /* -DcimConsolePortsUpdate dcim console ports update API + DcimConsolePortsUpdate dcim console ports update API */ func (a *Client) DcimConsolePortsUpdate(params *DcimConsolePortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsolePortsUpdateOK, error) { // TODO: Validate the params before sending @@ -852,7 +1198,7 @@ func (a *Client) DcimConsolePortsUpdate(params *DcimConsolePortsUpdateParams, au } /* -DcimConsoleServerPortTemplatesCreate dcim console server port templates create API + DcimConsoleServerPortTemplatesCreate dcim console server port templates create API */ func (a *Client) DcimConsoleServerPortTemplatesCreate(params *DcimConsoleServerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -887,7 +1233,7 @@ func (a *Client) DcimConsoleServerPortTemplatesCreate(params *DcimConsoleServerP } /* -DcimConsoleServerPortTemplatesDelete dcim console server port templates delete API + DcimConsoleServerPortTemplatesDelete dcim console server port templates delete API */ func (a *Client) DcimConsoleServerPortTemplatesDelete(params *DcimConsoleServerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -922,7 +1268,7 @@ func (a *Client) DcimConsoleServerPortTemplatesDelete(params *DcimConsoleServerP } /* -DcimConsoleServerPortTemplatesList Call to super to allow for caching + DcimConsoleServerPortTemplatesList Call to super to allow for caching */ func (a *Client) DcimConsoleServerPortTemplatesList(params *DcimConsoleServerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesListOK, error) { // TODO: Validate the params before sending @@ -957,7 +1303,7 @@ func (a *Client) DcimConsoleServerPortTemplatesList(params *DcimConsoleServerPor } /* -DcimConsoleServerPortTemplatesPartialUpdate dcim console server port templates partial update API + DcimConsoleServerPortTemplatesPartialUpdate dcim console server port templates partial update API */ func (a *Client) DcimConsoleServerPortTemplatesPartialUpdate(params *DcimConsoleServerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -992,7 +1338,7 @@ func (a *Client) DcimConsoleServerPortTemplatesPartialUpdate(params *DcimConsole } /* -DcimConsoleServerPortTemplatesRead Call to super to allow for caching + DcimConsoleServerPortTemplatesRead Call to super to allow for caching */ func (a *Client) DcimConsoleServerPortTemplatesRead(params *DcimConsoleServerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -1027,7 +1373,7 @@ func (a *Client) DcimConsoleServerPortTemplatesRead(params *DcimConsoleServerPor } /* -DcimConsoleServerPortTemplatesUpdate dcim console server port templates update API + DcimConsoleServerPortTemplatesUpdate dcim console server port templates update API */ func (a *Client) DcimConsoleServerPortTemplatesUpdate(params *DcimConsoleServerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -1062,7 +1408,7 @@ func (a *Client) DcimConsoleServerPortTemplatesUpdate(params *DcimConsoleServerP } /* -DcimConsoleServerPortsCreate dcim console server ports create API + DcimConsoleServerPortsCreate dcim console server ports create API */ func (a *Client) DcimConsoleServerPortsCreate(params *DcimConsoleServerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsCreateCreated, error) { // TODO: Validate the params before sending @@ -1097,7 +1443,7 @@ func (a *Client) DcimConsoleServerPortsCreate(params *DcimConsoleServerPortsCrea } /* -DcimConsoleServerPortsDelete dcim console server ports delete API + DcimConsoleServerPortsDelete dcim console server ports delete API */ func (a *Client) DcimConsoleServerPortsDelete(params *DcimConsoleServerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1132,7 +1478,7 @@ func (a *Client) DcimConsoleServerPortsDelete(params *DcimConsoleServerPortsDele } /* -DcimConsoleServerPortsList Call to super to allow for caching + DcimConsoleServerPortsList Call to super to allow for caching */ func (a *Client) DcimConsoleServerPortsList(params *DcimConsoleServerPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsListOK, error) { // TODO: Validate the params before sending @@ -1167,7 +1513,7 @@ func (a *Client) DcimConsoleServerPortsList(params *DcimConsoleServerPortsListPa } /* -DcimConsoleServerPortsPartialUpdate dcim console server ports partial update API + DcimConsoleServerPortsPartialUpdate dcim console server ports partial update API */ func (a *Client) DcimConsoleServerPortsPartialUpdate(params *DcimConsoleServerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1202,7 +1548,7 @@ func (a *Client) DcimConsoleServerPortsPartialUpdate(params *DcimConsoleServerPo } /* -DcimConsoleServerPortsRead Call to super to allow for caching + DcimConsoleServerPortsRead Call to super to allow for caching */ func (a *Client) DcimConsoleServerPortsRead(params *DcimConsoleServerPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsReadOK, error) { // TODO: Validate the params before sending @@ -1237,7 +1583,7 @@ func (a *Client) DcimConsoleServerPortsRead(params *DcimConsoleServerPortsReadPa } /* -DcimConsoleServerPortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). + DcimConsoleServerPortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). */ func (a *Client) DcimConsoleServerPortsTrace(params *DcimConsoleServerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsTraceOK, error) { // TODO: Validate the params before sending @@ -1272,7 +1618,7 @@ func (a *Client) DcimConsoleServerPortsTrace(params *DcimConsoleServerPortsTrace } /* -DcimConsoleServerPortsUpdate dcim console server ports update API + DcimConsoleServerPortsUpdate dcim console server ports update API */ func (a *Client) DcimConsoleServerPortsUpdate(params *DcimConsoleServerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimConsoleServerPortsUpdateOK, error) { // TODO: Validate the params before sending @@ -1307,7 +1653,7 @@ func (a *Client) DcimConsoleServerPortsUpdate(params *DcimConsoleServerPortsUpda } /* -DcimDeviceBayTemplatesCreate dcim device bay templates create API + DcimDeviceBayTemplatesCreate dcim device bay templates create API */ func (a *Client) DcimDeviceBayTemplatesCreate(params *DcimDeviceBayTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -1342,7 +1688,7 @@ func (a *Client) DcimDeviceBayTemplatesCreate(params *DcimDeviceBayTemplatesCrea } /* -DcimDeviceBayTemplatesDelete dcim device bay templates delete API + DcimDeviceBayTemplatesDelete dcim device bay templates delete API */ func (a *Client) DcimDeviceBayTemplatesDelete(params *DcimDeviceBayTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1377,7 +1723,7 @@ func (a *Client) DcimDeviceBayTemplatesDelete(params *DcimDeviceBayTemplatesDele } /* -DcimDeviceBayTemplatesList Call to super to allow for caching + DcimDeviceBayTemplatesList Call to super to allow for caching */ func (a *Client) DcimDeviceBayTemplatesList(params *DcimDeviceBayTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesListOK, error) { // TODO: Validate the params before sending @@ -1412,7 +1758,7 @@ func (a *Client) DcimDeviceBayTemplatesList(params *DcimDeviceBayTemplatesListPa } /* -DcimDeviceBayTemplatesPartialUpdate dcim device bay templates partial update API + DcimDeviceBayTemplatesPartialUpdate dcim device bay templates partial update API */ func (a *Client) DcimDeviceBayTemplatesPartialUpdate(params *DcimDeviceBayTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1447,7 +1793,7 @@ func (a *Client) DcimDeviceBayTemplatesPartialUpdate(params *DcimDeviceBayTempla } /* -DcimDeviceBayTemplatesRead Call to super to allow for caching + DcimDeviceBayTemplatesRead Call to super to allow for caching */ func (a *Client) DcimDeviceBayTemplatesRead(params *DcimDeviceBayTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -1482,7 +1828,7 @@ func (a *Client) DcimDeviceBayTemplatesRead(params *DcimDeviceBayTemplatesReadPa } /* -DcimDeviceBayTemplatesUpdate dcim device bay templates update API + DcimDeviceBayTemplatesUpdate dcim device bay templates update API */ func (a *Client) DcimDeviceBayTemplatesUpdate(params *DcimDeviceBayTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBayTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -1517,7 +1863,7 @@ func (a *Client) DcimDeviceBayTemplatesUpdate(params *DcimDeviceBayTemplatesUpda } /* -DcimDeviceBaysCreate dcim device bays create API + DcimDeviceBaysCreate dcim device bays create API */ func (a *Client) DcimDeviceBaysCreate(params *DcimDeviceBaysCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysCreateCreated, error) { // TODO: Validate the params before sending @@ -1552,7 +1898,7 @@ func (a *Client) DcimDeviceBaysCreate(params *DcimDeviceBaysCreateParams, authIn } /* -DcimDeviceBaysDelete dcim device bays delete API + DcimDeviceBaysDelete dcim device bays delete API */ func (a *Client) DcimDeviceBaysDelete(params *DcimDeviceBaysDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1587,7 +1933,7 @@ func (a *Client) DcimDeviceBaysDelete(params *DcimDeviceBaysDeleteParams, authIn } /* -DcimDeviceBaysList Call to super to allow for caching + DcimDeviceBaysList Call to super to allow for caching */ func (a *Client) DcimDeviceBaysList(params *DcimDeviceBaysListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysListOK, error) { // TODO: Validate the params before sending @@ -1622,7 +1968,7 @@ func (a *Client) DcimDeviceBaysList(params *DcimDeviceBaysListParams, authInfo r } /* -DcimDeviceBaysPartialUpdate dcim device bays partial update API + DcimDeviceBaysPartialUpdate dcim device bays partial update API */ func (a *Client) DcimDeviceBaysPartialUpdate(params *DcimDeviceBaysPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1657,7 +2003,7 @@ func (a *Client) DcimDeviceBaysPartialUpdate(params *DcimDeviceBaysPartialUpdate } /* -DcimDeviceBaysRead Call to super to allow for caching + DcimDeviceBaysRead Call to super to allow for caching */ func (a *Client) DcimDeviceBaysRead(params *DcimDeviceBaysReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysReadOK, error) { // TODO: Validate the params before sending @@ -1692,7 +2038,7 @@ func (a *Client) DcimDeviceBaysRead(params *DcimDeviceBaysReadParams, authInfo r } /* -DcimDeviceBaysUpdate dcim device bays update API + DcimDeviceBaysUpdate dcim device bays update API */ func (a *Client) DcimDeviceBaysUpdate(params *DcimDeviceBaysUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceBaysUpdateOK, error) { // TODO: Validate the params before sending @@ -1727,7 +2073,7 @@ func (a *Client) DcimDeviceBaysUpdate(params *DcimDeviceBaysUpdateParams, authIn } /* -DcimDeviceRolesCreate dcim device roles create API + DcimDeviceRolesCreate dcim device roles create API */ func (a *Client) DcimDeviceRolesCreate(params *DcimDeviceRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesCreateCreated, error) { // TODO: Validate the params before sending @@ -1762,7 +2108,7 @@ func (a *Client) DcimDeviceRolesCreate(params *DcimDeviceRolesCreateParams, auth } /* -DcimDeviceRolesDelete dcim device roles delete API + DcimDeviceRolesDelete dcim device roles delete API */ func (a *Client) DcimDeviceRolesDelete(params *DcimDeviceRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1797,7 +2143,7 @@ func (a *Client) DcimDeviceRolesDelete(params *DcimDeviceRolesDeleteParams, auth } /* -DcimDeviceRolesList Call to super to allow for caching + DcimDeviceRolesList Call to super to allow for caching */ func (a *Client) DcimDeviceRolesList(params *DcimDeviceRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesListOK, error) { // TODO: Validate the params before sending @@ -1832,7 +2178,7 @@ func (a *Client) DcimDeviceRolesList(params *DcimDeviceRolesListParams, authInfo } /* -DcimDeviceRolesPartialUpdate dcim device roles partial update API + DcimDeviceRolesPartialUpdate dcim device roles partial update API */ func (a *Client) DcimDeviceRolesPartialUpdate(params *DcimDeviceRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1867,7 +2213,7 @@ func (a *Client) DcimDeviceRolesPartialUpdate(params *DcimDeviceRolesPartialUpda } /* -DcimDeviceRolesRead Call to super to allow for caching + DcimDeviceRolesRead Call to super to allow for caching */ func (a *Client) DcimDeviceRolesRead(params *DcimDeviceRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesReadOK, error) { // TODO: Validate the params before sending @@ -1902,7 +2248,7 @@ func (a *Client) DcimDeviceRolesRead(params *DcimDeviceRolesReadParams, authInfo } /* -DcimDeviceRolesUpdate dcim device roles update API + DcimDeviceRolesUpdate dcim device roles update API */ func (a *Client) DcimDeviceRolesUpdate(params *DcimDeviceRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceRolesUpdateOK, error) { // TODO: Validate the params before sending @@ -1937,7 +2283,7 @@ func (a *Client) DcimDeviceRolesUpdate(params *DcimDeviceRolesUpdateParams, auth } /* -DcimDeviceTypesCreate dcim device types create API + DcimDeviceTypesCreate dcim device types create API */ func (a *Client) DcimDeviceTypesCreate(params *DcimDeviceTypesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesCreateCreated, error) { // TODO: Validate the params before sending @@ -1972,7 +2318,7 @@ func (a *Client) DcimDeviceTypesCreate(params *DcimDeviceTypesCreateParams, auth } /* -DcimDeviceTypesDelete dcim device types delete API + DcimDeviceTypesDelete dcim device types delete API */ func (a *Client) DcimDeviceTypesDelete(params *DcimDeviceTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -2007,7 +2353,7 @@ func (a *Client) DcimDeviceTypesDelete(params *DcimDeviceTypesDeleteParams, auth } /* -DcimDeviceTypesList Call to super to allow for caching + DcimDeviceTypesList Call to super to allow for caching */ func (a *Client) DcimDeviceTypesList(params *DcimDeviceTypesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesListOK, error) { // TODO: Validate the params before sending @@ -2042,7 +2388,7 @@ func (a *Client) DcimDeviceTypesList(params *DcimDeviceTypesListParams, authInfo } /* -DcimDeviceTypesPartialUpdate dcim device types partial update API + DcimDeviceTypesPartialUpdate dcim device types partial update API */ func (a *Client) DcimDeviceTypesPartialUpdate(params *DcimDeviceTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -2077,7 +2423,7 @@ func (a *Client) DcimDeviceTypesPartialUpdate(params *DcimDeviceTypesPartialUpda } /* -DcimDeviceTypesRead Call to super to allow for caching + DcimDeviceTypesRead Call to super to allow for caching */ func (a *Client) DcimDeviceTypesRead(params *DcimDeviceTypesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesReadOK, error) { // TODO: Validate the params before sending @@ -2112,7 +2458,7 @@ func (a *Client) DcimDeviceTypesRead(params *DcimDeviceTypesReadParams, authInfo } /* -DcimDeviceTypesUpdate dcim device types update API + DcimDeviceTypesUpdate dcim device types update API */ func (a *Client) DcimDeviceTypesUpdate(params *DcimDeviceTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDeviceTypesUpdateOK, error) { // TODO: Validate the params before sending @@ -2147,7 +2493,7 @@ func (a *Client) DcimDeviceTypesUpdate(params *DcimDeviceTypesUpdateParams, auth } /* -DcimDevicesCreate dcim devices create API + DcimDevicesCreate dcim devices create API */ func (a *Client) DcimDevicesCreate(params *DcimDevicesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesCreateCreated, error) { // TODO: Validate the params before sending @@ -2182,7 +2528,7 @@ func (a *Client) DcimDevicesCreate(params *DcimDevicesCreateParams, authInfo run } /* -DcimDevicesDelete dcim devices delete API + DcimDevicesDelete dcim devices delete API */ func (a *Client) DcimDevicesDelete(params *DcimDevicesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -2217,7 +2563,7 @@ func (a *Client) DcimDevicesDelete(params *DcimDevicesDeleteParams, authInfo run } /* -DcimDevicesGraphs A convenience method for rendering graphs for a particular Device. + DcimDevicesGraphs A convenience method for rendering graphs for a particular Device. */ func (a *Client) DcimDevicesGraphs(params *DcimDevicesGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesGraphsOK, error) { // TODO: Validate the params before sending @@ -2252,7 +2598,7 @@ func (a *Client) DcimDevicesGraphs(params *DcimDevicesGraphsParams, authInfo run } /* -DcimDevicesList Call to super to allow for caching + DcimDevicesList Call to super to allow for caching */ func (a *Client) DcimDevicesList(params *DcimDevicesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesListOK, error) { // TODO: Validate the params before sending @@ -2287,7 +2633,7 @@ func (a *Client) DcimDevicesList(params *DcimDevicesListParams, authInfo runtime } /* -DcimDevicesNapalm Execute a NAPALM method on a Device + DcimDevicesNapalm Execute a NAPALM method on a Device */ func (a *Client) DcimDevicesNapalm(params *DcimDevicesNapalmParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesNapalmOK, error) { // TODO: Validate the params before sending @@ -2322,7 +2668,7 @@ func (a *Client) DcimDevicesNapalm(params *DcimDevicesNapalmParams, authInfo run } /* -DcimDevicesPartialUpdate dcim devices partial update API + DcimDevicesPartialUpdate dcim devices partial update API */ func (a *Client) DcimDevicesPartialUpdate(params *DcimDevicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -2357,7 +2703,7 @@ func (a *Client) DcimDevicesPartialUpdate(params *DcimDevicesPartialUpdateParams } /* -DcimDevicesRead Call to super to allow for caching + DcimDevicesRead Call to super to allow for caching */ func (a *Client) DcimDevicesRead(params *DcimDevicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesReadOK, error) { // TODO: Validate the params before sending @@ -2392,7 +2738,7 @@ func (a *Client) DcimDevicesRead(params *DcimDevicesReadParams, authInfo runtime } /* -DcimDevicesUpdate dcim devices update API + DcimDevicesUpdate dcim devices update API */ func (a *Client) DcimDevicesUpdate(params *DcimDevicesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimDevicesUpdateOK, error) { // TODO: Validate the params before sending @@ -2427,7 +2773,7 @@ func (a *Client) DcimDevicesUpdate(params *DcimDevicesUpdateParams, authInfo run } /* -DcimFrontPortTemplatesCreate dcim front port templates create API + DcimFrontPortTemplatesCreate dcim front port templates create API */ func (a *Client) DcimFrontPortTemplatesCreate(params *DcimFrontPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -2462,7 +2808,7 @@ func (a *Client) DcimFrontPortTemplatesCreate(params *DcimFrontPortTemplatesCrea } /* -DcimFrontPortTemplatesDelete dcim front port templates delete API + DcimFrontPortTemplatesDelete dcim front port templates delete API */ func (a *Client) DcimFrontPortTemplatesDelete(params *DcimFrontPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -2497,7 +2843,7 @@ func (a *Client) DcimFrontPortTemplatesDelete(params *DcimFrontPortTemplatesDele } /* -DcimFrontPortTemplatesList Call to super to allow for caching + DcimFrontPortTemplatesList Call to super to allow for caching */ func (a *Client) DcimFrontPortTemplatesList(params *DcimFrontPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesListOK, error) { // TODO: Validate the params before sending @@ -2532,7 +2878,7 @@ func (a *Client) DcimFrontPortTemplatesList(params *DcimFrontPortTemplatesListPa } /* -DcimFrontPortTemplatesPartialUpdate dcim front port templates partial update API + DcimFrontPortTemplatesPartialUpdate dcim front port templates partial update API */ func (a *Client) DcimFrontPortTemplatesPartialUpdate(params *DcimFrontPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -2567,7 +2913,7 @@ func (a *Client) DcimFrontPortTemplatesPartialUpdate(params *DcimFrontPortTempla } /* -DcimFrontPortTemplatesRead Call to super to allow for caching + DcimFrontPortTemplatesRead Call to super to allow for caching */ func (a *Client) DcimFrontPortTemplatesRead(params *DcimFrontPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -2602,7 +2948,7 @@ func (a *Client) DcimFrontPortTemplatesRead(params *DcimFrontPortTemplatesReadPa } /* -DcimFrontPortTemplatesUpdate dcim front port templates update API + DcimFrontPortTemplatesUpdate dcim front port templates update API */ func (a *Client) DcimFrontPortTemplatesUpdate(params *DcimFrontPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -2637,7 +2983,7 @@ func (a *Client) DcimFrontPortTemplatesUpdate(params *DcimFrontPortTemplatesUpda } /* -DcimFrontPortsCreate dcim front ports create API + DcimFrontPortsCreate dcim front ports create API */ func (a *Client) DcimFrontPortsCreate(params *DcimFrontPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsCreateCreated, error) { // TODO: Validate the params before sending @@ -2672,7 +3018,7 @@ func (a *Client) DcimFrontPortsCreate(params *DcimFrontPortsCreateParams, authIn } /* -DcimFrontPortsDelete dcim front ports delete API + DcimFrontPortsDelete dcim front ports delete API */ func (a *Client) DcimFrontPortsDelete(params *DcimFrontPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -2707,7 +3053,7 @@ func (a *Client) DcimFrontPortsDelete(params *DcimFrontPortsDeleteParams, authIn } /* -DcimFrontPortsList Call to super to allow for caching + DcimFrontPortsList Call to super to allow for caching */ func (a *Client) DcimFrontPortsList(params *DcimFrontPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsListOK, error) { // TODO: Validate the params before sending @@ -2742,7 +3088,7 @@ func (a *Client) DcimFrontPortsList(params *DcimFrontPortsListParams, authInfo r } /* -DcimFrontPortsPartialUpdate dcim front ports partial update API + DcimFrontPortsPartialUpdate dcim front ports partial update API */ func (a *Client) DcimFrontPortsPartialUpdate(params *DcimFrontPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -2777,7 +3123,7 @@ func (a *Client) DcimFrontPortsPartialUpdate(params *DcimFrontPortsPartialUpdate } /* -DcimFrontPortsRead Call to super to allow for caching + DcimFrontPortsRead Call to super to allow for caching */ func (a *Client) DcimFrontPortsRead(params *DcimFrontPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsReadOK, error) { // TODO: Validate the params before sending @@ -2812,7 +3158,7 @@ func (a *Client) DcimFrontPortsRead(params *DcimFrontPortsReadParams, authInfo r } /* -DcimFrontPortsUpdate dcim front ports update API + DcimFrontPortsUpdate dcim front ports update API */ func (a *Client) DcimFrontPortsUpdate(params *DcimFrontPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimFrontPortsUpdateOK, error) { // TODO: Validate the params before sending @@ -2847,7 +3193,7 @@ func (a *Client) DcimFrontPortsUpdate(params *DcimFrontPortsUpdateParams, authIn } /* -DcimInterfaceConnectionsList dcim interface connections list API + DcimInterfaceConnectionsList dcim interface connections list API */ func (a *Client) DcimInterfaceConnectionsList(params *DcimInterfaceConnectionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceConnectionsListOK, error) { // TODO: Validate the params before sending @@ -2882,7 +3228,7 @@ func (a *Client) DcimInterfaceConnectionsList(params *DcimInterfaceConnectionsLi } /* -DcimInterfaceTemplatesCreate dcim interface templates create API + DcimInterfaceTemplatesCreate dcim interface templates create API */ func (a *Client) DcimInterfaceTemplatesCreate(params *DcimInterfaceTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -2917,7 +3263,7 @@ func (a *Client) DcimInterfaceTemplatesCreate(params *DcimInterfaceTemplatesCrea } /* -DcimInterfaceTemplatesDelete dcim interface templates delete API + DcimInterfaceTemplatesDelete dcim interface templates delete API */ func (a *Client) DcimInterfaceTemplatesDelete(params *DcimInterfaceTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -2952,7 +3298,7 @@ func (a *Client) DcimInterfaceTemplatesDelete(params *DcimInterfaceTemplatesDele } /* -DcimInterfaceTemplatesList Call to super to allow for caching + DcimInterfaceTemplatesList Call to super to allow for caching */ func (a *Client) DcimInterfaceTemplatesList(params *DcimInterfaceTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesListOK, error) { // TODO: Validate the params before sending @@ -2987,7 +3333,7 @@ func (a *Client) DcimInterfaceTemplatesList(params *DcimInterfaceTemplatesListPa } /* -DcimInterfaceTemplatesPartialUpdate dcim interface templates partial update API + DcimInterfaceTemplatesPartialUpdate dcim interface templates partial update API */ func (a *Client) DcimInterfaceTemplatesPartialUpdate(params *DcimInterfaceTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -3022,7 +3368,7 @@ func (a *Client) DcimInterfaceTemplatesPartialUpdate(params *DcimInterfaceTempla } /* -DcimInterfaceTemplatesRead Call to super to allow for caching + DcimInterfaceTemplatesRead Call to super to allow for caching */ func (a *Client) DcimInterfaceTemplatesRead(params *DcimInterfaceTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -3057,7 +3403,7 @@ func (a *Client) DcimInterfaceTemplatesRead(params *DcimInterfaceTemplatesReadPa } /* -DcimInterfaceTemplatesUpdate dcim interface templates update API + DcimInterfaceTemplatesUpdate dcim interface templates update API */ func (a *Client) DcimInterfaceTemplatesUpdate(params *DcimInterfaceTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfaceTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -3092,7 +3438,7 @@ func (a *Client) DcimInterfaceTemplatesUpdate(params *DcimInterfaceTemplatesUpda } /* -DcimInterfacesCreate dcim interfaces create API + DcimInterfacesCreate dcim interfaces create API */ func (a *Client) DcimInterfacesCreate(params *DcimInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesCreateCreated, error) { // TODO: Validate the params before sending @@ -3127,7 +3473,7 @@ func (a *Client) DcimInterfacesCreate(params *DcimInterfacesCreateParams, authIn } /* -DcimInterfacesDelete dcim interfaces delete API + DcimInterfacesDelete dcim interfaces delete API */ func (a *Client) DcimInterfacesDelete(params *DcimInterfacesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -3162,7 +3508,7 @@ func (a *Client) DcimInterfacesDelete(params *DcimInterfacesDeleteParams, authIn } /* -DcimInterfacesGraphs A convenience method for rendering graphs for a particular interface. + DcimInterfacesGraphs A convenience method for rendering graphs for a particular interface. */ func (a *Client) DcimInterfacesGraphs(params *DcimInterfacesGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesGraphsOK, error) { // TODO: Validate the params before sending @@ -3197,7 +3543,7 @@ func (a *Client) DcimInterfacesGraphs(params *DcimInterfacesGraphsParams, authIn } /* -DcimInterfacesList Call to super to allow for caching + DcimInterfacesList Call to super to allow for caching */ func (a *Client) DcimInterfacesList(params *DcimInterfacesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesListOK, error) { // TODO: Validate the params before sending @@ -3232,7 +3578,7 @@ func (a *Client) DcimInterfacesList(params *DcimInterfacesListParams, authInfo r } /* -DcimInterfacesPartialUpdate dcim interfaces partial update API + DcimInterfacesPartialUpdate dcim interfaces partial update API */ func (a *Client) DcimInterfacesPartialUpdate(params *DcimInterfacesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -3267,7 +3613,7 @@ func (a *Client) DcimInterfacesPartialUpdate(params *DcimInterfacesPartialUpdate } /* -DcimInterfacesRead Call to super to allow for caching + DcimInterfacesRead Call to super to allow for caching */ func (a *Client) DcimInterfacesRead(params *DcimInterfacesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesReadOK, error) { // TODO: Validate the params before sending @@ -3302,7 +3648,7 @@ func (a *Client) DcimInterfacesRead(params *DcimInterfacesReadParams, authInfo r } /* -DcimInterfacesTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). + DcimInterfacesTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). */ func (a *Client) DcimInterfacesTrace(params *DcimInterfacesTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesTraceOK, error) { // TODO: Validate the params before sending @@ -3337,7 +3683,7 @@ func (a *Client) DcimInterfacesTrace(params *DcimInterfacesTraceParams, authInfo } /* -DcimInterfacesUpdate dcim interfaces update API + DcimInterfacesUpdate dcim interfaces update API */ func (a *Client) DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInterfacesUpdateOK, error) { // TODO: Validate the params before sending @@ -3372,7 +3718,7 @@ func (a *Client) DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authIn } /* -DcimInventoryItemsCreate dcim inventory items create API + DcimInventoryItemsCreate dcim inventory items create API */ func (a *Client) DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsCreateCreated, error) { // TODO: Validate the params before sending @@ -3407,7 +3753,7 @@ func (a *Client) DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams } /* -DcimInventoryItemsDelete dcim inventory items delete API + DcimInventoryItemsDelete dcim inventory items delete API */ func (a *Client) DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -3442,7 +3788,7 @@ func (a *Client) DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams } /* -DcimInventoryItemsList Call to super to allow for caching + DcimInventoryItemsList Call to super to allow for caching */ func (a *Client) DcimInventoryItemsList(params *DcimInventoryItemsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsListOK, error) { // TODO: Validate the params before sending @@ -3477,7 +3823,7 @@ func (a *Client) DcimInventoryItemsList(params *DcimInventoryItemsListParams, au } /* -DcimInventoryItemsPartialUpdate dcim inventory items partial update API + DcimInventoryItemsPartialUpdate dcim inventory items partial update API */ func (a *Client) DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -3512,7 +3858,7 @@ func (a *Client) DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsParti } /* -DcimInventoryItemsRead Call to super to allow for caching + DcimInventoryItemsRead Call to super to allow for caching */ func (a *Client) DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsReadOK, error) { // TODO: Validate the params before sending @@ -3547,7 +3893,7 @@ func (a *Client) DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, au } /* -DcimInventoryItemsUpdate dcim inventory items update API + DcimInventoryItemsUpdate dcim inventory items update API */ func (a *Client) DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimInventoryItemsUpdateOK, error) { // TODO: Validate the params before sending @@ -3582,7 +3928,7 @@ func (a *Client) DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams } /* -DcimManufacturersCreate dcim manufacturers create API + DcimManufacturersCreate dcim manufacturers create API */ func (a *Client) DcimManufacturersCreate(params *DcimManufacturersCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersCreateCreated, error) { // TODO: Validate the params before sending @@ -3617,7 +3963,7 @@ func (a *Client) DcimManufacturersCreate(params *DcimManufacturersCreateParams, } /* -DcimManufacturersDelete dcim manufacturers delete API + DcimManufacturersDelete dcim manufacturers delete API */ func (a *Client) DcimManufacturersDelete(params *DcimManufacturersDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersDeleteNoContent, error) { // TODO: Validate the params before sending @@ -3652,7 +3998,7 @@ func (a *Client) DcimManufacturersDelete(params *DcimManufacturersDeleteParams, } /* -DcimManufacturersList Call to super to allow for caching + DcimManufacturersList Call to super to allow for caching */ func (a *Client) DcimManufacturersList(params *DcimManufacturersListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersListOK, error) { // TODO: Validate the params before sending @@ -3687,7 +4033,7 @@ func (a *Client) DcimManufacturersList(params *DcimManufacturersListParams, auth } /* -DcimManufacturersPartialUpdate dcim manufacturers partial update API + DcimManufacturersPartialUpdate dcim manufacturers partial update API */ func (a *Client) DcimManufacturersPartialUpdate(params *DcimManufacturersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -3722,7 +4068,7 @@ func (a *Client) DcimManufacturersPartialUpdate(params *DcimManufacturersPartial } /* -DcimManufacturersRead Call to super to allow for caching + DcimManufacturersRead Call to super to allow for caching */ func (a *Client) DcimManufacturersRead(params *DcimManufacturersReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersReadOK, error) { // TODO: Validate the params before sending @@ -3757,7 +4103,7 @@ func (a *Client) DcimManufacturersRead(params *DcimManufacturersReadParams, auth } /* -DcimManufacturersUpdate dcim manufacturers update API + DcimManufacturersUpdate dcim manufacturers update API */ func (a *Client) DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimManufacturersUpdateOK, error) { // TODO: Validate the params before sending @@ -3792,7 +4138,7 @@ func (a *Client) DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, } /* -DcimPlatformsCreate dcim platforms create API + DcimPlatformsCreate dcim platforms create API */ func (a *Client) DcimPlatformsCreate(params *DcimPlatformsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsCreateCreated, error) { // TODO: Validate the params before sending @@ -3827,7 +4173,7 @@ func (a *Client) DcimPlatformsCreate(params *DcimPlatformsCreateParams, authInfo } /* -DcimPlatformsDelete dcim platforms delete API + DcimPlatformsDelete dcim platforms delete API */ func (a *Client) DcimPlatformsDelete(params *DcimPlatformsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -3862,7 +4208,7 @@ func (a *Client) DcimPlatformsDelete(params *DcimPlatformsDeleteParams, authInfo } /* -DcimPlatformsList Call to super to allow for caching + DcimPlatformsList Call to super to allow for caching */ func (a *Client) DcimPlatformsList(params *DcimPlatformsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsListOK, error) { // TODO: Validate the params before sending @@ -3897,7 +4243,7 @@ func (a *Client) DcimPlatformsList(params *DcimPlatformsListParams, authInfo run } /* -DcimPlatformsPartialUpdate dcim platforms partial update API + DcimPlatformsPartialUpdate dcim platforms partial update API */ func (a *Client) DcimPlatformsPartialUpdate(params *DcimPlatformsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -3932,7 +4278,7 @@ func (a *Client) DcimPlatformsPartialUpdate(params *DcimPlatformsPartialUpdatePa } /* -DcimPlatformsRead Call to super to allow for caching + DcimPlatformsRead Call to super to allow for caching */ func (a *Client) DcimPlatformsRead(params *DcimPlatformsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsReadOK, error) { // TODO: Validate the params before sending @@ -3967,7 +4313,7 @@ func (a *Client) DcimPlatformsRead(params *DcimPlatformsReadParams, authInfo run } /* -DcimPlatformsUpdate dcim platforms update API + DcimPlatformsUpdate dcim platforms update API */ func (a *Client) DcimPlatformsUpdate(params *DcimPlatformsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPlatformsUpdateOK, error) { // TODO: Validate the params before sending @@ -4002,7 +4348,7 @@ func (a *Client) DcimPlatformsUpdate(params *DcimPlatformsUpdateParams, authInfo } /* -DcimPowerConnectionsList dcim power connections list API + DcimPowerConnectionsList dcim power connections list API */ func (a *Client) DcimPowerConnectionsList(params *DcimPowerConnectionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerConnectionsListOK, error) { // TODO: Validate the params before sending @@ -4037,7 +4383,7 @@ func (a *Client) DcimPowerConnectionsList(params *DcimPowerConnectionsListParams } /* -DcimPowerFeedsCreate dcim power feeds create API + DcimPowerFeedsCreate dcim power feeds create API */ func (a *Client) DcimPowerFeedsCreate(params *DcimPowerFeedsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsCreateCreated, error) { // TODO: Validate the params before sending @@ -4072,7 +4418,7 @@ func (a *Client) DcimPowerFeedsCreate(params *DcimPowerFeedsCreateParams, authIn } /* -DcimPowerFeedsDelete dcim power feeds delete API + DcimPowerFeedsDelete dcim power feeds delete API */ func (a *Client) DcimPowerFeedsDelete(params *DcimPowerFeedsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -4107,7 +4453,7 @@ func (a *Client) DcimPowerFeedsDelete(params *DcimPowerFeedsDeleteParams, authIn } /* -DcimPowerFeedsList Call to super to allow for caching + DcimPowerFeedsList Call to super to allow for caching */ func (a *Client) DcimPowerFeedsList(params *DcimPowerFeedsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsListOK, error) { // TODO: Validate the params before sending @@ -4142,7 +4488,7 @@ func (a *Client) DcimPowerFeedsList(params *DcimPowerFeedsListParams, authInfo r } /* -DcimPowerFeedsPartialUpdate dcim power feeds partial update API + DcimPowerFeedsPartialUpdate dcim power feeds partial update API */ func (a *Client) DcimPowerFeedsPartialUpdate(params *DcimPowerFeedsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -4177,7 +4523,7 @@ func (a *Client) DcimPowerFeedsPartialUpdate(params *DcimPowerFeedsPartialUpdate } /* -DcimPowerFeedsRead Call to super to allow for caching + DcimPowerFeedsRead Call to super to allow for caching */ func (a *Client) DcimPowerFeedsRead(params *DcimPowerFeedsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsReadOK, error) { // TODO: Validate the params before sending @@ -4212,7 +4558,7 @@ func (a *Client) DcimPowerFeedsRead(params *DcimPowerFeedsReadParams, authInfo r } /* -DcimPowerFeedsUpdate dcim power feeds update API + DcimPowerFeedsUpdate dcim power feeds update API */ func (a *Client) DcimPowerFeedsUpdate(params *DcimPowerFeedsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerFeedsUpdateOK, error) { // TODO: Validate the params before sending @@ -4247,7 +4593,7 @@ func (a *Client) DcimPowerFeedsUpdate(params *DcimPowerFeedsUpdateParams, authIn } /* -DcimPowerOutletTemplatesCreate dcim power outlet templates create API + DcimPowerOutletTemplatesCreate dcim power outlet templates create API */ func (a *Client) DcimPowerOutletTemplatesCreate(params *DcimPowerOutletTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -4282,7 +4628,7 @@ func (a *Client) DcimPowerOutletTemplatesCreate(params *DcimPowerOutletTemplates } /* -DcimPowerOutletTemplatesDelete dcim power outlet templates delete API + DcimPowerOutletTemplatesDelete dcim power outlet templates delete API */ func (a *Client) DcimPowerOutletTemplatesDelete(params *DcimPowerOutletTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -4317,7 +4663,7 @@ func (a *Client) DcimPowerOutletTemplatesDelete(params *DcimPowerOutletTemplates } /* -DcimPowerOutletTemplatesList Call to super to allow for caching + DcimPowerOutletTemplatesList Call to super to allow for caching */ func (a *Client) DcimPowerOutletTemplatesList(params *DcimPowerOutletTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesListOK, error) { // TODO: Validate the params before sending @@ -4352,7 +4698,7 @@ func (a *Client) DcimPowerOutletTemplatesList(params *DcimPowerOutletTemplatesLi } /* -DcimPowerOutletTemplatesPartialUpdate dcim power outlet templates partial update API + DcimPowerOutletTemplatesPartialUpdate dcim power outlet templates partial update API */ func (a *Client) DcimPowerOutletTemplatesPartialUpdate(params *DcimPowerOutletTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -4387,7 +4733,7 @@ func (a *Client) DcimPowerOutletTemplatesPartialUpdate(params *DcimPowerOutletTe } /* -DcimPowerOutletTemplatesRead Call to super to allow for caching + DcimPowerOutletTemplatesRead Call to super to allow for caching */ func (a *Client) DcimPowerOutletTemplatesRead(params *DcimPowerOutletTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -4422,7 +4768,7 @@ func (a *Client) DcimPowerOutletTemplatesRead(params *DcimPowerOutletTemplatesRe } /* -DcimPowerOutletTemplatesUpdate dcim power outlet templates update API + DcimPowerOutletTemplatesUpdate dcim power outlet templates update API */ func (a *Client) DcimPowerOutletTemplatesUpdate(params *DcimPowerOutletTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -4457,7 +4803,7 @@ func (a *Client) DcimPowerOutletTemplatesUpdate(params *DcimPowerOutletTemplates } /* -DcimPowerOutletsCreate dcim power outlets create API + DcimPowerOutletsCreate dcim power outlets create API */ func (a *Client) DcimPowerOutletsCreate(params *DcimPowerOutletsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsCreateCreated, error) { // TODO: Validate the params before sending @@ -4492,7 +4838,7 @@ func (a *Client) DcimPowerOutletsCreate(params *DcimPowerOutletsCreateParams, au } /* -DcimPowerOutletsDelete dcim power outlets delete API + DcimPowerOutletsDelete dcim power outlets delete API */ func (a *Client) DcimPowerOutletsDelete(params *DcimPowerOutletsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -4527,7 +4873,7 @@ func (a *Client) DcimPowerOutletsDelete(params *DcimPowerOutletsDeleteParams, au } /* -DcimPowerOutletsList Call to super to allow for caching + DcimPowerOutletsList Call to super to allow for caching */ func (a *Client) DcimPowerOutletsList(params *DcimPowerOutletsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsListOK, error) { // TODO: Validate the params before sending @@ -4562,7 +4908,7 @@ func (a *Client) DcimPowerOutletsList(params *DcimPowerOutletsListParams, authIn } /* -DcimPowerOutletsPartialUpdate dcim power outlets partial update API + DcimPowerOutletsPartialUpdate dcim power outlets partial update API */ func (a *Client) DcimPowerOutletsPartialUpdate(params *DcimPowerOutletsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -4597,7 +4943,7 @@ func (a *Client) DcimPowerOutletsPartialUpdate(params *DcimPowerOutletsPartialUp } /* -DcimPowerOutletsRead Call to super to allow for caching + DcimPowerOutletsRead Call to super to allow for caching */ func (a *Client) DcimPowerOutletsRead(params *DcimPowerOutletsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsReadOK, error) { // TODO: Validate the params before sending @@ -4632,7 +4978,7 @@ func (a *Client) DcimPowerOutletsRead(params *DcimPowerOutletsReadParams, authIn } /* -DcimPowerOutletsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). + DcimPowerOutletsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). */ func (a *Client) DcimPowerOutletsTrace(params *DcimPowerOutletsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsTraceOK, error) { // TODO: Validate the params before sending @@ -4667,7 +5013,7 @@ func (a *Client) DcimPowerOutletsTrace(params *DcimPowerOutletsTraceParams, auth } /* -DcimPowerOutletsUpdate dcim power outlets update API + DcimPowerOutletsUpdate dcim power outlets update API */ func (a *Client) DcimPowerOutletsUpdate(params *DcimPowerOutletsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerOutletsUpdateOK, error) { // TODO: Validate the params before sending @@ -4702,7 +5048,7 @@ func (a *Client) DcimPowerOutletsUpdate(params *DcimPowerOutletsUpdateParams, au } /* -DcimPowerPanelsCreate dcim power panels create API + DcimPowerPanelsCreate dcim power panels create API */ func (a *Client) DcimPowerPanelsCreate(params *DcimPowerPanelsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsCreateCreated, error) { // TODO: Validate the params before sending @@ -4737,7 +5083,7 @@ func (a *Client) DcimPowerPanelsCreate(params *DcimPowerPanelsCreateParams, auth } /* -DcimPowerPanelsDelete dcim power panels delete API + DcimPowerPanelsDelete dcim power panels delete API */ func (a *Client) DcimPowerPanelsDelete(params *DcimPowerPanelsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -4772,7 +5118,7 @@ func (a *Client) DcimPowerPanelsDelete(params *DcimPowerPanelsDeleteParams, auth } /* -DcimPowerPanelsList Call to super to allow for caching + DcimPowerPanelsList Call to super to allow for caching */ func (a *Client) DcimPowerPanelsList(params *DcimPowerPanelsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsListOK, error) { // TODO: Validate the params before sending @@ -4807,7 +5153,7 @@ func (a *Client) DcimPowerPanelsList(params *DcimPowerPanelsListParams, authInfo } /* -DcimPowerPanelsPartialUpdate dcim power panels partial update API + DcimPowerPanelsPartialUpdate dcim power panels partial update API */ func (a *Client) DcimPowerPanelsPartialUpdate(params *DcimPowerPanelsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -4842,7 +5188,7 @@ func (a *Client) DcimPowerPanelsPartialUpdate(params *DcimPowerPanelsPartialUpda } /* -DcimPowerPanelsRead Call to super to allow for caching + DcimPowerPanelsRead Call to super to allow for caching */ func (a *Client) DcimPowerPanelsRead(params *DcimPowerPanelsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsReadOK, error) { // TODO: Validate the params before sending @@ -4877,7 +5223,7 @@ func (a *Client) DcimPowerPanelsRead(params *DcimPowerPanelsReadParams, authInfo } /* -DcimPowerPanelsUpdate dcim power panels update API + DcimPowerPanelsUpdate dcim power panels update API */ func (a *Client) DcimPowerPanelsUpdate(params *DcimPowerPanelsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPanelsUpdateOK, error) { // TODO: Validate the params before sending @@ -4912,7 +5258,7 @@ func (a *Client) DcimPowerPanelsUpdate(params *DcimPowerPanelsUpdateParams, auth } /* -DcimPowerPortTemplatesCreate dcim power port templates create API + DcimPowerPortTemplatesCreate dcim power port templates create API */ func (a *Client) DcimPowerPortTemplatesCreate(params *DcimPowerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -4947,7 +5293,7 @@ func (a *Client) DcimPowerPortTemplatesCreate(params *DcimPowerPortTemplatesCrea } /* -DcimPowerPortTemplatesDelete dcim power port templates delete API + DcimPowerPortTemplatesDelete dcim power port templates delete API */ func (a *Client) DcimPowerPortTemplatesDelete(params *DcimPowerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -4982,7 +5328,7 @@ func (a *Client) DcimPowerPortTemplatesDelete(params *DcimPowerPortTemplatesDele } /* -DcimPowerPortTemplatesList Call to super to allow for caching + DcimPowerPortTemplatesList Call to super to allow for caching */ func (a *Client) DcimPowerPortTemplatesList(params *DcimPowerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesListOK, error) { // TODO: Validate the params before sending @@ -5017,7 +5363,7 @@ func (a *Client) DcimPowerPortTemplatesList(params *DcimPowerPortTemplatesListPa } /* -DcimPowerPortTemplatesPartialUpdate dcim power port templates partial update API + DcimPowerPortTemplatesPartialUpdate dcim power port templates partial update API */ func (a *Client) DcimPowerPortTemplatesPartialUpdate(params *DcimPowerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -5052,7 +5398,7 @@ func (a *Client) DcimPowerPortTemplatesPartialUpdate(params *DcimPowerPortTempla } /* -DcimPowerPortTemplatesRead Call to super to allow for caching + DcimPowerPortTemplatesRead Call to super to allow for caching */ func (a *Client) DcimPowerPortTemplatesRead(params *DcimPowerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -5087,7 +5433,7 @@ func (a *Client) DcimPowerPortTemplatesRead(params *DcimPowerPortTemplatesReadPa } /* -DcimPowerPortTemplatesUpdate dcim power port templates update API + DcimPowerPortTemplatesUpdate dcim power port templates update API */ func (a *Client) DcimPowerPortTemplatesUpdate(params *DcimPowerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -5122,7 +5468,7 @@ func (a *Client) DcimPowerPortTemplatesUpdate(params *DcimPowerPortTemplatesUpda } /* -DcimPowerPortsCreate dcim power ports create API + DcimPowerPortsCreate dcim power ports create API */ func (a *Client) DcimPowerPortsCreate(params *DcimPowerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsCreateCreated, error) { // TODO: Validate the params before sending @@ -5157,7 +5503,7 @@ func (a *Client) DcimPowerPortsCreate(params *DcimPowerPortsCreateParams, authIn } /* -DcimPowerPortsDelete dcim power ports delete API + DcimPowerPortsDelete dcim power ports delete API */ func (a *Client) DcimPowerPortsDelete(params *DcimPowerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -5192,7 +5538,7 @@ func (a *Client) DcimPowerPortsDelete(params *DcimPowerPortsDeleteParams, authIn } /* -DcimPowerPortsList Call to super to allow for caching + DcimPowerPortsList Call to super to allow for caching */ func (a *Client) DcimPowerPortsList(params *DcimPowerPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsListOK, error) { // TODO: Validate the params before sending @@ -5227,7 +5573,7 @@ func (a *Client) DcimPowerPortsList(params *DcimPowerPortsListParams, authInfo r } /* -DcimPowerPortsPartialUpdate dcim power ports partial update API + DcimPowerPortsPartialUpdate dcim power ports partial update API */ func (a *Client) DcimPowerPortsPartialUpdate(params *DcimPowerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -5262,7 +5608,7 @@ func (a *Client) DcimPowerPortsPartialUpdate(params *DcimPowerPortsPartialUpdate } /* -DcimPowerPortsRead Call to super to allow for caching + DcimPowerPortsRead Call to super to allow for caching */ func (a *Client) DcimPowerPortsRead(params *DcimPowerPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsReadOK, error) { // TODO: Validate the params before sending @@ -5297,7 +5643,7 @@ func (a *Client) DcimPowerPortsRead(params *DcimPowerPortsReadParams, authInfo r } /* -DcimPowerPortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). + DcimPowerPortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). */ func (a *Client) DcimPowerPortsTrace(params *DcimPowerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsTraceOK, error) { // TODO: Validate the params before sending @@ -5332,7 +5678,7 @@ func (a *Client) DcimPowerPortsTrace(params *DcimPowerPortsTraceParams, authInfo } /* -DcimPowerPortsUpdate dcim power ports update API + DcimPowerPortsUpdate dcim power ports update API */ func (a *Client) DcimPowerPortsUpdate(params *DcimPowerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimPowerPortsUpdateOK, error) { // TODO: Validate the params before sending @@ -5367,7 +5713,7 @@ func (a *Client) DcimPowerPortsUpdate(params *DcimPowerPortsUpdateParams, authIn } /* -DcimRackGroupsCreate dcim rack groups create API + DcimRackGroupsCreate dcim rack groups create API */ func (a *Client) DcimRackGroupsCreate(params *DcimRackGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsCreateCreated, error) { // TODO: Validate the params before sending @@ -5402,7 +5748,7 @@ func (a *Client) DcimRackGroupsCreate(params *DcimRackGroupsCreateParams, authIn } /* -DcimRackGroupsDelete dcim rack groups delete API + DcimRackGroupsDelete dcim rack groups delete API */ func (a *Client) DcimRackGroupsDelete(params *DcimRackGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -5437,7 +5783,7 @@ func (a *Client) DcimRackGroupsDelete(params *DcimRackGroupsDeleteParams, authIn } /* -DcimRackGroupsList Call to super to allow for caching + DcimRackGroupsList Call to super to allow for caching */ func (a *Client) DcimRackGroupsList(params *DcimRackGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsListOK, error) { // TODO: Validate the params before sending @@ -5472,7 +5818,7 @@ func (a *Client) DcimRackGroupsList(params *DcimRackGroupsListParams, authInfo r } /* -DcimRackGroupsPartialUpdate dcim rack groups partial update API + DcimRackGroupsPartialUpdate dcim rack groups partial update API */ func (a *Client) DcimRackGroupsPartialUpdate(params *DcimRackGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -5507,7 +5853,7 @@ func (a *Client) DcimRackGroupsPartialUpdate(params *DcimRackGroupsPartialUpdate } /* -DcimRackGroupsRead Call to super to allow for caching + DcimRackGroupsRead Call to super to allow for caching */ func (a *Client) DcimRackGroupsRead(params *DcimRackGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsReadOK, error) { // TODO: Validate the params before sending @@ -5542,7 +5888,7 @@ func (a *Client) DcimRackGroupsRead(params *DcimRackGroupsReadParams, authInfo r } /* -DcimRackGroupsUpdate dcim rack groups update API + DcimRackGroupsUpdate dcim rack groups update API */ func (a *Client) DcimRackGroupsUpdate(params *DcimRackGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackGroupsUpdateOK, error) { // TODO: Validate the params before sending @@ -5577,7 +5923,7 @@ func (a *Client) DcimRackGroupsUpdate(params *DcimRackGroupsUpdateParams, authIn } /* -DcimRackReservationsCreate dcim rack reservations create API + DcimRackReservationsCreate dcim rack reservations create API */ func (a *Client) DcimRackReservationsCreate(params *DcimRackReservationsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsCreateCreated, error) { // TODO: Validate the params before sending @@ -5612,7 +5958,7 @@ func (a *Client) DcimRackReservationsCreate(params *DcimRackReservationsCreatePa } /* -DcimRackReservationsDelete dcim rack reservations delete API + DcimRackReservationsDelete dcim rack reservations delete API */ func (a *Client) DcimRackReservationsDelete(params *DcimRackReservationsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -5647,7 +5993,7 @@ func (a *Client) DcimRackReservationsDelete(params *DcimRackReservationsDeletePa } /* -DcimRackReservationsList Call to super to allow for caching + DcimRackReservationsList Call to super to allow for caching */ func (a *Client) DcimRackReservationsList(params *DcimRackReservationsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsListOK, error) { // TODO: Validate the params before sending @@ -5682,7 +6028,7 @@ func (a *Client) DcimRackReservationsList(params *DcimRackReservationsListParams } /* -DcimRackReservationsPartialUpdate dcim rack reservations partial update API + DcimRackReservationsPartialUpdate dcim rack reservations partial update API */ func (a *Client) DcimRackReservationsPartialUpdate(params *DcimRackReservationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -5717,7 +6063,7 @@ func (a *Client) DcimRackReservationsPartialUpdate(params *DcimRackReservationsP } /* -DcimRackReservationsRead Call to super to allow for caching + DcimRackReservationsRead Call to super to allow for caching */ func (a *Client) DcimRackReservationsRead(params *DcimRackReservationsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsReadOK, error) { // TODO: Validate the params before sending @@ -5752,7 +6098,7 @@ func (a *Client) DcimRackReservationsRead(params *DcimRackReservationsReadParams } /* -DcimRackReservationsUpdate dcim rack reservations update API + DcimRackReservationsUpdate dcim rack reservations update API */ func (a *Client) DcimRackReservationsUpdate(params *DcimRackReservationsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackReservationsUpdateOK, error) { // TODO: Validate the params before sending @@ -5787,7 +6133,7 @@ func (a *Client) DcimRackReservationsUpdate(params *DcimRackReservationsUpdatePa } /* -DcimRackRolesCreate dcim rack roles create API + DcimRackRolesCreate dcim rack roles create API */ func (a *Client) DcimRackRolesCreate(params *DcimRackRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesCreateCreated, error) { // TODO: Validate the params before sending @@ -5822,7 +6168,7 @@ func (a *Client) DcimRackRolesCreate(params *DcimRackRolesCreateParams, authInfo } /* -DcimRackRolesDelete dcim rack roles delete API + DcimRackRolesDelete dcim rack roles delete API */ func (a *Client) DcimRackRolesDelete(params *DcimRackRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -5857,7 +6203,7 @@ func (a *Client) DcimRackRolesDelete(params *DcimRackRolesDeleteParams, authInfo } /* -DcimRackRolesList Call to super to allow for caching + DcimRackRolesList Call to super to allow for caching */ func (a *Client) DcimRackRolesList(params *DcimRackRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesListOK, error) { // TODO: Validate the params before sending @@ -5892,7 +6238,7 @@ func (a *Client) DcimRackRolesList(params *DcimRackRolesListParams, authInfo run } /* -DcimRackRolesPartialUpdate dcim rack roles partial update API + DcimRackRolesPartialUpdate dcim rack roles partial update API */ func (a *Client) DcimRackRolesPartialUpdate(params *DcimRackRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -5927,7 +6273,7 @@ func (a *Client) DcimRackRolesPartialUpdate(params *DcimRackRolesPartialUpdatePa } /* -DcimRackRolesRead Call to super to allow for caching + DcimRackRolesRead Call to super to allow for caching */ func (a *Client) DcimRackRolesRead(params *DcimRackRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesReadOK, error) { // TODO: Validate the params before sending @@ -5962,7 +6308,7 @@ func (a *Client) DcimRackRolesRead(params *DcimRackRolesReadParams, authInfo run } /* -DcimRackRolesUpdate dcim rack roles update API + DcimRackRolesUpdate dcim rack roles update API */ func (a *Client) DcimRackRolesUpdate(params *DcimRackRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRackRolesUpdateOK, error) { // TODO: Validate the params before sending @@ -5997,7 +6343,7 @@ func (a *Client) DcimRackRolesUpdate(params *DcimRackRolesUpdateParams, authInfo } /* -DcimRacksCreate dcim racks create API + DcimRacksCreate dcim racks create API */ func (a *Client) DcimRacksCreate(params *DcimRacksCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksCreateCreated, error) { // TODO: Validate the params before sending @@ -6032,7 +6378,7 @@ func (a *Client) DcimRacksCreate(params *DcimRacksCreateParams, authInfo runtime } /* -DcimRacksDelete dcim racks delete API + DcimRacksDelete dcim racks delete API */ func (a *Client) DcimRacksDelete(params *DcimRacksDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksDeleteNoContent, error) { // TODO: Validate the params before sending @@ -6067,7 +6413,7 @@ func (a *Client) DcimRacksDelete(params *DcimRacksDeleteParams, authInfo runtime } /* -DcimRacksElevation Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG. + DcimRacksElevation Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG. */ func (a *Client) DcimRacksElevation(params *DcimRacksElevationParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksElevationOK, error) { // TODO: Validate the params before sending @@ -6102,7 +6448,7 @@ func (a *Client) DcimRacksElevation(params *DcimRacksElevationParams, authInfo r } /* -DcimRacksList Call to super to allow for caching + DcimRacksList Call to super to allow for caching */ func (a *Client) DcimRacksList(params *DcimRacksListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksListOK, error) { // TODO: Validate the params before sending @@ -6137,7 +6483,7 @@ func (a *Client) DcimRacksList(params *DcimRacksListParams, authInfo runtime.Cli } /* -DcimRacksPartialUpdate dcim racks partial update API + DcimRacksPartialUpdate dcim racks partial update API */ func (a *Client) DcimRacksPartialUpdate(params *DcimRacksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -6172,7 +6518,7 @@ func (a *Client) DcimRacksPartialUpdate(params *DcimRacksPartialUpdateParams, au } /* -DcimRacksRead Call to super to allow for caching + DcimRacksRead Call to super to allow for caching */ func (a *Client) DcimRacksRead(params *DcimRacksReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksReadOK, error) { // TODO: Validate the params before sending @@ -6207,42 +6553,7 @@ func (a *Client) DcimRacksRead(params *DcimRacksReadParams, authInfo runtime.Cli } /* -DcimRacksUnits List rack units (by rack) -*/ -func (a *Client) DcimRacksUnits(params *DcimRacksUnitsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksUnitsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDcimRacksUnitsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "dcim_racks_units", - Method: "GET", - PathPattern: "/dcim/racks/{id}/units/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DcimRacksUnitsReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*DcimRacksUnitsOK) - 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_racks_units: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DcimRacksUpdate dcim racks update API + DcimRacksUpdate dcim racks update API */ func (a *Client) DcimRacksUpdate(params *DcimRacksUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRacksUpdateOK, error) { // TODO: Validate the params before sending @@ -6277,7 +6588,7 @@ func (a *Client) DcimRacksUpdate(params *DcimRacksUpdateParams, authInfo runtime } /* -DcimRearPortTemplatesCreate dcim rear port templates create API + DcimRearPortTemplatesCreate dcim rear port templates create API */ func (a *Client) DcimRearPortTemplatesCreate(params *DcimRearPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -6312,7 +6623,7 @@ func (a *Client) DcimRearPortTemplatesCreate(params *DcimRearPortTemplatesCreate } /* -DcimRearPortTemplatesDelete dcim rear port templates delete API + DcimRearPortTemplatesDelete dcim rear port templates delete API */ func (a *Client) DcimRearPortTemplatesDelete(params *DcimRearPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -6347,7 +6658,7 @@ func (a *Client) DcimRearPortTemplatesDelete(params *DcimRearPortTemplatesDelete } /* -DcimRearPortTemplatesList Call to super to allow for caching + DcimRearPortTemplatesList Call to super to allow for caching */ func (a *Client) DcimRearPortTemplatesList(params *DcimRearPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesListOK, error) { // TODO: Validate the params before sending @@ -6382,7 +6693,7 @@ func (a *Client) DcimRearPortTemplatesList(params *DcimRearPortTemplatesListPara } /* -DcimRearPortTemplatesPartialUpdate dcim rear port templates partial update API + DcimRearPortTemplatesPartialUpdate dcim rear port templates partial update API */ func (a *Client) DcimRearPortTemplatesPartialUpdate(params *DcimRearPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -6417,7 +6728,7 @@ func (a *Client) DcimRearPortTemplatesPartialUpdate(params *DcimRearPortTemplate } /* -DcimRearPortTemplatesRead Call to super to allow for caching + DcimRearPortTemplatesRead Call to super to allow for caching */ func (a *Client) DcimRearPortTemplatesRead(params *DcimRearPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -6452,7 +6763,7 @@ func (a *Client) DcimRearPortTemplatesRead(params *DcimRearPortTemplatesReadPara } /* -DcimRearPortTemplatesUpdate dcim rear port templates update API + DcimRearPortTemplatesUpdate dcim rear port templates update API */ func (a *Client) DcimRearPortTemplatesUpdate(params *DcimRearPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -6487,7 +6798,7 @@ func (a *Client) DcimRearPortTemplatesUpdate(params *DcimRearPortTemplatesUpdate } /* -DcimRearPortsCreate dcim rear ports create API + DcimRearPortsCreate dcim rear ports create API */ func (a *Client) DcimRearPortsCreate(params *DcimRearPortsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsCreateCreated, error) { // TODO: Validate the params before sending @@ -6522,7 +6833,7 @@ func (a *Client) DcimRearPortsCreate(params *DcimRearPortsCreateParams, authInfo } /* -DcimRearPortsDelete dcim rear ports delete API + DcimRearPortsDelete dcim rear ports delete API */ func (a *Client) DcimRearPortsDelete(params *DcimRearPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -6557,7 +6868,7 @@ func (a *Client) DcimRearPortsDelete(params *DcimRearPortsDeleteParams, authInfo } /* -DcimRearPortsList Call to super to allow for caching + DcimRearPortsList Call to super to allow for caching */ func (a *Client) DcimRearPortsList(params *DcimRearPortsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsListOK, error) { // TODO: Validate the params before sending @@ -6592,7 +6903,7 @@ func (a *Client) DcimRearPortsList(params *DcimRearPortsListParams, authInfo run } /* -DcimRearPortsPartialUpdate dcim rear ports partial update API + DcimRearPortsPartialUpdate dcim rear ports partial update API */ func (a *Client) DcimRearPortsPartialUpdate(params *DcimRearPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -6627,7 +6938,7 @@ func (a *Client) DcimRearPortsPartialUpdate(params *DcimRearPortsPartialUpdatePa } /* -DcimRearPortsRead Call to super to allow for caching + DcimRearPortsRead Call to super to allow for caching */ func (a *Client) DcimRearPortsRead(params *DcimRearPortsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsReadOK, error) { // TODO: Validate the params before sending @@ -6662,7 +6973,7 @@ func (a *Client) DcimRearPortsRead(params *DcimRearPortsReadParams, authInfo run } /* -DcimRearPortsUpdate dcim rear ports update API + DcimRearPortsUpdate dcim rear ports update API */ func (a *Client) DcimRearPortsUpdate(params *DcimRearPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRearPortsUpdateOK, error) { // TODO: Validate the params before sending @@ -6697,7 +7008,7 @@ func (a *Client) DcimRearPortsUpdate(params *DcimRearPortsUpdateParams, authInfo } /* -DcimRegionsCreate dcim regions create API + DcimRegionsCreate dcim regions create API */ func (a *Client) DcimRegionsCreate(params *DcimRegionsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsCreateCreated, error) { // TODO: Validate the params before sending @@ -6732,7 +7043,7 @@ func (a *Client) DcimRegionsCreate(params *DcimRegionsCreateParams, authInfo run } /* -DcimRegionsDelete dcim regions delete API + DcimRegionsDelete dcim regions delete API */ func (a *Client) DcimRegionsDelete(params *DcimRegionsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -6767,7 +7078,7 @@ func (a *Client) DcimRegionsDelete(params *DcimRegionsDeleteParams, authInfo run } /* -DcimRegionsList Call to super to allow for caching + DcimRegionsList Call to super to allow for caching */ func (a *Client) DcimRegionsList(params *DcimRegionsListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsListOK, error) { // TODO: Validate the params before sending @@ -6802,7 +7113,7 @@ func (a *Client) DcimRegionsList(params *DcimRegionsListParams, authInfo runtime } /* -DcimRegionsPartialUpdate dcim regions partial update API + DcimRegionsPartialUpdate dcim regions partial update API */ func (a *Client) DcimRegionsPartialUpdate(params *DcimRegionsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -6837,7 +7148,7 @@ func (a *Client) DcimRegionsPartialUpdate(params *DcimRegionsPartialUpdateParams } /* -DcimRegionsRead Call to super to allow for caching + DcimRegionsRead Call to super to allow for caching */ func (a *Client) DcimRegionsRead(params *DcimRegionsReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsReadOK, error) { // TODO: Validate the params before sending @@ -6872,7 +7183,7 @@ func (a *Client) DcimRegionsRead(params *DcimRegionsReadParams, authInfo runtime } /* -DcimRegionsUpdate dcim regions update API + DcimRegionsUpdate dcim regions update API */ func (a *Client) DcimRegionsUpdate(params *DcimRegionsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimRegionsUpdateOK, error) { // TODO: Validate the params before sending @@ -6907,7 +7218,7 @@ func (a *Client) DcimRegionsUpdate(params *DcimRegionsUpdateParams, authInfo run } /* -DcimSitesCreate dcim sites create API + DcimSitesCreate dcim sites create API */ func (a *Client) DcimSitesCreate(params *DcimSitesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesCreateCreated, error) { // TODO: Validate the params before sending @@ -6942,7 +7253,7 @@ func (a *Client) DcimSitesCreate(params *DcimSitesCreateParams, authInfo runtime } /* -DcimSitesDelete dcim sites delete API + DcimSitesDelete dcim sites delete API */ func (a *Client) DcimSitesDelete(params *DcimSitesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -6977,7 +7288,7 @@ func (a *Client) DcimSitesDelete(params *DcimSitesDeleteParams, authInfo runtime } /* -DcimSitesGraphs A convenience method for rendering graphs for a particular site. + DcimSitesGraphs A convenience method for rendering graphs for a particular site. */ func (a *Client) DcimSitesGraphs(params *DcimSitesGraphsParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesGraphsOK, error) { // TODO: Validate the params before sending @@ -7012,7 +7323,7 @@ func (a *Client) DcimSitesGraphs(params *DcimSitesGraphsParams, authInfo runtime } /* -DcimSitesList Call to super to allow for caching + DcimSitesList Call to super to allow for caching */ func (a *Client) DcimSitesList(params *DcimSitesListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesListOK, error) { // TODO: Validate the params before sending @@ -7047,7 +7358,7 @@ func (a *Client) DcimSitesList(params *DcimSitesListParams, authInfo runtime.Cli } /* -DcimSitesPartialUpdate dcim sites partial update API + DcimSitesPartialUpdate dcim sites partial update API */ func (a *Client) DcimSitesPartialUpdate(params *DcimSitesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -7082,7 +7393,7 @@ func (a *Client) DcimSitesPartialUpdate(params *DcimSitesPartialUpdateParams, au } /* -DcimSitesRead Call to super to allow for caching + DcimSitesRead Call to super to allow for caching */ func (a *Client) DcimSitesRead(params *DcimSitesReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesReadOK, error) { // TODO: Validate the params before sending @@ -7117,7 +7428,7 @@ func (a *Client) DcimSitesRead(params *DcimSitesReadParams, authInfo runtime.Cli } /* -DcimSitesUpdate dcim sites update API + DcimSitesUpdate dcim sites update API */ func (a *Client) DcimSitesUpdate(params *DcimSitesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimSitesUpdateOK, error) { // TODO: Validate the params before sending @@ -7152,7 +7463,7 @@ func (a *Client) DcimSitesUpdate(params *DcimSitesUpdateParams, authInfo runtime } /* -DcimVirtualChassisCreate dcim virtual chassis create API + DcimVirtualChassisCreate dcim virtual chassis create API */ func (a *Client) DcimVirtualChassisCreate(params *DcimVirtualChassisCreateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisCreateCreated, error) { // TODO: Validate the params before sending @@ -7187,7 +7498,7 @@ func (a *Client) DcimVirtualChassisCreate(params *DcimVirtualChassisCreateParams } /* -DcimVirtualChassisDelete dcim virtual chassis delete API + DcimVirtualChassisDelete dcim virtual chassis delete API */ func (a *Client) DcimVirtualChassisDelete(params *DcimVirtualChassisDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisDeleteNoContent, error) { // TODO: Validate the params before sending @@ -7222,7 +7533,7 @@ func (a *Client) DcimVirtualChassisDelete(params *DcimVirtualChassisDeleteParams } /* -DcimVirtualChassisList Call to super to allow for caching + DcimVirtualChassisList Call to super to allow for caching */ func (a *Client) DcimVirtualChassisList(params *DcimVirtualChassisListParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisListOK, error) { // TODO: Validate the params before sending @@ -7257,7 +7568,7 @@ func (a *Client) DcimVirtualChassisList(params *DcimVirtualChassisListParams, au } /* -DcimVirtualChassisPartialUpdate dcim virtual chassis partial update API + DcimVirtualChassisPartialUpdate dcim virtual chassis partial update API */ func (a *Client) DcimVirtualChassisPartialUpdate(params *DcimVirtualChassisPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -7292,7 +7603,7 @@ func (a *Client) DcimVirtualChassisPartialUpdate(params *DcimVirtualChassisParti } /* -DcimVirtualChassisRead Call to super to allow for caching + DcimVirtualChassisRead Call to super to allow for caching */ func (a *Client) DcimVirtualChassisRead(params *DcimVirtualChassisReadParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisReadOK, error) { // TODO: Validate the params before sending @@ -7327,7 +7638,7 @@ func (a *Client) DcimVirtualChassisRead(params *DcimVirtualChassisReadParams, au } /* -DcimVirtualChassisUpdate dcim virtual chassis update API + DcimVirtualChassisUpdate dcim virtual chassis update API */ func (a *Client) DcimVirtualChassisUpdate(params *DcimVirtualChassisUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*DcimVirtualChassisUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_parameters.go index 31a9331c0..04f1e922b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewDcimConnectedDeviceListParams creates a new DcimConnectedDeviceListParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_responses.go index a4634638c..da08cacf7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_connected_device_list_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConnectedDeviceListReader is a Reader for the DcimConnectedDeviceList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_parameters.go index 4b5eae7ce..0ac6b19d0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleConnectionsListParams creates a new DcimConsoleConnectionsListParams object @@ -79,6 +78,8 @@ type DcimConsoleConnectionsListParams struct { /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Device*/ Device *string /*DeviceID*/ @@ -90,6 +91,24 @@ type DcimConsoleConnectionsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -147,6 +166,17 @@ func (o *DcimConsoleConnectionsListParams) SetConnectionStatus(connectionStatus o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimConsoleConnectionsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDevice adds the device to the dcim console connections list params func (o *DcimConsoleConnectionsListParams) WithDevice(device *string) *DcimConsoleConnectionsListParams { o.SetDevice(device) @@ -191,6 +221,105 @@ func (o *DcimConsoleConnectionsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameIc(nameIc *string) *DcimConsoleConnectionsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameIe(nameIe *string) *DcimConsoleConnectionsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameIew(nameIew *string) *DcimConsoleConnectionsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameIsw(nameIsw *string) *DcimConsoleConnectionsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNamen(namen *string) *DcimConsoleConnectionsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameNic(nameNic *string) *DcimConsoleConnectionsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameNie(nameNie *string) *DcimConsoleConnectionsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameNiew(nameNiew *string) *DcimConsoleConnectionsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) WithNameNisw(nameNisw *string) *DcimConsoleConnectionsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim console connections list params +func (o *DcimConsoleConnectionsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim console connections list params func (o *DcimConsoleConnectionsListParams) WithOffset(offset *int64) *DcimConsoleConnectionsListParams { o.SetOffset(offset) @@ -237,6 +366,22 @@ func (o *DcimConsoleConnectionsListParams) WriteToRequest(r runtime.ClientReques } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -301,6 +446,150 @@ func (o *DcimConsoleConnectionsListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_responses.go index 31931fa5b..48f1eba5c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_connections_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleConnectionsListReader is a Reader for the DcimConsoleConnectionsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_parameters.go index 15c77d0f9..734f324ea 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsolePortTemplatesCreateParams creates a new DcimConsolePortTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_responses.go index f83cf1494..7be849edb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortTemplatesCreateReader is a Reader for the DcimConsolePortTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_parameters.go index b197624cd..d0fad99b0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortTemplatesDeleteParams creates a new DcimConsolePortTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_responses.go index 5b70d73cd..1274e3683 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimConsolePortTemplatesDeleteReader is a Reader for the DcimConsolePortTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go index e328edaa8..7ad65fe33 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortTemplatesListParams creates a new DcimConsolePortTemplatesListParams object @@ -79,8 +78,20 @@ type DcimConsolePortTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +99,24 @@ type DcimConsolePortTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -97,6 +126,8 @@ type DcimConsolePortTemplatesListParams struct { Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -147,6 +178,17 @@ func (o *DcimConsolePortTemplatesListParams) SetDevicetypeID(devicetypeID *strin o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimConsolePortTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim console port templates list params func (o *DcimConsolePortTemplatesListParams) WithID(id *string) *DcimConsolePortTemplatesListParams { o.SetID(id) @@ -158,6 +200,61 @@ func (o *DcimConsolePortTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithIDGt(iDGt *string) *DcimConsolePortTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithIDGte(iDGte *string) *DcimConsolePortTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithIDLt(iDLt *string) *DcimConsolePortTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithIDLte(iDLte *string) *DcimConsolePortTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithIDn(iDn *string) *DcimConsolePortTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim console port templates list params func (o *DcimConsolePortTemplatesListParams) WithLimit(limit *int64) *DcimConsolePortTemplatesListParams { o.SetLimit(limit) @@ -180,6 +277,105 @@ func (o *DcimConsolePortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameIc(nameIc *string) *DcimConsolePortTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameIe(nameIe *string) *DcimConsolePortTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameIew(nameIew *string) *DcimConsolePortTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameIsw(nameIsw *string) *DcimConsolePortTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNamen(namen *string) *DcimConsolePortTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameNic(nameNic *string) *DcimConsolePortTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameNie(nameNie *string) *DcimConsolePortTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameNiew(nameNiew *string) *DcimConsolePortTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithNameNisw(nameNisw *string) *DcimConsolePortTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim console port templates list params func (o *DcimConsolePortTemplatesListParams) WithOffset(offset *int64) *DcimConsolePortTemplatesListParams { o.SetOffset(offset) @@ -213,6 +409,17 @@ func (o *DcimConsolePortTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) WithTypen(typen *string) *DcimConsolePortTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim console port templates list params +func (o *DcimConsolePortTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -237,6 +444,22 @@ func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -253,6 +476,86 @@ func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -285,6 +588,150 @@ func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -333,6 +780,22 @@ func (o *DcimConsolePortTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_responses.go index d918b1a85..ae509efe4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortTemplatesListReader is a Reader for the DcimConsolePortTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_parameters.go index ad97053b9..9b6ada548 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsolePortTemplatesPartialUpdateParams creates a new DcimConsolePortTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_responses.go index 8c09775bc..c5299f9fc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortTemplatesPartialUpdateReader is a Reader for the DcimConsolePortTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_parameters.go index 2c43df9ff..c88e59f74 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortTemplatesReadParams creates a new DcimConsolePortTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_responses.go index f7f122602..757c32931 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortTemplatesReadReader is a Reader for the DcimConsolePortTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_parameters.go index edb4f5543..ffc867c20 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsolePortTemplatesUpdateParams creates a new DcimConsolePortTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_responses.go index cb3fac30b..a91f9a08e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_port_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortTemplatesUpdateReader is a Reader for the DcimConsolePortTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_parameters.go index e108d0b8f..1d8855775 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsolePortsCreateParams creates a new DcimConsolePortsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_responses.go index b80944cd9..e0eadac31 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortsCreateReader is a Reader for the DcimConsolePortsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_parameters.go index 2da28eaf4..fb5a5b67d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortsDeleteParams creates a new DcimConsolePortsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_responses.go index ec0c66b35..177acf4fc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimConsolePortsDeleteReader is a Reader for the DcimConsolePortsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go index 8505aa86b..fb7696cb7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortsListParams creates a new DcimConsolePortsListParams object @@ -81,14 +80,48 @@ type DcimConsolePortsListParams struct { Cabled *string /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -96,6 +129,24 @@ type DcimConsolePortsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -105,16 +156,28 @@ type DcimConsolePortsListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -176,6 +239,17 @@ func (o *DcimConsolePortsListParams) SetConnectionStatus(connectionStatus *strin o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimConsolePortsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDescription adds the description to the dcim console ports list params func (o *DcimConsolePortsListParams) WithDescription(description *string) *DcimConsolePortsListParams { o.SetDescription(description) @@ -187,6 +261,105 @@ func (o *DcimConsolePortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionIc(descriptionIc *string) *DcimConsolePortsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionIe(descriptionIe *string) *DcimConsolePortsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionIew(descriptionIew *string) *DcimConsolePortsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimConsolePortsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionn(descriptionn *string) *DcimConsolePortsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionNic(descriptionNic *string) *DcimConsolePortsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionNie(descriptionNie *string) *DcimConsolePortsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimConsolePortsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimConsolePortsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim console ports list params func (o *DcimConsolePortsListParams) WithDevice(device *string) *DcimConsolePortsListParams { o.SetDevice(device) @@ -198,6 +371,17 @@ func (o *DcimConsolePortsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDevicen(devicen *string) *DcimConsolePortsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim console ports list params func (o *DcimConsolePortsListParams) WithDeviceID(deviceID *string) *DcimConsolePortsListParams { o.SetDeviceID(deviceID) @@ -209,6 +393,17 @@ func (o *DcimConsolePortsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithDeviceIDn(deviceIDn *string) *DcimConsolePortsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the dcim console ports list params func (o *DcimConsolePortsListParams) WithID(id *string) *DcimConsolePortsListParams { o.SetID(id) @@ -220,6 +415,61 @@ func (o *DcimConsolePortsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithIDGt(iDGt *string) *DcimConsolePortsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithIDGte(iDGte *string) *DcimConsolePortsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithIDLt(iDLt *string) *DcimConsolePortsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithIDLte(iDLte *string) *DcimConsolePortsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithIDn(iDn *string) *DcimConsolePortsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim console ports list params func (o *DcimConsolePortsListParams) WithLimit(limit *int64) *DcimConsolePortsListParams { o.SetLimit(limit) @@ -242,6 +492,105 @@ func (o *DcimConsolePortsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameIc(nameIc *string) *DcimConsolePortsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameIe(nameIe *string) *DcimConsolePortsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameIew(nameIew *string) *DcimConsolePortsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameIsw(nameIsw *string) *DcimConsolePortsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNamen(namen *string) *DcimConsolePortsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameNic(nameNic *string) *DcimConsolePortsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameNie(nameNie *string) *DcimConsolePortsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameNiew(nameNiew *string) *DcimConsolePortsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithNameNisw(nameNisw *string) *DcimConsolePortsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim console ports list params func (o *DcimConsolePortsListParams) WithOffset(offset *int64) *DcimConsolePortsListParams { o.SetOffset(offset) @@ -275,6 +624,17 @@ func (o *DcimConsolePortsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithRegionn(regionn *string) *DcimConsolePortsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim console ports list params func (o *DcimConsolePortsListParams) WithRegionID(regionID *string) *DcimConsolePortsListParams { o.SetRegionID(regionID) @@ -286,6 +646,17 @@ func (o *DcimConsolePortsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithRegionIDn(regionIDn *string) *DcimConsolePortsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim console ports list params func (o *DcimConsolePortsListParams) WithSite(site *string) *DcimConsolePortsListParams { o.SetSite(site) @@ -297,6 +668,17 @@ func (o *DcimConsolePortsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithSiten(siten *string) *DcimConsolePortsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim console ports list params func (o *DcimConsolePortsListParams) WithSiteID(siteID *string) *DcimConsolePortsListParams { o.SetSiteID(siteID) @@ -308,6 +690,17 @@ func (o *DcimConsolePortsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithSiteIDn(siteIDn *string) *DcimConsolePortsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim console ports list params func (o *DcimConsolePortsListParams) WithTag(tag *string) *DcimConsolePortsListParams { o.SetTag(tag) @@ -319,6 +712,17 @@ func (o *DcimConsolePortsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithTagn(tagn *string) *DcimConsolePortsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim console ports list params func (o *DcimConsolePortsListParams) WithType(typeVar *string) *DcimConsolePortsListParams { o.SetType(typeVar) @@ -330,6 +734,17 @@ func (o *DcimConsolePortsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim console ports list params +func (o *DcimConsolePortsListParams) WithTypen(typen *string) *DcimConsolePortsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim console ports list params +func (o *DcimConsolePortsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -370,6 +785,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Description != nil { // query param description @@ -386,6 +817,150 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -402,6 +977,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -418,6 +1009,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -434,6 +1041,86 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -466,6 +1153,150 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -514,6 +1345,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -530,6 +1377,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -546,6 +1409,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -562,6 +1441,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -578,6 +1473,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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.Type != nil { // query param type @@ -594,6 +1505,22 @@ func (o *DcimConsolePortsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_responses.go index f81a39167..9e6070b66 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortsListReader is a Reader for the DcimConsolePortsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_parameters.go index cdd81bbcc..eda644264 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsolePortsPartialUpdateParams creates a new DcimConsolePortsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_responses.go index 889338107..2d3368fec 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortsPartialUpdateReader is a Reader for the DcimConsolePortsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_parameters.go index 8d5b70e98..d4ff80a5f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortsReadParams creates a new DcimConsolePortsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_responses.go index 84bf63f73..d0e1240a2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortsReadReader is a Reader for the DcimConsolePortsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_parameters.go index bf05a5ea8..75b4c5493 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsolePortsTraceParams creates a new DcimConsolePortsTraceParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_responses.go index a88c022c3..6ccbeb994 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_trace_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortsTraceReader is a Reader for the DcimConsolePortsTrace structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_parameters.go index 31dc87700..82bd9c9fc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsolePortsUpdateParams creates a new DcimConsolePortsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_responses.go index cd265f61e..e55142856 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_ports_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsolePortsUpdateReader is a Reader for the DcimConsolePortsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_parameters.go index 43f475598..aed9f9580 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsoleServerPortTemplatesCreateParams creates a new DcimConsoleServerPortTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_responses.go index 492dec605..f09eeeb36 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortTemplatesCreateReader is a Reader for the DcimConsoleServerPortTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_parameters.go index b370a47d4..4773e17ea 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortTemplatesDeleteParams creates a new DcimConsoleServerPortTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_responses.go index 290921574..17f6414a1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimConsoleServerPortTemplatesDeleteReader is a Reader for the DcimConsoleServerPortTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go index 2f3be7048..f35e1de8a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortTemplatesListParams creates a new DcimConsoleServerPortTemplatesListParams object @@ -79,8 +78,20 @@ type DcimConsoleServerPortTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +99,24 @@ type DcimConsoleServerPortTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -97,6 +126,8 @@ type DcimConsoleServerPortTemplatesListParams struct { Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -147,6 +178,17 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetDevicetypeID(devicetypeID o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimConsoleServerPortTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim console server port templates list params func (o *DcimConsoleServerPortTemplatesListParams) WithID(id *string) *DcimConsoleServerPortTemplatesListParams { o.SetID(id) @@ -158,6 +200,61 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithIDGt(iDGt *string) *DcimConsoleServerPortTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithIDGte(iDGte *string) *DcimConsoleServerPortTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithIDLt(iDLt *string) *DcimConsoleServerPortTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithIDLte(iDLte *string) *DcimConsoleServerPortTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithIDn(iDn *string) *DcimConsoleServerPortTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim console server port templates list params func (o *DcimConsoleServerPortTemplatesListParams) WithLimit(limit *int64) *DcimConsoleServerPortTemplatesListParams { o.SetLimit(limit) @@ -180,6 +277,105 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameIc(nameIc *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameIe(nameIe *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameIew(nameIew *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameIsw(nameIsw *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNamen(namen *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameNic(nameNic *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameNie(nameNie *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameNiew(nameNiew *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithNameNisw(nameNisw *string) *DcimConsoleServerPortTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim console server port templates list params func (o *DcimConsoleServerPortTemplatesListParams) WithOffset(offset *int64) *DcimConsoleServerPortTemplatesListParams { o.SetOffset(offset) @@ -213,6 +409,17 @@ func (o *DcimConsoleServerPortTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) WithTypen(typen *string) *DcimConsoleServerPortTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim console server port templates list params +func (o *DcimConsoleServerPortTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -237,6 +444,22 @@ func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.Clie } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -253,6 +476,86 @@ func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.Clie } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -285,6 +588,150 @@ func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.Clie } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -333,6 +780,22 @@ func (o *DcimConsoleServerPortTemplatesListParams) WriteToRequest(r runtime.Clie } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_responses.go index fd2df1ad1..b1d2d5fc9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortTemplatesListReader is a Reader for the DcimConsoleServerPortTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_parameters.go index 443dad7ae..8300aa900 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsoleServerPortTemplatesPartialUpdateParams creates a new DcimConsoleServerPortTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_responses.go index d0c10d909..c80fdaed7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortTemplatesPartialUpdateReader is a Reader for the DcimConsoleServerPortTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_parameters.go index 6f5e5966a..5fc90e153 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortTemplatesReadParams creates a new DcimConsoleServerPortTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_responses.go index d496ce19e..55f437610 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortTemplatesReadReader is a Reader for the DcimConsoleServerPortTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_parameters.go index 923e83608..d9b81b527 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsoleServerPortTemplatesUpdateParams creates a new DcimConsoleServerPortTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_responses.go index 094f440ad..d912e2195 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_port_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortTemplatesUpdateReader is a Reader for the DcimConsoleServerPortTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_parameters.go index a27ece33c..9d6cbed5f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsoleServerPortsCreateParams creates a new DcimConsoleServerPortsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_responses.go index 1bcf207b1..d93a6350f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortsCreateReader is a Reader for the DcimConsoleServerPortsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_parameters.go index 482efab12..05035e3e3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortsDeleteParams creates a new DcimConsoleServerPortsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_responses.go index 867551d93..c3b1c9fcb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimConsoleServerPortsDeleteReader is a Reader for the DcimConsoleServerPortsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go index 4fa81a4c7..e14513274 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortsListParams creates a new DcimConsoleServerPortsListParams object @@ -81,14 +80,48 @@ type DcimConsoleServerPortsListParams struct { Cabled *string /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -96,6 +129,24 @@ type DcimConsoleServerPortsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -105,16 +156,28 @@ type DcimConsoleServerPortsListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -176,6 +239,17 @@ func (o *DcimConsoleServerPortsListParams) SetConnectionStatus(connectionStatus o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimConsoleServerPortsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDescription adds the description to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithDescription(description *string) *DcimConsoleServerPortsListParams { o.SetDescription(description) @@ -187,6 +261,105 @@ func (o *DcimConsoleServerPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionIe(descriptionIe *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionIew(descriptionIew *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionn(descriptionn *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionNic(descriptionNic *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionNie(descriptionNie *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimConsoleServerPortsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithDevice(device *string) *DcimConsoleServerPortsListParams { o.SetDevice(device) @@ -198,6 +371,17 @@ func (o *DcimConsoleServerPortsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDevicen(devicen *string) *DcimConsoleServerPortsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithDeviceID(deviceID *string) *DcimConsoleServerPortsListParams { o.SetDeviceID(deviceID) @@ -209,6 +393,17 @@ func (o *DcimConsoleServerPortsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithDeviceIDn(deviceIDn *string) *DcimConsoleServerPortsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithID(id *string) *DcimConsoleServerPortsListParams { o.SetID(id) @@ -220,6 +415,61 @@ func (o *DcimConsoleServerPortsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithIDGt(iDGt *string) *DcimConsoleServerPortsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithIDGte(iDGte *string) *DcimConsoleServerPortsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithIDLt(iDLt *string) *DcimConsoleServerPortsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithIDLte(iDLte *string) *DcimConsoleServerPortsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithIDn(iDn *string) *DcimConsoleServerPortsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithLimit(limit *int64) *DcimConsoleServerPortsListParams { o.SetLimit(limit) @@ -242,6 +492,105 @@ func (o *DcimConsoleServerPortsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameIc(nameIc *string) *DcimConsoleServerPortsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameIe(nameIe *string) *DcimConsoleServerPortsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameIew(nameIew *string) *DcimConsoleServerPortsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameIsw(nameIsw *string) *DcimConsoleServerPortsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNamen(namen *string) *DcimConsoleServerPortsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameNic(nameNic *string) *DcimConsoleServerPortsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameNie(nameNie *string) *DcimConsoleServerPortsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameNiew(nameNiew *string) *DcimConsoleServerPortsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithNameNisw(nameNisw *string) *DcimConsoleServerPortsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithOffset(offset *int64) *DcimConsoleServerPortsListParams { o.SetOffset(offset) @@ -275,6 +624,17 @@ func (o *DcimConsoleServerPortsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithRegionn(regionn *string) *DcimConsoleServerPortsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithRegionID(regionID *string) *DcimConsoleServerPortsListParams { o.SetRegionID(regionID) @@ -286,6 +646,17 @@ func (o *DcimConsoleServerPortsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithRegionIDn(regionIDn *string) *DcimConsoleServerPortsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithSite(site *string) *DcimConsoleServerPortsListParams { o.SetSite(site) @@ -297,6 +668,17 @@ func (o *DcimConsoleServerPortsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithSiten(siten *string) *DcimConsoleServerPortsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithSiteID(siteID *string) *DcimConsoleServerPortsListParams { o.SetSiteID(siteID) @@ -308,6 +690,17 @@ func (o *DcimConsoleServerPortsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithSiteIDn(siteIDn *string) *DcimConsoleServerPortsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithTag(tag *string) *DcimConsoleServerPortsListParams { o.SetTag(tag) @@ -319,6 +712,17 @@ func (o *DcimConsoleServerPortsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithTagn(tagn *string) *DcimConsoleServerPortsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim console server ports list params func (o *DcimConsoleServerPortsListParams) WithType(typeVar *string) *DcimConsoleServerPortsListParams { o.SetType(typeVar) @@ -330,6 +734,17 @@ func (o *DcimConsoleServerPortsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) WithTypen(typen *string) *DcimConsoleServerPortsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim console server ports list params +func (o *DcimConsoleServerPortsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -370,6 +785,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Description != nil { // query param description @@ -386,6 +817,150 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -402,6 +977,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -418,6 +1009,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -434,6 +1041,86 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -466,6 +1153,150 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -514,6 +1345,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + 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 @@ -530,6 +1377,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + 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 @@ -546,6 +1409,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -562,6 +1441,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -578,6 +1473,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + 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.Type != nil { // query param type @@ -594,6 +1505,22 @@ func (o *DcimConsoleServerPortsListParams) WriteToRequest(r runtime.ClientReques } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_responses.go index 0f9e21d29..51132114e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortsListReader is a Reader for the DcimConsoleServerPortsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_parameters.go index d5770c431..adcf7db4f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsoleServerPortsPartialUpdateParams creates a new DcimConsoleServerPortsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_responses.go index a5f38e55f..851930cad 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortsPartialUpdateReader is a Reader for the DcimConsoleServerPortsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_parameters.go index c984e0ac6..592dcb34e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortsReadParams creates a new DcimConsoleServerPortsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_responses.go index e27d63541..ca62a3b04 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortsReadReader is a Reader for the DcimConsoleServerPortsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_parameters.go index c0e2ab3be..6c6c26bae 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimConsoleServerPortsTraceParams creates a new DcimConsoleServerPortsTraceParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_responses.go index 41612792f..7cb5f76b9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_trace_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortsTraceReader is a Reader for the DcimConsoleServerPortsTrace structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_parameters.go index ad2590c72..26b487494 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimConsoleServerPortsUpdateParams creates a new DcimConsoleServerPortsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_responses.go index c5a931148..e30aaa294 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_console_server_ports_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimConsoleServerPortsUpdateReader is a Reader for the DcimConsoleServerPortsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_parameters.go index 7afa2280b..4a29526f0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceBayTemplatesCreateParams creates a new DcimDeviceBayTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_responses.go index 1c58b68ca..054d85da6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBayTemplatesCreateReader is a Reader for the DcimDeviceBayTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_parameters.go index 6e963ae3f..9e2de9d30 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceBayTemplatesDeleteParams creates a new DcimDeviceBayTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_responses.go index 1e7abdec4..c7b28854f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimDeviceBayTemplatesDeleteReader is a Reader for the DcimDeviceBayTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go index e403ee035..fcd1104ad 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceBayTemplatesListParams creates a new DcimDeviceBayTemplatesListParams object @@ -79,8 +78,20 @@ type DcimDeviceBayTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +99,24 @@ type DcimDeviceBayTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -145,6 +174,17 @@ func (o *DcimDeviceBayTemplatesListParams) SetDevicetypeID(devicetypeID *string) o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimDeviceBayTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim device bay templates list params func (o *DcimDeviceBayTemplatesListParams) WithID(id *string) *DcimDeviceBayTemplatesListParams { o.SetID(id) @@ -156,6 +196,61 @@ func (o *DcimDeviceBayTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithIDGt(iDGt *string) *DcimDeviceBayTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithIDGte(iDGte *string) *DcimDeviceBayTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithIDLt(iDLt *string) *DcimDeviceBayTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithIDLte(iDLte *string) *DcimDeviceBayTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithIDn(iDn *string) *DcimDeviceBayTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim device bay templates list params func (o *DcimDeviceBayTemplatesListParams) WithLimit(limit *int64) *DcimDeviceBayTemplatesListParams { o.SetLimit(limit) @@ -178,6 +273,105 @@ func (o *DcimDeviceBayTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameIc(nameIc *string) *DcimDeviceBayTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameIe(nameIe *string) *DcimDeviceBayTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameIew(nameIew *string) *DcimDeviceBayTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameIsw(nameIsw *string) *DcimDeviceBayTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNamen(namen *string) *DcimDeviceBayTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameNic(nameNic *string) *DcimDeviceBayTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameNie(nameNie *string) *DcimDeviceBayTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameNiew(nameNiew *string) *DcimDeviceBayTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) WithNameNisw(nameNisw *string) *DcimDeviceBayTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim device bay templates list params +func (o *DcimDeviceBayTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim device bay templates list params func (o *DcimDeviceBayTemplatesListParams) WithOffset(offset *int64) *DcimDeviceBayTemplatesListParams { o.SetOffset(offset) @@ -224,6 +418,22 @@ func (o *DcimDeviceBayTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -240,6 +450,86 @@ func (o *DcimDeviceBayTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -272,6 +562,150 @@ func (o *DcimDeviceBayTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_responses.go index b2512eb46..4d4a2484d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBayTemplatesListReader is a Reader for the DcimDeviceBayTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_parameters.go index 382d49abe..a6843f674 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceBayTemplatesPartialUpdateParams creates a new DcimDeviceBayTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_responses.go index 90564126d..a2b5de83d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBayTemplatesPartialUpdateReader is a Reader for the DcimDeviceBayTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_parameters.go index edde68be0..3a67bf3d6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceBayTemplatesReadParams creates a new DcimDeviceBayTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_responses.go index d7a6c1465..ded1ed72d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBayTemplatesReadReader is a Reader for the DcimDeviceBayTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_parameters.go index 56ed2be66..d36ba902c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceBayTemplatesUpdateParams creates a new DcimDeviceBayTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_responses.go index 902319fe5..fbacdd6c5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bay_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBayTemplatesUpdateReader is a Reader for the DcimDeviceBayTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_parameters.go index f230d1169..bd88d5742 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceBaysCreateParams creates a new DcimDeviceBaysCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_responses.go index 123b242c7..02fbaeaa3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBaysCreateReader is a Reader for the DcimDeviceBaysCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_parameters.go index 90d1db49c..30afb0fb3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceBaysDeleteParams creates a new DcimDeviceBaysDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_responses.go index 325a2595c..51c8e04b9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimDeviceBaysDeleteReader is a Reader for the DcimDeviceBaysDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go index 22bd371eb..fe4b89c3e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceBaysListParams creates a new DcimDeviceBaysListParams object @@ -79,12 +78,44 @@ type DcimDeviceBaysListParams struct { /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -92,6 +123,24 @@ type DcimDeviceBaysListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -101,14 +150,24 @@ type DcimDeviceBaysListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string timeout time.Duration Context context.Context @@ -159,6 +218,105 @@ func (o *DcimDeviceBaysListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionIc(descriptionIc *string) *DcimDeviceBaysListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionIe(descriptionIe *string) *DcimDeviceBaysListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionIew(descriptionIew *string) *DcimDeviceBaysListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionIsw(descriptionIsw *string) *DcimDeviceBaysListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionn(descriptionn *string) *DcimDeviceBaysListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionNic(descriptionNic *string) *DcimDeviceBaysListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionNie(descriptionNie *string) *DcimDeviceBaysListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionNiew(descriptionNiew *string) *DcimDeviceBaysListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDescriptionNisw(descriptionNisw *string) *DcimDeviceBaysListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithDevice(device *string) *DcimDeviceBaysListParams { o.SetDevice(device) @@ -170,6 +328,17 @@ func (o *DcimDeviceBaysListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDevicen(devicen *string) *DcimDeviceBaysListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithDeviceID(deviceID *string) *DcimDeviceBaysListParams { o.SetDeviceID(deviceID) @@ -181,6 +350,17 @@ func (o *DcimDeviceBaysListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithDeviceIDn(deviceIDn *string) *DcimDeviceBaysListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithID(id *string) *DcimDeviceBaysListParams { o.SetID(id) @@ -192,6 +372,61 @@ func (o *DcimDeviceBaysListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithIDGt(iDGt *string) *DcimDeviceBaysListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithIDGte(iDGte *string) *DcimDeviceBaysListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithIDLt(iDLt *string) *DcimDeviceBaysListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithIDLte(iDLte *string) *DcimDeviceBaysListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithIDn(iDn *string) *DcimDeviceBaysListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithLimit(limit *int64) *DcimDeviceBaysListParams { o.SetLimit(limit) @@ -214,6 +449,105 @@ func (o *DcimDeviceBaysListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameIc(nameIc *string) *DcimDeviceBaysListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameIe(nameIe *string) *DcimDeviceBaysListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameIew(nameIew *string) *DcimDeviceBaysListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameIsw(nameIsw *string) *DcimDeviceBaysListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNamen(namen *string) *DcimDeviceBaysListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameNic(nameNic *string) *DcimDeviceBaysListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameNie(nameNie *string) *DcimDeviceBaysListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameNiew(nameNiew *string) *DcimDeviceBaysListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithNameNisw(nameNisw *string) *DcimDeviceBaysListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithOffset(offset *int64) *DcimDeviceBaysListParams { o.SetOffset(offset) @@ -247,6 +581,17 @@ func (o *DcimDeviceBaysListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithRegionn(regionn *string) *DcimDeviceBaysListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithRegionID(regionID *string) *DcimDeviceBaysListParams { o.SetRegionID(regionID) @@ -258,6 +603,17 @@ func (o *DcimDeviceBaysListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithRegionIDn(regionIDn *string) *DcimDeviceBaysListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithSite(site *string) *DcimDeviceBaysListParams { o.SetSite(site) @@ -269,6 +625,17 @@ func (o *DcimDeviceBaysListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithSiten(siten *string) *DcimDeviceBaysListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithSiteID(siteID *string) *DcimDeviceBaysListParams { o.SetSiteID(siteID) @@ -280,6 +647,17 @@ func (o *DcimDeviceBaysListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithSiteIDn(siteIDn *string) *DcimDeviceBaysListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim device bays list params func (o *DcimDeviceBaysListParams) WithTag(tag *string) *DcimDeviceBaysListParams { o.SetTag(tag) @@ -291,6 +669,17 @@ func (o *DcimDeviceBaysListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim device bays list params +func (o *DcimDeviceBaysListParams) WithTagn(tagn *string) *DcimDeviceBaysListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim device bays list params +func (o *DcimDeviceBaysListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -315,6 +704,150 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -331,6 +864,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -347,6 +896,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -363,6 +928,86 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -395,6 +1040,150 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -443,6 +1232,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -459,6 +1264,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -475,6 +1296,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -491,6 +1328,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -507,6 +1360,22 @@ func (o *DcimDeviceBaysListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_responses.go index 5f65dae63..18b95cdad 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBaysListReader is a Reader for the DcimDeviceBaysList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_parameters.go index 8f838826f..87b33d524 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceBaysPartialUpdateParams creates a new DcimDeviceBaysPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_responses.go index 548d2915c..589b47d0c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBaysPartialUpdateReader is a Reader for the DcimDeviceBaysPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_parameters.go index c1c9f7334..26d606726 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceBaysReadParams creates a new DcimDeviceBaysReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_responses.go index 8dbb61066..d879ff240 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBaysReadReader is a Reader for the DcimDeviceBaysRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_parameters.go index 2c10dcdc7..2021e8a20 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceBaysUpdateParams creates a new DcimDeviceBaysUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_responses.go index 845563e54..1b340587f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_bays_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceBaysUpdateReader is a Reader for the DcimDeviceBaysUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_parameters.go index 7d9e2b13d..45ec70ec8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceRolesCreateParams creates a new DcimDeviceRolesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_responses.go index 8e7dc1ee5..ca75cbbea 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceRolesCreateReader is a Reader for the DcimDeviceRolesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_parameters.go index 7e94787d3..5784acc1c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceRolesDeleteParams creates a new DcimDeviceRolesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_responses.go index 501ec9bec..2b880a534 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimDeviceRolesDeleteReader is a Reader for the DcimDeviceRolesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go index da1519ee0..c230c15b7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceRolesListParams creates a new DcimDeviceRolesListParams object @@ -79,8 +78,36 @@ type DcimDeviceRolesListParams struct { /*Color*/ Color *string + /*ColorIc*/ + ColorIc *string + /*ColorIe*/ + ColorIe *string + /*ColorIew*/ + ColorIew *string + /*ColorIsw*/ + ColorIsw *string + /*Colorn*/ + Colorn *string + /*ColorNic*/ + ColorNic *string + /*ColorNie*/ + ColorNie *string + /*ColorNiew*/ + ColorNiew *string + /*ColorNisw*/ + ColorNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +115,24 @@ type DcimDeviceRolesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -97,6 +142,24 @@ type DcimDeviceRolesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string /*VMRole*/ VMRole *string @@ -149,6 +212,105 @@ func (o *DcimDeviceRolesListParams) SetColor(color *string) { o.Color = color } +// WithColorIc adds the colorIc to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorIc(colorIc *string) *DcimDeviceRolesListParams { + o.SetColorIc(colorIc) + return o +} + +// SetColorIc adds the colorIc to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorIc(colorIc *string) { + o.ColorIc = colorIc +} + +// WithColorIe adds the colorIe to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorIe(colorIe *string) *DcimDeviceRolesListParams { + o.SetColorIe(colorIe) + return o +} + +// SetColorIe adds the colorIe to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorIe(colorIe *string) { + o.ColorIe = colorIe +} + +// WithColorIew adds the colorIew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorIew(colorIew *string) *DcimDeviceRolesListParams { + o.SetColorIew(colorIew) + return o +} + +// SetColorIew adds the colorIew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorIew(colorIew *string) { + o.ColorIew = colorIew +} + +// WithColorIsw adds the colorIsw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorIsw(colorIsw *string) *DcimDeviceRolesListParams { + o.SetColorIsw(colorIsw) + return o +} + +// SetColorIsw adds the colorIsw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorIsw(colorIsw *string) { + o.ColorIsw = colorIsw +} + +// WithColorn adds the colorn to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorn(colorn *string) *DcimDeviceRolesListParams { + o.SetColorn(colorn) + return o +} + +// SetColorn adds the colorN to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorn(colorn *string) { + o.Colorn = colorn +} + +// WithColorNic adds the colorNic to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorNic(colorNic *string) *DcimDeviceRolesListParams { + o.SetColorNic(colorNic) + return o +} + +// SetColorNic adds the colorNic to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorNic(colorNic *string) { + o.ColorNic = colorNic +} + +// WithColorNie adds the colorNie to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorNie(colorNie *string) *DcimDeviceRolesListParams { + o.SetColorNie(colorNie) + return o +} + +// SetColorNie adds the colorNie to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorNie(colorNie *string) { + o.ColorNie = colorNie +} + +// WithColorNiew adds the colorNiew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorNiew(colorNiew *string) *DcimDeviceRolesListParams { + o.SetColorNiew(colorNiew) + return o +} + +// SetColorNiew adds the colorNiew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorNiew(colorNiew *string) { + o.ColorNiew = colorNiew +} + +// WithColorNisw adds the colorNisw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithColorNisw(colorNisw *string) *DcimDeviceRolesListParams { + o.SetColorNisw(colorNisw) + return o +} + +// SetColorNisw adds the colorNisw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetColorNisw(colorNisw *string) { + o.ColorNisw = colorNisw +} + // WithID adds the id to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithID(id *string) *DcimDeviceRolesListParams { o.SetID(id) @@ -160,6 +322,61 @@ func (o *DcimDeviceRolesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithIDGt(iDGt *string) *DcimDeviceRolesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithIDGte(iDGte *string) *DcimDeviceRolesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithIDLt(iDLt *string) *DcimDeviceRolesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithIDLte(iDLte *string) *DcimDeviceRolesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithIDn(iDn *string) *DcimDeviceRolesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithLimit(limit *int64) *DcimDeviceRolesListParams { o.SetLimit(limit) @@ -182,6 +399,105 @@ func (o *DcimDeviceRolesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameIc(nameIc *string) *DcimDeviceRolesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameIe(nameIe *string) *DcimDeviceRolesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameIew(nameIew *string) *DcimDeviceRolesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameIsw(nameIsw *string) *DcimDeviceRolesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNamen(namen *string) *DcimDeviceRolesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameNic(nameNic *string) *DcimDeviceRolesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameNie(nameNie *string) *DcimDeviceRolesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameNiew(nameNiew *string) *DcimDeviceRolesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithNameNisw(nameNisw *string) *DcimDeviceRolesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithOffset(offset *int64) *DcimDeviceRolesListParams { o.SetOffset(offset) @@ -215,6 +531,105 @@ func (o *DcimDeviceRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugIc(slugIc *string) *DcimDeviceRolesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugIe(slugIe *string) *DcimDeviceRolesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugIew(slugIew *string) *DcimDeviceRolesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugIsw(slugIsw *string) *DcimDeviceRolesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugn(slugn *string) *DcimDeviceRolesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugNic(slugNic *string) *DcimDeviceRolesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugNie(slugNie *string) *DcimDeviceRolesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugNiew(slugNiew *string) *DcimDeviceRolesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) WithSlugNisw(slugNisw *string) *DcimDeviceRolesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim device roles list params +func (o *DcimDeviceRolesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WithVMRole adds the vMRole to the dcim device roles list params func (o *DcimDeviceRolesListParams) WithVMRole(vMRole *string) *DcimDeviceRolesListParams { o.SetVMRole(vMRole) @@ -250,6 +665,150 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.ColorIc != nil { + + // query param color__ic + var qrColorIc string + if o.ColorIc != nil { + qrColorIc = *o.ColorIc + } + qColorIc := qrColorIc + if qColorIc != "" { + if err := r.SetQueryParam("color__ic", qColorIc); err != nil { + return err + } + } + + } + + if o.ColorIe != nil { + + // query param color__ie + var qrColorIe string + if o.ColorIe != nil { + qrColorIe = *o.ColorIe + } + qColorIe := qrColorIe + if qColorIe != "" { + if err := r.SetQueryParam("color__ie", qColorIe); err != nil { + return err + } + } + + } + + if o.ColorIew != nil { + + // query param color__iew + var qrColorIew string + if o.ColorIew != nil { + qrColorIew = *o.ColorIew + } + qColorIew := qrColorIew + if qColorIew != "" { + if err := r.SetQueryParam("color__iew", qColorIew); err != nil { + return err + } + } + + } + + if o.ColorIsw != nil { + + // query param color__isw + var qrColorIsw string + if o.ColorIsw != nil { + qrColorIsw = *o.ColorIsw + } + qColorIsw := qrColorIsw + if qColorIsw != "" { + if err := r.SetQueryParam("color__isw", qColorIsw); err != nil { + return err + } + } + + } + + if o.Colorn != nil { + + // query param color__n + var qrColorn string + if o.Colorn != nil { + qrColorn = *o.Colorn + } + qColorn := qrColorn + if qColorn != "" { + if err := r.SetQueryParam("color__n", qColorn); err != nil { + return err + } + } + + } + + if o.ColorNic != nil { + + // query param color__nic + var qrColorNic string + if o.ColorNic != nil { + qrColorNic = *o.ColorNic + } + qColorNic := qrColorNic + if qColorNic != "" { + if err := r.SetQueryParam("color__nic", qColorNic); err != nil { + return err + } + } + + } + + if o.ColorNie != nil { + + // query param color__nie + var qrColorNie string + if o.ColorNie != nil { + qrColorNie = *o.ColorNie + } + qColorNie := qrColorNie + if qColorNie != "" { + if err := r.SetQueryParam("color__nie", qColorNie); err != nil { + return err + } + } + + } + + if o.ColorNiew != nil { + + // query param color__niew + var qrColorNiew string + if o.ColorNiew != nil { + qrColorNiew = *o.ColorNiew + } + qColorNiew := qrColorNiew + if qColorNiew != "" { + if err := r.SetQueryParam("color__niew", qColorNiew); err != nil { + return err + } + } + + } + + if o.ColorNisw != nil { + + // query param color__nisw + var qrColorNisw string + if o.ColorNisw != nil { + qrColorNisw = *o.ColorNisw + } + qColorNisw := qrColorNisw + if qColorNisw != "" { + if err := r.SetQueryParam("color__nisw", qColorNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -266,6 +825,86 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -298,6 +937,150 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -346,6 +1129,150 @@ func (o *DcimDeviceRolesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if o.VMRole != nil { // query param vm_role diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_responses.go index 12c7759f0..ba47559e6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceRolesListReader is a Reader for the DcimDeviceRolesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_parameters.go index c7fea7f6a..4cb0de8f8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceRolesPartialUpdateParams creates a new DcimDeviceRolesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_responses.go index fdc9b30bb..91b622aba 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceRolesPartialUpdateReader is a Reader for the DcimDeviceRolesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_parameters.go index a86de963c..430346ea1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceRolesReadParams creates a new DcimDeviceRolesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_responses.go index 4f20f5c06..be0fdbe40 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceRolesReadReader is a Reader for the DcimDeviceRolesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_parameters.go index d7cf2b2f5..9189612da 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceRolesUpdateParams creates a new DcimDeviceRolesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_responses.go index 618f9aa8b..1f01efb44 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_roles_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceRolesUpdateReader is a Reader for the DcimDeviceRolesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_parameters.go index b8dd984c9..dd2a94f80 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceTypesCreateParams creates a new DcimDeviceTypesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_responses.go index daf910df8..40a8c781f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceTypesCreateReader is a Reader for the DcimDeviceTypesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_parameters.go index 76be308e4..3c852855a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceTypesDeleteParams creates a new DcimDeviceTypesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_responses.go index 8c5d5173a..ce2551016 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimDeviceTypesDeleteReader is a Reader for the DcimDeviceTypesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go index cfcaabee9..a2f446841 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceTypesListParams creates a new DcimDeviceTypesListParams object @@ -89,11 +88,18 @@ type DcimDeviceTypesListParams struct { CreatedLte *string /*DeviceBays*/ DeviceBays *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Interfaces*/ Interfaces *string /*IsFullDepth*/ @@ -111,10 +117,32 @@ type DcimDeviceTypesListParams struct { Limit *int64 /*Manufacturer*/ Manufacturer *string + /*Manufacturern*/ + Manufacturern *string /*ManufacturerID*/ ManufacturerID *string + /*ManufacturerIDn*/ + ManufacturerIDn *string /*Model*/ Model *string + /*ModelIc*/ + ModelIc *string + /*ModelIe*/ + ModelIe *string + /*ModelIew*/ + ModelIew *string + /*ModelIsw*/ + ModelIsw *string + /*Modeln*/ + Modeln *string + /*ModelNic*/ + ModelNic *string + /*ModelNie*/ + ModelNie *string + /*ModelNiew*/ + ModelNiew *string + /*ModelNisw*/ + ModelNisw *string /*Offset The initial index from which to return the results. @@ -122,6 +150,24 @@ type DcimDeviceTypesListParams struct { Offset *int64 /*PartNumber*/ PartNumber *string + /*PartNumberIc*/ + PartNumberIc *string + /*PartNumberIe*/ + PartNumberIe *string + /*PartNumberIew*/ + PartNumberIew *string + /*PartNumberIsw*/ + PartNumberIsw *string + /*PartNumbern*/ + PartNumbern *string + /*PartNumberNic*/ + PartNumberNic *string + /*PartNumberNie*/ + PartNumberNie *string + /*PartNumberNiew*/ + PartNumberNiew *string + /*PartNumberNisw*/ + PartNumberNisw *string /*PassThroughPorts*/ PassThroughPorts *string /*PowerOutlets*/ @@ -132,12 +178,44 @@ type DcimDeviceTypesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string /*SubdeviceRole*/ SubdeviceRole *string + /*SubdeviceRolen*/ + SubdeviceRolen *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*UHeight*/ UHeight *string + /*UHeightGt*/ + UHeightGt *string + /*UHeightGte*/ + UHeightGte *string + /*UHeightLt*/ + UHeightLt *string + /*UHeightLte*/ + UHeightLte *string + /*UHeightn*/ + UHeightn *string timeout time.Duration Context context.Context @@ -243,15 +321,70 @@ func (o *DcimDeviceTypesListParams) SetDeviceBays(deviceBays *string) { o.DeviceBays = deviceBays } -// WithIDIn adds the iDIn to the dcim device types list params -func (o *DcimDeviceTypesListParams) WithIDIn(iDIn *string) *DcimDeviceTypesListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithID(id *string) *DcimDeviceTypesListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithIDGt(iDGt *string) *DcimDeviceTypesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithIDGte(iDGte *string) *DcimDeviceTypesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithIDLt(iDLt *string) *DcimDeviceTypesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithIDLte(iDLte *string) *DcimDeviceTypesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithIDn(iDn *string) *DcimDeviceTypesListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the dcim device types list params -func (o *DcimDeviceTypesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithInterfaces adds the interfaces to the dcim device types list params @@ -331,6 +464,17 @@ func (o *DcimDeviceTypesListParams) SetManufacturer(manufacturer *string) { o.Manufacturer = manufacturer } +// WithManufacturern adds the manufacturern to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithManufacturern(manufacturern *string) *DcimDeviceTypesListParams { + o.SetManufacturern(manufacturern) + return o +} + +// SetManufacturern adds the manufacturerN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetManufacturern(manufacturern *string) { + o.Manufacturern = manufacturern +} + // WithManufacturerID adds the manufacturerID to the dcim device types list params func (o *DcimDeviceTypesListParams) WithManufacturerID(manufacturerID *string) *DcimDeviceTypesListParams { o.SetManufacturerID(manufacturerID) @@ -342,6 +486,17 @@ func (o *DcimDeviceTypesListParams) SetManufacturerID(manufacturerID *string) { o.ManufacturerID = manufacturerID } +// WithManufacturerIDn adds the manufacturerIDn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithManufacturerIDn(manufacturerIDn *string) *DcimDeviceTypesListParams { + o.SetManufacturerIDn(manufacturerIDn) + return o +} + +// SetManufacturerIDn adds the manufacturerIdN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetManufacturerIDn(manufacturerIDn *string) { + o.ManufacturerIDn = manufacturerIDn +} + // WithModel adds the model to the dcim device types list params func (o *DcimDeviceTypesListParams) WithModel(model *string) *DcimDeviceTypesListParams { o.SetModel(model) @@ -353,6 +508,105 @@ func (o *DcimDeviceTypesListParams) SetModel(model *string) { o.Model = model } +// WithModelIc adds the modelIc to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelIc(modelIc *string) *DcimDeviceTypesListParams { + o.SetModelIc(modelIc) + return o +} + +// SetModelIc adds the modelIc to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelIc(modelIc *string) { + o.ModelIc = modelIc +} + +// WithModelIe adds the modelIe to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelIe(modelIe *string) *DcimDeviceTypesListParams { + o.SetModelIe(modelIe) + return o +} + +// SetModelIe adds the modelIe to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelIe(modelIe *string) { + o.ModelIe = modelIe +} + +// WithModelIew adds the modelIew to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelIew(modelIew *string) *DcimDeviceTypesListParams { + o.SetModelIew(modelIew) + return o +} + +// SetModelIew adds the modelIew to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelIew(modelIew *string) { + o.ModelIew = modelIew +} + +// WithModelIsw adds the modelIsw to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelIsw(modelIsw *string) *DcimDeviceTypesListParams { + o.SetModelIsw(modelIsw) + return o +} + +// SetModelIsw adds the modelIsw to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelIsw(modelIsw *string) { + o.ModelIsw = modelIsw +} + +// WithModeln adds the modeln to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModeln(modeln *string) *DcimDeviceTypesListParams { + o.SetModeln(modeln) + return o +} + +// SetModeln adds the modelN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModeln(modeln *string) { + o.Modeln = modeln +} + +// WithModelNic adds the modelNic to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelNic(modelNic *string) *DcimDeviceTypesListParams { + o.SetModelNic(modelNic) + return o +} + +// SetModelNic adds the modelNic to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelNic(modelNic *string) { + o.ModelNic = modelNic +} + +// WithModelNie adds the modelNie to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelNie(modelNie *string) *DcimDeviceTypesListParams { + o.SetModelNie(modelNie) + return o +} + +// SetModelNie adds the modelNie to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelNie(modelNie *string) { + o.ModelNie = modelNie +} + +// WithModelNiew adds the modelNiew to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelNiew(modelNiew *string) *DcimDeviceTypesListParams { + o.SetModelNiew(modelNiew) + return o +} + +// SetModelNiew adds the modelNiew to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelNiew(modelNiew *string) { + o.ModelNiew = modelNiew +} + +// WithModelNisw adds the modelNisw to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithModelNisw(modelNisw *string) *DcimDeviceTypesListParams { + o.SetModelNisw(modelNisw) + return o +} + +// SetModelNisw adds the modelNisw to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetModelNisw(modelNisw *string) { + o.ModelNisw = modelNisw +} + // WithOffset adds the offset to the dcim device types list params func (o *DcimDeviceTypesListParams) WithOffset(offset *int64) *DcimDeviceTypesListParams { o.SetOffset(offset) @@ -375,6 +629,105 @@ func (o *DcimDeviceTypesListParams) SetPartNumber(partNumber *string) { o.PartNumber = partNumber } +// WithPartNumberIc adds the partNumberIc to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberIc(partNumberIc *string) *DcimDeviceTypesListParams { + o.SetPartNumberIc(partNumberIc) + return o +} + +// SetPartNumberIc adds the partNumberIc to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberIc(partNumberIc *string) { + o.PartNumberIc = partNumberIc +} + +// WithPartNumberIe adds the partNumberIe to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberIe(partNumberIe *string) *DcimDeviceTypesListParams { + o.SetPartNumberIe(partNumberIe) + return o +} + +// SetPartNumberIe adds the partNumberIe to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberIe(partNumberIe *string) { + o.PartNumberIe = partNumberIe +} + +// WithPartNumberIew adds the partNumberIew to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberIew(partNumberIew *string) *DcimDeviceTypesListParams { + o.SetPartNumberIew(partNumberIew) + return o +} + +// SetPartNumberIew adds the partNumberIew to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberIew(partNumberIew *string) { + o.PartNumberIew = partNumberIew +} + +// WithPartNumberIsw adds the partNumberIsw to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberIsw(partNumberIsw *string) *DcimDeviceTypesListParams { + o.SetPartNumberIsw(partNumberIsw) + return o +} + +// SetPartNumberIsw adds the partNumberIsw to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberIsw(partNumberIsw *string) { + o.PartNumberIsw = partNumberIsw +} + +// WithPartNumbern adds the partNumbern to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumbern(partNumbern *string) *DcimDeviceTypesListParams { + o.SetPartNumbern(partNumbern) + return o +} + +// SetPartNumbern adds the partNumberN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumbern(partNumbern *string) { + o.PartNumbern = partNumbern +} + +// WithPartNumberNic adds the partNumberNic to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberNic(partNumberNic *string) *DcimDeviceTypesListParams { + o.SetPartNumberNic(partNumberNic) + return o +} + +// SetPartNumberNic adds the partNumberNic to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberNic(partNumberNic *string) { + o.PartNumberNic = partNumberNic +} + +// WithPartNumberNie adds the partNumberNie to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberNie(partNumberNie *string) *DcimDeviceTypesListParams { + o.SetPartNumberNie(partNumberNie) + return o +} + +// SetPartNumberNie adds the partNumberNie to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberNie(partNumberNie *string) { + o.PartNumberNie = partNumberNie +} + +// WithPartNumberNiew adds the partNumberNiew to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberNiew(partNumberNiew *string) *DcimDeviceTypesListParams { + o.SetPartNumberNiew(partNumberNiew) + return o +} + +// SetPartNumberNiew adds the partNumberNiew to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberNiew(partNumberNiew *string) { + o.PartNumberNiew = partNumberNiew +} + +// WithPartNumberNisw adds the partNumberNisw to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithPartNumberNisw(partNumberNisw *string) *DcimDeviceTypesListParams { + o.SetPartNumberNisw(partNumberNisw) + return o +} + +// SetPartNumberNisw adds the partNumberNisw to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetPartNumberNisw(partNumberNisw *string) { + o.PartNumberNisw = partNumberNisw +} + // WithPassThroughPorts adds the passThroughPorts to the dcim device types list params func (o *DcimDeviceTypesListParams) WithPassThroughPorts(passThroughPorts *string) *DcimDeviceTypesListParams { o.SetPassThroughPorts(passThroughPorts) @@ -430,6 +783,105 @@ func (o *DcimDeviceTypesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugIc(slugIc *string) *DcimDeviceTypesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugIe(slugIe *string) *DcimDeviceTypesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugIew(slugIew *string) *DcimDeviceTypesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugIsw(slugIsw *string) *DcimDeviceTypesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugn(slugn *string) *DcimDeviceTypesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugNic(slugNic *string) *DcimDeviceTypesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugNie(slugNie *string) *DcimDeviceTypesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugNiew(slugNiew *string) *DcimDeviceTypesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSlugNisw(slugNisw *string) *DcimDeviceTypesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WithSubdeviceRole adds the subdeviceRole to the dcim device types list params func (o *DcimDeviceTypesListParams) WithSubdeviceRole(subdeviceRole *string) *DcimDeviceTypesListParams { o.SetSubdeviceRole(subdeviceRole) @@ -441,6 +893,17 @@ func (o *DcimDeviceTypesListParams) SetSubdeviceRole(subdeviceRole *string) { o.SubdeviceRole = subdeviceRole } +// WithSubdeviceRolen adds the subdeviceRolen to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithSubdeviceRolen(subdeviceRolen *string) *DcimDeviceTypesListParams { + o.SetSubdeviceRolen(subdeviceRolen) + return o +} + +// SetSubdeviceRolen adds the subdeviceRoleN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetSubdeviceRolen(subdeviceRolen *string) { + o.SubdeviceRolen = subdeviceRolen +} + // WithTag adds the tag to the dcim device types list params func (o *DcimDeviceTypesListParams) WithTag(tag *string) *DcimDeviceTypesListParams { o.SetTag(tag) @@ -452,6 +915,17 @@ func (o *DcimDeviceTypesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithTagn(tagn *string) *DcimDeviceTypesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithUHeight adds the uHeight to the dcim device types list params func (o *DcimDeviceTypesListParams) WithUHeight(uHeight *string) *DcimDeviceTypesListParams { o.SetUHeight(uHeight) @@ -463,6 +937,61 @@ func (o *DcimDeviceTypesListParams) SetUHeight(uHeight *string) { o.UHeight = uHeight } +// WithUHeightGt adds the uHeightGt to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithUHeightGt(uHeightGt *string) *DcimDeviceTypesListParams { + o.SetUHeightGt(uHeightGt) + return o +} + +// SetUHeightGt adds the uHeightGt to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetUHeightGt(uHeightGt *string) { + o.UHeightGt = uHeightGt +} + +// WithUHeightGte adds the uHeightGte to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithUHeightGte(uHeightGte *string) *DcimDeviceTypesListParams { + o.SetUHeightGte(uHeightGte) + return o +} + +// SetUHeightGte adds the uHeightGte to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetUHeightGte(uHeightGte *string) { + o.UHeightGte = uHeightGte +} + +// WithUHeightLt adds the uHeightLt to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithUHeightLt(uHeightLt *string) *DcimDeviceTypesListParams { + o.SetUHeightLt(uHeightLt) + return o +} + +// SetUHeightLt adds the uHeightLt to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetUHeightLt(uHeightLt *string) { + o.UHeightLt = uHeightLt +} + +// WithUHeightLte adds the uHeightLte to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithUHeightLte(uHeightLte *string) *DcimDeviceTypesListParams { + o.SetUHeightLte(uHeightLte) + return o +} + +// SetUHeightLte adds the uHeightLte to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetUHeightLte(uHeightLte *string) { + o.UHeightLte = uHeightLte +} + +// WithUHeightn adds the uHeightn to the dcim device types list params +func (o *DcimDeviceTypesListParams) WithUHeightn(uHeightn *string) *DcimDeviceTypesListParams { + o.SetUHeightn(uHeightn) + return o +} + +// SetUHeightn adds the uHeightN to the dcim device types list params +func (o *DcimDeviceTypesListParams) SetUHeightn(uHeightn *string) { + o.UHeightn = uHeightn +} + // WriteToRequest writes these params to a swagger request func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -567,16 +1096,96 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } - if o.IDIn != nil { + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -695,6 +1304,22 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Manufacturern != nil { + + // query param manufacturer__n + var qrManufacturern string + if o.Manufacturern != nil { + qrManufacturern = *o.Manufacturern + } + qManufacturern := qrManufacturern + if qManufacturern != "" { + if err := r.SetQueryParam("manufacturer__n", qManufacturern); err != nil { + return err + } + } + + } + if o.ManufacturerID != nil { // query param manufacturer_id @@ -711,6 +1336,22 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.ManufacturerIDn != nil { + + // query param manufacturer_id__n + var qrManufacturerIDn string + if o.ManufacturerIDn != nil { + qrManufacturerIDn = *o.ManufacturerIDn + } + qManufacturerIDn := qrManufacturerIDn + if qManufacturerIDn != "" { + if err := r.SetQueryParam("manufacturer_id__n", qManufacturerIDn); err != nil { + return err + } + } + + } + if o.Model != nil { // query param model @@ -727,6 +1368,150 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.ModelIc != nil { + + // query param model__ic + var qrModelIc string + if o.ModelIc != nil { + qrModelIc = *o.ModelIc + } + qModelIc := qrModelIc + if qModelIc != "" { + if err := r.SetQueryParam("model__ic", qModelIc); err != nil { + return err + } + } + + } + + if o.ModelIe != nil { + + // query param model__ie + var qrModelIe string + if o.ModelIe != nil { + qrModelIe = *o.ModelIe + } + qModelIe := qrModelIe + if qModelIe != "" { + if err := r.SetQueryParam("model__ie", qModelIe); err != nil { + return err + } + } + + } + + if o.ModelIew != nil { + + // query param model__iew + var qrModelIew string + if o.ModelIew != nil { + qrModelIew = *o.ModelIew + } + qModelIew := qrModelIew + if qModelIew != "" { + if err := r.SetQueryParam("model__iew", qModelIew); err != nil { + return err + } + } + + } + + if o.ModelIsw != nil { + + // query param model__isw + var qrModelIsw string + if o.ModelIsw != nil { + qrModelIsw = *o.ModelIsw + } + qModelIsw := qrModelIsw + if qModelIsw != "" { + if err := r.SetQueryParam("model__isw", qModelIsw); err != nil { + return err + } + } + + } + + if o.Modeln != nil { + + // query param model__n + var qrModeln string + if o.Modeln != nil { + qrModeln = *o.Modeln + } + qModeln := qrModeln + if qModeln != "" { + if err := r.SetQueryParam("model__n", qModeln); err != nil { + return err + } + } + + } + + if o.ModelNic != nil { + + // query param model__nic + var qrModelNic string + if o.ModelNic != nil { + qrModelNic = *o.ModelNic + } + qModelNic := qrModelNic + if qModelNic != "" { + if err := r.SetQueryParam("model__nic", qModelNic); err != nil { + return err + } + } + + } + + if o.ModelNie != nil { + + // query param model__nie + var qrModelNie string + if o.ModelNie != nil { + qrModelNie = *o.ModelNie + } + qModelNie := qrModelNie + if qModelNie != "" { + if err := r.SetQueryParam("model__nie", qModelNie); err != nil { + return err + } + } + + } + + if o.ModelNiew != nil { + + // query param model__niew + var qrModelNiew string + if o.ModelNiew != nil { + qrModelNiew = *o.ModelNiew + } + qModelNiew := qrModelNiew + if qModelNiew != "" { + if err := r.SetQueryParam("model__niew", qModelNiew); err != nil { + return err + } + } + + } + + if o.ModelNisw != nil { + + // query param model__nisw + var qrModelNisw string + if o.ModelNisw != nil { + qrModelNisw = *o.ModelNisw + } + qModelNisw := qrModelNisw + if qModelNisw != "" { + if err := r.SetQueryParam("model__nisw", qModelNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -759,6 +1544,150 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.PartNumberIc != nil { + + // query param part_number__ic + var qrPartNumberIc string + if o.PartNumberIc != nil { + qrPartNumberIc = *o.PartNumberIc + } + qPartNumberIc := qrPartNumberIc + if qPartNumberIc != "" { + if err := r.SetQueryParam("part_number__ic", qPartNumberIc); err != nil { + return err + } + } + + } + + if o.PartNumberIe != nil { + + // query param part_number__ie + var qrPartNumberIe string + if o.PartNumberIe != nil { + qrPartNumberIe = *o.PartNumberIe + } + qPartNumberIe := qrPartNumberIe + if qPartNumberIe != "" { + if err := r.SetQueryParam("part_number__ie", qPartNumberIe); err != nil { + return err + } + } + + } + + if o.PartNumberIew != nil { + + // query param part_number__iew + var qrPartNumberIew string + if o.PartNumberIew != nil { + qrPartNumberIew = *o.PartNumberIew + } + qPartNumberIew := qrPartNumberIew + if qPartNumberIew != "" { + if err := r.SetQueryParam("part_number__iew", qPartNumberIew); err != nil { + return err + } + } + + } + + if o.PartNumberIsw != nil { + + // query param part_number__isw + var qrPartNumberIsw string + if o.PartNumberIsw != nil { + qrPartNumberIsw = *o.PartNumberIsw + } + qPartNumberIsw := qrPartNumberIsw + if qPartNumberIsw != "" { + if err := r.SetQueryParam("part_number__isw", qPartNumberIsw); err != nil { + return err + } + } + + } + + if o.PartNumbern != nil { + + // query param part_number__n + var qrPartNumbern string + if o.PartNumbern != nil { + qrPartNumbern = *o.PartNumbern + } + qPartNumbern := qrPartNumbern + if qPartNumbern != "" { + if err := r.SetQueryParam("part_number__n", qPartNumbern); err != nil { + return err + } + } + + } + + if o.PartNumberNic != nil { + + // query param part_number__nic + var qrPartNumberNic string + if o.PartNumberNic != nil { + qrPartNumberNic = *o.PartNumberNic + } + qPartNumberNic := qrPartNumberNic + if qPartNumberNic != "" { + if err := r.SetQueryParam("part_number__nic", qPartNumberNic); err != nil { + return err + } + } + + } + + if o.PartNumberNie != nil { + + // query param part_number__nie + var qrPartNumberNie string + if o.PartNumberNie != nil { + qrPartNumberNie = *o.PartNumberNie + } + qPartNumberNie := qrPartNumberNie + if qPartNumberNie != "" { + if err := r.SetQueryParam("part_number__nie", qPartNumberNie); err != nil { + return err + } + } + + } + + if o.PartNumberNiew != nil { + + // query param part_number__niew + var qrPartNumberNiew string + if o.PartNumberNiew != nil { + qrPartNumberNiew = *o.PartNumberNiew + } + qPartNumberNiew := qrPartNumberNiew + if qPartNumberNiew != "" { + if err := r.SetQueryParam("part_number__niew", qPartNumberNiew); err != nil { + return err + } + } + + } + + if o.PartNumberNisw != nil { + + // query param part_number__nisw + var qrPartNumberNisw string + if o.PartNumberNisw != nil { + qrPartNumberNisw = *o.PartNumberNisw + } + qPartNumberNisw := qrPartNumberNisw + if qPartNumberNisw != "" { + if err := r.SetQueryParam("part_number__nisw", qPartNumberNisw); err != nil { + return err + } + } + + } + if o.PassThroughPorts != nil { // query param pass_through_ports @@ -839,6 +1768,150 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if o.SubdeviceRole != nil { // query param subdevice_role @@ -855,6 +1928,22 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SubdeviceRolen != nil { + + // query param subdevice_role__n + var qrSubdeviceRolen string + if o.SubdeviceRolen != nil { + qrSubdeviceRolen = *o.SubdeviceRolen + } + qSubdeviceRolen := qrSubdeviceRolen + if qSubdeviceRolen != "" { + if err := r.SetQueryParam("subdevice_role__n", qSubdeviceRolen); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -871,6 +1960,22 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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.UHeight != nil { // query param u_height @@ -887,6 +1992,86 @@ func (o *DcimDeviceTypesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.UHeightGt != nil { + + // query param u_height__gt + var qrUHeightGt string + if o.UHeightGt != nil { + qrUHeightGt = *o.UHeightGt + } + qUHeightGt := qrUHeightGt + if qUHeightGt != "" { + if err := r.SetQueryParam("u_height__gt", qUHeightGt); err != nil { + return err + } + } + + } + + if o.UHeightGte != nil { + + // query param u_height__gte + var qrUHeightGte string + if o.UHeightGte != nil { + qrUHeightGte = *o.UHeightGte + } + qUHeightGte := qrUHeightGte + if qUHeightGte != "" { + if err := r.SetQueryParam("u_height__gte", qUHeightGte); err != nil { + return err + } + } + + } + + if o.UHeightLt != nil { + + // query param u_height__lt + var qrUHeightLt string + if o.UHeightLt != nil { + qrUHeightLt = *o.UHeightLt + } + qUHeightLt := qrUHeightLt + if qUHeightLt != "" { + if err := r.SetQueryParam("u_height__lt", qUHeightLt); err != nil { + return err + } + } + + } + + if o.UHeightLte != nil { + + // query param u_height__lte + var qrUHeightLte string + if o.UHeightLte != nil { + qrUHeightLte = *o.UHeightLte + } + qUHeightLte := qrUHeightLte + if qUHeightLte != "" { + if err := r.SetQueryParam("u_height__lte", qUHeightLte); err != nil { + return err + } + } + + } + + if o.UHeightn != nil { + + // query param u_height__n + var qrUHeightn string + if o.UHeightn != nil { + qrUHeightn = *o.UHeightn + } + qUHeightn := qrUHeightn + if qUHeightn != "" { + if err := r.SetQueryParam("u_height__n", qUHeightn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_responses.go index a3c04e2b7..521614296 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceTypesListReader is a Reader for the DcimDeviceTypesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_parameters.go index 1f0773567..028d277af 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceTypesPartialUpdateParams creates a new DcimDeviceTypesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_responses.go index 7c17c69f4..06f0cf8e9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceTypesPartialUpdateReader is a Reader for the DcimDeviceTypesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_parameters.go index c3736f99b..cc0603ad8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDeviceTypesReadParams creates a new DcimDeviceTypesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_responses.go index e8eb5faff..71c7e1120 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceTypesReadReader is a Reader for the DcimDeviceTypesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_parameters.go index ddce3f52c..dfa99d31c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDeviceTypesUpdateParams creates a new DcimDeviceTypesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_responses.go index 78f3b8374..75a7c4999 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_device_types_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDeviceTypesUpdateReader is a Reader for the DcimDeviceTypesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_parameters.go index 87c92d35d..c728aae91 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDevicesCreateParams creates a new DcimDevicesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_responses.go index 96676d2b2..f89c7bfb6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesCreateReader is a Reader for the DcimDevicesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_parameters.go index 1972164d7..672a74fab 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDevicesDeleteParams creates a new DcimDevicesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_responses.go index e0aee8899..c3164f716 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimDevicesDeleteReader is a Reader for the DcimDevicesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_parameters.go index c53d62ec4..6d007a991 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDevicesGraphsParams creates a new DcimDevicesGraphsParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_responses.go index 10bed9321..a4accf12a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_graphs_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesGraphsReader is a Reader for the DcimDevicesGraphs structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go index bddfb9f4f..427466e89 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDevicesListParams creates a new DcimDevicesListParams object @@ -79,8 +78,28 @@ type DcimDevicesListParams struct { /*AssetTag*/ AssetTag *string + /*AssetTagIc*/ + AssetTagIc *string + /*AssetTagIe*/ + AssetTagIe *string + /*AssetTagIew*/ + AssetTagIew *string + /*AssetTagIsw*/ + AssetTagIsw *string + /*AssetTagn*/ + AssetTagn *string + /*AssetTagNic*/ + AssetTagNic *string + /*AssetTagNie*/ + AssetTagNie *string + /*AssetTagNiew*/ + AssetTagNiew *string + /*AssetTagNisw*/ + AssetTagNisw *string /*ClusterID*/ ClusterID *string + /*ClusterIDn*/ + ClusterIDn *string /*ConsolePorts*/ ConsolePorts *string /*ConsoleServerPorts*/ @@ -95,17 +114,26 @@ type DcimDevicesListParams struct { DeviceBays *string /*DeviceTypeID*/ DeviceTypeID *string + /*DeviceTypeIDn*/ + DeviceTypeIDn *string /*Face*/ Face *string + /*Facen*/ + Facen *string /*HasPrimaryIP*/ HasPrimaryIP *string /*ID*/ ID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Interfaces*/ Interfaces *string /*IsFullDepth*/ @@ -125,14 +153,56 @@ type DcimDevicesListParams struct { LocalContextData *string /*MacAddress*/ MacAddress *string + /*MacAddressIc*/ + MacAddressIc *string + /*MacAddressIe*/ + MacAddressIe *string + /*MacAddressIew*/ + MacAddressIew *string + /*MacAddressIsw*/ + MacAddressIsw *string + /*MacAddressn*/ + MacAddressn *string + /*MacAddressNic*/ + MacAddressNic *string + /*MacAddressNie*/ + MacAddressNie *string + /*MacAddressNiew*/ + MacAddressNiew *string + /*MacAddressNisw*/ + MacAddressNisw *string /*Manufacturer*/ Manufacturer *string + /*Manufacturern*/ + Manufacturern *string /*ManufacturerID*/ ManufacturerID *string + /*ManufacturerIDn*/ + ManufacturerIDn *string /*Model*/ Model *string + /*Modeln*/ + Modeln *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -142,10 +212,24 @@ type DcimDevicesListParams struct { PassThroughPorts *string /*Platform*/ Platform *string + /*Platformn*/ + Platformn *string /*PlatformID*/ PlatformID *string + /*PlatformIDn*/ + PlatformIDn *string /*Position*/ Position *string + /*PositionGt*/ + PositionGt *string + /*PositionGte*/ + PositionGte *string + /*PositionLt*/ + PositionLt *string + /*PositionLte*/ + PositionLte *string + /*Positionn*/ + Positionn *string /*PowerOutlets*/ PowerOutlets *string /*PowerPorts*/ @@ -154,40 +238,90 @@ type DcimDevicesListParams struct { Q *string /*RackGroupID*/ RackGroupID *string + /*RackGroupIDn*/ + RackGroupIDn *string /*RackID*/ RackID *string + /*RackIDn*/ + RackIDn *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Serial*/ Serial *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*VcPosition*/ VcPosition *string + /*VcPositionGt*/ + VcPositionGt *string + /*VcPositionGte*/ + VcPositionGte *string + /*VcPositionLt*/ + VcPositionLt *string + /*VcPositionLte*/ + VcPositionLte *string + /*VcPositionn*/ + VcPositionn *string /*VcPriority*/ VcPriority *string + /*VcPriorityGt*/ + VcPriorityGt *string + /*VcPriorityGte*/ + VcPriorityGte *string + /*VcPriorityLt*/ + VcPriorityLt *string + /*VcPriorityLte*/ + VcPriorityLte *string + /*VcPriorityn*/ + VcPriorityn *string /*VirtualChassisID*/ VirtualChassisID *string + /*VirtualChassisIDn*/ + VirtualChassisIDn *string /*VirtualChassisMember*/ VirtualChassisMember *string @@ -240,6 +374,105 @@ func (o *DcimDevicesListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagIc adds the assetTagIc to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagIc(assetTagIc *string) *DcimDevicesListParams { + o.SetAssetTagIc(assetTagIc) + return o +} + +// SetAssetTagIc adds the assetTagIc to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagIc(assetTagIc *string) { + o.AssetTagIc = assetTagIc +} + +// WithAssetTagIe adds the assetTagIe to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagIe(assetTagIe *string) *DcimDevicesListParams { + o.SetAssetTagIe(assetTagIe) + return o +} + +// SetAssetTagIe adds the assetTagIe to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagIe(assetTagIe *string) { + o.AssetTagIe = assetTagIe +} + +// WithAssetTagIew adds the assetTagIew to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagIew(assetTagIew *string) *DcimDevicesListParams { + o.SetAssetTagIew(assetTagIew) + return o +} + +// SetAssetTagIew adds the assetTagIew to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagIew(assetTagIew *string) { + o.AssetTagIew = assetTagIew +} + +// WithAssetTagIsw adds the assetTagIsw to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagIsw(assetTagIsw *string) *DcimDevicesListParams { + o.SetAssetTagIsw(assetTagIsw) + return o +} + +// SetAssetTagIsw adds the assetTagIsw to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagIsw(assetTagIsw *string) { + o.AssetTagIsw = assetTagIsw +} + +// WithAssetTagn adds the assetTagn to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagn(assetTagn *string) *DcimDevicesListParams { + o.SetAssetTagn(assetTagn) + return o +} + +// SetAssetTagn adds the assetTagN to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagn(assetTagn *string) { + o.AssetTagn = assetTagn +} + +// WithAssetTagNic adds the assetTagNic to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagNic(assetTagNic *string) *DcimDevicesListParams { + o.SetAssetTagNic(assetTagNic) + return o +} + +// SetAssetTagNic adds the assetTagNic to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagNic(assetTagNic *string) { + o.AssetTagNic = assetTagNic +} + +// WithAssetTagNie adds the assetTagNie to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagNie(assetTagNie *string) *DcimDevicesListParams { + o.SetAssetTagNie(assetTagNie) + return o +} + +// SetAssetTagNie adds the assetTagNie to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagNie(assetTagNie *string) { + o.AssetTagNie = assetTagNie +} + +// WithAssetTagNiew adds the assetTagNiew to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagNiew(assetTagNiew *string) *DcimDevicesListParams { + o.SetAssetTagNiew(assetTagNiew) + return o +} + +// SetAssetTagNiew adds the assetTagNiew to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagNiew(assetTagNiew *string) { + o.AssetTagNiew = assetTagNiew +} + +// WithAssetTagNisw adds the assetTagNisw to the dcim devices list params +func (o *DcimDevicesListParams) WithAssetTagNisw(assetTagNisw *string) *DcimDevicesListParams { + o.SetAssetTagNisw(assetTagNisw) + return o +} + +// SetAssetTagNisw adds the assetTagNisw to the dcim devices list params +func (o *DcimDevicesListParams) SetAssetTagNisw(assetTagNisw *string) { + o.AssetTagNisw = assetTagNisw +} + // WithClusterID adds the clusterID to the dcim devices list params func (o *DcimDevicesListParams) WithClusterID(clusterID *string) *DcimDevicesListParams { o.SetClusterID(clusterID) @@ -251,6 +484,17 @@ func (o *DcimDevicesListParams) SetClusterID(clusterID *string) { o.ClusterID = clusterID } +// WithClusterIDn adds the clusterIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithClusterIDn(clusterIDn *string) *DcimDevicesListParams { + o.SetClusterIDn(clusterIDn) + return o +} + +// SetClusterIDn adds the clusterIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetClusterIDn(clusterIDn *string) { + o.ClusterIDn = clusterIDn +} + // WithConsolePorts adds the consolePorts to the dcim devices list params func (o *DcimDevicesListParams) WithConsolePorts(consolePorts *string) *DcimDevicesListParams { o.SetConsolePorts(consolePorts) @@ -328,6 +572,17 @@ func (o *DcimDevicesListParams) SetDeviceTypeID(deviceTypeID *string) { o.DeviceTypeID = deviceTypeID } +// WithDeviceTypeIDn adds the deviceTypeIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithDeviceTypeIDn(deviceTypeIDn *string) *DcimDevicesListParams { + o.SetDeviceTypeIDn(deviceTypeIDn) + return o +} + +// SetDeviceTypeIDn adds the deviceTypeIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetDeviceTypeIDn(deviceTypeIDn *string) { + o.DeviceTypeIDn = deviceTypeIDn +} + // WithFace adds the face to the dcim devices list params func (o *DcimDevicesListParams) WithFace(face *string) *DcimDevicesListParams { o.SetFace(face) @@ -339,6 +594,17 @@ func (o *DcimDevicesListParams) SetFace(face *string) { o.Face = face } +// WithFacen adds the facen to the dcim devices list params +func (o *DcimDevicesListParams) WithFacen(facen *string) *DcimDevicesListParams { + o.SetFacen(facen) + return o +} + +// SetFacen adds the faceN to the dcim devices list params +func (o *DcimDevicesListParams) SetFacen(facen *string) { + o.Facen = facen +} + // WithHasPrimaryIP adds the hasPrimaryIP to the dcim devices list params func (o *DcimDevicesListParams) WithHasPrimaryIP(hasPrimaryIP *string) *DcimDevicesListParams { o.SetHasPrimaryIP(hasPrimaryIP) @@ -361,15 +627,59 @@ func (o *DcimDevicesListParams) SetID(id *string) { o.ID = id } -// WithIDIn adds the iDIn to the dcim devices list params -func (o *DcimDevicesListParams) WithIDIn(iDIn *string) *DcimDevicesListParams { - o.SetIDIn(iDIn) +// WithIDGt adds the iDGt to the dcim devices list params +func (o *DcimDevicesListParams) WithIDGt(iDGt *string) *DcimDevicesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim devices list params +func (o *DcimDevicesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim devices list params +func (o *DcimDevicesListParams) WithIDGte(iDGte *string) *DcimDevicesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim devices list params +func (o *DcimDevicesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim devices list params +func (o *DcimDevicesListParams) WithIDLt(iDLt *string) *DcimDevicesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim devices list params +func (o *DcimDevicesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim devices list params +func (o *DcimDevicesListParams) WithIDLte(iDLte *string) *DcimDevicesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim devices list params +func (o *DcimDevicesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim devices list params +func (o *DcimDevicesListParams) WithIDn(iDn *string) *DcimDevicesListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the dcim devices list params -func (o *DcimDevicesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the dcim devices list params +func (o *DcimDevicesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithInterfaces adds the interfaces to the dcim devices list params @@ -460,6 +770,105 @@ func (o *DcimDevicesListParams) SetMacAddress(macAddress *string) { o.MacAddress = macAddress } +// WithMacAddressIc adds the macAddressIc to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressIc(macAddressIc *string) *DcimDevicesListParams { + o.SetMacAddressIc(macAddressIc) + return o +} + +// SetMacAddressIc adds the macAddressIc to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressIc(macAddressIc *string) { + o.MacAddressIc = macAddressIc +} + +// WithMacAddressIe adds the macAddressIe to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressIe(macAddressIe *string) *DcimDevicesListParams { + o.SetMacAddressIe(macAddressIe) + return o +} + +// SetMacAddressIe adds the macAddressIe to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressIe(macAddressIe *string) { + o.MacAddressIe = macAddressIe +} + +// WithMacAddressIew adds the macAddressIew to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressIew(macAddressIew *string) *DcimDevicesListParams { + o.SetMacAddressIew(macAddressIew) + return o +} + +// SetMacAddressIew adds the macAddressIew to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressIew(macAddressIew *string) { + o.MacAddressIew = macAddressIew +} + +// WithMacAddressIsw adds the macAddressIsw to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressIsw(macAddressIsw *string) *DcimDevicesListParams { + o.SetMacAddressIsw(macAddressIsw) + return o +} + +// SetMacAddressIsw adds the macAddressIsw to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressIsw(macAddressIsw *string) { + o.MacAddressIsw = macAddressIsw +} + +// WithMacAddressn adds the macAddressn to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressn(macAddressn *string) *DcimDevicesListParams { + o.SetMacAddressn(macAddressn) + return o +} + +// SetMacAddressn adds the macAddressN to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressn(macAddressn *string) { + o.MacAddressn = macAddressn +} + +// WithMacAddressNic adds the macAddressNic to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressNic(macAddressNic *string) *DcimDevicesListParams { + o.SetMacAddressNic(macAddressNic) + return o +} + +// SetMacAddressNic adds the macAddressNic to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressNic(macAddressNic *string) { + o.MacAddressNic = macAddressNic +} + +// WithMacAddressNie adds the macAddressNie to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressNie(macAddressNie *string) *DcimDevicesListParams { + o.SetMacAddressNie(macAddressNie) + return o +} + +// SetMacAddressNie adds the macAddressNie to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressNie(macAddressNie *string) { + o.MacAddressNie = macAddressNie +} + +// WithMacAddressNiew adds the macAddressNiew to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressNiew(macAddressNiew *string) *DcimDevicesListParams { + o.SetMacAddressNiew(macAddressNiew) + return o +} + +// SetMacAddressNiew adds the macAddressNiew to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressNiew(macAddressNiew *string) { + o.MacAddressNiew = macAddressNiew +} + +// WithMacAddressNisw adds the macAddressNisw to the dcim devices list params +func (o *DcimDevicesListParams) WithMacAddressNisw(macAddressNisw *string) *DcimDevicesListParams { + o.SetMacAddressNisw(macAddressNisw) + return o +} + +// SetMacAddressNisw adds the macAddressNisw to the dcim devices list params +func (o *DcimDevicesListParams) SetMacAddressNisw(macAddressNisw *string) { + o.MacAddressNisw = macAddressNisw +} + // WithManufacturer adds the manufacturer to the dcim devices list params func (o *DcimDevicesListParams) WithManufacturer(manufacturer *string) *DcimDevicesListParams { o.SetManufacturer(manufacturer) @@ -471,6 +880,17 @@ func (o *DcimDevicesListParams) SetManufacturer(manufacturer *string) { o.Manufacturer = manufacturer } +// WithManufacturern adds the manufacturern to the dcim devices list params +func (o *DcimDevicesListParams) WithManufacturern(manufacturern *string) *DcimDevicesListParams { + o.SetManufacturern(manufacturern) + return o +} + +// SetManufacturern adds the manufacturerN to the dcim devices list params +func (o *DcimDevicesListParams) SetManufacturern(manufacturern *string) { + o.Manufacturern = manufacturern +} + // WithManufacturerID adds the manufacturerID to the dcim devices list params func (o *DcimDevicesListParams) WithManufacturerID(manufacturerID *string) *DcimDevicesListParams { o.SetManufacturerID(manufacturerID) @@ -482,6 +902,17 @@ func (o *DcimDevicesListParams) SetManufacturerID(manufacturerID *string) { o.ManufacturerID = manufacturerID } +// WithManufacturerIDn adds the manufacturerIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithManufacturerIDn(manufacturerIDn *string) *DcimDevicesListParams { + o.SetManufacturerIDn(manufacturerIDn) + return o +} + +// SetManufacturerIDn adds the manufacturerIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetManufacturerIDn(manufacturerIDn *string) { + o.ManufacturerIDn = manufacturerIDn +} + // WithModel adds the model to the dcim devices list params func (o *DcimDevicesListParams) WithModel(model *string) *DcimDevicesListParams { o.SetModel(model) @@ -493,6 +924,17 @@ func (o *DcimDevicesListParams) SetModel(model *string) { o.Model = model } +// WithModeln adds the modeln to the dcim devices list params +func (o *DcimDevicesListParams) WithModeln(modeln *string) *DcimDevicesListParams { + o.SetModeln(modeln) + return o +} + +// SetModeln adds the modelN to the dcim devices list params +func (o *DcimDevicesListParams) SetModeln(modeln *string) { + o.Modeln = modeln +} + // WithName adds the name to the dcim devices list params func (o *DcimDevicesListParams) WithName(name *string) *DcimDevicesListParams { o.SetName(name) @@ -504,6 +946,105 @@ func (o *DcimDevicesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim devices list params +func (o *DcimDevicesListParams) WithNameIc(nameIc *string) *DcimDevicesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim devices list params +func (o *DcimDevicesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim devices list params +func (o *DcimDevicesListParams) WithNameIe(nameIe *string) *DcimDevicesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim devices list params +func (o *DcimDevicesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim devices list params +func (o *DcimDevicesListParams) WithNameIew(nameIew *string) *DcimDevicesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim devices list params +func (o *DcimDevicesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim devices list params +func (o *DcimDevicesListParams) WithNameIsw(nameIsw *string) *DcimDevicesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim devices list params +func (o *DcimDevicesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim devices list params +func (o *DcimDevicesListParams) WithNamen(namen *string) *DcimDevicesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim devices list params +func (o *DcimDevicesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim devices list params +func (o *DcimDevicesListParams) WithNameNic(nameNic *string) *DcimDevicesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim devices list params +func (o *DcimDevicesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim devices list params +func (o *DcimDevicesListParams) WithNameNie(nameNie *string) *DcimDevicesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim devices list params +func (o *DcimDevicesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim devices list params +func (o *DcimDevicesListParams) WithNameNiew(nameNiew *string) *DcimDevicesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim devices list params +func (o *DcimDevicesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim devices list params +func (o *DcimDevicesListParams) WithNameNisw(nameNisw *string) *DcimDevicesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim devices list params +func (o *DcimDevicesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim devices list params func (o *DcimDevicesListParams) WithOffset(offset *int64) *DcimDevicesListParams { o.SetOffset(offset) @@ -537,6 +1078,17 @@ func (o *DcimDevicesListParams) SetPlatform(platform *string) { o.Platform = platform } +// WithPlatformn adds the platformn to the dcim devices list params +func (o *DcimDevicesListParams) WithPlatformn(platformn *string) *DcimDevicesListParams { + o.SetPlatformn(platformn) + return o +} + +// SetPlatformn adds the platformN to the dcim devices list params +func (o *DcimDevicesListParams) SetPlatformn(platformn *string) { + o.Platformn = platformn +} + // WithPlatformID adds the platformID to the dcim devices list params func (o *DcimDevicesListParams) WithPlatformID(platformID *string) *DcimDevicesListParams { o.SetPlatformID(platformID) @@ -548,6 +1100,17 @@ func (o *DcimDevicesListParams) SetPlatformID(platformID *string) { o.PlatformID = platformID } +// WithPlatformIDn adds the platformIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithPlatformIDn(platformIDn *string) *DcimDevicesListParams { + o.SetPlatformIDn(platformIDn) + return o +} + +// SetPlatformIDn adds the platformIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetPlatformIDn(platformIDn *string) { + o.PlatformIDn = platformIDn +} + // WithPosition adds the position to the dcim devices list params func (o *DcimDevicesListParams) WithPosition(position *string) *DcimDevicesListParams { o.SetPosition(position) @@ -559,6 +1122,61 @@ func (o *DcimDevicesListParams) SetPosition(position *string) { o.Position = position } +// WithPositionGt adds the positionGt to the dcim devices list params +func (o *DcimDevicesListParams) WithPositionGt(positionGt *string) *DcimDevicesListParams { + o.SetPositionGt(positionGt) + return o +} + +// SetPositionGt adds the positionGt to the dcim devices list params +func (o *DcimDevicesListParams) SetPositionGt(positionGt *string) { + o.PositionGt = positionGt +} + +// WithPositionGte adds the positionGte to the dcim devices list params +func (o *DcimDevicesListParams) WithPositionGte(positionGte *string) *DcimDevicesListParams { + o.SetPositionGte(positionGte) + return o +} + +// SetPositionGte adds the positionGte to the dcim devices list params +func (o *DcimDevicesListParams) SetPositionGte(positionGte *string) { + o.PositionGte = positionGte +} + +// WithPositionLt adds the positionLt to the dcim devices list params +func (o *DcimDevicesListParams) WithPositionLt(positionLt *string) *DcimDevicesListParams { + o.SetPositionLt(positionLt) + return o +} + +// SetPositionLt adds the positionLt to the dcim devices list params +func (o *DcimDevicesListParams) SetPositionLt(positionLt *string) { + o.PositionLt = positionLt +} + +// WithPositionLte adds the positionLte to the dcim devices list params +func (o *DcimDevicesListParams) WithPositionLte(positionLte *string) *DcimDevicesListParams { + o.SetPositionLte(positionLte) + return o +} + +// SetPositionLte adds the positionLte to the dcim devices list params +func (o *DcimDevicesListParams) SetPositionLte(positionLte *string) { + o.PositionLte = positionLte +} + +// WithPositionn adds the positionn to the dcim devices list params +func (o *DcimDevicesListParams) WithPositionn(positionn *string) *DcimDevicesListParams { + o.SetPositionn(positionn) + return o +} + +// SetPositionn adds the positionN to the dcim devices list params +func (o *DcimDevicesListParams) SetPositionn(positionn *string) { + o.Positionn = positionn +} + // WithPowerOutlets adds the powerOutlets to the dcim devices list params func (o *DcimDevicesListParams) WithPowerOutlets(powerOutlets *string) *DcimDevicesListParams { o.SetPowerOutlets(powerOutlets) @@ -603,6 +1221,17 @@ func (o *DcimDevicesListParams) SetRackGroupID(rackGroupID *string) { o.RackGroupID = rackGroupID } +// WithRackGroupIDn adds the rackGroupIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithRackGroupIDn(rackGroupIDn *string) *DcimDevicesListParams { + o.SetRackGroupIDn(rackGroupIDn) + return o +} + +// SetRackGroupIDn adds the rackGroupIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetRackGroupIDn(rackGroupIDn *string) { + o.RackGroupIDn = rackGroupIDn +} + // WithRackID adds the rackID to the dcim devices list params func (o *DcimDevicesListParams) WithRackID(rackID *string) *DcimDevicesListParams { o.SetRackID(rackID) @@ -614,6 +1243,17 @@ func (o *DcimDevicesListParams) SetRackID(rackID *string) { o.RackID = rackID } +// WithRackIDn adds the rackIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithRackIDn(rackIDn *string) *DcimDevicesListParams { + o.SetRackIDn(rackIDn) + return o +} + +// SetRackIDn adds the rackIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetRackIDn(rackIDn *string) { + o.RackIDn = rackIDn +} + // WithRegion adds the region to the dcim devices list params func (o *DcimDevicesListParams) WithRegion(region *string) *DcimDevicesListParams { o.SetRegion(region) @@ -625,6 +1265,17 @@ func (o *DcimDevicesListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim devices list params +func (o *DcimDevicesListParams) WithRegionn(regionn *string) *DcimDevicesListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim devices list params +func (o *DcimDevicesListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim devices list params func (o *DcimDevicesListParams) WithRegionID(regionID *string) *DcimDevicesListParams { o.SetRegionID(regionID) @@ -636,6 +1287,17 @@ func (o *DcimDevicesListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithRegionIDn(regionIDn *string) *DcimDevicesListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithRole adds the role to the dcim devices list params func (o *DcimDevicesListParams) WithRole(role *string) *DcimDevicesListParams { o.SetRole(role) @@ -647,6 +1309,17 @@ func (o *DcimDevicesListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the dcim devices list params +func (o *DcimDevicesListParams) WithRolen(rolen *string) *DcimDevicesListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the dcim devices list params +func (o *DcimDevicesListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the dcim devices list params func (o *DcimDevicesListParams) WithRoleID(roleID *string) *DcimDevicesListParams { o.SetRoleID(roleID) @@ -658,6 +1331,17 @@ func (o *DcimDevicesListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithRoleIDn(roleIDn *string) *DcimDevicesListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSerial adds the serial to the dcim devices list params func (o *DcimDevicesListParams) WithSerial(serial *string) *DcimDevicesListParams { o.SetSerial(serial) @@ -680,9 +1364,20 @@ func (o *DcimDevicesListParams) SetSite(site *string) { o.Site = site } -// WithSiteID adds the siteID to the dcim devices list params -func (o *DcimDevicesListParams) WithSiteID(siteID *string) *DcimDevicesListParams { - o.SetSiteID(siteID) +// WithSiten adds the siten to the dcim devices list params +func (o *DcimDevicesListParams) WithSiten(siten *string) *DcimDevicesListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim devices list params +func (o *DcimDevicesListParams) SetSiten(siten *string) { + o.Siten = siten +} + +// WithSiteID adds the siteID to the dcim devices list params +func (o *DcimDevicesListParams) WithSiteID(siteID *string) *DcimDevicesListParams { + o.SetSiteID(siteID) return o } @@ -691,6 +1386,17 @@ func (o *DcimDevicesListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithSiteIDn(siteIDn *string) *DcimDevicesListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the dcim devices list params func (o *DcimDevicesListParams) WithStatus(status *string) *DcimDevicesListParams { o.SetStatus(status) @@ -702,6 +1408,17 @@ func (o *DcimDevicesListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the dcim devices list params +func (o *DcimDevicesListParams) WithStatusn(statusn *string) *DcimDevicesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim devices list params +func (o *DcimDevicesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the dcim devices list params func (o *DcimDevicesListParams) WithTag(tag *string) *DcimDevicesListParams { o.SetTag(tag) @@ -713,6 +1430,17 @@ func (o *DcimDevicesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim devices list params +func (o *DcimDevicesListParams) WithTagn(tagn *string) *DcimDevicesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim devices list params +func (o *DcimDevicesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the dcim devices list params func (o *DcimDevicesListParams) WithTenant(tenant *string) *DcimDevicesListParams { o.SetTenant(tenant) @@ -724,6 +1452,17 @@ func (o *DcimDevicesListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the dcim devices list params +func (o *DcimDevicesListParams) WithTenantn(tenantn *string) *DcimDevicesListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the dcim devices list params +func (o *DcimDevicesListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the dcim devices list params func (o *DcimDevicesListParams) WithTenantGroup(tenantGroup *string) *DcimDevicesListParams { o.SetTenantGroup(tenantGroup) @@ -735,6 +1474,17 @@ func (o *DcimDevicesListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the dcim devices list params +func (o *DcimDevicesListParams) WithTenantGroupn(tenantGroupn *string) *DcimDevicesListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the dcim devices list params +func (o *DcimDevicesListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the dcim devices list params func (o *DcimDevicesListParams) WithTenantGroupID(tenantGroupID *string) *DcimDevicesListParams { o.SetTenantGroupID(tenantGroupID) @@ -746,6 +1496,17 @@ func (o *DcimDevicesListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *DcimDevicesListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the dcim devices list params func (o *DcimDevicesListParams) WithTenantID(tenantID *string) *DcimDevicesListParams { o.SetTenantID(tenantID) @@ -757,6 +1518,17 @@ func (o *DcimDevicesListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithTenantIDn(tenantIDn *string) *DcimDevicesListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithVcPosition adds the vcPosition to the dcim devices list params func (o *DcimDevicesListParams) WithVcPosition(vcPosition *string) *DcimDevicesListParams { o.SetVcPosition(vcPosition) @@ -768,6 +1540,61 @@ func (o *DcimDevicesListParams) SetVcPosition(vcPosition *string) { o.VcPosition = vcPosition } +// WithVcPositionGt adds the vcPositionGt to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPositionGt(vcPositionGt *string) *DcimDevicesListParams { + o.SetVcPositionGt(vcPositionGt) + return o +} + +// SetVcPositionGt adds the vcPositionGt to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPositionGt(vcPositionGt *string) { + o.VcPositionGt = vcPositionGt +} + +// WithVcPositionGte adds the vcPositionGte to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPositionGte(vcPositionGte *string) *DcimDevicesListParams { + o.SetVcPositionGte(vcPositionGte) + return o +} + +// SetVcPositionGte adds the vcPositionGte to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPositionGte(vcPositionGte *string) { + o.VcPositionGte = vcPositionGte +} + +// WithVcPositionLt adds the vcPositionLt to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPositionLt(vcPositionLt *string) *DcimDevicesListParams { + o.SetVcPositionLt(vcPositionLt) + return o +} + +// SetVcPositionLt adds the vcPositionLt to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPositionLt(vcPositionLt *string) { + o.VcPositionLt = vcPositionLt +} + +// WithVcPositionLte adds the vcPositionLte to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPositionLte(vcPositionLte *string) *DcimDevicesListParams { + o.SetVcPositionLte(vcPositionLte) + return o +} + +// SetVcPositionLte adds the vcPositionLte to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPositionLte(vcPositionLte *string) { + o.VcPositionLte = vcPositionLte +} + +// WithVcPositionn adds the vcPositionn to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPositionn(vcPositionn *string) *DcimDevicesListParams { + o.SetVcPositionn(vcPositionn) + return o +} + +// SetVcPositionn adds the vcPositionN to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPositionn(vcPositionn *string) { + o.VcPositionn = vcPositionn +} + // WithVcPriority adds the vcPriority to the dcim devices list params func (o *DcimDevicesListParams) WithVcPriority(vcPriority *string) *DcimDevicesListParams { o.SetVcPriority(vcPriority) @@ -779,6 +1606,61 @@ func (o *DcimDevicesListParams) SetVcPriority(vcPriority *string) { o.VcPriority = vcPriority } +// WithVcPriorityGt adds the vcPriorityGt to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPriorityGt(vcPriorityGt *string) *DcimDevicesListParams { + o.SetVcPriorityGt(vcPriorityGt) + return o +} + +// SetVcPriorityGt adds the vcPriorityGt to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPriorityGt(vcPriorityGt *string) { + o.VcPriorityGt = vcPriorityGt +} + +// WithVcPriorityGte adds the vcPriorityGte to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPriorityGte(vcPriorityGte *string) *DcimDevicesListParams { + o.SetVcPriorityGte(vcPriorityGte) + return o +} + +// SetVcPriorityGte adds the vcPriorityGte to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPriorityGte(vcPriorityGte *string) { + o.VcPriorityGte = vcPriorityGte +} + +// WithVcPriorityLt adds the vcPriorityLt to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPriorityLt(vcPriorityLt *string) *DcimDevicesListParams { + o.SetVcPriorityLt(vcPriorityLt) + return o +} + +// SetVcPriorityLt adds the vcPriorityLt to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPriorityLt(vcPriorityLt *string) { + o.VcPriorityLt = vcPriorityLt +} + +// WithVcPriorityLte adds the vcPriorityLte to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPriorityLte(vcPriorityLte *string) *DcimDevicesListParams { + o.SetVcPriorityLte(vcPriorityLte) + return o +} + +// SetVcPriorityLte adds the vcPriorityLte to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPriorityLte(vcPriorityLte *string) { + o.VcPriorityLte = vcPriorityLte +} + +// WithVcPriorityn adds the vcPriorityn to the dcim devices list params +func (o *DcimDevicesListParams) WithVcPriorityn(vcPriorityn *string) *DcimDevicesListParams { + o.SetVcPriorityn(vcPriorityn) + return o +} + +// SetVcPriorityn adds the vcPriorityN to the dcim devices list params +func (o *DcimDevicesListParams) SetVcPriorityn(vcPriorityn *string) { + o.VcPriorityn = vcPriorityn +} + // WithVirtualChassisID adds the virtualChassisID to the dcim devices list params func (o *DcimDevicesListParams) WithVirtualChassisID(virtualChassisID *string) *DcimDevicesListParams { o.SetVirtualChassisID(virtualChassisID) @@ -790,6 +1672,17 @@ func (o *DcimDevicesListParams) SetVirtualChassisID(virtualChassisID *string) { o.VirtualChassisID = virtualChassisID } +// WithVirtualChassisIDn adds the virtualChassisIDn to the dcim devices list params +func (o *DcimDevicesListParams) WithVirtualChassisIDn(virtualChassisIDn *string) *DcimDevicesListParams { + o.SetVirtualChassisIDn(virtualChassisIDn) + return o +} + +// SetVirtualChassisIDn adds the virtualChassisIdN to the dcim devices list params +func (o *DcimDevicesListParams) SetVirtualChassisIDn(virtualChassisIDn *string) { + o.VirtualChassisIDn = virtualChassisIDn +} + // WithVirtualChassisMember adds the virtualChassisMember to the dcim devices list params func (o *DcimDevicesListParams) WithVirtualChassisMember(virtualChassisMember *string) *DcimDevicesListParams { o.SetVirtualChassisMember(virtualChassisMember) @@ -825,6 +1718,150 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.AssetTagIc != nil { + + // query param asset_tag__ic + var qrAssetTagIc string + if o.AssetTagIc != nil { + qrAssetTagIc = *o.AssetTagIc + } + qAssetTagIc := qrAssetTagIc + if qAssetTagIc != "" { + if err := r.SetQueryParam("asset_tag__ic", qAssetTagIc); err != nil { + return err + } + } + + } + + if o.AssetTagIe != nil { + + // query param asset_tag__ie + var qrAssetTagIe string + if o.AssetTagIe != nil { + qrAssetTagIe = *o.AssetTagIe + } + qAssetTagIe := qrAssetTagIe + if qAssetTagIe != "" { + if err := r.SetQueryParam("asset_tag__ie", qAssetTagIe); err != nil { + return err + } + } + + } + + if o.AssetTagIew != nil { + + // query param asset_tag__iew + var qrAssetTagIew string + if o.AssetTagIew != nil { + qrAssetTagIew = *o.AssetTagIew + } + qAssetTagIew := qrAssetTagIew + if qAssetTagIew != "" { + if err := r.SetQueryParam("asset_tag__iew", qAssetTagIew); err != nil { + return err + } + } + + } + + if o.AssetTagIsw != nil { + + // query param asset_tag__isw + var qrAssetTagIsw string + if o.AssetTagIsw != nil { + qrAssetTagIsw = *o.AssetTagIsw + } + qAssetTagIsw := qrAssetTagIsw + if qAssetTagIsw != "" { + if err := r.SetQueryParam("asset_tag__isw", qAssetTagIsw); err != nil { + return err + } + } + + } + + if o.AssetTagn != nil { + + // query param asset_tag__n + var qrAssetTagn string + if o.AssetTagn != nil { + qrAssetTagn = *o.AssetTagn + } + qAssetTagn := qrAssetTagn + if qAssetTagn != "" { + if err := r.SetQueryParam("asset_tag__n", qAssetTagn); err != nil { + return err + } + } + + } + + if o.AssetTagNic != nil { + + // query param asset_tag__nic + var qrAssetTagNic string + if o.AssetTagNic != nil { + qrAssetTagNic = *o.AssetTagNic + } + qAssetTagNic := qrAssetTagNic + if qAssetTagNic != "" { + if err := r.SetQueryParam("asset_tag__nic", qAssetTagNic); err != nil { + return err + } + } + + } + + if o.AssetTagNie != nil { + + // query param asset_tag__nie + var qrAssetTagNie string + if o.AssetTagNie != nil { + qrAssetTagNie = *o.AssetTagNie + } + qAssetTagNie := qrAssetTagNie + if qAssetTagNie != "" { + if err := r.SetQueryParam("asset_tag__nie", qAssetTagNie); err != nil { + return err + } + } + + } + + if o.AssetTagNiew != nil { + + // query param asset_tag__niew + var qrAssetTagNiew string + if o.AssetTagNiew != nil { + qrAssetTagNiew = *o.AssetTagNiew + } + qAssetTagNiew := qrAssetTagNiew + if qAssetTagNiew != "" { + if err := r.SetQueryParam("asset_tag__niew", qAssetTagNiew); err != nil { + return err + } + } + + } + + if o.AssetTagNisw != nil { + + // query param asset_tag__nisw + var qrAssetTagNisw string + if o.AssetTagNisw != nil { + qrAssetTagNisw = *o.AssetTagNisw + } + qAssetTagNisw := qrAssetTagNisw + if qAssetTagNisw != "" { + if err := r.SetQueryParam("asset_tag__nisw", qAssetTagNisw); err != nil { + return err + } + } + + } + if o.ClusterID != nil { // query param cluster_id @@ -841,6 +1878,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.ClusterIDn != nil { + + // query param cluster_id__n + var qrClusterIDn string + if o.ClusterIDn != nil { + qrClusterIDn = *o.ClusterIDn + } + qClusterIDn := qrClusterIDn + if qClusterIDn != "" { + if err := r.SetQueryParam("cluster_id__n", qClusterIDn); err != nil { + return err + } + } + + } + if o.ConsolePorts != nil { // query param console_ports @@ -953,6 +2006,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.DeviceTypeIDn != nil { + + // query param device_type_id__n + var qrDeviceTypeIDn string + if o.DeviceTypeIDn != nil { + qrDeviceTypeIDn = *o.DeviceTypeIDn + } + qDeviceTypeIDn := qrDeviceTypeIDn + if qDeviceTypeIDn != "" { + if err := r.SetQueryParam("device_type_id__n", qDeviceTypeIDn); err != nil { + return err + } + } + + } + if o.Face != nil { // query param face @@ -969,6 +2038,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.Facen != nil { + + // query param face__n + var qrFacen string + if o.Facen != nil { + qrFacen = *o.Facen + } + qFacen := qrFacen + if qFacen != "" { + if err := r.SetQueryParam("face__n", qFacen); err != nil { + return err + } + } + + } + if o.HasPrimaryIP != nil { // query param has_primary_ip @@ -1001,16 +2086,80 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } - if o.IDIn != nil { + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -1145,62 +2294,254 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } - if o.Manufacturer != nil { + if o.MacAddressIc != nil { - // query param manufacturer - var qrManufacturer string - if o.Manufacturer != nil { - qrManufacturer = *o.Manufacturer + // query param mac_address__ic + var qrMacAddressIc string + if o.MacAddressIc != nil { + qrMacAddressIc = *o.MacAddressIc } - qManufacturer := qrManufacturer - if qManufacturer != "" { - if err := r.SetQueryParam("manufacturer", qManufacturer); err != nil { + qMacAddressIc := qrMacAddressIc + if qMacAddressIc != "" { + if err := r.SetQueryParam("mac_address__ic", qMacAddressIc); err != nil { return err } } } - if o.ManufacturerID != nil { + if o.MacAddressIe != nil { - // query param manufacturer_id - var qrManufacturerID string - if o.ManufacturerID != nil { - qrManufacturerID = *o.ManufacturerID + // query param mac_address__ie + var qrMacAddressIe string + if o.MacAddressIe != nil { + qrMacAddressIe = *o.MacAddressIe } - qManufacturerID := qrManufacturerID - if qManufacturerID != "" { - if err := r.SetQueryParam("manufacturer_id", qManufacturerID); err != nil { + qMacAddressIe := qrMacAddressIe + if qMacAddressIe != "" { + if err := r.SetQueryParam("mac_address__ie", qMacAddressIe); err != nil { return err } } } - if o.Model != nil { + if o.MacAddressIew != nil { - // query param model - var qrModel string - if o.Model != nil { - qrModel = *o.Model + // query param mac_address__iew + var qrMacAddressIew string + if o.MacAddressIew != nil { + qrMacAddressIew = *o.MacAddressIew } - qModel := qrModel - if qModel != "" { - if err := r.SetQueryParam("model", qModel); err != nil { + qMacAddressIew := qrMacAddressIew + if qMacAddressIew != "" { + if err := r.SetQueryParam("mac_address__iew", qMacAddressIew); err != nil { return err } } } - if o.Name != nil { + if o.MacAddressIsw != nil { - // query param name - var qrName string - if o.Name != nil { - qrName = *o.Name + // query param mac_address__isw + var qrMacAddressIsw string + if o.MacAddressIsw != nil { + qrMacAddressIsw = *o.MacAddressIsw } - qName := qrName + qMacAddressIsw := qrMacAddressIsw + if qMacAddressIsw != "" { + if err := r.SetQueryParam("mac_address__isw", qMacAddressIsw); err != nil { + return err + } + } + + } + + if o.MacAddressn != nil { + + // query param mac_address__n + var qrMacAddressn string + if o.MacAddressn != nil { + qrMacAddressn = *o.MacAddressn + } + qMacAddressn := qrMacAddressn + if qMacAddressn != "" { + if err := r.SetQueryParam("mac_address__n", qMacAddressn); err != nil { + return err + } + } + + } + + if o.MacAddressNic != nil { + + // query param mac_address__nic + var qrMacAddressNic string + if o.MacAddressNic != nil { + qrMacAddressNic = *o.MacAddressNic + } + qMacAddressNic := qrMacAddressNic + if qMacAddressNic != "" { + if err := r.SetQueryParam("mac_address__nic", qMacAddressNic); err != nil { + return err + } + } + + } + + if o.MacAddressNie != nil { + + // query param mac_address__nie + var qrMacAddressNie string + if o.MacAddressNie != nil { + qrMacAddressNie = *o.MacAddressNie + } + qMacAddressNie := qrMacAddressNie + if qMacAddressNie != "" { + if err := r.SetQueryParam("mac_address__nie", qMacAddressNie); err != nil { + return err + } + } + + } + + if o.MacAddressNiew != nil { + + // query param mac_address__niew + var qrMacAddressNiew string + if o.MacAddressNiew != nil { + qrMacAddressNiew = *o.MacAddressNiew + } + qMacAddressNiew := qrMacAddressNiew + if qMacAddressNiew != "" { + if err := r.SetQueryParam("mac_address__niew", qMacAddressNiew); err != nil { + return err + } + } + + } + + if o.MacAddressNisw != nil { + + // query param mac_address__nisw + var qrMacAddressNisw string + if o.MacAddressNisw != nil { + qrMacAddressNisw = *o.MacAddressNisw + } + qMacAddressNisw := qrMacAddressNisw + if qMacAddressNisw != "" { + if err := r.SetQueryParam("mac_address__nisw", qMacAddressNisw); err != nil { + return err + } + } + + } + + if o.Manufacturer != nil { + + // query param manufacturer + var qrManufacturer string + if o.Manufacturer != nil { + qrManufacturer = *o.Manufacturer + } + qManufacturer := qrManufacturer + if qManufacturer != "" { + if err := r.SetQueryParam("manufacturer", qManufacturer); err != nil { + return err + } + } + + } + + if o.Manufacturern != nil { + + // query param manufacturer__n + var qrManufacturern string + if o.Manufacturern != nil { + qrManufacturern = *o.Manufacturern + } + qManufacturern := qrManufacturern + if qManufacturern != "" { + if err := r.SetQueryParam("manufacturer__n", qManufacturern); err != nil { + return err + } + } + + } + + if o.ManufacturerID != nil { + + // query param manufacturer_id + var qrManufacturerID string + if o.ManufacturerID != nil { + qrManufacturerID = *o.ManufacturerID + } + qManufacturerID := qrManufacturerID + if qManufacturerID != "" { + if err := r.SetQueryParam("manufacturer_id", qManufacturerID); err != nil { + return err + } + } + + } + + if o.ManufacturerIDn != nil { + + // query param manufacturer_id__n + var qrManufacturerIDn string + if o.ManufacturerIDn != nil { + qrManufacturerIDn = *o.ManufacturerIDn + } + qManufacturerIDn := qrManufacturerIDn + if qManufacturerIDn != "" { + if err := r.SetQueryParam("manufacturer_id__n", qManufacturerIDn); err != nil { + return err + } + } + + } + + if o.Model != nil { + + // query param model + var qrModel string + if o.Model != nil { + qrModel = *o.Model + } + qModel := qrModel + if qModel != "" { + if err := r.SetQueryParam("model", qModel); err != nil { + return err + } + } + + } + + if o.Modeln != nil { + + // query param model__n + var qrModeln string + if o.Modeln != nil { + qrModeln = *o.Modeln + } + qModeln := qrModeln + if qModeln != "" { + if err := r.SetQueryParam("model__n", qModeln); 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 @@ -1209,6 +2550,150 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -1257,6 +2742,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.Platformn != nil { + + // query param platform__n + var qrPlatformn string + if o.Platformn != nil { + qrPlatformn = *o.Platformn + } + qPlatformn := qrPlatformn + if qPlatformn != "" { + if err := r.SetQueryParam("platform__n", qPlatformn); err != nil { + return err + } + } + + } + if o.PlatformID != nil { // query param platform_id @@ -1273,6 +2774,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.PlatformIDn != nil { + + // query param platform_id__n + var qrPlatformIDn string + if o.PlatformIDn != nil { + qrPlatformIDn = *o.PlatformIDn + } + qPlatformIDn := qrPlatformIDn + if qPlatformIDn != "" { + if err := r.SetQueryParam("platform_id__n", qPlatformIDn); err != nil { + return err + } + } + + } + if o.Position != nil { // query param position @@ -1289,6 +2806,86 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.PositionGt != nil { + + // query param position__gt + var qrPositionGt string + if o.PositionGt != nil { + qrPositionGt = *o.PositionGt + } + qPositionGt := qrPositionGt + if qPositionGt != "" { + if err := r.SetQueryParam("position__gt", qPositionGt); err != nil { + return err + } + } + + } + + if o.PositionGte != nil { + + // query param position__gte + var qrPositionGte string + if o.PositionGte != nil { + qrPositionGte = *o.PositionGte + } + qPositionGte := qrPositionGte + if qPositionGte != "" { + if err := r.SetQueryParam("position__gte", qPositionGte); err != nil { + return err + } + } + + } + + if o.PositionLt != nil { + + // query param position__lt + var qrPositionLt string + if o.PositionLt != nil { + qrPositionLt = *o.PositionLt + } + qPositionLt := qrPositionLt + if qPositionLt != "" { + if err := r.SetQueryParam("position__lt", qPositionLt); err != nil { + return err + } + } + + } + + if o.PositionLte != nil { + + // query param position__lte + var qrPositionLte string + if o.PositionLte != nil { + qrPositionLte = *o.PositionLte + } + qPositionLte := qrPositionLte + if qPositionLte != "" { + if err := r.SetQueryParam("position__lte", qPositionLte); err != nil { + return err + } + } + + } + + if o.Positionn != nil { + + // query param position__n + var qrPositionn string + if o.Positionn != nil { + qrPositionn = *o.Positionn + } + qPositionn := qrPositionn + if qPositionn != "" { + if err := r.SetQueryParam("position__n", qPositionn); err != nil { + return err + } + } + + } + if o.PowerOutlets != nil { // query param power_outlets @@ -1353,6 +2950,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.RackGroupIDn != nil { + + // query param rack_group_id__n + var qrRackGroupIDn string + if o.RackGroupIDn != nil { + qrRackGroupIDn = *o.RackGroupIDn + } + qRackGroupIDn := qrRackGroupIDn + if qRackGroupIDn != "" { + if err := r.SetQueryParam("rack_group_id__n", qRackGroupIDn); err != nil { + return err + } + } + + } + if o.RackID != nil { // query param rack_id @@ -1369,6 +2982,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.RackIDn != nil { + + // query param rack_id__n + var qrRackIDn string + if o.RackIDn != nil { + qrRackIDn = *o.RackIDn + } + qRackIDn := qrRackIDn + if qRackIDn != "" { + if err := r.SetQueryParam("rack_id__n", qRackIDn); err != nil { + return err + } + } + + } + if o.Region != nil { // query param region @@ -1385,6 +3014,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + 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 @@ -1401,6 +3046,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + 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.Role != nil { // query param role @@ -1417,6 +3078,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + 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 @@ -1433,6 +3110,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + 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 @@ -1465,6 +3158,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -1481,6 +3190,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -1497,6 +3222,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -1513,6 +3254,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + 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 @@ -1529,6 +3286,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -1545,6 +3318,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -1561,6 +3350,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -1577,6 +3382,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.VcPosition != nil { // query param vc_position @@ -1593,6 +3414,86 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.VcPositionGt != nil { + + // query param vc_position__gt + var qrVcPositionGt string + if o.VcPositionGt != nil { + qrVcPositionGt = *o.VcPositionGt + } + qVcPositionGt := qrVcPositionGt + if qVcPositionGt != "" { + if err := r.SetQueryParam("vc_position__gt", qVcPositionGt); err != nil { + return err + } + } + + } + + if o.VcPositionGte != nil { + + // query param vc_position__gte + var qrVcPositionGte string + if o.VcPositionGte != nil { + qrVcPositionGte = *o.VcPositionGte + } + qVcPositionGte := qrVcPositionGte + if qVcPositionGte != "" { + if err := r.SetQueryParam("vc_position__gte", qVcPositionGte); err != nil { + return err + } + } + + } + + if o.VcPositionLt != nil { + + // query param vc_position__lt + var qrVcPositionLt string + if o.VcPositionLt != nil { + qrVcPositionLt = *o.VcPositionLt + } + qVcPositionLt := qrVcPositionLt + if qVcPositionLt != "" { + if err := r.SetQueryParam("vc_position__lt", qVcPositionLt); err != nil { + return err + } + } + + } + + if o.VcPositionLte != nil { + + // query param vc_position__lte + var qrVcPositionLte string + if o.VcPositionLte != nil { + qrVcPositionLte = *o.VcPositionLte + } + qVcPositionLte := qrVcPositionLte + if qVcPositionLte != "" { + if err := r.SetQueryParam("vc_position__lte", qVcPositionLte); err != nil { + return err + } + } + + } + + if o.VcPositionn != nil { + + // query param vc_position__n + var qrVcPositionn string + if o.VcPositionn != nil { + qrVcPositionn = *o.VcPositionn + } + qVcPositionn := qrVcPositionn + if qVcPositionn != "" { + if err := r.SetQueryParam("vc_position__n", qVcPositionn); err != nil { + return err + } + } + + } + if o.VcPriority != nil { // query param vc_priority @@ -1609,6 +3510,86 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.VcPriorityGt != nil { + + // query param vc_priority__gt + var qrVcPriorityGt string + if o.VcPriorityGt != nil { + qrVcPriorityGt = *o.VcPriorityGt + } + qVcPriorityGt := qrVcPriorityGt + if qVcPriorityGt != "" { + if err := r.SetQueryParam("vc_priority__gt", qVcPriorityGt); err != nil { + return err + } + } + + } + + if o.VcPriorityGte != nil { + + // query param vc_priority__gte + var qrVcPriorityGte string + if o.VcPriorityGte != nil { + qrVcPriorityGte = *o.VcPriorityGte + } + qVcPriorityGte := qrVcPriorityGte + if qVcPriorityGte != "" { + if err := r.SetQueryParam("vc_priority__gte", qVcPriorityGte); err != nil { + return err + } + } + + } + + if o.VcPriorityLt != nil { + + // query param vc_priority__lt + var qrVcPriorityLt string + if o.VcPriorityLt != nil { + qrVcPriorityLt = *o.VcPriorityLt + } + qVcPriorityLt := qrVcPriorityLt + if qVcPriorityLt != "" { + if err := r.SetQueryParam("vc_priority__lt", qVcPriorityLt); err != nil { + return err + } + } + + } + + if o.VcPriorityLte != nil { + + // query param vc_priority__lte + var qrVcPriorityLte string + if o.VcPriorityLte != nil { + qrVcPriorityLte = *o.VcPriorityLte + } + qVcPriorityLte := qrVcPriorityLte + if qVcPriorityLte != "" { + if err := r.SetQueryParam("vc_priority__lte", qVcPriorityLte); err != nil { + return err + } + } + + } + + if o.VcPriorityn != nil { + + // query param vc_priority__n + var qrVcPriorityn string + if o.VcPriorityn != nil { + qrVcPriorityn = *o.VcPriorityn + } + qVcPriorityn := qrVcPriorityn + if qVcPriorityn != "" { + if err := r.SetQueryParam("vc_priority__n", qVcPriorityn); err != nil { + return err + } + } + + } + if o.VirtualChassisID != nil { // query param virtual_chassis_id @@ -1625,6 +3606,22 @@ func (o *DcimDevicesListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.VirtualChassisIDn != nil { + + // query param virtual_chassis_id__n + var qrVirtualChassisIDn string + if o.VirtualChassisIDn != nil { + qrVirtualChassisIDn = *o.VirtualChassisIDn + } + qVirtualChassisIDn := qrVirtualChassisIDn + if qVirtualChassisIDn != "" { + if err := r.SetQueryParam("virtual_chassis_id__n", qVirtualChassisIDn); err != nil { + return err + } + } + + } + if o.VirtualChassisMember != nil { // query param virtual_chassis_member diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_responses.go index edf1a0610..dceb38e9c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesListReader is a Reader for the DcimDevicesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_parameters.go index 3c2990684..b5e171ff6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDevicesNapalmParams creates a new DcimDevicesNapalmParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_responses.go index d4d00ca5a..685279dc9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_napalm_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesNapalmReader is a Reader for the DcimDevicesNapalm structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_parameters.go index 78fdf0287..75ef0d8b2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDevicesPartialUpdateParams creates a new DcimDevicesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_responses.go index 7fdce6089..16a09f29c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesPartialUpdateReader is a Reader for the DcimDevicesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_parameters.go index 628a7cfb2..fb6020c59 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimDevicesReadParams creates a new DcimDevicesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_responses.go index e9a089806..498dc6775 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesReadReader is a Reader for the DcimDevicesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_parameters.go index 3cbcce6aa..5c273e874 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimDevicesUpdateParams creates a new DcimDevicesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_responses.go index a6d270709..64ac7c890 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_devices_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimDevicesUpdateReader is a Reader for the DcimDevicesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_parameters.go index e94774cdd..fb175e17b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimFrontPortTemplatesCreateParams creates a new DcimFrontPortTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_responses.go index 9743c2735..ee9f3fe17 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortTemplatesCreateReader is a Reader for the DcimFrontPortTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_parameters.go index c2c59fbc4..2058f03a8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimFrontPortTemplatesDeleteParams creates a new DcimFrontPortTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_responses.go index 82a9bb48d..4d9f630fe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimFrontPortTemplatesDeleteReader is a Reader for the DcimFrontPortTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go index b775bd987..82f1c09d3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimFrontPortTemplatesListParams creates a new DcimFrontPortTemplatesListParams object @@ -79,8 +78,20 @@ type DcimFrontPortTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +99,24 @@ type DcimFrontPortTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -97,6 +126,8 @@ type DcimFrontPortTemplatesListParams struct { Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -147,6 +178,17 @@ func (o *DcimFrontPortTemplatesListParams) SetDevicetypeID(devicetypeID *string) o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimFrontPortTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithID(id *string) *DcimFrontPortTemplatesListParams { o.SetID(id) @@ -158,6 +200,61 @@ func (o *DcimFrontPortTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithIDGt(iDGt *string) *DcimFrontPortTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithIDGte(iDGte *string) *DcimFrontPortTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithIDLt(iDLt *string) *DcimFrontPortTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithIDLte(iDLte *string) *DcimFrontPortTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithIDn(iDn *string) *DcimFrontPortTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithLimit(limit *int64) *DcimFrontPortTemplatesListParams { o.SetLimit(limit) @@ -180,6 +277,105 @@ func (o *DcimFrontPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameIc(nameIc *string) *DcimFrontPortTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameIe(nameIe *string) *DcimFrontPortTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameIew(nameIew *string) *DcimFrontPortTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameIsw(nameIsw *string) *DcimFrontPortTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNamen(namen *string) *DcimFrontPortTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameNic(nameNic *string) *DcimFrontPortTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameNie(nameNie *string) *DcimFrontPortTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameNiew(nameNiew *string) *DcimFrontPortTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithNameNisw(nameNisw *string) *DcimFrontPortTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim front port templates list params func (o *DcimFrontPortTemplatesListParams) WithOffset(offset *int64) *DcimFrontPortTemplatesListParams { o.SetOffset(offset) @@ -213,6 +409,17 @@ func (o *DcimFrontPortTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) WithTypen(typen *string) *DcimFrontPortTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim front port templates list params +func (o *DcimFrontPortTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -237,6 +444,22 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -253,6 +476,86 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -285,6 +588,150 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -333,6 +780,22 @@ func (o *DcimFrontPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_responses.go index de3894fb7..3abbeaf02 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortTemplatesListReader is a Reader for the DcimFrontPortTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_parameters.go index 59c0626f9..b03c05d12 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimFrontPortTemplatesPartialUpdateParams creates a new DcimFrontPortTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_responses.go index fd79ec5f1..4e849b528 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortTemplatesPartialUpdateReader is a Reader for the DcimFrontPortTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_parameters.go index 7bebbff58..41db5cabe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimFrontPortTemplatesReadParams creates a new DcimFrontPortTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_responses.go index 274ccd570..997575eb5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortTemplatesReadReader is a Reader for the DcimFrontPortTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_parameters.go index 169c31b4c..c8b649fbf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimFrontPortTemplatesUpdateParams creates a new DcimFrontPortTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_responses.go index bed7fb4ac..e36c3df81 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_port_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortTemplatesUpdateReader is a Reader for the DcimFrontPortTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_parameters.go index 780bee7a3..8f5e33a74 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimFrontPortsCreateParams creates a new DcimFrontPortsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_responses.go index 4c87b2b40..eaec5d49a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortsCreateReader is a Reader for the DcimFrontPortsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_parameters.go index f7887a0d2..4141693fd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimFrontPortsDeleteParams creates a new DcimFrontPortsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_responses.go index 027927988..1094b7073 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimFrontPortsDeleteReader is a Reader for the DcimFrontPortsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go index 7ec752ef9..c730611f9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimFrontPortsListParams creates a new DcimFrontPortsListParams object @@ -81,12 +80,44 @@ type DcimFrontPortsListParams struct { Cabled *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -94,6 +125,24 @@ type DcimFrontPortsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -103,16 +152,28 @@ type DcimFrontPortsListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -174,6 +235,105 @@ func (o *DcimFrontPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimFrontPortsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionIe(descriptionIe *string) *DcimFrontPortsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionIew(descriptionIew *string) *DcimFrontPortsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimFrontPortsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionn(descriptionn *string) *DcimFrontPortsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionNic(descriptionNic *string) *DcimFrontPortsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionNie(descriptionNie *string) *DcimFrontPortsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimFrontPortsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimFrontPortsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim front ports list params func (o *DcimFrontPortsListParams) WithDevice(device *string) *DcimFrontPortsListParams { o.SetDevice(device) @@ -185,6 +345,17 @@ func (o *DcimFrontPortsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDevicen(devicen *string) *DcimFrontPortsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim front ports list params func (o *DcimFrontPortsListParams) WithDeviceID(deviceID *string) *DcimFrontPortsListParams { o.SetDeviceID(deviceID) @@ -196,6 +367,17 @@ func (o *DcimFrontPortsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithDeviceIDn(deviceIDn *string) *DcimFrontPortsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the dcim front ports list params func (o *DcimFrontPortsListParams) WithID(id *string) *DcimFrontPortsListParams { o.SetID(id) @@ -207,6 +389,61 @@ func (o *DcimFrontPortsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithIDGt(iDGt *string) *DcimFrontPortsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithIDGte(iDGte *string) *DcimFrontPortsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithIDLt(iDLt *string) *DcimFrontPortsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithIDLte(iDLte *string) *DcimFrontPortsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithIDn(iDn *string) *DcimFrontPortsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim front ports list params func (o *DcimFrontPortsListParams) WithLimit(limit *int64) *DcimFrontPortsListParams { o.SetLimit(limit) @@ -229,6 +466,105 @@ func (o *DcimFrontPortsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameIc(nameIc *string) *DcimFrontPortsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameIe(nameIe *string) *DcimFrontPortsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameIew(nameIew *string) *DcimFrontPortsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameIsw(nameIsw *string) *DcimFrontPortsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNamen(namen *string) *DcimFrontPortsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameNic(nameNic *string) *DcimFrontPortsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameNie(nameNie *string) *DcimFrontPortsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameNiew(nameNiew *string) *DcimFrontPortsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithNameNisw(nameNisw *string) *DcimFrontPortsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim front ports list params func (o *DcimFrontPortsListParams) WithOffset(offset *int64) *DcimFrontPortsListParams { o.SetOffset(offset) @@ -262,6 +598,17 @@ func (o *DcimFrontPortsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithRegionn(regionn *string) *DcimFrontPortsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim front ports list params func (o *DcimFrontPortsListParams) WithRegionID(regionID *string) *DcimFrontPortsListParams { o.SetRegionID(regionID) @@ -273,6 +620,17 @@ func (o *DcimFrontPortsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithRegionIDn(regionIDn *string) *DcimFrontPortsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim front ports list params func (o *DcimFrontPortsListParams) WithSite(site *string) *DcimFrontPortsListParams { o.SetSite(site) @@ -284,6 +642,17 @@ func (o *DcimFrontPortsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithSiten(siten *string) *DcimFrontPortsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim front ports list params func (o *DcimFrontPortsListParams) WithSiteID(siteID *string) *DcimFrontPortsListParams { o.SetSiteID(siteID) @@ -295,6 +664,17 @@ func (o *DcimFrontPortsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithSiteIDn(siteIDn *string) *DcimFrontPortsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim front ports list params func (o *DcimFrontPortsListParams) WithTag(tag *string) *DcimFrontPortsListParams { o.SetTag(tag) @@ -306,6 +686,17 @@ func (o *DcimFrontPortsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithTagn(tagn *string) *DcimFrontPortsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim front ports list params func (o *DcimFrontPortsListParams) WithType(typeVar *string) *DcimFrontPortsListParams { o.SetType(typeVar) @@ -317,6 +708,17 @@ func (o *DcimFrontPortsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim front ports list params +func (o *DcimFrontPortsListParams) WithTypen(typen *string) *DcimFrontPortsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim front ports list params +func (o *DcimFrontPortsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -357,6 +759,150 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -373,6 +919,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -389,6 +951,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -405,6 +983,86 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -437,6 +1095,150 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -485,6 +1287,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -501,6 +1319,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -517,6 +1351,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -533,6 +1383,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -549,6 +1415,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Type != nil { // query param type @@ -565,6 +1447,22 @@ func (o *DcimFrontPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_responses.go index 062b6ca8b..36799e1d0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortsListReader is a Reader for the DcimFrontPortsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_parameters.go index 78e404d05..51678464a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimFrontPortsPartialUpdateParams creates a new DcimFrontPortsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_responses.go index c1509f100..dbca8febe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortsPartialUpdateReader is a Reader for the DcimFrontPortsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_parameters.go index cd6e44d37..20002d44a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimFrontPortsReadParams creates a new DcimFrontPortsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_responses.go index d04f9bf5e..35f4468d8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortsReadReader is a Reader for the DcimFrontPortsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_parameters.go index 585088b35..c397b1575 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimFrontPortsUpdateParams creates a new DcimFrontPortsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_responses.go index f1ea3a451..55786ef42 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_front_ports_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimFrontPortsUpdateReader is a Reader for the DcimFrontPortsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_parameters.go index 1c9476834..a9522bb7f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfaceConnectionsListParams creates a new DcimInterfaceConnectionsListParams object @@ -79,6 +78,8 @@ type DcimInterfaceConnectionsListParams struct { /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Device*/ Device *string /*DeviceID*/ @@ -145,6 +146,17 @@ func (o *DcimInterfaceConnectionsListParams) SetConnectionStatus(connectionStatu o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim interface connections list params +func (o *DcimInterfaceConnectionsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimInterfaceConnectionsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim interface connections list params +func (o *DcimInterfaceConnectionsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDevice adds the device to the dcim interface connections list params func (o *DcimInterfaceConnectionsListParams) WithDevice(device *string) *DcimInterfaceConnectionsListParams { o.SetDevice(device) @@ -224,6 +236,22 @@ func (o *DcimInterfaceConnectionsListParams) WriteToRequest(r runtime.ClientRequ } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_responses.go index b26e1a5b8..116cac8b3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_connections_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfaceConnectionsListReader is a Reader for the DcimInterfaceConnectionsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_parameters.go index a1f4133bc..155ac17a4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInterfaceTemplatesCreateParams creates a new DcimInterfaceTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_responses.go index ff02d4cc7..dd0fbe762 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfaceTemplatesCreateReader is a Reader for the DcimInterfaceTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_parameters.go index 17a5d6edd..ae292469d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfaceTemplatesDeleteParams creates a new DcimInterfaceTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_responses.go index f3b9b43f1..1e7e50f5c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimInterfaceTemplatesDeleteReader is a Reader for the DcimInterfaceTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go index 5d34e7eb1..48a27fca9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfaceTemplatesListParams creates a new DcimInterfaceTemplatesListParams object @@ -79,8 +78,20 @@ type DcimInterfaceTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -90,6 +101,24 @@ type DcimInterfaceTemplatesListParams struct { MgmtOnly *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -99,6 +128,8 @@ type DcimInterfaceTemplatesListParams struct { Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -149,6 +180,17 @@ func (o *DcimInterfaceTemplatesListParams) SetDevicetypeID(devicetypeID *string) o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimInterfaceTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim interface templates list params func (o *DcimInterfaceTemplatesListParams) WithID(id *string) *DcimInterfaceTemplatesListParams { o.SetID(id) @@ -160,6 +202,61 @@ func (o *DcimInterfaceTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithIDGt(iDGt *string) *DcimInterfaceTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithIDGte(iDGte *string) *DcimInterfaceTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithIDLt(iDLt *string) *DcimInterfaceTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithIDLte(iDLte *string) *DcimInterfaceTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithIDn(iDn *string) *DcimInterfaceTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim interface templates list params func (o *DcimInterfaceTemplatesListParams) WithLimit(limit *int64) *DcimInterfaceTemplatesListParams { o.SetLimit(limit) @@ -193,6 +290,105 @@ func (o *DcimInterfaceTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameIc(nameIc *string) *DcimInterfaceTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameIe(nameIe *string) *DcimInterfaceTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameIew(nameIew *string) *DcimInterfaceTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameIsw(nameIsw *string) *DcimInterfaceTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNamen(namen *string) *DcimInterfaceTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameNic(nameNic *string) *DcimInterfaceTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameNie(nameNie *string) *DcimInterfaceTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameNiew(nameNiew *string) *DcimInterfaceTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithNameNisw(nameNisw *string) *DcimInterfaceTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim interface templates list params func (o *DcimInterfaceTemplatesListParams) WithOffset(offset *int64) *DcimInterfaceTemplatesListParams { o.SetOffset(offset) @@ -226,6 +422,17 @@ func (o *DcimInterfaceTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) WithTypen(typen *string) *DcimInterfaceTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim interface templates list params +func (o *DcimInterfaceTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -250,6 +457,22 @@ func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -266,6 +489,86 @@ func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -314,6 +617,150 @@ func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -362,6 +809,22 @@ func (o *DcimInterfaceTemplatesListParams) WriteToRequest(r runtime.ClientReques } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_responses.go index e584b01c1..a4f70fcf7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfaceTemplatesListReader is a Reader for the DcimInterfaceTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_parameters.go index 4aa4a65fb..8f74ec864 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInterfaceTemplatesPartialUpdateParams creates a new DcimInterfaceTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_responses.go index 6b4732ae8..7757d939c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfaceTemplatesPartialUpdateReader is a Reader for the DcimInterfaceTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_parameters.go index 6a931f21e..9b8f4123d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfaceTemplatesReadParams creates a new DcimInterfaceTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_responses.go index 003baf6e6..109606aaf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfaceTemplatesReadReader is a Reader for the DcimInterfaceTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_parameters.go index ce22b18bc..5c68dda2c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInterfaceTemplatesUpdateParams creates a new DcimInterfaceTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_responses.go index 5a1cfc307..e0ffc34d2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interface_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfaceTemplatesUpdateReader is a Reader for the DcimInterfaceTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_parameters.go index c7db079ef..220055314 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInterfacesCreateParams creates a new DcimInterfacesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_responses.go index 8981e7291..8143ba62f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesCreateReader is a Reader for the DcimInterfacesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_parameters.go index 42451c7a2..9a267e520 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfacesDeleteParams creates a new DcimInterfacesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_responses.go index 7530e37b5..af2b15ffc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimInterfacesDeleteReader is a Reader for the DcimInterfacesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_parameters.go index d8be13e8f..ed336ad7e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfacesGraphsParams creates a new DcimInterfacesGraphsParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_responses.go index ce4b99a11..bd7dbb381 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_graphs_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesGraphsReader is a Reader for the DcimInterfacesGraphs structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go index c7dac231f..de013de48 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfacesListParams creates a new DcimInterfacesListParams object @@ -81,8 +80,28 @@ type DcimInterfacesListParams struct { Cabled *string /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string /*DeviceID*/ @@ -91,10 +110,22 @@ type DcimInterfacesListParams struct { Enabled *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Kind*/ Kind *string /*LagID*/ LagID *string + /*LagIDn*/ + LagIDn *string /*Limit Number of results to return per page. @@ -102,14 +133,62 @@ type DcimInterfacesListParams struct { Limit *int64 /*MacAddress*/ MacAddress *string + /*MacAddressIc*/ + MacAddressIc *string + /*MacAddressIe*/ + MacAddressIe *string + /*MacAddressIew*/ + MacAddressIew *string + /*MacAddressIsw*/ + MacAddressIsw *string + /*MacAddressn*/ + MacAddressn *string + /*MacAddressNic*/ + MacAddressNic *string + /*MacAddressNie*/ + MacAddressNie *string + /*MacAddressNiew*/ + MacAddressNiew *string + /*MacAddressNisw*/ + MacAddressNisw *string /*MgmtOnly*/ MgmtOnly *string /*Mode*/ Mode *string + /*Moden*/ + Moden *string /*Mtu*/ Mtu *string + /*MtuGt*/ + MtuGt *string + /*MtuGte*/ + MtuGte *string + /*MtuLt*/ + MtuLt *string + /*MtuLte*/ + MtuLte *string + /*Mtun*/ + Mtun *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -119,16 +198,28 @@ type DcimInterfacesListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string /*Vlan*/ Vlan *string /*VlanID*/ @@ -194,6 +285,17 @@ func (o *DcimInterfacesListParams) SetConnectionStatus(connectionStatus *string) o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithConnectionStatusn(connectionStatusn *string) *DcimInterfacesListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDescription adds the description to the dcim interfaces list params func (o *DcimInterfacesListParams) WithDescription(description *string) *DcimInterfacesListParams { o.SetDescription(description) @@ -205,6 +307,105 @@ func (o *DcimInterfacesListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionIc(descriptionIc *string) *DcimInterfacesListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionIe(descriptionIe *string) *DcimInterfacesListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionIew(descriptionIew *string) *DcimInterfacesListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionIsw(descriptionIsw *string) *DcimInterfacesListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionn(descriptionn *string) *DcimInterfacesListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionNic(descriptionNic *string) *DcimInterfacesListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionNie(descriptionNie *string) *DcimInterfacesListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionNiew(descriptionNiew *string) *DcimInterfacesListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithDescriptionNisw(descriptionNisw *string) *DcimInterfacesListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim interfaces list params func (o *DcimInterfacesListParams) WithDevice(device *string) *DcimInterfacesListParams { o.SetDevice(device) @@ -249,6 +450,61 @@ func (o *DcimInterfacesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithIDGt(iDGt *string) *DcimInterfacesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithIDGte(iDGte *string) *DcimInterfacesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithIDLt(iDLt *string) *DcimInterfacesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithIDLte(iDLte *string) *DcimInterfacesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithIDn(iDn *string) *DcimInterfacesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithKind adds the kind to the dcim interfaces list params func (o *DcimInterfacesListParams) WithKind(kind *string) *DcimInterfacesListParams { o.SetKind(kind) @@ -271,6 +527,17 @@ func (o *DcimInterfacesListParams) SetLagID(lagID *string) { o.LagID = lagID } +// WithLagIDn adds the lagIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithLagIDn(lagIDn *string) *DcimInterfacesListParams { + o.SetLagIDn(lagIDn) + return o +} + +// SetLagIDn adds the lagIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetLagIDn(lagIDn *string) { + o.LagIDn = lagIDn +} + // WithLimit adds the limit to the dcim interfaces list params func (o *DcimInterfacesListParams) WithLimit(limit *int64) *DcimInterfacesListParams { o.SetLimit(limit) @@ -293,6 +560,105 @@ func (o *DcimInterfacesListParams) SetMacAddress(macAddress *string) { o.MacAddress = macAddress } +// WithMacAddressIc adds the macAddressIc to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressIc(macAddressIc *string) *DcimInterfacesListParams { + o.SetMacAddressIc(macAddressIc) + return o +} + +// SetMacAddressIc adds the macAddressIc to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressIc(macAddressIc *string) { + o.MacAddressIc = macAddressIc +} + +// WithMacAddressIe adds the macAddressIe to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressIe(macAddressIe *string) *DcimInterfacesListParams { + o.SetMacAddressIe(macAddressIe) + return o +} + +// SetMacAddressIe adds the macAddressIe to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressIe(macAddressIe *string) { + o.MacAddressIe = macAddressIe +} + +// WithMacAddressIew adds the macAddressIew to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressIew(macAddressIew *string) *DcimInterfacesListParams { + o.SetMacAddressIew(macAddressIew) + return o +} + +// SetMacAddressIew adds the macAddressIew to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressIew(macAddressIew *string) { + o.MacAddressIew = macAddressIew +} + +// WithMacAddressIsw adds the macAddressIsw to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressIsw(macAddressIsw *string) *DcimInterfacesListParams { + o.SetMacAddressIsw(macAddressIsw) + return o +} + +// SetMacAddressIsw adds the macAddressIsw to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressIsw(macAddressIsw *string) { + o.MacAddressIsw = macAddressIsw +} + +// WithMacAddressn adds the macAddressn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressn(macAddressn *string) *DcimInterfacesListParams { + o.SetMacAddressn(macAddressn) + return o +} + +// SetMacAddressn adds the macAddressN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressn(macAddressn *string) { + o.MacAddressn = macAddressn +} + +// WithMacAddressNic adds the macAddressNic to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressNic(macAddressNic *string) *DcimInterfacesListParams { + o.SetMacAddressNic(macAddressNic) + return o +} + +// SetMacAddressNic adds the macAddressNic to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressNic(macAddressNic *string) { + o.MacAddressNic = macAddressNic +} + +// WithMacAddressNie adds the macAddressNie to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressNie(macAddressNie *string) *DcimInterfacesListParams { + o.SetMacAddressNie(macAddressNie) + return o +} + +// SetMacAddressNie adds the macAddressNie to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressNie(macAddressNie *string) { + o.MacAddressNie = macAddressNie +} + +// WithMacAddressNiew adds the macAddressNiew to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressNiew(macAddressNiew *string) *DcimInterfacesListParams { + o.SetMacAddressNiew(macAddressNiew) + return o +} + +// SetMacAddressNiew adds the macAddressNiew to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressNiew(macAddressNiew *string) { + o.MacAddressNiew = macAddressNiew +} + +// WithMacAddressNisw adds the macAddressNisw to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMacAddressNisw(macAddressNisw *string) *DcimInterfacesListParams { + o.SetMacAddressNisw(macAddressNisw) + return o +} + +// SetMacAddressNisw adds the macAddressNisw to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMacAddressNisw(macAddressNisw *string) { + o.MacAddressNisw = macAddressNisw +} + // WithMgmtOnly adds the mgmtOnly to the dcim interfaces list params func (o *DcimInterfacesListParams) WithMgmtOnly(mgmtOnly *string) *DcimInterfacesListParams { o.SetMgmtOnly(mgmtOnly) @@ -315,6 +681,17 @@ func (o *DcimInterfacesListParams) SetMode(mode *string) { o.Mode = mode } +// WithModen adds the moden to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithModen(moden *string) *DcimInterfacesListParams { + o.SetModen(moden) + return o +} + +// SetModen adds the modeN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetModen(moden *string) { + o.Moden = moden +} + // WithMtu adds the mtu to the dcim interfaces list params func (o *DcimInterfacesListParams) WithMtu(mtu *string) *DcimInterfacesListParams { o.SetMtu(mtu) @@ -326,6 +703,61 @@ func (o *DcimInterfacesListParams) SetMtu(mtu *string) { o.Mtu = mtu } +// WithMtuGt adds the mtuGt to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMtuGt(mtuGt *string) *DcimInterfacesListParams { + o.SetMtuGt(mtuGt) + return o +} + +// SetMtuGt adds the mtuGt to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMtuGt(mtuGt *string) { + o.MtuGt = mtuGt +} + +// WithMtuGte adds the mtuGte to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMtuGte(mtuGte *string) *DcimInterfacesListParams { + o.SetMtuGte(mtuGte) + return o +} + +// SetMtuGte adds the mtuGte to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMtuGte(mtuGte *string) { + o.MtuGte = mtuGte +} + +// WithMtuLt adds the mtuLt to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMtuLt(mtuLt *string) *DcimInterfacesListParams { + o.SetMtuLt(mtuLt) + return o +} + +// SetMtuLt adds the mtuLt to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMtuLt(mtuLt *string) { + o.MtuLt = mtuLt +} + +// WithMtuLte adds the mtuLte to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMtuLte(mtuLte *string) *DcimInterfacesListParams { + o.SetMtuLte(mtuLte) + return o +} + +// SetMtuLte adds the mtuLte to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMtuLte(mtuLte *string) { + o.MtuLte = mtuLte +} + +// WithMtun adds the mtun to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithMtun(mtun *string) *DcimInterfacesListParams { + o.SetMtun(mtun) + return o +} + +// SetMtun adds the mtuN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetMtun(mtun *string) { + o.Mtun = mtun +} + // WithName adds the name to the dcim interfaces list params func (o *DcimInterfacesListParams) WithName(name *string) *DcimInterfacesListParams { o.SetName(name) @@ -337,6 +769,105 @@ func (o *DcimInterfacesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameIc(nameIc *string) *DcimInterfacesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameIe(nameIe *string) *DcimInterfacesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameIew(nameIew *string) *DcimInterfacesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameIsw(nameIsw *string) *DcimInterfacesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNamen(namen *string) *DcimInterfacesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameNic(nameNic *string) *DcimInterfacesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameNie(nameNie *string) *DcimInterfacesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameNiew(nameNiew *string) *DcimInterfacesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithNameNisw(nameNisw *string) *DcimInterfacesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim interfaces list params func (o *DcimInterfacesListParams) WithOffset(offset *int64) *DcimInterfacesListParams { o.SetOffset(offset) @@ -370,6 +901,17 @@ func (o *DcimInterfacesListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithRegionn(regionn *string) *DcimInterfacesListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim interfaces list params func (o *DcimInterfacesListParams) WithRegionID(regionID *string) *DcimInterfacesListParams { o.SetRegionID(regionID) @@ -381,6 +923,17 @@ func (o *DcimInterfacesListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithRegionIDn(regionIDn *string) *DcimInterfacesListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim interfaces list params func (o *DcimInterfacesListParams) WithSite(site *string) *DcimInterfacesListParams { o.SetSite(site) @@ -392,6 +945,17 @@ func (o *DcimInterfacesListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSiten(siten *string) *DcimInterfacesListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim interfaces list params func (o *DcimInterfacesListParams) WithSiteID(siteID *string) *DcimInterfacesListParams { o.SetSiteID(siteID) @@ -403,6 +967,17 @@ func (o *DcimInterfacesListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithSiteIDn(siteIDn *string) *DcimInterfacesListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim interfaces list params func (o *DcimInterfacesListParams) WithTag(tag *string) *DcimInterfacesListParams { o.SetTag(tag) @@ -414,6 +989,17 @@ func (o *DcimInterfacesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithTagn(tagn *string) *DcimInterfacesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim interfaces list params func (o *DcimInterfacesListParams) WithType(typeVar *string) *DcimInterfacesListParams { o.SetType(typeVar) @@ -425,6 +1011,17 @@ func (o *DcimInterfacesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim interfaces list params +func (o *DcimInterfacesListParams) WithTypen(typen *string) *DcimInterfacesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim interfaces list params +func (o *DcimInterfacesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WithVlan adds the vlan to the dcim interfaces list params func (o *DcimInterfacesListParams) WithVlan(vlan *string) *DcimInterfacesListParams { o.SetVlan(vlan) @@ -487,6 +1084,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Description != nil { // query param description @@ -503,39 +1116,183 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } - if o.Device != nil { + if o.DescriptionIc != nil { - // query param device - var qrDevice string - if o.Device != nil { - qrDevice = *o.Device + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc } - qDevice := qrDevice - if qDevice != "" { - if err := r.SetQueryParam("device", qDevice); err != nil { + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { return err } } } - if o.DeviceID != nil { + if o.DescriptionIe != nil { - // query param device_id - var qrDeviceID string - if o.DeviceID != nil { - qrDeviceID = *o.DeviceID + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe } - qDeviceID := qrDeviceID - if qDeviceID != "" { - if err := r.SetQueryParam("device_id", qDeviceID); err != nil { + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { return err } } } - if o.Enabled != nil { + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + + 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.Enabled != nil { // query param enabled var qrEnabled string @@ -567,6 +1324,86 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Kind != nil { // query param kind @@ -599,6 +1436,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.LagIDn != nil { + + // query param lag_id__n + var qrLagIDn string + if o.LagIDn != nil { + qrLagIDn = *o.LagIDn + } + qLagIDn := qrLagIDn + if qLagIDn != "" { + if err := r.SetQueryParam("lag_id__n", qLagIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -631,6 +1484,150 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.MacAddressIc != nil { + + // query param mac_address__ic + var qrMacAddressIc string + if o.MacAddressIc != nil { + qrMacAddressIc = *o.MacAddressIc + } + qMacAddressIc := qrMacAddressIc + if qMacAddressIc != "" { + if err := r.SetQueryParam("mac_address__ic", qMacAddressIc); err != nil { + return err + } + } + + } + + if o.MacAddressIe != nil { + + // query param mac_address__ie + var qrMacAddressIe string + if o.MacAddressIe != nil { + qrMacAddressIe = *o.MacAddressIe + } + qMacAddressIe := qrMacAddressIe + if qMacAddressIe != "" { + if err := r.SetQueryParam("mac_address__ie", qMacAddressIe); err != nil { + return err + } + } + + } + + if o.MacAddressIew != nil { + + // query param mac_address__iew + var qrMacAddressIew string + if o.MacAddressIew != nil { + qrMacAddressIew = *o.MacAddressIew + } + qMacAddressIew := qrMacAddressIew + if qMacAddressIew != "" { + if err := r.SetQueryParam("mac_address__iew", qMacAddressIew); err != nil { + return err + } + } + + } + + if o.MacAddressIsw != nil { + + // query param mac_address__isw + var qrMacAddressIsw string + if o.MacAddressIsw != nil { + qrMacAddressIsw = *o.MacAddressIsw + } + qMacAddressIsw := qrMacAddressIsw + if qMacAddressIsw != "" { + if err := r.SetQueryParam("mac_address__isw", qMacAddressIsw); err != nil { + return err + } + } + + } + + if o.MacAddressn != nil { + + // query param mac_address__n + var qrMacAddressn string + if o.MacAddressn != nil { + qrMacAddressn = *o.MacAddressn + } + qMacAddressn := qrMacAddressn + if qMacAddressn != "" { + if err := r.SetQueryParam("mac_address__n", qMacAddressn); err != nil { + return err + } + } + + } + + if o.MacAddressNic != nil { + + // query param mac_address__nic + var qrMacAddressNic string + if o.MacAddressNic != nil { + qrMacAddressNic = *o.MacAddressNic + } + qMacAddressNic := qrMacAddressNic + if qMacAddressNic != "" { + if err := r.SetQueryParam("mac_address__nic", qMacAddressNic); err != nil { + return err + } + } + + } + + if o.MacAddressNie != nil { + + // query param mac_address__nie + var qrMacAddressNie string + if o.MacAddressNie != nil { + qrMacAddressNie = *o.MacAddressNie + } + qMacAddressNie := qrMacAddressNie + if qMacAddressNie != "" { + if err := r.SetQueryParam("mac_address__nie", qMacAddressNie); err != nil { + return err + } + } + + } + + if o.MacAddressNiew != nil { + + // query param mac_address__niew + var qrMacAddressNiew string + if o.MacAddressNiew != nil { + qrMacAddressNiew = *o.MacAddressNiew + } + qMacAddressNiew := qrMacAddressNiew + if qMacAddressNiew != "" { + if err := r.SetQueryParam("mac_address__niew", qMacAddressNiew); err != nil { + return err + } + } + + } + + if o.MacAddressNisw != nil { + + // query param mac_address__nisw + var qrMacAddressNisw string + if o.MacAddressNisw != nil { + qrMacAddressNisw = *o.MacAddressNisw + } + qMacAddressNisw := qrMacAddressNisw + if qMacAddressNisw != "" { + if err := r.SetQueryParam("mac_address__nisw", qMacAddressNisw); err != nil { + return err + } + } + + } + if o.MgmtOnly != nil { // query param mgmt_only @@ -663,6 +1660,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Moden != nil { + + // query param mode__n + var qrModen string + if o.Moden != nil { + qrModen = *o.Moden + } + qModen := qrModen + if qModen != "" { + if err := r.SetQueryParam("mode__n", qModen); err != nil { + return err + } + } + + } + if o.Mtu != nil { // query param mtu @@ -679,6 +1692,86 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.MtuGt != nil { + + // query param mtu__gt + var qrMtuGt string + if o.MtuGt != nil { + qrMtuGt = *o.MtuGt + } + qMtuGt := qrMtuGt + if qMtuGt != "" { + if err := r.SetQueryParam("mtu__gt", qMtuGt); err != nil { + return err + } + } + + } + + if o.MtuGte != nil { + + // query param mtu__gte + var qrMtuGte string + if o.MtuGte != nil { + qrMtuGte = *o.MtuGte + } + qMtuGte := qrMtuGte + if qMtuGte != "" { + if err := r.SetQueryParam("mtu__gte", qMtuGte); err != nil { + return err + } + } + + } + + if o.MtuLt != nil { + + // query param mtu__lt + var qrMtuLt string + if o.MtuLt != nil { + qrMtuLt = *o.MtuLt + } + qMtuLt := qrMtuLt + if qMtuLt != "" { + if err := r.SetQueryParam("mtu__lt", qMtuLt); err != nil { + return err + } + } + + } + + if o.MtuLte != nil { + + // query param mtu__lte + var qrMtuLte string + if o.MtuLte != nil { + qrMtuLte = *o.MtuLte + } + qMtuLte := qrMtuLte + if qMtuLte != "" { + if err := r.SetQueryParam("mtu__lte", qMtuLte); err != nil { + return err + } + } + + } + + if o.Mtun != nil { + + // query param mtu__n + var qrMtun string + if o.Mtun != nil { + qrMtun = *o.Mtun + } + qMtun := qrMtun + if qMtun != "" { + if err := r.SetQueryParam("mtu__n", qMtun); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -695,6 +1788,150 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -743,6 +1980,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -759,6 +2012,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -775,6 +2044,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -791,6 +2076,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -807,6 +2108,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Type != nil { // query param type @@ -823,6 +2140,22 @@ func (o *DcimInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Vlan != nil { // query param vlan diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_responses.go index e14effac2..2424ee4bb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesListReader is a Reader for the DcimInterfacesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_parameters.go index 731833112..cb590ef67 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInterfacesPartialUpdateParams creates a new DcimInterfacesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_responses.go index 2d4ba7c30..0fb85a118 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesPartialUpdateReader is a Reader for the DcimInterfacesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_parameters.go index 5390cb605..0efe470fb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfacesReadParams creates a new DcimInterfacesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_responses.go index 5e50e2592..371dd5e01 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesReadReader is a Reader for the DcimInterfacesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_parameters.go index 08e379dc0..5ce48602f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInterfacesTraceParams creates a new DcimInterfacesTraceParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_responses.go index 93fecbf50..ae9c8ac5d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_trace_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesTraceReader is a Reader for the DcimInterfacesTrace structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_parameters.go index bdb686392..28f5e2ece 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInterfacesUpdateParams creates a new DcimInterfacesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_responses.go index 730e29126..97b19fd40 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_interfaces_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInterfacesUpdateReader is a Reader for the DcimInterfacesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_parameters.go index 4ab3a9e05..739d41b90 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInventoryItemsCreateParams creates a new DcimInventoryItemsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_responses.go index d8767138c..369bc11d1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInventoryItemsCreateReader is a Reader for the DcimInventoryItemsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_parameters.go index 90b42bb42..03c9c5c95 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInventoryItemsDeleteParams creates a new DcimInventoryItemsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_responses.go index c2934c927..3c1dbdd74 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimInventoryItemsDeleteReader is a Reader for the DcimInventoryItemsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go index df3f8cbb4..f0fe82968 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInventoryItemsListParams creates a new DcimInventoryItemsListParams object @@ -79,14 +78,46 @@ type DcimInventoryItemsListParams struct { /*AssetTag*/ AssetTag *string + /*AssetTagIc*/ + AssetTagIc *string + /*AssetTagIe*/ + AssetTagIe *string + /*AssetTagIew*/ + AssetTagIew *string + /*AssetTagIsw*/ + AssetTagIsw *string + /*AssetTagn*/ + AssetTagn *string + /*AssetTagNic*/ + AssetTagNic *string + /*AssetTagNie*/ + AssetTagNie *string + /*AssetTagNiew*/ + AssetTagNiew *string + /*AssetTagNisw*/ + AssetTagNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*Discovered*/ Discovered *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -94,10 +125,32 @@ type DcimInventoryItemsListParams struct { Limit *int64 /*Manufacturer*/ Manufacturer *string + /*Manufacturern*/ + Manufacturern *string /*ManufacturerID*/ ManufacturerID *string + /*ManufacturerIDn*/ + ManufacturerIDn *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -105,22 +158,52 @@ type DcimInventoryItemsListParams struct { Offset *int64 /*ParentID*/ ParentID *string + /*ParentIDn*/ + ParentIDn *string /*PartID*/ PartID *string + /*PartIDIc*/ + PartIDIc *string + /*PartIDIe*/ + PartIDIe *string + /*PartIDIew*/ + PartIDIew *string + /*PartIDIsw*/ + PartIDIsw *string + /*PartIDn*/ + PartIDn *string + /*PartIDNic*/ + PartIDNic *string + /*PartIDNie*/ + PartIDNie *string + /*PartIDNiew*/ + PartIDNiew *string + /*PartIDNisw*/ + PartIDNisw *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Serial*/ Serial *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string timeout time.Duration Context context.Context @@ -171,6 +254,105 @@ func (o *DcimInventoryItemsListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagIc adds the assetTagIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagIc(assetTagIc *string) *DcimInventoryItemsListParams { + o.SetAssetTagIc(assetTagIc) + return o +} + +// SetAssetTagIc adds the assetTagIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagIc(assetTagIc *string) { + o.AssetTagIc = assetTagIc +} + +// WithAssetTagIe adds the assetTagIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagIe(assetTagIe *string) *DcimInventoryItemsListParams { + o.SetAssetTagIe(assetTagIe) + return o +} + +// SetAssetTagIe adds the assetTagIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagIe(assetTagIe *string) { + o.AssetTagIe = assetTagIe +} + +// WithAssetTagIew adds the assetTagIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagIew(assetTagIew *string) *DcimInventoryItemsListParams { + o.SetAssetTagIew(assetTagIew) + return o +} + +// SetAssetTagIew adds the assetTagIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagIew(assetTagIew *string) { + o.AssetTagIew = assetTagIew +} + +// WithAssetTagIsw adds the assetTagIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagIsw(assetTagIsw *string) *DcimInventoryItemsListParams { + o.SetAssetTagIsw(assetTagIsw) + return o +} + +// SetAssetTagIsw adds the assetTagIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagIsw(assetTagIsw *string) { + o.AssetTagIsw = assetTagIsw +} + +// WithAssetTagn adds the assetTagn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagn(assetTagn *string) *DcimInventoryItemsListParams { + o.SetAssetTagn(assetTagn) + return o +} + +// SetAssetTagn adds the assetTagN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagn(assetTagn *string) { + o.AssetTagn = assetTagn +} + +// WithAssetTagNic adds the assetTagNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagNic(assetTagNic *string) *DcimInventoryItemsListParams { + o.SetAssetTagNic(assetTagNic) + return o +} + +// SetAssetTagNic adds the assetTagNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagNic(assetTagNic *string) { + o.AssetTagNic = assetTagNic +} + +// WithAssetTagNie adds the assetTagNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagNie(assetTagNie *string) *DcimInventoryItemsListParams { + o.SetAssetTagNie(assetTagNie) + return o +} + +// SetAssetTagNie adds the assetTagNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagNie(assetTagNie *string) { + o.AssetTagNie = assetTagNie +} + +// WithAssetTagNiew adds the assetTagNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagNiew(assetTagNiew *string) *DcimInventoryItemsListParams { + o.SetAssetTagNiew(assetTagNiew) + return o +} + +// SetAssetTagNiew adds the assetTagNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagNiew(assetTagNiew *string) { + o.AssetTagNiew = assetTagNiew +} + +// WithAssetTagNisw adds the assetTagNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithAssetTagNisw(assetTagNisw *string) *DcimInventoryItemsListParams { + o.SetAssetTagNisw(assetTagNisw) + return o +} + +// SetAssetTagNisw adds the assetTagNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetAssetTagNisw(assetTagNisw *string) { + o.AssetTagNisw = assetTagNisw +} + // WithDevice adds the device to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithDevice(device *string) *DcimInventoryItemsListParams { o.SetDevice(device) @@ -182,6 +364,17 @@ func (o *DcimInventoryItemsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithDevicen(devicen *string) *DcimInventoryItemsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithDeviceID(deviceID *string) *DcimInventoryItemsListParams { o.SetDeviceID(deviceID) @@ -193,6 +386,17 @@ func (o *DcimInventoryItemsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithDeviceIDn(deviceIDn *string) *DcimInventoryItemsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithDiscovered adds the discovered to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithDiscovered(discovered *string) *DcimInventoryItemsListParams { o.SetDiscovered(discovered) @@ -215,6 +419,61 @@ func (o *DcimInventoryItemsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithIDGt(iDGt *string) *DcimInventoryItemsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithIDGte(iDGte *string) *DcimInventoryItemsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithIDLt(iDLt *string) *DcimInventoryItemsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithIDLte(iDLte *string) *DcimInventoryItemsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithIDn(iDn *string) *DcimInventoryItemsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithLimit(limit *int64) *DcimInventoryItemsListParams { o.SetLimit(limit) @@ -237,6 +496,17 @@ func (o *DcimInventoryItemsListParams) SetManufacturer(manufacturer *string) { o.Manufacturer = manufacturer } +// WithManufacturern adds the manufacturern to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithManufacturern(manufacturern *string) *DcimInventoryItemsListParams { + o.SetManufacturern(manufacturern) + return o +} + +// SetManufacturern adds the manufacturerN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetManufacturern(manufacturern *string) { + o.Manufacturern = manufacturern +} + // WithManufacturerID adds the manufacturerID to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithManufacturerID(manufacturerID *string) *DcimInventoryItemsListParams { o.SetManufacturerID(manufacturerID) @@ -248,6 +518,17 @@ func (o *DcimInventoryItemsListParams) SetManufacturerID(manufacturerID *string) o.ManufacturerID = manufacturerID } +// WithManufacturerIDn adds the manufacturerIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithManufacturerIDn(manufacturerIDn *string) *DcimInventoryItemsListParams { + o.SetManufacturerIDn(manufacturerIDn) + return o +} + +// SetManufacturerIDn adds the manufacturerIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetManufacturerIDn(manufacturerIDn *string) { + o.ManufacturerIDn = manufacturerIDn +} + // WithName adds the name to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithName(name *string) *DcimInventoryItemsListParams { o.SetName(name) @@ -259,6 +540,105 @@ func (o *DcimInventoryItemsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameIc(nameIc *string) *DcimInventoryItemsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameIe(nameIe *string) *DcimInventoryItemsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameIew(nameIew *string) *DcimInventoryItemsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameIsw(nameIsw *string) *DcimInventoryItemsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNamen(namen *string) *DcimInventoryItemsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameNic(nameNic *string) *DcimInventoryItemsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameNie(nameNie *string) *DcimInventoryItemsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameNiew(nameNiew *string) *DcimInventoryItemsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithNameNisw(nameNisw *string) *DcimInventoryItemsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithOffset(offset *int64) *DcimInventoryItemsListParams { o.SetOffset(offset) @@ -281,6 +661,17 @@ func (o *DcimInventoryItemsListParams) SetParentID(parentID *string) { o.ParentID = parentID } +// WithParentIDn adds the parentIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithParentIDn(parentIDn *string) *DcimInventoryItemsListParams { + o.SetParentIDn(parentIDn) + return o +} + +// SetParentIDn adds the parentIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetParentIDn(parentIDn *string) { + o.ParentIDn = parentIDn +} + // WithPartID adds the partID to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithPartID(partID *string) *DcimInventoryItemsListParams { o.SetPartID(partID) @@ -292,6 +683,105 @@ func (o *DcimInventoryItemsListParams) SetPartID(partID *string) { o.PartID = partID } +// WithPartIDIc adds the partIDIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDIc(partIDIc *string) *DcimInventoryItemsListParams { + o.SetPartIDIc(partIDIc) + return o +} + +// SetPartIDIc adds the partIdIc to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDIc(partIDIc *string) { + o.PartIDIc = partIDIc +} + +// WithPartIDIe adds the partIDIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDIe(partIDIe *string) *DcimInventoryItemsListParams { + o.SetPartIDIe(partIDIe) + return o +} + +// SetPartIDIe adds the partIdIe to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDIe(partIDIe *string) { + o.PartIDIe = partIDIe +} + +// WithPartIDIew adds the partIDIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDIew(partIDIew *string) *DcimInventoryItemsListParams { + o.SetPartIDIew(partIDIew) + return o +} + +// SetPartIDIew adds the partIdIew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDIew(partIDIew *string) { + o.PartIDIew = partIDIew +} + +// WithPartIDIsw adds the partIDIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDIsw(partIDIsw *string) *DcimInventoryItemsListParams { + o.SetPartIDIsw(partIDIsw) + return o +} + +// SetPartIDIsw adds the partIdIsw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDIsw(partIDIsw *string) { + o.PartIDIsw = partIDIsw +} + +// WithPartIDn adds the partIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDn(partIDn *string) *DcimInventoryItemsListParams { + o.SetPartIDn(partIDn) + return o +} + +// SetPartIDn adds the partIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDn(partIDn *string) { + o.PartIDn = partIDn +} + +// WithPartIDNic adds the partIDNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDNic(partIDNic *string) *DcimInventoryItemsListParams { + o.SetPartIDNic(partIDNic) + return o +} + +// SetPartIDNic adds the partIdNic to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDNic(partIDNic *string) { + o.PartIDNic = partIDNic +} + +// WithPartIDNie adds the partIDNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDNie(partIDNie *string) *DcimInventoryItemsListParams { + o.SetPartIDNie(partIDNie) + return o +} + +// SetPartIDNie adds the partIdNie to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDNie(partIDNie *string) { + o.PartIDNie = partIDNie +} + +// WithPartIDNiew adds the partIDNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDNiew(partIDNiew *string) *DcimInventoryItemsListParams { + o.SetPartIDNiew(partIDNiew) + return o +} + +// SetPartIDNiew adds the partIdNiew to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDNiew(partIDNiew *string) { + o.PartIDNiew = partIDNiew +} + +// WithPartIDNisw adds the partIDNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithPartIDNisw(partIDNisw *string) *DcimInventoryItemsListParams { + o.SetPartIDNisw(partIDNisw) + return o +} + +// SetPartIDNisw adds the partIdNisw to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetPartIDNisw(partIDNisw *string) { + o.PartIDNisw = partIDNisw +} + // WithQ adds the q to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithQ(q *string) *DcimInventoryItemsListParams { o.SetQ(q) @@ -314,6 +804,17 @@ func (o *DcimInventoryItemsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithRegionn(regionn *string) *DcimInventoryItemsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithRegionID(regionID *string) *DcimInventoryItemsListParams { o.SetRegionID(regionID) @@ -325,6 +826,17 @@ func (o *DcimInventoryItemsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithRegionIDn(regionIDn *string) *DcimInventoryItemsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSerial adds the serial to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithSerial(serial *string) *DcimInventoryItemsListParams { o.SetSerial(serial) @@ -347,6 +859,17 @@ func (o *DcimInventoryItemsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSiten(siten *string) *DcimInventoryItemsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithSiteID(siteID *string) *DcimInventoryItemsListParams { o.SetSiteID(siteID) @@ -358,6 +881,17 @@ func (o *DcimInventoryItemsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithSiteIDn(siteIDn *string) *DcimInventoryItemsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim inventory items list params func (o *DcimInventoryItemsListParams) WithTag(tag *string) *DcimInventoryItemsListParams { o.SetTag(tag) @@ -369,6 +903,17 @@ func (o *DcimInventoryItemsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) WithTagn(tagn *string) *DcimInventoryItemsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim inventory items list params +func (o *DcimInventoryItemsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -393,92 +938,348 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } - if o.Device != nil { + if o.AssetTagIc != nil { - // query param device - var qrDevice string - if o.Device != nil { - qrDevice = *o.Device + // query param asset_tag__ic + var qrAssetTagIc string + if o.AssetTagIc != nil { + qrAssetTagIc = *o.AssetTagIc } - qDevice := qrDevice - if qDevice != "" { - if err := r.SetQueryParam("device", qDevice); err != nil { + qAssetTagIc := qrAssetTagIc + if qAssetTagIc != "" { + if err := r.SetQueryParam("asset_tag__ic", qAssetTagIc); err != nil { return err } } } - if o.DeviceID != nil { + if o.AssetTagIe != nil { - // query param device_id - var qrDeviceID string - if o.DeviceID != nil { - qrDeviceID = *o.DeviceID + // query param asset_tag__ie + var qrAssetTagIe string + if o.AssetTagIe != nil { + qrAssetTagIe = *o.AssetTagIe } - qDeviceID := qrDeviceID - if qDeviceID != "" { - if err := r.SetQueryParam("device_id", qDeviceID); err != nil { + qAssetTagIe := qrAssetTagIe + if qAssetTagIe != "" { + if err := r.SetQueryParam("asset_tag__ie", qAssetTagIe); err != nil { return err } } } - if o.Discovered != nil { + if o.AssetTagIew != nil { - // query param discovered - var qrDiscovered string - if o.Discovered != nil { - qrDiscovered = *o.Discovered + // query param asset_tag__iew + var qrAssetTagIew string + if o.AssetTagIew != nil { + qrAssetTagIew = *o.AssetTagIew } - qDiscovered := qrDiscovered - if qDiscovered != "" { - if err := r.SetQueryParam("discovered", qDiscovered); err != nil { + qAssetTagIew := qrAssetTagIew + if qAssetTagIew != "" { + if err := r.SetQueryParam("asset_tag__iew", qAssetTagIew); err != nil { return err } } } - if o.ID != nil { + if o.AssetTagIsw != nil { - // query param id - var qrID string - if o.ID != nil { - qrID = *o.ID + // query param asset_tag__isw + var qrAssetTagIsw string + if o.AssetTagIsw != nil { + qrAssetTagIsw = *o.AssetTagIsw } - qID := qrID - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { + qAssetTagIsw := qrAssetTagIsw + if qAssetTagIsw != "" { + if err := r.SetQueryParam("asset_tag__isw", qAssetTagIsw); err != nil { return err } } } - if o.Limit != nil { + if o.AssetTagn != nil { - // query param limit - var qrLimit int64 - if o.Limit != nil { - qrLimit = *o.Limit + // query param asset_tag__n + var qrAssetTagn string + if o.AssetTagn != nil { + qrAssetTagn = *o.AssetTagn } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { + qAssetTagn := qrAssetTagn + if qAssetTagn != "" { + if err := r.SetQueryParam("asset_tag__n", qAssetTagn); err != nil { return err } } } - if o.Manufacturer != nil { + if o.AssetTagNic != nil { - // query param manufacturer - var qrManufacturer string - if o.Manufacturer != nil { - qrManufacturer = *o.Manufacturer + // query param asset_tag__nic + var qrAssetTagNic string + if o.AssetTagNic != nil { + qrAssetTagNic = *o.AssetTagNic + } + qAssetTagNic := qrAssetTagNic + if qAssetTagNic != "" { + if err := r.SetQueryParam("asset_tag__nic", qAssetTagNic); err != nil { + return err + } + } + + } + + if o.AssetTagNie != nil { + + // query param asset_tag__nie + var qrAssetTagNie string + if o.AssetTagNie != nil { + qrAssetTagNie = *o.AssetTagNie + } + qAssetTagNie := qrAssetTagNie + if qAssetTagNie != "" { + if err := r.SetQueryParam("asset_tag__nie", qAssetTagNie); err != nil { + return err + } + } + + } + + if o.AssetTagNiew != nil { + + // query param asset_tag__niew + var qrAssetTagNiew string + if o.AssetTagNiew != nil { + qrAssetTagNiew = *o.AssetTagNiew + } + qAssetTagNiew := qrAssetTagNiew + if qAssetTagNiew != "" { + if err := r.SetQueryParam("asset_tag__niew", qAssetTagNiew); err != nil { + return err + } + } + + } + + if o.AssetTagNisw != nil { + + // query param asset_tag__nisw + var qrAssetTagNisw string + if o.AssetTagNisw != nil { + qrAssetTagNisw = *o.AssetTagNisw + } + qAssetTagNisw := qrAssetTagNisw + if qAssetTagNisw != "" { + if err := r.SetQueryParam("asset_tag__nisw", qAssetTagNisw); err != nil { + return err + } + } + + } + + 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.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); 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.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + + if o.Discovered != nil { + + // query param discovered + var qrDiscovered string + if o.Discovered != nil { + qrDiscovered = *o.Discovered + } + qDiscovered := qrDiscovered + if qDiscovered != "" { + if err := r.SetQueryParam("discovered", qDiscovered); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + + } + + if o.Manufacturer != nil { + + // query param manufacturer + var qrManufacturer string + if o.Manufacturer != nil { + qrManufacturer = *o.Manufacturer } qManufacturer := qrManufacturer if qManufacturer != "" { @@ -489,6 +1290,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.Manufacturern != nil { + + // query param manufacturer__n + var qrManufacturern string + if o.Manufacturern != nil { + qrManufacturern = *o.Manufacturern + } + qManufacturern := qrManufacturern + if qManufacturern != "" { + if err := r.SetQueryParam("manufacturer__n", qManufacturern); err != nil { + return err + } + } + + } + if o.ManufacturerID != nil { // query param manufacturer_id @@ -505,6 +1322,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.ManufacturerIDn != nil { + + // query param manufacturer_id__n + var qrManufacturerIDn string + if o.ManufacturerIDn != nil { + qrManufacturerIDn = *o.ManufacturerIDn + } + qManufacturerIDn := qrManufacturerIDn + if qManufacturerIDn != "" { + if err := r.SetQueryParam("manufacturer_id__n", qManufacturerIDn); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -521,6 +1354,150 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -553,6 +1530,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.ParentIDn != nil { + + // query param parent_id__n + var qrParentIDn string + if o.ParentIDn != nil { + qrParentIDn = *o.ParentIDn + } + qParentIDn := qrParentIDn + if qParentIDn != "" { + if err := r.SetQueryParam("parent_id__n", qParentIDn); err != nil { + return err + } + } + + } + if o.PartID != nil { // query param part_id @@ -569,6 +1562,150 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.PartIDIc != nil { + + // query param part_id__ic + var qrPartIDIc string + if o.PartIDIc != nil { + qrPartIDIc = *o.PartIDIc + } + qPartIDIc := qrPartIDIc + if qPartIDIc != "" { + if err := r.SetQueryParam("part_id__ic", qPartIDIc); err != nil { + return err + } + } + + } + + if o.PartIDIe != nil { + + // query param part_id__ie + var qrPartIDIe string + if o.PartIDIe != nil { + qrPartIDIe = *o.PartIDIe + } + qPartIDIe := qrPartIDIe + if qPartIDIe != "" { + if err := r.SetQueryParam("part_id__ie", qPartIDIe); err != nil { + return err + } + } + + } + + if o.PartIDIew != nil { + + // query param part_id__iew + var qrPartIDIew string + if o.PartIDIew != nil { + qrPartIDIew = *o.PartIDIew + } + qPartIDIew := qrPartIDIew + if qPartIDIew != "" { + if err := r.SetQueryParam("part_id__iew", qPartIDIew); err != nil { + return err + } + } + + } + + if o.PartIDIsw != nil { + + // query param part_id__isw + var qrPartIDIsw string + if o.PartIDIsw != nil { + qrPartIDIsw = *o.PartIDIsw + } + qPartIDIsw := qrPartIDIsw + if qPartIDIsw != "" { + if err := r.SetQueryParam("part_id__isw", qPartIDIsw); err != nil { + return err + } + } + + } + + if o.PartIDn != nil { + + // query param part_id__n + var qrPartIDn string + if o.PartIDn != nil { + qrPartIDn = *o.PartIDn + } + qPartIDn := qrPartIDn + if qPartIDn != "" { + if err := r.SetQueryParam("part_id__n", qPartIDn); err != nil { + return err + } + } + + } + + if o.PartIDNic != nil { + + // query param part_id__nic + var qrPartIDNic string + if o.PartIDNic != nil { + qrPartIDNic = *o.PartIDNic + } + qPartIDNic := qrPartIDNic + if qPartIDNic != "" { + if err := r.SetQueryParam("part_id__nic", qPartIDNic); err != nil { + return err + } + } + + } + + if o.PartIDNie != nil { + + // query param part_id__nie + var qrPartIDNie string + if o.PartIDNie != nil { + qrPartIDNie = *o.PartIDNie + } + qPartIDNie := qrPartIDNie + if qPartIDNie != "" { + if err := r.SetQueryParam("part_id__nie", qPartIDNie); err != nil { + return err + } + } + + } + + if o.PartIDNiew != nil { + + // query param part_id__niew + var qrPartIDNiew string + if o.PartIDNiew != nil { + qrPartIDNiew = *o.PartIDNiew + } + qPartIDNiew := qrPartIDNiew + if qPartIDNiew != "" { + if err := r.SetQueryParam("part_id__niew", qPartIDNiew); err != nil { + return err + } + } + + } + + if o.PartIDNisw != nil { + + // query param part_id__nisw + var qrPartIDNisw string + if o.PartIDNisw != nil { + qrPartIDNisw = *o.PartIDNisw + } + qPartIDNisw := qrPartIDNisw + if qPartIDNisw != "" { + if err := r.SetQueryParam("part_id__nisw", qPartIDNisw); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -601,6 +1738,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + 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 @@ -617,6 +1770,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + 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.Serial != nil { // query param serial @@ -649,6 +1818,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -665,6 +1850,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -681,6 +1882,22 @@ func (o *DcimInventoryItemsListParams) WriteToRequest(r runtime.ClientRequest, r } + 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/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_responses.go index 54cd65221..27cdcf734 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInventoryItemsListReader is a Reader for the DcimInventoryItemsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_parameters.go index fbd0071c9..d7cdf9d88 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInventoryItemsPartialUpdateParams creates a new DcimInventoryItemsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_responses.go index d7a968405..078829ee9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInventoryItemsPartialUpdateReader is a Reader for the DcimInventoryItemsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_parameters.go index d86d93f54..4b33fbc50 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimInventoryItemsReadParams creates a new DcimInventoryItemsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_responses.go index 1c33c27d8..4c35bafb5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInventoryItemsReadReader is a Reader for the DcimInventoryItemsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_parameters.go index 5bdd7c65d..783d3a4a8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimInventoryItemsUpdateParams creates a new DcimInventoryItemsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_responses.go index 2c0d84bed..789358ded 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_inventory_items_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimInventoryItemsUpdateReader is a Reader for the DcimInventoryItemsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_parameters.go index dcca4b709..033d2bf78 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimManufacturersCreateParams creates a new DcimManufacturersCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_responses.go index b8f7ba6a9..d5882093a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimManufacturersCreateReader is a Reader for the DcimManufacturersCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_parameters.go index dbb10cc6e..7d15100c5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimManufacturersDeleteParams creates a new DcimManufacturersDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_responses.go index 11662e8b2..30747b341 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimManufacturersDeleteReader is a Reader for the DcimManufacturersDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go index 4af10254c..c13131f86 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimManufacturersListParams creates a new DcimManufacturersListParams object @@ -77,8 +76,38 @@ for the dcim manufacturers list operation typically these are written to a http. */ type DcimManufacturersListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +115,24 @@ type DcimManufacturersListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,6 +142,24 @@ type DcimManufacturersListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -134,6 +199,116 @@ func (o *DcimManufacturersListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithDescription adds the description to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescription(description *string) *DcimManufacturersListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionIc(descriptionIc *string) *DcimManufacturersListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionIe(descriptionIe *string) *DcimManufacturersListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionIew(descriptionIew *string) *DcimManufacturersListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionIsw(descriptionIsw *string) *DcimManufacturersListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionn(descriptionn *string) *DcimManufacturersListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionNic(descriptionNic *string) *DcimManufacturersListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionNie(descriptionNie *string) *DcimManufacturersListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionNiew(descriptionNiew *string) *DcimManufacturersListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithDescriptionNisw(descriptionNisw *string) *DcimManufacturersListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithID(id *string) *DcimManufacturersListParams { o.SetID(id) @@ -145,6 +320,61 @@ func (o *DcimManufacturersListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithIDGt(iDGt *string) *DcimManufacturersListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithIDGte(iDGte *string) *DcimManufacturersListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithIDLt(iDLt *string) *DcimManufacturersListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithIDLte(iDLte *string) *DcimManufacturersListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithIDn(iDn *string) *DcimManufacturersListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithLimit(limit *int64) *DcimManufacturersListParams { o.SetLimit(limit) @@ -167,6 +397,105 @@ func (o *DcimManufacturersListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameIc(nameIc *string) *DcimManufacturersListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameIe(nameIe *string) *DcimManufacturersListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameIew(nameIew *string) *DcimManufacturersListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameIsw(nameIsw *string) *DcimManufacturersListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNamen(namen *string) *DcimManufacturersListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameNic(nameNic *string) *DcimManufacturersListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameNie(nameNie *string) *DcimManufacturersListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameNiew(nameNiew *string) *DcimManufacturersListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithNameNisw(nameNisw *string) *DcimManufacturersListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim manufacturers list params func (o *DcimManufacturersListParams) WithOffset(offset *int64) *DcimManufacturersListParams { o.SetOffset(offset) @@ -200,6 +529,105 @@ func (o *DcimManufacturersListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugIc(slugIc *string) *DcimManufacturersListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugIe(slugIe *string) *DcimManufacturersListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugIew(slugIew *string) *DcimManufacturersListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugIsw(slugIsw *string) *DcimManufacturersListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugn(slugn *string) *DcimManufacturersListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugNic(slugNic *string) *DcimManufacturersListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugNie(slugNie *string) *DcimManufacturersListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugNiew(slugNiew *string) *DcimManufacturersListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) WithSlugNisw(slugNisw *string) *DcimManufacturersListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim manufacturers list params +func (o *DcimManufacturersListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -208,6 +636,166 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } var res []error + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -224,6 +812,86 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +924,150 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -304,6 +1116,150 @@ func (o *DcimManufacturersListParams) WriteToRequest(r runtime.ClientRequest, re } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_responses.go index 434712b18..9c90fff32 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimManufacturersListReader is a Reader for the DcimManufacturersList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_parameters.go index 26271fc17..c26c85f9c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimManufacturersPartialUpdateParams creates a new DcimManufacturersPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_responses.go index d1ab96a91..181ed7cc5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimManufacturersPartialUpdateReader is a Reader for the DcimManufacturersPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_parameters.go index 6430e21ff..e21d51ddc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimManufacturersReadParams creates a new DcimManufacturersReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_responses.go index c2df2b890..d4e5122bb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimManufacturersReadReader is a Reader for the DcimManufacturersRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_parameters.go index 297fd40f7..3623791a7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimManufacturersUpdateParams creates a new DcimManufacturersUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_responses.go index eb945f4e2..a43625d4b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_manufacturers_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimManufacturersUpdateReader is a Reader for the DcimManufacturersUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_parameters.go index 927719988..03e392cba 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPlatformsCreateParams creates a new DcimPlatformsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_responses.go index 97084e9db..45a738173 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPlatformsCreateReader is a Reader for the DcimPlatformsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_parameters.go index f37ac9e78..1b5378e5b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPlatformsDeleteParams creates a new DcimPlatformsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_responses.go index a1d945104..6c3707c01 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPlatformsDeleteReader is a Reader for the DcimPlatformsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go index 8e57adcef..254dc0a83 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPlatformsListParams creates a new DcimPlatformsListParams object @@ -77,8 +76,38 @@ for the dcim platforms list operation typically these are written to a http.Requ */ type DcimPlatformsListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,12 +115,52 @@ type DcimPlatformsListParams struct { Limit *int64 /*Manufacturer*/ Manufacturer *string + /*Manufacturern*/ + Manufacturern *string /*ManufacturerID*/ ManufacturerID *string + /*ManufacturerIDn*/ + ManufacturerIDn *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*NapalmDriver*/ NapalmDriver *string + /*NapalmDriverIc*/ + NapalmDriverIc *string + /*NapalmDriverIe*/ + NapalmDriverIe *string + /*NapalmDriverIew*/ + NapalmDriverIew *string + /*NapalmDriverIsw*/ + NapalmDriverIsw *string + /*NapalmDrivern*/ + NapalmDrivern *string + /*NapalmDriverNic*/ + NapalmDriverNic *string + /*NapalmDriverNie*/ + NapalmDriverNie *string + /*NapalmDriverNiew*/ + NapalmDriverNiew *string + /*NapalmDriverNisw*/ + NapalmDriverNisw *string /*Offset The initial index from which to return the results. @@ -101,6 +170,24 @@ type DcimPlatformsListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -140,6 +227,116 @@ func (o *DcimPlatformsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithDescription adds the description to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescription(description *string) *DcimPlatformsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionIc(descriptionIc *string) *DcimPlatformsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionIe(descriptionIe *string) *DcimPlatformsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionIew(descriptionIew *string) *DcimPlatformsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimPlatformsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionn(descriptionn *string) *DcimPlatformsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionNic(descriptionNic *string) *DcimPlatformsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionNie(descriptionNie *string) *DcimPlatformsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimPlatformsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimPlatformsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the dcim platforms list params func (o *DcimPlatformsListParams) WithID(id *string) *DcimPlatformsListParams { o.SetID(id) @@ -151,6 +348,61 @@ func (o *DcimPlatformsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim platforms list params +func (o *DcimPlatformsListParams) WithIDGt(iDGt *string) *DcimPlatformsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim platforms list params +func (o *DcimPlatformsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim platforms list params +func (o *DcimPlatformsListParams) WithIDGte(iDGte *string) *DcimPlatformsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim platforms list params +func (o *DcimPlatformsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim platforms list params +func (o *DcimPlatformsListParams) WithIDLt(iDLt *string) *DcimPlatformsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim platforms list params +func (o *DcimPlatformsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim platforms list params +func (o *DcimPlatformsListParams) WithIDLte(iDLte *string) *DcimPlatformsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim platforms list params +func (o *DcimPlatformsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim platforms list params +func (o *DcimPlatformsListParams) WithIDn(iDn *string) *DcimPlatformsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim platforms list params func (o *DcimPlatformsListParams) WithLimit(limit *int64) *DcimPlatformsListParams { o.SetLimit(limit) @@ -173,6 +425,17 @@ func (o *DcimPlatformsListParams) SetManufacturer(manufacturer *string) { o.Manufacturer = manufacturer } +// WithManufacturern adds the manufacturern to the dcim platforms list params +func (o *DcimPlatformsListParams) WithManufacturern(manufacturern *string) *DcimPlatformsListParams { + o.SetManufacturern(manufacturern) + return o +} + +// SetManufacturern adds the manufacturerN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetManufacturern(manufacturern *string) { + o.Manufacturern = manufacturern +} + // WithManufacturerID adds the manufacturerID to the dcim platforms list params func (o *DcimPlatformsListParams) WithManufacturerID(manufacturerID *string) *DcimPlatformsListParams { o.SetManufacturerID(manufacturerID) @@ -184,6 +447,17 @@ func (o *DcimPlatformsListParams) SetManufacturerID(manufacturerID *string) { o.ManufacturerID = manufacturerID } +// WithManufacturerIDn adds the manufacturerIDn to the dcim platforms list params +func (o *DcimPlatformsListParams) WithManufacturerIDn(manufacturerIDn *string) *DcimPlatformsListParams { + o.SetManufacturerIDn(manufacturerIDn) + return o +} + +// SetManufacturerIDn adds the manufacturerIdN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetManufacturerIDn(manufacturerIDn *string) { + o.ManufacturerIDn = manufacturerIDn +} + // WithName adds the name to the dcim platforms list params func (o *DcimPlatformsListParams) WithName(name *string) *DcimPlatformsListParams { o.SetName(name) @@ -195,6 +469,105 @@ func (o *DcimPlatformsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameIc(nameIc *string) *DcimPlatformsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameIe(nameIe *string) *DcimPlatformsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameIew(nameIew *string) *DcimPlatformsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameIsw(nameIsw *string) *DcimPlatformsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNamen(namen *string) *DcimPlatformsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameNic(nameNic *string) *DcimPlatformsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameNie(nameNie *string) *DcimPlatformsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameNiew(nameNiew *string) *DcimPlatformsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNameNisw(nameNisw *string) *DcimPlatformsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithNapalmDriver adds the napalmDriver to the dcim platforms list params func (o *DcimPlatformsListParams) WithNapalmDriver(napalmDriver *string) *DcimPlatformsListParams { o.SetNapalmDriver(napalmDriver) @@ -206,6 +579,105 @@ func (o *DcimPlatformsListParams) SetNapalmDriver(napalmDriver *string) { o.NapalmDriver = napalmDriver } +// WithNapalmDriverIc adds the napalmDriverIc to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverIc(napalmDriverIc *string) *DcimPlatformsListParams { + o.SetNapalmDriverIc(napalmDriverIc) + return o +} + +// SetNapalmDriverIc adds the napalmDriverIc to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverIc(napalmDriverIc *string) { + o.NapalmDriverIc = napalmDriverIc +} + +// WithNapalmDriverIe adds the napalmDriverIe to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverIe(napalmDriverIe *string) *DcimPlatformsListParams { + o.SetNapalmDriverIe(napalmDriverIe) + return o +} + +// SetNapalmDriverIe adds the napalmDriverIe to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverIe(napalmDriverIe *string) { + o.NapalmDriverIe = napalmDriverIe +} + +// WithNapalmDriverIew adds the napalmDriverIew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverIew(napalmDriverIew *string) *DcimPlatformsListParams { + o.SetNapalmDriverIew(napalmDriverIew) + return o +} + +// SetNapalmDriverIew adds the napalmDriverIew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverIew(napalmDriverIew *string) { + o.NapalmDriverIew = napalmDriverIew +} + +// WithNapalmDriverIsw adds the napalmDriverIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverIsw(napalmDriverIsw *string) *DcimPlatformsListParams { + o.SetNapalmDriverIsw(napalmDriverIsw) + return o +} + +// SetNapalmDriverIsw adds the napalmDriverIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverIsw(napalmDriverIsw *string) { + o.NapalmDriverIsw = napalmDriverIsw +} + +// WithNapalmDrivern adds the napalmDrivern to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDrivern(napalmDrivern *string) *DcimPlatformsListParams { + o.SetNapalmDrivern(napalmDrivern) + return o +} + +// SetNapalmDrivern adds the napalmDriverN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDrivern(napalmDrivern *string) { + o.NapalmDrivern = napalmDrivern +} + +// WithNapalmDriverNic adds the napalmDriverNic to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverNic(napalmDriverNic *string) *DcimPlatformsListParams { + o.SetNapalmDriverNic(napalmDriverNic) + return o +} + +// SetNapalmDriverNic adds the napalmDriverNic to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverNic(napalmDriverNic *string) { + o.NapalmDriverNic = napalmDriverNic +} + +// WithNapalmDriverNie adds the napalmDriverNie to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverNie(napalmDriverNie *string) *DcimPlatformsListParams { + o.SetNapalmDriverNie(napalmDriverNie) + return o +} + +// SetNapalmDriverNie adds the napalmDriverNie to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverNie(napalmDriverNie *string) { + o.NapalmDriverNie = napalmDriverNie +} + +// WithNapalmDriverNiew adds the napalmDriverNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverNiew(napalmDriverNiew *string) *DcimPlatformsListParams { + o.SetNapalmDriverNiew(napalmDriverNiew) + return o +} + +// SetNapalmDriverNiew adds the napalmDriverNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverNiew(napalmDriverNiew *string) { + o.NapalmDriverNiew = napalmDriverNiew +} + +// WithNapalmDriverNisw adds the napalmDriverNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithNapalmDriverNisw(napalmDriverNisw *string) *DcimPlatformsListParams { + o.SetNapalmDriverNisw(napalmDriverNisw) + return o +} + +// SetNapalmDriverNisw adds the napalmDriverNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetNapalmDriverNisw(napalmDriverNisw *string) { + o.NapalmDriverNisw = napalmDriverNisw +} + // WithOffset adds the offset to the dcim platforms list params func (o *DcimPlatformsListParams) WithOffset(offset *int64) *DcimPlatformsListParams { o.SetOffset(offset) @@ -239,6 +711,105 @@ func (o *DcimPlatformsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugIc(slugIc *string) *DcimPlatformsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugIe(slugIe *string) *DcimPlatformsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugIew(slugIew *string) *DcimPlatformsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugIsw(slugIsw *string) *DcimPlatformsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugn(slugn *string) *DcimPlatformsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugNic(slugNic *string) *DcimPlatformsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugNie(slugNie *string) *DcimPlatformsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugNiew(slugNiew *string) *DcimPlatformsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) WithSlugNisw(slugNisw *string) *DcimPlatformsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim platforms list params +func (o *DcimPlatformsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -247,74 +818,346 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } var res []error - if o.ID != nil { + if o.Description != nil { - // query param id - var qrID string - if o.ID != nil { - qrID = *o.ID + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description } - qID := qrID - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { return err } } } - if o.Limit != nil { + if o.DescriptionIc != nil { - // query param limit - var qrLimit int64 - if o.Limit != nil { - qrLimit = *o.Limit + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { return err } } } - if o.Manufacturer != nil { + if o.DescriptionIe != nil { - // query param manufacturer - var qrManufacturer string - if o.Manufacturer != nil { - qrManufacturer = *o.Manufacturer + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe } - qManufacturer := qrManufacturer - if qManufacturer != "" { - if err := r.SetQueryParam("manufacturer", qManufacturer); err != nil { + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { return err } } } - if o.ManufacturerID != nil { + if o.DescriptionIew != nil { - // query param manufacturer_id - var qrManufacturerID string - if o.ManufacturerID != nil { - qrManufacturerID = *o.ManufacturerID + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew } - qManufacturerID := qrManufacturerID - if qManufacturerID != "" { - if err := r.SetQueryParam("manufacturer_id", qManufacturerID); err != nil { + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { return err } } } - if o.Name != nil { + if o.DescriptionIsw != nil { - // query param name - var qrName string + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + + } + + if o.Manufacturer != nil { + + // query param manufacturer + var qrManufacturer string + if o.Manufacturer != nil { + qrManufacturer = *o.Manufacturer + } + qManufacturer := qrManufacturer + if qManufacturer != "" { + if err := r.SetQueryParam("manufacturer", qManufacturer); err != nil { + return err + } + } + + } + + if o.Manufacturern != nil { + + // query param manufacturer__n + var qrManufacturern string + if o.Manufacturern != nil { + qrManufacturern = *o.Manufacturern + } + qManufacturern := qrManufacturern + if qManufacturern != "" { + if err := r.SetQueryParam("manufacturer__n", qManufacturern); err != nil { + return err + } + } + + } + + if o.ManufacturerID != nil { + + // query param manufacturer_id + var qrManufacturerID string + if o.ManufacturerID != nil { + qrManufacturerID = *o.ManufacturerID + } + qManufacturerID := qrManufacturerID + if qManufacturerID != "" { + if err := r.SetQueryParam("manufacturer_id", qManufacturerID); err != nil { + return err + } + } + + } + + if o.ManufacturerIDn != nil { + + // query param manufacturer_id__n + var qrManufacturerIDn string + if o.ManufacturerIDn != nil { + qrManufacturerIDn = *o.ManufacturerIDn + } + qManufacturerIDn := qrManufacturerIDn + if qManufacturerIDn != "" { + if err := r.SetQueryParam("manufacturer_id__n", qManufacturerIDn); err != nil { + return err + } + } + + } + + if o.Name != nil { + + // query param name + var qrName string if o.Name != nil { qrName = *o.Name } @@ -327,6 +1170,150 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.NapalmDriver != nil { // query param napalm_driver @@ -343,6 +1330,150 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.NapalmDriverIc != nil { + + // query param napalm_driver__ic + var qrNapalmDriverIc string + if o.NapalmDriverIc != nil { + qrNapalmDriverIc = *o.NapalmDriverIc + } + qNapalmDriverIc := qrNapalmDriverIc + if qNapalmDriverIc != "" { + if err := r.SetQueryParam("napalm_driver__ic", qNapalmDriverIc); err != nil { + return err + } + } + + } + + if o.NapalmDriverIe != nil { + + // query param napalm_driver__ie + var qrNapalmDriverIe string + if o.NapalmDriverIe != nil { + qrNapalmDriverIe = *o.NapalmDriverIe + } + qNapalmDriverIe := qrNapalmDriverIe + if qNapalmDriverIe != "" { + if err := r.SetQueryParam("napalm_driver__ie", qNapalmDriverIe); err != nil { + return err + } + } + + } + + if o.NapalmDriverIew != nil { + + // query param napalm_driver__iew + var qrNapalmDriverIew string + if o.NapalmDriverIew != nil { + qrNapalmDriverIew = *o.NapalmDriverIew + } + qNapalmDriverIew := qrNapalmDriverIew + if qNapalmDriverIew != "" { + if err := r.SetQueryParam("napalm_driver__iew", qNapalmDriverIew); err != nil { + return err + } + } + + } + + if o.NapalmDriverIsw != nil { + + // query param napalm_driver__isw + var qrNapalmDriverIsw string + if o.NapalmDriverIsw != nil { + qrNapalmDriverIsw = *o.NapalmDriverIsw + } + qNapalmDriverIsw := qrNapalmDriverIsw + if qNapalmDriverIsw != "" { + if err := r.SetQueryParam("napalm_driver__isw", qNapalmDriverIsw); err != nil { + return err + } + } + + } + + if o.NapalmDrivern != nil { + + // query param napalm_driver__n + var qrNapalmDrivern string + if o.NapalmDrivern != nil { + qrNapalmDrivern = *o.NapalmDrivern + } + qNapalmDrivern := qrNapalmDrivern + if qNapalmDrivern != "" { + if err := r.SetQueryParam("napalm_driver__n", qNapalmDrivern); err != nil { + return err + } + } + + } + + if o.NapalmDriverNic != nil { + + // query param napalm_driver__nic + var qrNapalmDriverNic string + if o.NapalmDriverNic != nil { + qrNapalmDriverNic = *o.NapalmDriverNic + } + qNapalmDriverNic := qrNapalmDriverNic + if qNapalmDriverNic != "" { + if err := r.SetQueryParam("napalm_driver__nic", qNapalmDriverNic); err != nil { + return err + } + } + + } + + if o.NapalmDriverNie != nil { + + // query param napalm_driver__nie + var qrNapalmDriverNie string + if o.NapalmDriverNie != nil { + qrNapalmDriverNie = *o.NapalmDriverNie + } + qNapalmDriverNie := qrNapalmDriverNie + if qNapalmDriverNie != "" { + if err := r.SetQueryParam("napalm_driver__nie", qNapalmDriverNie); err != nil { + return err + } + } + + } + + if o.NapalmDriverNiew != nil { + + // query param napalm_driver__niew + var qrNapalmDriverNiew string + if o.NapalmDriverNiew != nil { + qrNapalmDriverNiew = *o.NapalmDriverNiew + } + qNapalmDriverNiew := qrNapalmDriverNiew + if qNapalmDriverNiew != "" { + if err := r.SetQueryParam("napalm_driver__niew", qNapalmDriverNiew); err != nil { + return err + } + } + + } + + if o.NapalmDriverNisw != nil { + + // query param napalm_driver__nisw + var qrNapalmDriverNisw string + if o.NapalmDriverNisw != nil { + qrNapalmDriverNisw = *o.NapalmDriverNisw + } + qNapalmDriverNisw := qrNapalmDriverNisw + if qNapalmDriverNisw != "" { + if err := r.SetQueryParam("napalm_driver__nisw", qNapalmDriverNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -391,6 +1522,150 @@ func (o *DcimPlatformsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_responses.go index e5b0bc126..d60b457ba 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPlatformsListReader is a Reader for the DcimPlatformsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_parameters.go index ec56be32d..0c7303138 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPlatformsPartialUpdateParams creates a new DcimPlatformsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_responses.go index 026547d96..7fb97c4fd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPlatformsPartialUpdateReader is a Reader for the DcimPlatformsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_parameters.go index 5199070cc..6bbb9092c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPlatformsReadParams creates a new DcimPlatformsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_responses.go index af08438a3..3c59825a4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPlatformsReadReader is a Reader for the DcimPlatformsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_parameters.go index 842bfc4fc..d709253c7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPlatformsUpdateParams creates a new DcimPlatformsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_responses.go index 47eaaac08..f28606707 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_platforms_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPlatformsUpdateReader is a Reader for the DcimPlatformsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_parameters.go index d4a50fea8..273341c26 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerConnectionsListParams creates a new DcimPowerConnectionsListParams object @@ -79,6 +78,8 @@ type DcimPowerConnectionsListParams struct { /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Device*/ Device *string /*DeviceID*/ @@ -90,6 +91,24 @@ type DcimPowerConnectionsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -147,6 +166,17 @@ func (o *DcimPowerConnectionsListParams) SetConnectionStatus(connectionStatus *s o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimPowerConnectionsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDevice adds the device to the dcim power connections list params func (o *DcimPowerConnectionsListParams) WithDevice(device *string) *DcimPowerConnectionsListParams { o.SetDevice(device) @@ -191,6 +221,105 @@ func (o *DcimPowerConnectionsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameIc(nameIc *string) *DcimPowerConnectionsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameIe(nameIe *string) *DcimPowerConnectionsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameIew(nameIew *string) *DcimPowerConnectionsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameIsw(nameIsw *string) *DcimPowerConnectionsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNamen(namen *string) *DcimPowerConnectionsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameNic(nameNic *string) *DcimPowerConnectionsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameNie(nameNie *string) *DcimPowerConnectionsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameNiew(nameNiew *string) *DcimPowerConnectionsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) WithNameNisw(nameNisw *string) *DcimPowerConnectionsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power connections list params +func (o *DcimPowerConnectionsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power connections list params func (o *DcimPowerConnectionsListParams) WithOffset(offset *int64) *DcimPowerConnectionsListParams { o.SetOffset(offset) @@ -237,6 +366,22 @@ func (o *DcimPowerConnectionsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -301,6 +446,150 @@ func (o *DcimPowerConnectionsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_responses.go index 2c7f9cfc6..a41d4f4d2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_connections_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerConnectionsListReader is a Reader for the DcimPowerConnectionsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_parameters.go index 2aa76d5dc..f9cae9a3e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerFeedsCreateParams creates a new DcimPowerFeedsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_responses.go index 1431fa6eb..db9d0fb68 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerFeedsCreateReader is a Reader for the DcimPowerFeedsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_parameters.go index c605a514d..c9746a080 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerFeedsDeleteParams creates a new DcimPowerFeedsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_responses.go index fb5bc4354..6f02cc03e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPowerFeedsDeleteReader is a Reader for the DcimPowerFeedsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go index 04e7e76c5..0237c7522 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerFeedsListParams creates a new DcimPowerFeedsListParams object @@ -79,17 +78,34 @@ type DcimPowerFeedsListParams struct { /*Amperage*/ Amperage *string + /*AmperageGt*/ + AmperageGt *string + /*AmperageGte*/ + AmperageGte *string + /*AmperageLt*/ + AmperageLt *string + /*AmperageLte*/ + AmperageLte *string + /*Amperagen*/ + Amperagen *string /*Created*/ Created *string /*CreatedGte*/ CreatedGte *string /*CreatedLte*/ CreatedLte *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -103,8 +119,36 @@ type DcimPowerFeedsListParams struct { Limit *int64 /*MaxUtilization*/ MaxUtilization *string + /*MaxUtilizationGt*/ + MaxUtilizationGt *string + /*MaxUtilizationGte*/ + MaxUtilizationGte *string + /*MaxUtilizationLt*/ + MaxUtilizationLt *string + /*MaxUtilizationLte*/ + MaxUtilizationLte *string + /*MaxUtilizationn*/ + MaxUtilizationn *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -112,30 +156,62 @@ type DcimPowerFeedsListParams struct { Offset *int64 /*Phase*/ Phase *string + /*Phasen*/ + Phasen *string /*PowerPanelID*/ PowerPanelID *string + /*PowerPanelIDn*/ + PowerPanelIDn *string /*Q*/ Q *string /*RackID*/ RackID *string + /*RackIDn*/ + RackIDn *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Supply*/ Supply *string + /*Supplyn*/ + Supplyn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string /*Voltage*/ Voltage *string + /*VoltageGt*/ + VoltageGt *string + /*VoltageGte*/ + VoltageGte *string + /*VoltageLt*/ + VoltageLt *string + /*VoltageLte*/ + VoltageLte *string + /*Voltagen*/ + Voltagen *string timeout time.Duration Context context.Context @@ -186,6 +262,61 @@ func (o *DcimPowerFeedsListParams) SetAmperage(amperage *string) { o.Amperage = amperage } +// WithAmperageGt adds the amperageGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithAmperageGt(amperageGt *string) *DcimPowerFeedsListParams { + o.SetAmperageGt(amperageGt) + return o +} + +// SetAmperageGt adds the amperageGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetAmperageGt(amperageGt *string) { + o.AmperageGt = amperageGt +} + +// WithAmperageGte adds the amperageGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithAmperageGte(amperageGte *string) *DcimPowerFeedsListParams { + o.SetAmperageGte(amperageGte) + return o +} + +// SetAmperageGte adds the amperageGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetAmperageGte(amperageGte *string) { + o.AmperageGte = amperageGte +} + +// WithAmperageLt adds the amperageLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithAmperageLt(amperageLt *string) *DcimPowerFeedsListParams { + o.SetAmperageLt(amperageLt) + return o +} + +// SetAmperageLt adds the amperageLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetAmperageLt(amperageLt *string) { + o.AmperageLt = amperageLt +} + +// WithAmperageLte adds the amperageLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithAmperageLte(amperageLte *string) *DcimPowerFeedsListParams { + o.SetAmperageLte(amperageLte) + return o +} + +// SetAmperageLte adds the amperageLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetAmperageLte(amperageLte *string) { + o.AmperageLte = amperageLte +} + +// WithAmperagen adds the amperagen to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithAmperagen(amperagen *string) *DcimPowerFeedsListParams { + o.SetAmperagen(amperagen) + return o +} + +// SetAmperagen adds the amperageN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetAmperagen(amperagen *string) { + o.Amperagen = amperagen +} + // WithCreated adds the created to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithCreated(created *string) *DcimPowerFeedsListParams { o.SetCreated(created) @@ -219,15 +350,70 @@ func (o *DcimPowerFeedsListParams) SetCreatedLte(createdLte *string) { o.CreatedLte = createdLte } -// WithIDIn adds the iDIn to the dcim power feeds list params -func (o *DcimPowerFeedsListParams) WithIDIn(iDIn *string) *DcimPowerFeedsListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithID(id *string) *DcimPowerFeedsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithIDGt(iDGt *string) *DcimPowerFeedsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithIDGte(iDGte *string) *DcimPowerFeedsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithIDLt(iDLt *string) *DcimPowerFeedsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithIDLte(iDLte *string) *DcimPowerFeedsListParams { + o.SetIDLte(iDLte) return o } -// SetIDIn adds the idIn to the dcim power feeds list params -func (o *DcimPowerFeedsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDLte adds the idLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithIDn(iDn *string) *DcimPowerFeedsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the dcim power feeds list params @@ -285,6 +471,61 @@ func (o *DcimPowerFeedsListParams) SetMaxUtilization(maxUtilization *string) { o.MaxUtilization = maxUtilization } +// WithMaxUtilizationGt adds the maxUtilizationGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithMaxUtilizationGt(maxUtilizationGt *string) *DcimPowerFeedsListParams { + o.SetMaxUtilizationGt(maxUtilizationGt) + return o +} + +// SetMaxUtilizationGt adds the maxUtilizationGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetMaxUtilizationGt(maxUtilizationGt *string) { + o.MaxUtilizationGt = maxUtilizationGt +} + +// WithMaxUtilizationGte adds the maxUtilizationGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithMaxUtilizationGte(maxUtilizationGte *string) *DcimPowerFeedsListParams { + o.SetMaxUtilizationGte(maxUtilizationGte) + return o +} + +// SetMaxUtilizationGte adds the maxUtilizationGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetMaxUtilizationGte(maxUtilizationGte *string) { + o.MaxUtilizationGte = maxUtilizationGte +} + +// WithMaxUtilizationLt adds the maxUtilizationLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithMaxUtilizationLt(maxUtilizationLt *string) *DcimPowerFeedsListParams { + o.SetMaxUtilizationLt(maxUtilizationLt) + return o +} + +// SetMaxUtilizationLt adds the maxUtilizationLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetMaxUtilizationLt(maxUtilizationLt *string) { + o.MaxUtilizationLt = maxUtilizationLt +} + +// WithMaxUtilizationLte adds the maxUtilizationLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithMaxUtilizationLte(maxUtilizationLte *string) *DcimPowerFeedsListParams { + o.SetMaxUtilizationLte(maxUtilizationLte) + return o +} + +// SetMaxUtilizationLte adds the maxUtilizationLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetMaxUtilizationLte(maxUtilizationLte *string) { + o.MaxUtilizationLte = maxUtilizationLte +} + +// WithMaxUtilizationn adds the maxUtilizationn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithMaxUtilizationn(maxUtilizationn *string) *DcimPowerFeedsListParams { + o.SetMaxUtilizationn(maxUtilizationn) + return o +} + +// SetMaxUtilizationn adds the maxUtilizationN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetMaxUtilizationn(maxUtilizationn *string) { + o.MaxUtilizationn = maxUtilizationn +} + // WithName adds the name to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithName(name *string) *DcimPowerFeedsListParams { o.SetName(name) @@ -296,6 +537,105 @@ func (o *DcimPowerFeedsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameIc(nameIc *string) *DcimPowerFeedsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameIe(nameIe *string) *DcimPowerFeedsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameIew(nameIew *string) *DcimPowerFeedsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameIsw(nameIsw *string) *DcimPowerFeedsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNamen(namen *string) *DcimPowerFeedsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameNic(nameNic *string) *DcimPowerFeedsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameNie(nameNie *string) *DcimPowerFeedsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameNiew(nameNiew *string) *DcimPowerFeedsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithNameNisw(nameNisw *string) *DcimPowerFeedsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithOffset(offset *int64) *DcimPowerFeedsListParams { o.SetOffset(offset) @@ -318,6 +658,17 @@ func (o *DcimPowerFeedsListParams) SetPhase(phase *string) { o.Phase = phase } +// WithPhasen adds the phasen to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithPhasen(phasen *string) *DcimPowerFeedsListParams { + o.SetPhasen(phasen) + return o +} + +// SetPhasen adds the phaseN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetPhasen(phasen *string) { + o.Phasen = phasen +} + // WithPowerPanelID adds the powerPanelID to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithPowerPanelID(powerPanelID *string) *DcimPowerFeedsListParams { o.SetPowerPanelID(powerPanelID) @@ -329,6 +680,17 @@ func (o *DcimPowerFeedsListParams) SetPowerPanelID(powerPanelID *string) { o.PowerPanelID = powerPanelID } +// WithPowerPanelIDn adds the powerPanelIDn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithPowerPanelIDn(powerPanelIDn *string) *DcimPowerFeedsListParams { + o.SetPowerPanelIDn(powerPanelIDn) + return o +} + +// SetPowerPanelIDn adds the powerPanelIdN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetPowerPanelIDn(powerPanelIDn *string) { + o.PowerPanelIDn = powerPanelIDn +} + // WithQ adds the q to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithQ(q *string) *DcimPowerFeedsListParams { o.SetQ(q) @@ -351,6 +713,17 @@ func (o *DcimPowerFeedsListParams) SetRackID(rackID *string) { o.RackID = rackID } +// WithRackIDn adds the rackIDn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithRackIDn(rackIDn *string) *DcimPowerFeedsListParams { + o.SetRackIDn(rackIDn) + return o +} + +// SetRackIDn adds the rackIdN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetRackIDn(rackIDn *string) { + o.RackIDn = rackIDn +} + // WithRegion adds the region to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithRegion(region *string) *DcimPowerFeedsListParams { o.SetRegion(region) @@ -362,6 +735,17 @@ func (o *DcimPowerFeedsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithRegionn(regionn *string) *DcimPowerFeedsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithRegionID(regionID *string) *DcimPowerFeedsListParams { o.SetRegionID(regionID) @@ -373,6 +757,17 @@ func (o *DcimPowerFeedsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithRegionIDn(regionIDn *string) *DcimPowerFeedsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithSite(site *string) *DcimPowerFeedsListParams { o.SetSite(site) @@ -384,6 +779,17 @@ func (o *DcimPowerFeedsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithSiten(siten *string) *DcimPowerFeedsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithSiteID(siteID *string) *DcimPowerFeedsListParams { o.SetSiteID(siteID) @@ -395,6 +801,17 @@ func (o *DcimPowerFeedsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithSiteIDn(siteIDn *string) *DcimPowerFeedsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithStatus(status *string) *DcimPowerFeedsListParams { o.SetStatus(status) @@ -406,6 +823,17 @@ func (o *DcimPowerFeedsListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithStatusn(statusn *string) *DcimPowerFeedsListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithSupply adds the supply to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithSupply(supply *string) *DcimPowerFeedsListParams { o.SetSupply(supply) @@ -417,6 +845,17 @@ func (o *DcimPowerFeedsListParams) SetSupply(supply *string) { o.Supply = supply } +// WithSupplyn adds the supplyn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithSupplyn(supplyn *string) *DcimPowerFeedsListParams { + o.SetSupplyn(supplyn) + return o +} + +// SetSupplyn adds the supplyN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetSupplyn(supplyn *string) { + o.Supplyn = supplyn +} + // WithTag adds the tag to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithTag(tag *string) *DcimPowerFeedsListParams { o.SetTag(tag) @@ -428,6 +867,17 @@ func (o *DcimPowerFeedsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithTagn(tagn *string) *DcimPowerFeedsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithType(typeVar *string) *DcimPowerFeedsListParams { o.SetType(typeVar) @@ -439,6 +889,17 @@ func (o *DcimPowerFeedsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithTypen(typen *string) *DcimPowerFeedsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WithVoltage adds the voltage to the dcim power feeds list params func (o *DcimPowerFeedsListParams) WithVoltage(voltage *string) *DcimPowerFeedsListParams { o.SetVoltage(voltage) @@ -450,6 +911,61 @@ func (o *DcimPowerFeedsListParams) SetVoltage(voltage *string) { o.Voltage = voltage } +// WithVoltageGt adds the voltageGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithVoltageGt(voltageGt *string) *DcimPowerFeedsListParams { + o.SetVoltageGt(voltageGt) + return o +} + +// SetVoltageGt adds the voltageGt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetVoltageGt(voltageGt *string) { + o.VoltageGt = voltageGt +} + +// WithVoltageGte adds the voltageGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithVoltageGte(voltageGte *string) *DcimPowerFeedsListParams { + o.SetVoltageGte(voltageGte) + return o +} + +// SetVoltageGte adds the voltageGte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetVoltageGte(voltageGte *string) { + o.VoltageGte = voltageGte +} + +// WithVoltageLt adds the voltageLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithVoltageLt(voltageLt *string) *DcimPowerFeedsListParams { + o.SetVoltageLt(voltageLt) + return o +} + +// SetVoltageLt adds the voltageLt to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetVoltageLt(voltageLt *string) { + o.VoltageLt = voltageLt +} + +// WithVoltageLte adds the voltageLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithVoltageLte(voltageLte *string) *DcimPowerFeedsListParams { + o.SetVoltageLte(voltageLte) + return o +} + +// SetVoltageLte adds the voltageLte to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetVoltageLte(voltageLte *string) { + o.VoltageLte = voltageLte +} + +// WithVoltagen adds the voltagen to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) WithVoltagen(voltagen *string) *DcimPowerFeedsListParams { + o.SetVoltagen(voltagen) + return o +} + +// SetVoltagen adds the voltageN to the dcim power feeds list params +func (o *DcimPowerFeedsListParams) SetVoltagen(voltagen *string) { + o.Voltagen = voltagen +} + // WriteToRequest writes these params to a swagger request func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -474,6 +990,86 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.AmperageGt != nil { + + // query param amperage__gt + var qrAmperageGt string + if o.AmperageGt != nil { + qrAmperageGt = *o.AmperageGt + } + qAmperageGt := qrAmperageGt + if qAmperageGt != "" { + if err := r.SetQueryParam("amperage__gt", qAmperageGt); err != nil { + return err + } + } + + } + + if o.AmperageGte != nil { + + // query param amperage__gte + var qrAmperageGte string + if o.AmperageGte != nil { + qrAmperageGte = *o.AmperageGte + } + qAmperageGte := qrAmperageGte + if qAmperageGte != "" { + if err := r.SetQueryParam("amperage__gte", qAmperageGte); err != nil { + return err + } + } + + } + + if o.AmperageLt != nil { + + // query param amperage__lt + var qrAmperageLt string + if o.AmperageLt != nil { + qrAmperageLt = *o.AmperageLt + } + qAmperageLt := qrAmperageLt + if qAmperageLt != "" { + if err := r.SetQueryParam("amperage__lt", qAmperageLt); err != nil { + return err + } + } + + } + + if o.AmperageLte != nil { + + // query param amperage__lte + var qrAmperageLte string + if o.AmperageLte != nil { + qrAmperageLte = *o.AmperageLte + } + qAmperageLte := qrAmperageLte + if qAmperageLte != "" { + if err := r.SetQueryParam("amperage__lte", qAmperageLte); err != nil { + return err + } + } + + } + + if o.Amperagen != nil { + + // query param amperage__n + var qrAmperagen string + if o.Amperagen != nil { + qrAmperagen = *o.Amperagen + } + qAmperagen := qrAmperagen + if qAmperagen != "" { + if err := r.SetQueryParam("amperage__n", qAmperagen); err != nil { + return err + } + } + + } + if o.Created != nil { // query param created @@ -522,44 +1118,124 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } - if o.IDIn != nil { + if o.ID != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { return err } } } - if o.LastUpdated != nil { + if o.IDGt != nil { - // query param last_updated - var qrLastUpdated string - if o.LastUpdated != nil { - qrLastUpdated = *o.LastUpdated + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt } - qLastUpdated := qrLastUpdated - if qLastUpdated != "" { - if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { return err } } } - if o.LastUpdatedGte != nil { + if o.IDGte != nil { - // query param last_updated__gte - var qrLastUpdatedGte string - if o.LastUpdatedGte != nil { - qrLastUpdatedGte = *o.LastUpdatedGte + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.LastUpdated != nil { + + // query param last_updated + var qrLastUpdated string + if o.LastUpdated != nil { + qrLastUpdated = *o.LastUpdated + } + qLastUpdated := qrLastUpdated + if qLastUpdated != "" { + if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + return err + } + } + + } + + if o.LastUpdatedGte != nil { + + // query param last_updated__gte + var qrLastUpdatedGte string + if o.LastUpdatedGte != nil { + qrLastUpdatedGte = *o.LastUpdatedGte } qLastUpdatedGte := qrLastUpdatedGte if qLastUpdatedGte != "" { @@ -618,6 +1294,86 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.MaxUtilizationGt != nil { + + // query param max_utilization__gt + var qrMaxUtilizationGt string + if o.MaxUtilizationGt != nil { + qrMaxUtilizationGt = *o.MaxUtilizationGt + } + qMaxUtilizationGt := qrMaxUtilizationGt + if qMaxUtilizationGt != "" { + if err := r.SetQueryParam("max_utilization__gt", qMaxUtilizationGt); err != nil { + return err + } + } + + } + + if o.MaxUtilizationGte != nil { + + // query param max_utilization__gte + var qrMaxUtilizationGte string + if o.MaxUtilizationGte != nil { + qrMaxUtilizationGte = *o.MaxUtilizationGte + } + qMaxUtilizationGte := qrMaxUtilizationGte + if qMaxUtilizationGte != "" { + if err := r.SetQueryParam("max_utilization__gte", qMaxUtilizationGte); err != nil { + return err + } + } + + } + + if o.MaxUtilizationLt != nil { + + // query param max_utilization__lt + var qrMaxUtilizationLt string + if o.MaxUtilizationLt != nil { + qrMaxUtilizationLt = *o.MaxUtilizationLt + } + qMaxUtilizationLt := qrMaxUtilizationLt + if qMaxUtilizationLt != "" { + if err := r.SetQueryParam("max_utilization__lt", qMaxUtilizationLt); err != nil { + return err + } + } + + } + + if o.MaxUtilizationLte != nil { + + // query param max_utilization__lte + var qrMaxUtilizationLte string + if o.MaxUtilizationLte != nil { + qrMaxUtilizationLte = *o.MaxUtilizationLte + } + qMaxUtilizationLte := qrMaxUtilizationLte + if qMaxUtilizationLte != "" { + if err := r.SetQueryParam("max_utilization__lte", qMaxUtilizationLte); err != nil { + return err + } + } + + } + + if o.MaxUtilizationn != nil { + + // query param max_utilization__n + var qrMaxUtilizationn string + if o.MaxUtilizationn != nil { + qrMaxUtilizationn = *o.MaxUtilizationn + } + qMaxUtilizationn := qrMaxUtilizationn + if qMaxUtilizationn != "" { + if err := r.SetQueryParam("max_utilization__n", qMaxUtilizationn); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -634,6 +1390,150 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -666,6 +1566,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Phasen != nil { + + // query param phase__n + var qrPhasen string + if o.Phasen != nil { + qrPhasen = *o.Phasen + } + qPhasen := qrPhasen + if qPhasen != "" { + if err := r.SetQueryParam("phase__n", qPhasen); err != nil { + return err + } + } + + } + if o.PowerPanelID != nil { // query param power_panel_id @@ -682,6 +1598,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.PowerPanelIDn != nil { + + // query param power_panel_id__n + var qrPowerPanelIDn string + if o.PowerPanelIDn != nil { + qrPowerPanelIDn = *o.PowerPanelIDn + } + qPowerPanelIDn := qrPowerPanelIDn + if qPowerPanelIDn != "" { + if err := r.SetQueryParam("power_panel_id__n", qPowerPanelIDn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -714,6 +1646,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.RackIDn != nil { + + // query param rack_id__n + var qrRackIDn string + if o.RackIDn != nil { + qrRackIDn = *o.RackIDn + } + qRackIDn := qrRackIDn + if qRackIDn != "" { + if err := r.SetQueryParam("rack_id__n", qRackIDn); err != nil { + return err + } + } + + } + if o.Region != nil { // query param region @@ -730,6 +1678,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -746,6 +1710,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -762,6 +1742,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -778,6 +1774,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -794,6 +1806,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Supply != nil { // query param supply @@ -810,6 +1838,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Supplyn != nil { + + // query param supply__n + var qrSupplyn string + if o.Supplyn != nil { + qrSupplyn = *o.Supplyn + } + qSupplyn := qrSupplyn + if qSupplyn != "" { + if err := r.SetQueryParam("supply__n", qSupplyn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -826,6 +1870,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Type != nil { // query param type @@ -842,6 +1902,22 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Voltage != nil { // query param voltage @@ -858,6 +1934,86 @@ func (o *DcimPowerFeedsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.VoltageGt != nil { + + // query param voltage__gt + var qrVoltageGt string + if o.VoltageGt != nil { + qrVoltageGt = *o.VoltageGt + } + qVoltageGt := qrVoltageGt + if qVoltageGt != "" { + if err := r.SetQueryParam("voltage__gt", qVoltageGt); err != nil { + return err + } + } + + } + + if o.VoltageGte != nil { + + // query param voltage__gte + var qrVoltageGte string + if o.VoltageGte != nil { + qrVoltageGte = *o.VoltageGte + } + qVoltageGte := qrVoltageGte + if qVoltageGte != "" { + if err := r.SetQueryParam("voltage__gte", qVoltageGte); err != nil { + return err + } + } + + } + + if o.VoltageLt != nil { + + // query param voltage__lt + var qrVoltageLt string + if o.VoltageLt != nil { + qrVoltageLt = *o.VoltageLt + } + qVoltageLt := qrVoltageLt + if qVoltageLt != "" { + if err := r.SetQueryParam("voltage__lt", qVoltageLt); err != nil { + return err + } + } + + } + + if o.VoltageLte != nil { + + // query param voltage__lte + var qrVoltageLte string + if o.VoltageLte != nil { + qrVoltageLte = *o.VoltageLte + } + qVoltageLte := qrVoltageLte + if qVoltageLte != "" { + if err := r.SetQueryParam("voltage__lte", qVoltageLte); err != nil { + return err + } + } + + } + + if o.Voltagen != nil { + + // query param voltage__n + var qrVoltagen string + if o.Voltagen != nil { + qrVoltagen = *o.Voltagen + } + qVoltagen := qrVoltagen + if qVoltagen != "" { + if err := r.SetQueryParam("voltage__n", qVoltagen); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_responses.go index 7b5c9c745..79d04c401 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerFeedsListReader is a Reader for the DcimPowerFeedsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_parameters.go index b3ec025a2..31d67bd20 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerFeedsPartialUpdateParams creates a new DcimPowerFeedsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_responses.go index 103fcb219..c2df4104b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerFeedsPartialUpdateReader is a Reader for the DcimPowerFeedsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_parameters.go index feb110cec..39ed87327 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerFeedsReadParams creates a new DcimPowerFeedsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_responses.go index 17704ebea..f648d6eeb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerFeedsReadReader is a Reader for the DcimPowerFeedsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_parameters.go index 06e89d3b1..7ab7201b5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerFeedsUpdateParams creates a new DcimPowerFeedsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_responses.go index bbddc7d97..31213d810 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_feeds_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerFeedsUpdateReader is a Reader for the DcimPowerFeedsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_parameters.go index 32e17f04b..53348170a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerOutletTemplatesCreateParams creates a new DcimPowerOutletTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_responses.go index d55777da8..bd408ee56 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletTemplatesCreateReader is a Reader for the DcimPowerOutletTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_parameters.go index b528ea3b7..d07a19736 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletTemplatesDeleteParams creates a new DcimPowerOutletTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_responses.go index 0e7b7c527..4cc661f5a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPowerOutletTemplatesDeleteReader is a Reader for the DcimPowerOutletTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go index f59bc78d0..082f1cb5a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletTemplatesListParams creates a new DcimPowerOutletTemplatesListParams object @@ -79,10 +78,24 @@ type DcimPowerOutletTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*FeedLeg*/ FeedLeg *string + /*FeedLegn*/ + FeedLegn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -90,6 +103,24 @@ type DcimPowerOutletTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -99,6 +130,8 @@ type DcimPowerOutletTemplatesListParams struct { Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -149,6 +182,17 @@ func (o *DcimPowerOutletTemplatesListParams) SetDevicetypeID(devicetypeID *strin o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimPowerOutletTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithFeedLeg adds the feedLeg to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithFeedLeg(feedLeg *string) *DcimPowerOutletTemplatesListParams { o.SetFeedLeg(feedLeg) @@ -160,6 +204,17 @@ func (o *DcimPowerOutletTemplatesListParams) SetFeedLeg(feedLeg *string) { o.FeedLeg = feedLeg } +// WithFeedLegn adds the feedLegn to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithFeedLegn(feedLegn *string) *DcimPowerOutletTemplatesListParams { + o.SetFeedLegn(feedLegn) + return o +} + +// SetFeedLegn adds the feedLegN to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetFeedLegn(feedLegn *string) { + o.FeedLegn = feedLegn +} + // WithID adds the id to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithID(id *string) *DcimPowerOutletTemplatesListParams { o.SetID(id) @@ -171,6 +226,61 @@ func (o *DcimPowerOutletTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithIDGt(iDGt *string) *DcimPowerOutletTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithIDGte(iDGte *string) *DcimPowerOutletTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithIDLt(iDLt *string) *DcimPowerOutletTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithIDLte(iDLte *string) *DcimPowerOutletTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithIDn(iDn *string) *DcimPowerOutletTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithLimit(limit *int64) *DcimPowerOutletTemplatesListParams { o.SetLimit(limit) @@ -193,6 +303,105 @@ func (o *DcimPowerOutletTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerOutletTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameIe(nameIe *string) *DcimPowerOutletTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameIew(nameIew *string) *DcimPowerOutletTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameIsw(nameIsw *string) *DcimPowerOutletTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNamen(namen *string) *DcimPowerOutletTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameNic(nameNic *string) *DcimPowerOutletTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameNie(nameNie *string) *DcimPowerOutletTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameNiew(nameNiew *string) *DcimPowerOutletTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithNameNisw(nameNisw *string) *DcimPowerOutletTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power outlet templates list params func (o *DcimPowerOutletTemplatesListParams) WithOffset(offset *int64) *DcimPowerOutletTemplatesListParams { o.SetOffset(offset) @@ -226,6 +435,17 @@ func (o *DcimPowerOutletTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) WithTypen(typen *string) *DcimPowerOutletTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim power outlet templates list params +func (o *DcimPowerOutletTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -250,6 +470,22 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.FeedLeg != nil { // query param feed_leg @@ -266,6 +502,22 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.FeedLegn != nil { + + // query param feed_leg__n + var qrFeedLegn string + if o.FeedLegn != nil { + qrFeedLegn = *o.FeedLegn + } + qFeedLegn := qrFeedLegn + if qFeedLegn != "" { + if err := r.SetQueryParam("feed_leg__n", qFeedLegn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -282,6 +534,86 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -314,6 +646,150 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -362,6 +838,22 @@ func (o *DcimPowerOutletTemplatesListParams) WriteToRequest(r runtime.ClientRequ } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_responses.go index 5fea3316b..2f59df003 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletTemplatesListReader is a Reader for the DcimPowerOutletTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_parameters.go index 61274bafa..493bd00d5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerOutletTemplatesPartialUpdateParams creates a new DcimPowerOutletTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_responses.go index ff31a2651..bad8422d0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletTemplatesPartialUpdateReader is a Reader for the DcimPowerOutletTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_parameters.go index 355c78cbb..b42056651 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletTemplatesReadParams creates a new DcimPowerOutletTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_responses.go index 830b6ece9..7468381ae 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletTemplatesReadReader is a Reader for the DcimPowerOutletTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_parameters.go index 1a1216d47..9280da104 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerOutletTemplatesUpdateParams creates a new DcimPowerOutletTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_responses.go index a09c2f376..f9f401b8d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlet_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletTemplatesUpdateReader is a Reader for the DcimPowerOutletTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_parameters.go index 5b364a2aa..f3ec73df1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerOutletsCreateParams creates a new DcimPowerOutletsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_responses.go index a5a900b30..29b5a530a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletsCreateReader is a Reader for the DcimPowerOutletsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_parameters.go index 1377cb33f..34ffff915 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletsDeleteParams creates a new DcimPowerOutletsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_responses.go index c2c58cf15..4d3aabdbc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPowerOutletsDeleteReader is a Reader for the DcimPowerOutletsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go index 85bfb6ab8..e05a1c18c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletsListParams creates a new DcimPowerOutletsListParams object @@ -81,16 +80,52 @@ type DcimPowerOutletsListParams struct { Cabled *string /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*FeedLeg*/ FeedLeg *string + /*FeedLegn*/ + FeedLegn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -98,6 +133,24 @@ type DcimPowerOutletsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -107,16 +160,28 @@ type DcimPowerOutletsListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -178,6 +243,17 @@ func (o *DcimPowerOutletsListParams) SetConnectionStatus(connectionStatus *strin o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimPowerOutletsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDescription adds the description to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithDescription(description *string) *DcimPowerOutletsListParams { o.SetDescription(description) @@ -189,6 +265,105 @@ func (o *DcimPowerOutletsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerOutletsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionIe(descriptionIe *string) *DcimPowerOutletsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionIew(descriptionIew *string) *DcimPowerOutletsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimPowerOutletsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionn(descriptionn *string) *DcimPowerOutletsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionNic(descriptionNic *string) *DcimPowerOutletsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionNie(descriptionNie *string) *DcimPowerOutletsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimPowerOutletsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimPowerOutletsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithDevice(device *string) *DcimPowerOutletsListParams { o.SetDevice(device) @@ -200,6 +375,17 @@ func (o *DcimPowerOutletsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDevicen(devicen *string) *DcimPowerOutletsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithDeviceID(deviceID *string) *DcimPowerOutletsListParams { o.SetDeviceID(deviceID) @@ -211,6 +397,17 @@ func (o *DcimPowerOutletsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithDeviceIDn(deviceIDn *string) *DcimPowerOutletsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithFeedLeg adds the feedLeg to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithFeedLeg(feedLeg *string) *DcimPowerOutletsListParams { o.SetFeedLeg(feedLeg) @@ -222,6 +419,17 @@ func (o *DcimPowerOutletsListParams) SetFeedLeg(feedLeg *string) { o.FeedLeg = feedLeg } +// WithFeedLegn adds the feedLegn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithFeedLegn(feedLegn *string) *DcimPowerOutletsListParams { + o.SetFeedLegn(feedLegn) + return o +} + +// SetFeedLegn adds the feedLegN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetFeedLegn(feedLegn *string) { + o.FeedLegn = feedLegn +} + // WithID adds the id to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithID(id *string) *DcimPowerOutletsListParams { o.SetID(id) @@ -233,6 +441,61 @@ func (o *DcimPowerOutletsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithIDGt(iDGt *string) *DcimPowerOutletsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithIDGte(iDGte *string) *DcimPowerOutletsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithIDLt(iDLt *string) *DcimPowerOutletsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithIDLte(iDLte *string) *DcimPowerOutletsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithIDn(iDn *string) *DcimPowerOutletsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithLimit(limit *int64) *DcimPowerOutletsListParams { o.SetLimit(limit) @@ -255,6 +518,105 @@ func (o *DcimPowerOutletsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameIc(nameIc *string) *DcimPowerOutletsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameIe(nameIe *string) *DcimPowerOutletsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameIew(nameIew *string) *DcimPowerOutletsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameIsw(nameIsw *string) *DcimPowerOutletsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNamen(namen *string) *DcimPowerOutletsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameNic(nameNic *string) *DcimPowerOutletsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameNie(nameNie *string) *DcimPowerOutletsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameNiew(nameNiew *string) *DcimPowerOutletsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithNameNisw(nameNisw *string) *DcimPowerOutletsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithOffset(offset *int64) *DcimPowerOutletsListParams { o.SetOffset(offset) @@ -288,6 +650,17 @@ func (o *DcimPowerOutletsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithRegionn(regionn *string) *DcimPowerOutletsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithRegionID(regionID *string) *DcimPowerOutletsListParams { o.SetRegionID(regionID) @@ -299,6 +672,17 @@ func (o *DcimPowerOutletsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithRegionIDn(regionIDn *string) *DcimPowerOutletsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithSite(site *string) *DcimPowerOutletsListParams { o.SetSite(site) @@ -310,6 +694,17 @@ func (o *DcimPowerOutletsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithSiten(siten *string) *DcimPowerOutletsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithSiteID(siteID *string) *DcimPowerOutletsListParams { o.SetSiteID(siteID) @@ -321,6 +716,17 @@ func (o *DcimPowerOutletsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithSiteIDn(siteIDn *string) *DcimPowerOutletsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithTag(tag *string) *DcimPowerOutletsListParams { o.SetTag(tag) @@ -332,6 +738,17 @@ func (o *DcimPowerOutletsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithTagn(tagn *string) *DcimPowerOutletsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim power outlets list params func (o *DcimPowerOutletsListParams) WithType(typeVar *string) *DcimPowerOutletsListParams { o.SetType(typeVar) @@ -343,6 +760,17 @@ func (o *DcimPowerOutletsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) WithTypen(typen *string) *DcimPowerOutletsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim power outlets list params +func (o *DcimPowerOutletsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -383,6 +811,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + if o.Description != nil { // query param description @@ -399,6 +843,150 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -415,6 +1003,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -431,6 +1035,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.FeedLeg != nil { // query param feed_leg @@ -447,6 +1067,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.FeedLegn != nil { + + // query param feed_leg__n + var qrFeedLegn string + if o.FeedLegn != nil { + qrFeedLegn = *o.FeedLegn + } + qFeedLegn := qrFeedLegn + if qFeedLegn != "" { + if err := r.SetQueryParam("feed_leg__n", qFeedLegn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -463,6 +1099,86 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -495,6 +1211,150 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -543,6 +1403,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -559,6 +1435,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -575,6 +1467,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -591,6 +1499,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -607,6 +1531,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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.Type != nil { // query param type @@ -623,6 +1563,22 @@ func (o *DcimPowerOutletsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_responses.go index 73305250a..c5762a2e9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletsListReader is a Reader for the DcimPowerOutletsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_parameters.go index 054084fc2..268fa2fc5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerOutletsPartialUpdateParams creates a new DcimPowerOutletsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_responses.go index ebe5421c4..997ca981e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletsPartialUpdateReader is a Reader for the DcimPowerOutletsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_parameters.go index 48d6cbf54..f06a40c2b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletsReadParams creates a new DcimPowerOutletsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_responses.go index bb92e1fcc..fca647a70 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletsReadReader is a Reader for the DcimPowerOutletsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_parameters.go index 5de9d46fe..5339ee463 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerOutletsTraceParams creates a new DcimPowerOutletsTraceParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_responses.go index e9278b160..25e0ab42a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_trace_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletsTraceReader is a Reader for the DcimPowerOutletsTrace structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_parameters.go index 55cf6a235..c029c80bd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerOutletsUpdateParams creates a new DcimPowerOutletsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_responses.go index d46f1712a..3a9e0245f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_outlets_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerOutletsUpdateReader is a Reader for the DcimPowerOutletsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_parameters.go index 632d59ffa..2a78e230d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPanelsCreateParams creates a new DcimPowerPanelsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_responses.go index bec795c33..94a64bb2f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPanelsCreateReader is a Reader for the DcimPowerPanelsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_parameters.go index 821581bb8..8f862f541 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPanelsDeleteParams creates a new DcimPowerPanelsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_responses.go index 7d167a29c..78584a98e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPowerPanelsDeleteReader is a Reader for the DcimPowerPanelsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go index 4a6688d86..502ac6a17 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPanelsListParams creates a new DcimPowerPanelsListParams object @@ -77,11 +76,18 @@ for the dcim power panels list operation typically these are written to a http.R */ type DcimPowerPanelsListParams struct { - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -89,6 +95,24 @@ type DcimPowerPanelsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -98,14 +122,24 @@ type DcimPowerPanelsListParams struct { Q *string /*RackGroupID*/ RackGroupID *string + /*RackGroupIDn*/ + RackGroupIDn *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string timeout time.Duration Context context.Context @@ -145,15 +179,70 @@ func (o *DcimPowerPanelsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithIDIn adds the iDIn to the dcim power panels list params -func (o *DcimPowerPanelsListParams) WithIDIn(iDIn *string) *DcimPowerPanelsListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithID(id *string) *DcimPowerPanelsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithIDGt(iDGt *string) *DcimPowerPanelsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithIDGte(iDGte *string) *DcimPowerPanelsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithIDLt(iDLt *string) *DcimPowerPanelsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithIDLte(iDLte *string) *DcimPowerPanelsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithIDn(iDn *string) *DcimPowerPanelsListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the dcim power panels list params -func (o *DcimPowerPanelsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLimit adds the limit to the dcim power panels list params @@ -178,6 +267,105 @@ func (o *DcimPowerPanelsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameIc(nameIc *string) *DcimPowerPanelsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameIe(nameIe *string) *DcimPowerPanelsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameIew(nameIew *string) *DcimPowerPanelsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameIsw(nameIsw *string) *DcimPowerPanelsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNamen(namen *string) *DcimPowerPanelsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameNic(nameNic *string) *DcimPowerPanelsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameNie(nameNie *string) *DcimPowerPanelsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameNiew(nameNiew *string) *DcimPowerPanelsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithNameNisw(nameNisw *string) *DcimPowerPanelsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithOffset(offset *int64) *DcimPowerPanelsListParams { o.SetOffset(offset) @@ -211,6 +399,17 @@ func (o *DcimPowerPanelsListParams) SetRackGroupID(rackGroupID *string) { o.RackGroupID = rackGroupID } +// WithRackGroupIDn adds the rackGroupIDn to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithRackGroupIDn(rackGroupIDn *string) *DcimPowerPanelsListParams { + o.SetRackGroupIDn(rackGroupIDn) + return o +} + +// SetRackGroupIDn adds the rackGroupIdN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetRackGroupIDn(rackGroupIDn *string) { + o.RackGroupIDn = rackGroupIDn +} + // WithRegion adds the region to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithRegion(region *string) *DcimPowerPanelsListParams { o.SetRegion(region) @@ -222,6 +421,17 @@ func (o *DcimPowerPanelsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithRegionn(regionn *string) *DcimPowerPanelsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithRegionID(regionID *string) *DcimPowerPanelsListParams { o.SetRegionID(regionID) @@ -233,6 +443,17 @@ func (o *DcimPowerPanelsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithRegionIDn(regionIDn *string) *DcimPowerPanelsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithSite(site *string) *DcimPowerPanelsListParams { o.SetSite(site) @@ -244,6 +465,17 @@ func (o *DcimPowerPanelsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithSiten(siten *string) *DcimPowerPanelsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim power panels list params func (o *DcimPowerPanelsListParams) WithSiteID(siteID *string) *DcimPowerPanelsListParams { o.SetSiteID(siteID) @@ -255,6 +487,17 @@ func (o *DcimPowerPanelsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim power panels list params +func (o *DcimPowerPanelsListParams) WithSiteIDn(siteIDn *string) *DcimPowerPanelsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim power panels list params +func (o *DcimPowerPanelsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WriteToRequest writes these params to a swagger request func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -263,16 +506,96 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } var res []error - if o.IDIn != nil { + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -311,6 +634,150 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -359,6 +826,22 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.RackGroupIDn != nil { + + // query param rack_group_id__n + var qrRackGroupIDn string + if o.RackGroupIDn != nil { + qrRackGroupIDn = *o.RackGroupIDn + } + qRackGroupIDn := qrRackGroupIDn + if qRackGroupIDn != "" { + if err := r.SetQueryParam("rack_group_id__n", qRackGroupIDn); err != nil { + return err + } + } + + } + if o.Region != nil { // query param region @@ -375,6 +858,22 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -391,6 +890,22 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -407,6 +922,22 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -423,6 +954,22 @@ func (o *DcimPowerPanelsListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_responses.go index b507afa2c..53c4603f1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPanelsListReader is a Reader for the DcimPowerPanelsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_parameters.go index 4ac7d3bd3..605f04740 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPanelsPartialUpdateParams creates a new DcimPowerPanelsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_responses.go index 8308cf447..b85c8e47f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPanelsPartialUpdateReader is a Reader for the DcimPowerPanelsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_parameters.go index eb4cd8c01..339adec8b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPanelsReadParams creates a new DcimPowerPanelsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_responses.go index 4c9d8d068..23de2996b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPanelsReadReader is a Reader for the DcimPowerPanelsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_parameters.go index 268d53884..795641cea 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPanelsUpdateParams creates a new DcimPowerPanelsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_responses.go index 4da85a2c3..47c14d9cc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_panels_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPanelsUpdateReader is a Reader for the DcimPowerPanelsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_parameters.go index 813fbd442..20c82fb52 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPortTemplatesCreateParams creates a new DcimPowerPortTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_responses.go index f6e7689e9..9e7319d1d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortTemplatesCreateReader is a Reader for the DcimPowerPortTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_parameters.go index f5a138daf..214d5176f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortTemplatesDeleteParams creates a new DcimPowerPortTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_responses.go index f67e14660..c8dbe91dc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPowerPortTemplatesDeleteReader is a Reader for the DcimPowerPortTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go index f91b243cc..fec0387fa 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortTemplatesListParams creates a new DcimPowerPortTemplatesListParams object @@ -79,10 +78,32 @@ type DcimPowerPortTemplatesListParams struct { /*AllocatedDraw*/ AllocatedDraw *string + /*AllocatedDrawGt*/ + AllocatedDrawGt *string + /*AllocatedDrawGte*/ + AllocatedDrawGte *string + /*AllocatedDrawLt*/ + AllocatedDrawLt *string + /*AllocatedDrawLte*/ + AllocatedDrawLte *string + /*AllocatedDrawn*/ + AllocatedDrawn *string /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -90,8 +111,36 @@ type DcimPowerPortTemplatesListParams struct { Limit *int64 /*MaximumDraw*/ MaximumDraw *string + /*MaximumDrawGt*/ + MaximumDrawGt *string + /*MaximumDrawGte*/ + MaximumDrawGte *string + /*MaximumDrawLt*/ + MaximumDrawLt *string + /*MaximumDrawLte*/ + MaximumDrawLte *string + /*MaximumDrawn*/ + MaximumDrawn *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -101,6 +150,8 @@ type DcimPowerPortTemplatesListParams struct { Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -151,6 +202,61 @@ func (o *DcimPowerPortTemplatesListParams) SetAllocatedDraw(allocatedDraw *strin o.AllocatedDraw = allocatedDraw } +// WithAllocatedDrawGt adds the allocatedDrawGt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithAllocatedDrawGt(allocatedDrawGt *string) *DcimPowerPortTemplatesListParams { + o.SetAllocatedDrawGt(allocatedDrawGt) + return o +} + +// SetAllocatedDrawGt adds the allocatedDrawGt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetAllocatedDrawGt(allocatedDrawGt *string) { + o.AllocatedDrawGt = allocatedDrawGt +} + +// WithAllocatedDrawGte adds the allocatedDrawGte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithAllocatedDrawGte(allocatedDrawGte *string) *DcimPowerPortTemplatesListParams { + o.SetAllocatedDrawGte(allocatedDrawGte) + return o +} + +// SetAllocatedDrawGte adds the allocatedDrawGte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetAllocatedDrawGte(allocatedDrawGte *string) { + o.AllocatedDrawGte = allocatedDrawGte +} + +// WithAllocatedDrawLt adds the allocatedDrawLt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithAllocatedDrawLt(allocatedDrawLt *string) *DcimPowerPortTemplatesListParams { + o.SetAllocatedDrawLt(allocatedDrawLt) + return o +} + +// SetAllocatedDrawLt adds the allocatedDrawLt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetAllocatedDrawLt(allocatedDrawLt *string) { + o.AllocatedDrawLt = allocatedDrawLt +} + +// WithAllocatedDrawLte adds the allocatedDrawLte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithAllocatedDrawLte(allocatedDrawLte *string) *DcimPowerPortTemplatesListParams { + o.SetAllocatedDrawLte(allocatedDrawLte) + return o +} + +// SetAllocatedDrawLte adds the allocatedDrawLte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetAllocatedDrawLte(allocatedDrawLte *string) { + o.AllocatedDrawLte = allocatedDrawLte +} + +// WithAllocatedDrawn adds the allocatedDrawn to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithAllocatedDrawn(allocatedDrawn *string) *DcimPowerPortTemplatesListParams { + o.SetAllocatedDrawn(allocatedDrawn) + return o +} + +// SetAllocatedDrawn adds the allocatedDrawN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetAllocatedDrawn(allocatedDrawn *string) { + o.AllocatedDrawn = allocatedDrawn +} + // WithDevicetypeID adds the devicetypeID to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithDevicetypeID(devicetypeID *string) *DcimPowerPortTemplatesListParams { o.SetDevicetypeID(devicetypeID) @@ -162,6 +268,17 @@ func (o *DcimPowerPortTemplatesListParams) SetDevicetypeID(devicetypeID *string) o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimPowerPortTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithID(id *string) *DcimPowerPortTemplatesListParams { o.SetID(id) @@ -173,6 +290,61 @@ func (o *DcimPowerPortTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithIDGt(iDGt *string) *DcimPowerPortTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithIDGte(iDGte *string) *DcimPowerPortTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithIDLt(iDLt *string) *DcimPowerPortTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithIDLte(iDLte *string) *DcimPowerPortTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithIDn(iDn *string) *DcimPowerPortTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithLimit(limit *int64) *DcimPowerPortTemplatesListParams { o.SetLimit(limit) @@ -195,6 +367,61 @@ func (o *DcimPowerPortTemplatesListParams) SetMaximumDraw(maximumDraw *string) { o.MaximumDraw = maximumDraw } +// WithMaximumDrawGt adds the maximumDrawGt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithMaximumDrawGt(maximumDrawGt *string) *DcimPowerPortTemplatesListParams { + o.SetMaximumDrawGt(maximumDrawGt) + return o +} + +// SetMaximumDrawGt adds the maximumDrawGt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetMaximumDrawGt(maximumDrawGt *string) { + o.MaximumDrawGt = maximumDrawGt +} + +// WithMaximumDrawGte adds the maximumDrawGte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithMaximumDrawGte(maximumDrawGte *string) *DcimPowerPortTemplatesListParams { + o.SetMaximumDrawGte(maximumDrawGte) + return o +} + +// SetMaximumDrawGte adds the maximumDrawGte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetMaximumDrawGte(maximumDrawGte *string) { + o.MaximumDrawGte = maximumDrawGte +} + +// WithMaximumDrawLt adds the maximumDrawLt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithMaximumDrawLt(maximumDrawLt *string) *DcimPowerPortTemplatesListParams { + o.SetMaximumDrawLt(maximumDrawLt) + return o +} + +// SetMaximumDrawLt adds the maximumDrawLt to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetMaximumDrawLt(maximumDrawLt *string) { + o.MaximumDrawLt = maximumDrawLt +} + +// WithMaximumDrawLte adds the maximumDrawLte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithMaximumDrawLte(maximumDrawLte *string) *DcimPowerPortTemplatesListParams { + o.SetMaximumDrawLte(maximumDrawLte) + return o +} + +// SetMaximumDrawLte adds the maximumDrawLte to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetMaximumDrawLte(maximumDrawLte *string) { + o.MaximumDrawLte = maximumDrawLte +} + +// WithMaximumDrawn adds the maximumDrawn to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithMaximumDrawn(maximumDrawn *string) *DcimPowerPortTemplatesListParams { + o.SetMaximumDrawn(maximumDrawn) + return o +} + +// SetMaximumDrawn adds the maximumDrawN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetMaximumDrawn(maximumDrawn *string) { + o.MaximumDrawn = maximumDrawn +} + // WithName adds the name to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithName(name *string) *DcimPowerPortTemplatesListParams { o.SetName(name) @@ -206,6 +433,105 @@ func (o *DcimPowerPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameIc(nameIc *string) *DcimPowerPortTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameIe(nameIe *string) *DcimPowerPortTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameIew(nameIew *string) *DcimPowerPortTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameIsw(nameIsw *string) *DcimPowerPortTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNamen(namen *string) *DcimPowerPortTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameNic(nameNic *string) *DcimPowerPortTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameNie(nameNie *string) *DcimPowerPortTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameNiew(nameNiew *string) *DcimPowerPortTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithNameNisw(nameNisw *string) *DcimPowerPortTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power port templates list params func (o *DcimPowerPortTemplatesListParams) WithOffset(offset *int64) *DcimPowerPortTemplatesListParams { o.SetOffset(offset) @@ -239,6 +565,17 @@ func (o *DcimPowerPortTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) WithTypen(typen *string) *DcimPowerPortTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim power port templates list params +func (o *DcimPowerPortTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -263,6 +600,86 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.AllocatedDrawGt != nil { + + // query param allocated_draw__gt + var qrAllocatedDrawGt string + if o.AllocatedDrawGt != nil { + qrAllocatedDrawGt = *o.AllocatedDrawGt + } + qAllocatedDrawGt := qrAllocatedDrawGt + if qAllocatedDrawGt != "" { + if err := r.SetQueryParam("allocated_draw__gt", qAllocatedDrawGt); err != nil { + return err + } + } + + } + + if o.AllocatedDrawGte != nil { + + // query param allocated_draw__gte + var qrAllocatedDrawGte string + if o.AllocatedDrawGte != nil { + qrAllocatedDrawGte = *o.AllocatedDrawGte + } + qAllocatedDrawGte := qrAllocatedDrawGte + if qAllocatedDrawGte != "" { + if err := r.SetQueryParam("allocated_draw__gte", qAllocatedDrawGte); err != nil { + return err + } + } + + } + + if o.AllocatedDrawLt != nil { + + // query param allocated_draw__lt + var qrAllocatedDrawLt string + if o.AllocatedDrawLt != nil { + qrAllocatedDrawLt = *o.AllocatedDrawLt + } + qAllocatedDrawLt := qrAllocatedDrawLt + if qAllocatedDrawLt != "" { + if err := r.SetQueryParam("allocated_draw__lt", qAllocatedDrawLt); err != nil { + return err + } + } + + } + + if o.AllocatedDrawLte != nil { + + // query param allocated_draw__lte + var qrAllocatedDrawLte string + if o.AllocatedDrawLte != nil { + qrAllocatedDrawLte = *o.AllocatedDrawLte + } + qAllocatedDrawLte := qrAllocatedDrawLte + if qAllocatedDrawLte != "" { + if err := r.SetQueryParam("allocated_draw__lte", qAllocatedDrawLte); err != nil { + return err + } + } + + } + + if o.AllocatedDrawn != nil { + + // query param allocated_draw__n + var qrAllocatedDrawn string + if o.AllocatedDrawn != nil { + qrAllocatedDrawn = *o.AllocatedDrawn + } + qAllocatedDrawn := qrAllocatedDrawn + if qAllocatedDrawn != "" { + if err := r.SetQueryParam("allocated_draw__n", qAllocatedDrawn); err != nil { + return err + } + } + + } + if o.DevicetypeID != nil { // query param devicetype_id @@ -279,6 +696,22 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -295,6 +728,86 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -327,6 +840,86 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.MaximumDrawGt != nil { + + // query param maximum_draw__gt + var qrMaximumDrawGt string + if o.MaximumDrawGt != nil { + qrMaximumDrawGt = *o.MaximumDrawGt + } + qMaximumDrawGt := qrMaximumDrawGt + if qMaximumDrawGt != "" { + if err := r.SetQueryParam("maximum_draw__gt", qMaximumDrawGt); err != nil { + return err + } + } + + } + + if o.MaximumDrawGte != nil { + + // query param maximum_draw__gte + var qrMaximumDrawGte string + if o.MaximumDrawGte != nil { + qrMaximumDrawGte = *o.MaximumDrawGte + } + qMaximumDrawGte := qrMaximumDrawGte + if qMaximumDrawGte != "" { + if err := r.SetQueryParam("maximum_draw__gte", qMaximumDrawGte); err != nil { + return err + } + } + + } + + if o.MaximumDrawLt != nil { + + // query param maximum_draw__lt + var qrMaximumDrawLt string + if o.MaximumDrawLt != nil { + qrMaximumDrawLt = *o.MaximumDrawLt + } + qMaximumDrawLt := qrMaximumDrawLt + if qMaximumDrawLt != "" { + if err := r.SetQueryParam("maximum_draw__lt", qMaximumDrawLt); err != nil { + return err + } + } + + } + + if o.MaximumDrawLte != nil { + + // query param maximum_draw__lte + var qrMaximumDrawLte string + if o.MaximumDrawLte != nil { + qrMaximumDrawLte = *o.MaximumDrawLte + } + qMaximumDrawLte := qrMaximumDrawLte + if qMaximumDrawLte != "" { + if err := r.SetQueryParam("maximum_draw__lte", qMaximumDrawLte); err != nil { + return err + } + } + + } + + if o.MaximumDrawn != nil { + + // query param maximum_draw__n + var qrMaximumDrawn string + if o.MaximumDrawn != nil { + qrMaximumDrawn = *o.MaximumDrawn + } + qMaximumDrawn := qrMaximumDrawn + if qMaximumDrawn != "" { + if err := r.SetQueryParam("maximum_draw__n", qMaximumDrawn); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -343,6 +936,150 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -391,6 +1128,22 @@ func (o *DcimPowerPortTemplatesListParams) WriteToRequest(r runtime.ClientReques } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_responses.go index 402203561..dadac8b81 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortTemplatesListReader is a Reader for the DcimPowerPortTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_parameters.go index a2770aa97..4bdd73973 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPortTemplatesPartialUpdateParams creates a new DcimPowerPortTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_responses.go index 2c268e343..46727e977 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortTemplatesPartialUpdateReader is a Reader for the DcimPowerPortTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_parameters.go index a9fd2e1c8..d07b3702d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortTemplatesReadParams creates a new DcimPowerPortTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_responses.go index 56d7eb988..9124614cf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortTemplatesReadReader is a Reader for the DcimPowerPortTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_parameters.go index a78c2b267..6ebe1dc3e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPortTemplatesUpdateParams creates a new DcimPowerPortTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_responses.go index d81b0ab88..a9b8c8467 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_port_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortTemplatesUpdateReader is a Reader for the DcimPowerPortTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_parameters.go index cb49ecb64..398db7676 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPortsCreateParams creates a new DcimPowerPortsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_responses.go index 78fcfcc8d..f4ad1aae5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortsCreateReader is a Reader for the DcimPowerPortsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_parameters.go index a7bcca938..c2e97f1d9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortsDeleteParams creates a new DcimPowerPortsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_responses.go index 12df9e07d..62ecb75bc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimPowerPortsDeleteReader is a Reader for the DcimPowerPortsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go index f51593061..b9db7a6cd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortsListParams creates a new DcimPowerPortsListParams object @@ -79,18 +78,62 @@ type DcimPowerPortsListParams struct { /*AllocatedDraw*/ AllocatedDraw *string + /*AllocatedDrawGt*/ + AllocatedDrawGt *string + /*AllocatedDrawGte*/ + AllocatedDrawGte *string + /*AllocatedDrawLt*/ + AllocatedDrawLt *string + /*AllocatedDrawLte*/ + AllocatedDrawLte *string + /*AllocatedDrawn*/ + AllocatedDrawn *string /*Cabled*/ Cabled *string /*ConnectionStatus*/ ConnectionStatus *string + /*ConnectionStatusn*/ + ConnectionStatusn *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -98,8 +141,36 @@ type DcimPowerPortsListParams struct { Limit *int64 /*MaximumDraw*/ MaximumDraw *string + /*MaximumDrawGt*/ + MaximumDrawGt *string + /*MaximumDrawGte*/ + MaximumDrawGte *string + /*MaximumDrawLt*/ + MaximumDrawLt *string + /*MaximumDrawLte*/ + MaximumDrawLte *string + /*MaximumDrawn*/ + MaximumDrawn *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -109,16 +180,28 @@ type DcimPowerPortsListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -169,6 +252,61 @@ func (o *DcimPowerPortsListParams) SetAllocatedDraw(allocatedDraw *string) { o.AllocatedDraw = allocatedDraw } +// WithAllocatedDrawGt adds the allocatedDrawGt to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithAllocatedDrawGt(allocatedDrawGt *string) *DcimPowerPortsListParams { + o.SetAllocatedDrawGt(allocatedDrawGt) + return o +} + +// SetAllocatedDrawGt adds the allocatedDrawGt to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetAllocatedDrawGt(allocatedDrawGt *string) { + o.AllocatedDrawGt = allocatedDrawGt +} + +// WithAllocatedDrawGte adds the allocatedDrawGte to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithAllocatedDrawGte(allocatedDrawGte *string) *DcimPowerPortsListParams { + o.SetAllocatedDrawGte(allocatedDrawGte) + return o +} + +// SetAllocatedDrawGte adds the allocatedDrawGte to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetAllocatedDrawGte(allocatedDrawGte *string) { + o.AllocatedDrawGte = allocatedDrawGte +} + +// WithAllocatedDrawLt adds the allocatedDrawLt to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithAllocatedDrawLt(allocatedDrawLt *string) *DcimPowerPortsListParams { + o.SetAllocatedDrawLt(allocatedDrawLt) + return o +} + +// SetAllocatedDrawLt adds the allocatedDrawLt to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetAllocatedDrawLt(allocatedDrawLt *string) { + o.AllocatedDrawLt = allocatedDrawLt +} + +// WithAllocatedDrawLte adds the allocatedDrawLte to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithAllocatedDrawLte(allocatedDrawLte *string) *DcimPowerPortsListParams { + o.SetAllocatedDrawLte(allocatedDrawLte) + return o +} + +// SetAllocatedDrawLte adds the allocatedDrawLte to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetAllocatedDrawLte(allocatedDrawLte *string) { + o.AllocatedDrawLte = allocatedDrawLte +} + +// WithAllocatedDrawn adds the allocatedDrawn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithAllocatedDrawn(allocatedDrawn *string) *DcimPowerPortsListParams { + o.SetAllocatedDrawn(allocatedDrawn) + return o +} + +// SetAllocatedDrawn adds the allocatedDrawN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetAllocatedDrawn(allocatedDrawn *string) { + o.AllocatedDrawn = allocatedDrawn +} + // WithCabled adds the cabled to the dcim power ports list params func (o *DcimPowerPortsListParams) WithCabled(cabled *string) *DcimPowerPortsListParams { o.SetCabled(cabled) @@ -191,6 +329,17 @@ func (o *DcimPowerPortsListParams) SetConnectionStatus(connectionStatus *string) o.ConnectionStatus = connectionStatus } +// WithConnectionStatusn adds the connectionStatusn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithConnectionStatusn(connectionStatusn *string) *DcimPowerPortsListParams { + o.SetConnectionStatusn(connectionStatusn) + return o +} + +// SetConnectionStatusn adds the connectionStatusN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetConnectionStatusn(connectionStatusn *string) { + o.ConnectionStatusn = connectionStatusn +} + // WithDescription adds the description to the dcim power ports list params func (o *DcimPowerPortsListParams) WithDescription(description *string) *DcimPowerPortsListParams { o.SetDescription(description) @@ -202,6 +351,105 @@ func (o *DcimPowerPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimPowerPortsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionIe(descriptionIe *string) *DcimPowerPortsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionIew(descriptionIew *string) *DcimPowerPortsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimPowerPortsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionn(descriptionn *string) *DcimPowerPortsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionNic(descriptionNic *string) *DcimPowerPortsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionNie(descriptionNie *string) *DcimPowerPortsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimPowerPortsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimPowerPortsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim power ports list params func (o *DcimPowerPortsListParams) WithDevice(device *string) *DcimPowerPortsListParams { o.SetDevice(device) @@ -213,6 +461,17 @@ func (o *DcimPowerPortsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDevicen(devicen *string) *DcimPowerPortsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim power ports list params func (o *DcimPowerPortsListParams) WithDeviceID(deviceID *string) *DcimPowerPortsListParams { o.SetDeviceID(deviceID) @@ -224,6 +483,17 @@ func (o *DcimPowerPortsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithDeviceIDn(deviceIDn *string) *DcimPowerPortsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the dcim power ports list params func (o *DcimPowerPortsListParams) WithID(id *string) *DcimPowerPortsListParams { o.SetID(id) @@ -235,6 +505,61 @@ func (o *DcimPowerPortsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithIDGt(iDGt *string) *DcimPowerPortsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithIDGte(iDGte *string) *DcimPowerPortsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithIDLt(iDLt *string) *DcimPowerPortsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithIDLte(iDLte *string) *DcimPowerPortsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithIDn(iDn *string) *DcimPowerPortsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim power ports list params func (o *DcimPowerPortsListParams) WithLimit(limit *int64) *DcimPowerPortsListParams { o.SetLimit(limit) @@ -257,6 +582,61 @@ func (o *DcimPowerPortsListParams) SetMaximumDraw(maximumDraw *string) { o.MaximumDraw = maximumDraw } +// WithMaximumDrawGt adds the maximumDrawGt to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithMaximumDrawGt(maximumDrawGt *string) *DcimPowerPortsListParams { + o.SetMaximumDrawGt(maximumDrawGt) + return o +} + +// SetMaximumDrawGt adds the maximumDrawGt to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetMaximumDrawGt(maximumDrawGt *string) { + o.MaximumDrawGt = maximumDrawGt +} + +// WithMaximumDrawGte adds the maximumDrawGte to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithMaximumDrawGte(maximumDrawGte *string) *DcimPowerPortsListParams { + o.SetMaximumDrawGte(maximumDrawGte) + return o +} + +// SetMaximumDrawGte adds the maximumDrawGte to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetMaximumDrawGte(maximumDrawGte *string) { + o.MaximumDrawGte = maximumDrawGte +} + +// WithMaximumDrawLt adds the maximumDrawLt to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithMaximumDrawLt(maximumDrawLt *string) *DcimPowerPortsListParams { + o.SetMaximumDrawLt(maximumDrawLt) + return o +} + +// SetMaximumDrawLt adds the maximumDrawLt to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetMaximumDrawLt(maximumDrawLt *string) { + o.MaximumDrawLt = maximumDrawLt +} + +// WithMaximumDrawLte adds the maximumDrawLte to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithMaximumDrawLte(maximumDrawLte *string) *DcimPowerPortsListParams { + o.SetMaximumDrawLte(maximumDrawLte) + return o +} + +// SetMaximumDrawLte adds the maximumDrawLte to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetMaximumDrawLte(maximumDrawLte *string) { + o.MaximumDrawLte = maximumDrawLte +} + +// WithMaximumDrawn adds the maximumDrawn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithMaximumDrawn(maximumDrawn *string) *DcimPowerPortsListParams { + o.SetMaximumDrawn(maximumDrawn) + return o +} + +// SetMaximumDrawn adds the maximumDrawN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetMaximumDrawn(maximumDrawn *string) { + o.MaximumDrawn = maximumDrawn +} + // WithName adds the name to the dcim power ports list params func (o *DcimPowerPortsListParams) WithName(name *string) *DcimPowerPortsListParams { o.SetName(name) @@ -268,6 +648,105 @@ func (o *DcimPowerPortsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameIc(nameIc *string) *DcimPowerPortsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameIe(nameIe *string) *DcimPowerPortsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameIew(nameIew *string) *DcimPowerPortsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameIsw(nameIsw *string) *DcimPowerPortsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNamen(namen *string) *DcimPowerPortsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameNic(nameNic *string) *DcimPowerPortsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameNie(nameNie *string) *DcimPowerPortsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameNiew(nameNiew *string) *DcimPowerPortsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithNameNisw(nameNisw *string) *DcimPowerPortsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim power ports list params func (o *DcimPowerPortsListParams) WithOffset(offset *int64) *DcimPowerPortsListParams { o.SetOffset(offset) @@ -301,6 +780,17 @@ func (o *DcimPowerPortsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithRegionn(regionn *string) *DcimPowerPortsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim power ports list params func (o *DcimPowerPortsListParams) WithRegionID(regionID *string) *DcimPowerPortsListParams { o.SetRegionID(regionID) @@ -312,6 +802,17 @@ func (o *DcimPowerPortsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithRegionIDn(regionIDn *string) *DcimPowerPortsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim power ports list params func (o *DcimPowerPortsListParams) WithSite(site *string) *DcimPowerPortsListParams { o.SetSite(site) @@ -323,6 +824,17 @@ func (o *DcimPowerPortsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithSiten(siten *string) *DcimPowerPortsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim power ports list params func (o *DcimPowerPortsListParams) WithSiteID(siteID *string) *DcimPowerPortsListParams { o.SetSiteID(siteID) @@ -334,6 +846,17 @@ func (o *DcimPowerPortsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithSiteIDn(siteIDn *string) *DcimPowerPortsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim power ports list params func (o *DcimPowerPortsListParams) WithTag(tag *string) *DcimPowerPortsListParams { o.SetTag(tag) @@ -345,6 +868,17 @@ func (o *DcimPowerPortsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithTagn(tagn *string) *DcimPowerPortsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim power ports list params func (o *DcimPowerPortsListParams) WithType(typeVar *string) *DcimPowerPortsListParams { o.SetType(typeVar) @@ -356,6 +890,17 @@ func (o *DcimPowerPortsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim power ports list params +func (o *DcimPowerPortsListParams) WithTypen(typen *string) *DcimPowerPortsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim power ports list params +func (o *DcimPowerPortsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -380,91 +925,363 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } - if o.Cabled != nil { + if o.AllocatedDrawGt != nil { - // query param cabled - var qrCabled string - if o.Cabled != nil { - qrCabled = *o.Cabled + // query param allocated_draw__gt + var qrAllocatedDrawGt string + if o.AllocatedDrawGt != nil { + qrAllocatedDrawGt = *o.AllocatedDrawGt } - qCabled := qrCabled - if qCabled != "" { - if err := r.SetQueryParam("cabled", qCabled); err != nil { + qAllocatedDrawGt := qrAllocatedDrawGt + if qAllocatedDrawGt != "" { + if err := r.SetQueryParam("allocated_draw__gt", qAllocatedDrawGt); err != nil { return err } } } - if o.ConnectionStatus != nil { + if o.AllocatedDrawGte != nil { - // query param connection_status - var qrConnectionStatus string - if o.ConnectionStatus != nil { - qrConnectionStatus = *o.ConnectionStatus + // query param allocated_draw__gte + var qrAllocatedDrawGte string + if o.AllocatedDrawGte != nil { + qrAllocatedDrawGte = *o.AllocatedDrawGte } - qConnectionStatus := qrConnectionStatus - if qConnectionStatus != "" { - if err := r.SetQueryParam("connection_status", qConnectionStatus); err != nil { + qAllocatedDrawGte := qrAllocatedDrawGte + if qAllocatedDrawGte != "" { + if err := r.SetQueryParam("allocated_draw__gte", qAllocatedDrawGte); err != nil { return err } } } - if o.Description != nil { + if o.AllocatedDrawLt != nil { - // query param description - var qrDescription string - if o.Description != nil { - qrDescription = *o.Description + // query param allocated_draw__lt + var qrAllocatedDrawLt string + if o.AllocatedDrawLt != nil { + qrAllocatedDrawLt = *o.AllocatedDrawLt } - qDescription := qrDescription - if qDescription != "" { - if err := r.SetQueryParam("description", qDescription); err != nil { + qAllocatedDrawLt := qrAllocatedDrawLt + if qAllocatedDrawLt != "" { + if err := r.SetQueryParam("allocated_draw__lt", qAllocatedDrawLt); err != nil { return err } } } - if o.Device != nil { + if o.AllocatedDrawLte != nil { - // query param device - var qrDevice string - if o.Device != nil { - qrDevice = *o.Device + // query param allocated_draw__lte + var qrAllocatedDrawLte string + if o.AllocatedDrawLte != nil { + qrAllocatedDrawLte = *o.AllocatedDrawLte } - qDevice := qrDevice - if qDevice != "" { - if err := r.SetQueryParam("device", qDevice); err != nil { + qAllocatedDrawLte := qrAllocatedDrawLte + if qAllocatedDrawLte != "" { + if err := r.SetQueryParam("allocated_draw__lte", qAllocatedDrawLte); err != nil { return err } } } - if o.DeviceID != nil { + if o.AllocatedDrawn != nil { - // query param device_id - var qrDeviceID string - if o.DeviceID != nil { - qrDeviceID = *o.DeviceID + // query param allocated_draw__n + var qrAllocatedDrawn string + if o.AllocatedDrawn != nil { + qrAllocatedDrawn = *o.AllocatedDrawn } - qDeviceID := qrDeviceID - if qDeviceID != "" { - if err := r.SetQueryParam("device_id", qDeviceID); err != nil { + qAllocatedDrawn := qrAllocatedDrawn + if qAllocatedDrawn != "" { + if err := r.SetQueryParam("allocated_draw__n", qAllocatedDrawn); err != nil { return err } } } - if o.ID != nil { + if o.Cabled != nil { - // query param id - var qrID string - if o.ID != nil { + // query param cabled + var qrCabled string + if o.Cabled != nil { + qrCabled = *o.Cabled + } + qCabled := qrCabled + if qCabled != "" { + if err := r.SetQueryParam("cabled", qCabled); err != nil { + return err + } + } + + } + + if o.ConnectionStatus != nil { + + // query param connection_status + var qrConnectionStatus string + if o.ConnectionStatus != nil { + qrConnectionStatus = *o.ConnectionStatus + } + qConnectionStatus := qrConnectionStatus + if qConnectionStatus != "" { + if err := r.SetQueryParam("connection_status", qConnectionStatus); err != nil { + return err + } + } + + } + + if o.ConnectionStatusn != nil { + + // query param connection_status__n + var qrConnectionStatusn string + if o.ConnectionStatusn != nil { + qrConnectionStatusn = *o.ConnectionStatusn + } + qConnectionStatusn := qrConnectionStatusn + if qConnectionStatusn != "" { + if err := r.SetQueryParam("connection_status__n", qConnectionStatusn); err != nil { + return err + } + } + + } + + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + + 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.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); 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.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { qrID = *o.ID } qID := qrID @@ -476,6 +1293,86 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -508,6 +1405,86 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.MaximumDrawGt != nil { + + // query param maximum_draw__gt + var qrMaximumDrawGt string + if o.MaximumDrawGt != nil { + qrMaximumDrawGt = *o.MaximumDrawGt + } + qMaximumDrawGt := qrMaximumDrawGt + if qMaximumDrawGt != "" { + if err := r.SetQueryParam("maximum_draw__gt", qMaximumDrawGt); err != nil { + return err + } + } + + } + + if o.MaximumDrawGte != nil { + + // query param maximum_draw__gte + var qrMaximumDrawGte string + if o.MaximumDrawGte != nil { + qrMaximumDrawGte = *o.MaximumDrawGte + } + qMaximumDrawGte := qrMaximumDrawGte + if qMaximumDrawGte != "" { + if err := r.SetQueryParam("maximum_draw__gte", qMaximumDrawGte); err != nil { + return err + } + } + + } + + if o.MaximumDrawLt != nil { + + // query param maximum_draw__lt + var qrMaximumDrawLt string + if o.MaximumDrawLt != nil { + qrMaximumDrawLt = *o.MaximumDrawLt + } + qMaximumDrawLt := qrMaximumDrawLt + if qMaximumDrawLt != "" { + if err := r.SetQueryParam("maximum_draw__lt", qMaximumDrawLt); err != nil { + return err + } + } + + } + + if o.MaximumDrawLte != nil { + + // query param maximum_draw__lte + var qrMaximumDrawLte string + if o.MaximumDrawLte != nil { + qrMaximumDrawLte = *o.MaximumDrawLte + } + qMaximumDrawLte := qrMaximumDrawLte + if qMaximumDrawLte != "" { + if err := r.SetQueryParam("maximum_draw__lte", qMaximumDrawLte); err != nil { + return err + } + } + + } + + if o.MaximumDrawn != nil { + + // query param maximum_draw__n + var qrMaximumDrawn string + if o.MaximumDrawn != nil { + qrMaximumDrawn = *o.MaximumDrawn + } + qMaximumDrawn := qrMaximumDrawn + if qMaximumDrawn != "" { + if err := r.SetQueryParam("maximum_draw__n", qMaximumDrawn); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -524,6 +1501,150 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -572,6 +1693,22 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -588,6 +1725,22 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -604,6 +1757,22 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -620,6 +1789,22 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -636,6 +1821,22 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Type != nil { // query param type @@ -652,6 +1853,22 @@ func (o *DcimPowerPortsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_responses.go index c51fdabe4..4cc01dfbd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortsListReader is a Reader for the DcimPowerPortsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_parameters.go index 34d71e107..8d7ba81bd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPortsPartialUpdateParams creates a new DcimPowerPortsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_responses.go index 4b6edef2f..f0116426b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortsPartialUpdateReader is a Reader for the DcimPowerPortsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_parameters.go index 489c663f8..ffc861a18 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortsReadParams creates a new DcimPowerPortsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_responses.go index ba0706027..3e564187b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortsReadReader is a Reader for the DcimPowerPortsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_parameters.go index b1415a6b1..002e0f92a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimPowerPortsTraceParams creates a new DcimPowerPortsTraceParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_responses.go index f2a96d5b8..f0e01df2c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_trace_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortsTraceReader is a Reader for the DcimPowerPortsTrace structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_parameters.go index 238f5a996..e12148f09 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimPowerPortsUpdateParams creates a new DcimPowerPortsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_responses.go index 69421b3d4..428b22ba8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_power_ports_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimPowerPortsUpdateReader is a Reader for the DcimPowerPortsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_parameters.go index b7734c174..1e2cc710e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackGroupsCreateParams creates a new DcimRackGroupsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_responses.go index c335b32a5..d0bcaae02 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackGroupsCreateReader is a Reader for the DcimRackGroupsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_parameters.go index 2cd2b8f60..2b2f6d7d4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackGroupsDeleteParams creates a new DcimRackGroupsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_responses.go index 6cec2809e..3e7daa7a4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRackGroupsDeleteReader is a Reader for the DcimRackGroupsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_parameters.go index f87194560..1af07763c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackGroupsListParams creates a new DcimRackGroupsListParams object @@ -77,8 +76,38 @@ for the dcim rack groups list operation typically these are written to a http.Re */ type DcimRackGroupsListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,23 +115,75 @@ type DcimRackGroupsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. */ Offset *int64 + /*Parent*/ + Parent *string + /*Parentn*/ + Parentn *string + /*ParentID*/ + ParentID *string + /*ParentIDn*/ + ParentIDn *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -142,6 +223,116 @@ func (o *DcimRackGroupsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithDescription adds the description to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescription(description *string) *DcimRackGroupsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionIc(descriptionIc *string) *DcimRackGroupsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionIe(descriptionIe *string) *DcimRackGroupsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionIew(descriptionIew *string) *DcimRackGroupsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimRackGroupsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionn(descriptionn *string) *DcimRackGroupsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionNic(descriptionNic *string) *DcimRackGroupsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionNie(descriptionNie *string) *DcimRackGroupsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimRackGroupsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimRackGroupsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithID(id *string) *DcimRackGroupsListParams { o.SetID(id) @@ -153,6 +344,61 @@ func (o *DcimRackGroupsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithIDGt(iDGt *string) *DcimRackGroupsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithIDGte(iDGte *string) *DcimRackGroupsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithIDLt(iDLt *string) *DcimRackGroupsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithIDLte(iDLte *string) *DcimRackGroupsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithIDn(iDn *string) *DcimRackGroupsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithLimit(limit *int64) *DcimRackGroupsListParams { o.SetLimit(limit) @@ -175,6 +421,105 @@ func (o *DcimRackGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameIc(nameIc *string) *DcimRackGroupsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameIe(nameIe *string) *DcimRackGroupsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameIew(nameIew *string) *DcimRackGroupsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameIsw(nameIsw *string) *DcimRackGroupsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNamen(namen *string) *DcimRackGroupsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameNic(nameNic *string) *DcimRackGroupsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameNie(nameNie *string) *DcimRackGroupsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameNiew(nameNiew *string) *DcimRackGroupsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithNameNisw(nameNisw *string) *DcimRackGroupsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithOffset(offset *int64) *DcimRackGroupsListParams { o.SetOffset(offset) @@ -186,6 +531,50 @@ func (o *DcimRackGroupsListParams) SetOffset(offset *int64) { o.Offset = offset } +// WithParent adds the parent to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithParent(parent *string) *DcimRackGroupsListParams { + o.SetParent(parent) + return o +} + +// SetParent adds the parent to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetParent(parent *string) { + o.Parent = parent +} + +// WithParentn adds the parentn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithParentn(parentn *string) *DcimRackGroupsListParams { + o.SetParentn(parentn) + return o +} + +// SetParentn adds the parentN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetParentn(parentn *string) { + o.Parentn = parentn +} + +// WithParentID adds the parentID to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithParentID(parentID *string) *DcimRackGroupsListParams { + o.SetParentID(parentID) + return o +} + +// SetParentID adds the parentId to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetParentID(parentID *string) { + o.ParentID = parentID +} + +// WithParentIDn adds the parentIDn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithParentIDn(parentIDn *string) *DcimRackGroupsListParams { + o.SetParentIDn(parentIDn) + return o +} + +// SetParentIDn adds the parentIdN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetParentIDn(parentIDn *string) { + o.ParentIDn = parentIDn +} + // WithQ adds the q to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithQ(q *string) *DcimRackGroupsListParams { o.SetQ(q) @@ -208,6 +597,17 @@ func (o *DcimRackGroupsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithRegionn(regionn *string) *DcimRackGroupsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithRegionID(regionID *string) *DcimRackGroupsListParams { o.SetRegionID(regionID) @@ -219,6 +619,17 @@ func (o *DcimRackGroupsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithRegionIDn(regionIDn *string) *DcimRackGroupsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithSite(site *string) *DcimRackGroupsListParams { o.SetSite(site) @@ -230,6 +641,17 @@ func (o *DcimRackGroupsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSiten(siten *string) *DcimRackGroupsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithSiteID(siteID *string) *DcimRackGroupsListParams { o.SetSiteID(siteID) @@ -241,6 +663,17 @@ func (o *DcimRackGroupsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSiteIDn(siteIDn *string) *DcimRackGroupsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithSlug adds the slug to the dcim rack groups list params func (o *DcimRackGroupsListParams) WithSlug(slug *string) *DcimRackGroupsListParams { o.SetSlug(slug) @@ -252,6 +685,105 @@ func (o *DcimRackGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugIc(slugIc *string) *DcimRackGroupsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugIe(slugIe *string) *DcimRackGroupsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugIew(slugIew *string) *DcimRackGroupsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugIsw(slugIsw *string) *DcimRackGroupsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugn(slugn *string) *DcimRackGroupsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugNic(slugNic *string) *DcimRackGroupsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugNie(slugNie *string) *DcimRackGroupsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugNiew(slugNiew *string) *DcimRackGroupsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) WithSlugNisw(slugNisw *string) *DcimRackGroupsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim rack groups list params +func (o *DcimRackGroupsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *DcimRackGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -260,105 +792,569 @@ func (o *DcimRackGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } var res []error - if o.ID != nil { + if o.Description != nil { - // query param id - var qrID string - if o.ID != nil { - qrID = *o.ID + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description } - qID := qrID - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { return err } } } - if o.Limit != nil { + if o.DescriptionIc != nil { - // query param limit - var qrLimit int64 - if o.Limit != nil { - qrLimit = *o.Limit + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { return err } } } - if o.Name != nil { + if o.DescriptionIe != nil { - // query param name - var qrName string - if o.Name != nil { - qrName = *o.Name + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe } - qName := qrName - if qName != "" { - if err := r.SetQueryParam("name", qName); err != nil { + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { return err } } } - if o.Offset != nil { + if o.DescriptionIew != nil { - // query param offset - var qrOffset int64 - if o.Offset != nil { - qrOffset = *o.Offset + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew } - qOffset := swag.FormatInt64(qrOffset) - if qOffset != "" { - if err := r.SetQueryParam("offset", qOffset); err != nil { + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { return err } } } - if o.Q != nil { + if o.DescriptionIsw != nil { - // query param q - var qrQ string - if o.Q != nil { - qrQ = *o.Q + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw } - qQ := qrQ - if qQ != "" { - if err := r.SetQueryParam("q", qQ); err != nil { + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { return err } } } - if o.Region != nil { + if o.Descriptionn != nil { - // query param region - var qrRegion string - if o.Region != nil { - qrRegion = *o.Region + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn } - qRegion := qrRegion - if qRegion != "" { - if err := r.SetQueryParam("region", qRegion); err != nil { + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { return err } } } - if o.RegionID != nil { + if o.DescriptionNic != nil { - // query param region_id + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); 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 + } + } + + } + + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + + } + + if o.Parent != nil { + + // query param parent + var qrParent string + if o.Parent != nil { + qrParent = *o.Parent + } + qParent := qrParent + if qParent != "" { + if err := r.SetQueryParam("parent", qParent); err != nil { + return err + } + } + + } + + if o.Parentn != nil { + + // query param parent__n + var qrParentn string + if o.Parentn != nil { + qrParentn = *o.Parentn + } + qParentn := qrParentn + if qParentn != "" { + if err := r.SetQueryParam("parent__n", qParentn); err != nil { + return err + } + } + + } + + if o.ParentID != nil { + + // query param parent_id + var qrParentID string + if o.ParentID != nil { + qrParentID = *o.ParentID + } + qParentID := qrParentID + if qParentID != "" { + if err := r.SetQueryParam("parent_id", qParentID); err != nil { + return err + } + } + + } + + if o.ParentIDn != nil { + + // query param parent_id__n + var qrParentIDn string + if o.ParentIDn != nil { + qrParentIDn = *o.ParentIDn + } + qParentIDn := qrParentIDn + if qParentIDn != "" { + if err := r.SetQueryParam("parent_id__n", qParentIDn); err != nil { + return err + } + } + + } + + if o.Q != nil { + + // query param q + var qrQ string + if o.Q != nil { + qrQ = *o.Q + } + qQ := qrQ + if qQ != "" { + if err := r.SetQueryParam("q", qQ); err != nil { + return err + } + } + + } + + 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 @@ -372,6 +1368,22 @@ func (o *DcimRackGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -388,6 +1400,22 @@ func (o *DcimRackGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -404,6 +1432,22 @@ func (o *DcimRackGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Slug != nil { // query param slug @@ -420,6 +1464,150 @@ func (o *DcimRackGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_responses.go index 0407d1192..01dc27d2a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackGroupsListReader is a Reader for the DcimRackGroupsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_parameters.go index b65d6b68b..82171b177 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackGroupsPartialUpdateParams creates a new DcimRackGroupsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_responses.go index 84bb6fbfa..1b8799a12 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackGroupsPartialUpdateReader is a Reader for the DcimRackGroupsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_parameters.go index 22a74e15a..c0ba30b63 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackGroupsReadParams creates a new DcimRackGroupsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_responses.go index 599e8b986..d02f1f4c8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackGroupsReadReader is a Reader for the DcimRackGroupsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_parameters.go index 0993f09da..0dc9d7d8a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackGroupsUpdateParams creates a new DcimRackGroupsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_responses.go index c3383ab60..ec3bd65e1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_groups_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackGroupsUpdateReader is a Reader for the DcimRackGroupsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_parameters.go index 3977ce429..86ddee7e0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackReservationsCreateParams creates a new DcimRackReservationsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_responses.go index 671123426..c899cb0f2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackReservationsCreateReader is a Reader for the DcimRackReservationsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_parameters.go index 403aec7aa..eafd0bcc5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackReservationsDeleteParams creates a new DcimRackReservationsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_responses.go index 7e51c8d3f..b25a283ed 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRackReservationsDeleteReader is a Reader for the DcimRackReservationsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go index b6f57d85b..1c1b1eea0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackReservationsListParams creates a new DcimRackReservationsListParams object @@ -79,15 +78,36 @@ type DcimRackReservationsListParams struct { /*Created*/ Created *string + /*CreatedGt*/ + CreatedGt *string + /*CreatedGte*/ + CreatedGte *string + /*CreatedLt*/ + CreatedLt *string + /*CreatedLte*/ + CreatedLte *string + /*Createdn*/ + Createdn *string /*Group*/ Group *string + /*Groupn*/ + Groupn *string /*GroupID*/ GroupID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*GroupIDn*/ + GroupIDn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -102,22 +122,40 @@ type DcimRackReservationsListParams struct { Q *string /*RackID*/ RackID *string + /*RackIDn*/ + RackIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*User*/ User *string + /*Usern*/ + Usern *string /*UserID*/ UserID *string + /*UserIDn*/ + UserIDn *string timeout time.Duration Context context.Context @@ -168,6 +206,61 @@ func (o *DcimRackReservationsListParams) SetCreated(created *string) { o.Created = created } +// WithCreatedGt adds the createdGt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithCreatedGt(createdGt *string) *DcimRackReservationsListParams { + o.SetCreatedGt(createdGt) + return o +} + +// SetCreatedGt adds the createdGt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetCreatedGt(createdGt *string) { + o.CreatedGt = createdGt +} + +// WithCreatedGte adds the createdGte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithCreatedGte(createdGte *string) *DcimRackReservationsListParams { + o.SetCreatedGte(createdGte) + return o +} + +// SetCreatedGte adds the createdGte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetCreatedGte(createdGte *string) { + o.CreatedGte = createdGte +} + +// WithCreatedLt adds the createdLt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithCreatedLt(createdLt *string) *DcimRackReservationsListParams { + o.SetCreatedLt(createdLt) + return o +} + +// SetCreatedLt adds the createdLt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetCreatedLt(createdLt *string) { + o.CreatedLt = createdLt +} + +// WithCreatedLte adds the createdLte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithCreatedLte(createdLte *string) *DcimRackReservationsListParams { + o.SetCreatedLte(createdLte) + return o +} + +// SetCreatedLte adds the createdLte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetCreatedLte(createdLte *string) { + o.CreatedLte = createdLte +} + +// WithCreatedn adds the createdn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithCreatedn(createdn *string) *DcimRackReservationsListParams { + o.SetCreatedn(createdn) + return o +} + +// SetCreatedn adds the createdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetCreatedn(createdn *string) { + o.Createdn = createdn +} + // WithGroup adds the group to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithGroup(group *string) *DcimRackReservationsListParams { o.SetGroup(group) @@ -179,6 +272,17 @@ func (o *DcimRackReservationsListParams) SetGroup(group *string) { o.Group = group } +// WithGroupn adds the groupn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithGroupn(groupn *string) *DcimRackReservationsListParams { + o.SetGroupn(groupn) + return o +} + +// SetGroupn adds the groupN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetGroupn(groupn *string) { + o.Groupn = groupn +} + // WithGroupID adds the groupID to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithGroupID(groupID *string) *DcimRackReservationsListParams { o.SetGroupID(groupID) @@ -190,15 +294,81 @@ func (o *DcimRackReservationsListParams) SetGroupID(groupID *string) { o.GroupID = groupID } -// WithIDIn adds the iDIn to the dcim rack reservations list params -func (o *DcimRackReservationsListParams) WithIDIn(iDIn *string) *DcimRackReservationsListParams { - o.SetIDIn(iDIn) +// WithGroupIDn adds the groupIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithGroupIDn(groupIDn *string) *DcimRackReservationsListParams { + o.SetGroupIDn(groupIDn) return o } -// SetIDIn adds the idIn to the dcim rack reservations list params -func (o *DcimRackReservationsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetGroupIDn adds the groupIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetGroupIDn(groupIDn *string) { + o.GroupIDn = groupIDn +} + +// WithID adds the id to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithID(id *string) *DcimRackReservationsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithIDGt(iDGt *string) *DcimRackReservationsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithIDGte(iDGte *string) *DcimRackReservationsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithIDLt(iDLt *string) *DcimRackReservationsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithIDLte(iDLte *string) *DcimRackReservationsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithIDn(iDn *string) *DcimRackReservationsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLimit adds the limit to the dcim rack reservations list params @@ -245,6 +415,17 @@ func (o *DcimRackReservationsListParams) SetRackID(rackID *string) { o.RackID = rackID } +// WithRackIDn adds the rackIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithRackIDn(rackIDn *string) *DcimRackReservationsListParams { + o.SetRackIDn(rackIDn) + return o +} + +// SetRackIDn adds the rackIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetRackIDn(rackIDn *string) { + o.RackIDn = rackIDn +} + // WithSite adds the site to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithSite(site *string) *DcimRackReservationsListParams { o.SetSite(site) @@ -256,6 +437,17 @@ func (o *DcimRackReservationsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithSiten(siten *string) *DcimRackReservationsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithSiteID(siteID *string) *DcimRackReservationsListParams { o.SetSiteID(siteID) @@ -267,6 +459,17 @@ func (o *DcimRackReservationsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithSiteIDn(siteIDn *string) *DcimRackReservationsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTenant adds the tenant to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithTenant(tenant *string) *DcimRackReservationsListParams { o.SetTenant(tenant) @@ -278,6 +481,17 @@ func (o *DcimRackReservationsListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithTenantn(tenantn *string) *DcimRackReservationsListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithTenantGroup(tenantGroup *string) *DcimRackReservationsListParams { o.SetTenantGroup(tenantGroup) @@ -289,6 +503,17 @@ func (o *DcimRackReservationsListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithTenantGroupn(tenantGroupn *string) *DcimRackReservationsListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithTenantGroupID(tenantGroupID *string) *DcimRackReservationsListParams { o.SetTenantGroupID(tenantGroupID) @@ -300,6 +525,17 @@ func (o *DcimRackReservationsListParams) SetTenantGroupID(tenantGroupID *string) o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithTenantGroupIDn(tenantGroupIDn *string) *DcimRackReservationsListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithTenantID(tenantID *string) *DcimRackReservationsListParams { o.SetTenantID(tenantID) @@ -311,6 +547,17 @@ func (o *DcimRackReservationsListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithTenantIDn(tenantIDn *string) *DcimRackReservationsListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithUser adds the user to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithUser(user *string) *DcimRackReservationsListParams { o.SetUser(user) @@ -322,6 +569,17 @@ func (o *DcimRackReservationsListParams) SetUser(user *string) { o.User = user } +// WithUsern adds the usern to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithUsern(usern *string) *DcimRackReservationsListParams { + o.SetUsern(usern) + return o +} + +// SetUsern adds the userN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetUsern(usern *string) { + o.Usern = usern +} + // WithUserID adds the userID to the dcim rack reservations list params func (o *DcimRackReservationsListParams) WithUserID(userID *string) *DcimRackReservationsListParams { o.SetUserID(userID) @@ -333,6 +591,17 @@ func (o *DcimRackReservationsListParams) SetUserID(userID *string) { o.UserID = userID } +// WithUserIDn adds the userIDn to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) WithUserIDn(userIDn *string) *DcimRackReservationsListParams { + o.SetUserIDn(userIDn) + return o +} + +// SetUserIDn adds the userIdN to the dcim rack reservations list params +func (o *DcimRackReservationsListParams) SetUserIDn(userIDn *string) { + o.UserIDn = userIDn +} + // WriteToRequest writes these params to a swagger request func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -357,6 +626,86 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.CreatedGt != nil { + + // query param created__gt + var qrCreatedGt string + if o.CreatedGt != nil { + qrCreatedGt = *o.CreatedGt + } + qCreatedGt := qrCreatedGt + if qCreatedGt != "" { + if err := r.SetQueryParam("created__gt", qCreatedGt); err != nil { + return err + } + } + + } + + if o.CreatedGte != nil { + + // query param created__gte + var qrCreatedGte string + if o.CreatedGte != nil { + qrCreatedGte = *o.CreatedGte + } + qCreatedGte := qrCreatedGte + if qCreatedGte != "" { + if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { + return err + } + } + + } + + if o.CreatedLt != nil { + + // query param created__lt + var qrCreatedLt string + if o.CreatedLt != nil { + qrCreatedLt = *o.CreatedLt + } + qCreatedLt := qrCreatedLt + if qCreatedLt != "" { + if err := r.SetQueryParam("created__lt", qCreatedLt); err != nil { + return err + } + } + + } + + if o.CreatedLte != nil { + + // query param created__lte + var qrCreatedLte string + if o.CreatedLte != nil { + qrCreatedLte = *o.CreatedLte + } + qCreatedLte := qrCreatedLte + if qCreatedLte != "" { + if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { + return err + } + } + + } + + if o.Createdn != nil { + + // query param created__n + var qrCreatedn string + if o.Createdn != nil { + qrCreatedn = *o.Createdn + } + qCreatedn := qrCreatedn + if qCreatedn != "" { + if err := r.SetQueryParam("created__n", qCreatedn); err != nil { + return err + } + } + + } + if o.Group != nil { // query param group @@ -373,6 +722,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Groupn != nil { + + // query param group__n + var qrGroupn string + if o.Groupn != nil { + qrGroupn = *o.Groupn + } + qGroupn := qrGroupn + if qGroupn != "" { + if err := r.SetQueryParam("group__n", qGroupn); err != nil { + return err + } + } + + } + if o.GroupID != nil { // query param group_id @@ -389,16 +754,112 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } - if o.IDIn != nil { + if o.GroupIDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param group_id__n + var qrGroupIDn string + if o.GroupIDn != nil { + qrGroupIDn = *o.GroupIDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qGroupIDn := qrGroupIDn + if qGroupIDn != "" { + if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -469,6 +930,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.RackIDn != nil { + + // query param rack_id__n + var qrRackIDn string + if o.RackIDn != nil { + qrRackIDn = *o.RackIDn + } + qRackIDn := qrRackIDn + if qRackIDn != "" { + if err := r.SetQueryParam("rack_id__n", qRackIDn); err != nil { + return err + } + } + + } + if o.Site != nil { // query param site @@ -485,6 +962,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -501,6 +994,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tenant != nil { // query param tenant @@ -517,6 +1026,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -533,6 +1058,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -549,6 +1090,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -565,6 +1122,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.User != nil { // query param user @@ -581,6 +1154,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Usern != nil { + + // query param user__n + var qrUsern string + if o.Usern != nil { + qrUsern = *o.Usern + } + qUsern := qrUsern + if qUsern != "" { + if err := r.SetQueryParam("user__n", qUsern); err != nil { + return err + } + } + + } + if o.UserID != nil { // query param user_id @@ -597,6 +1186,22 @@ func (o *DcimRackReservationsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.UserIDn != nil { + + // query param user_id__n + var qrUserIDn string + if o.UserIDn != nil { + qrUserIDn = *o.UserIDn + } + qUserIDn := qrUserIDn + if qUserIDn != "" { + if err := r.SetQueryParam("user_id__n", qUserIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_responses.go index 84679a847..cb81ed628 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackReservationsListReader is a Reader for the DcimRackReservationsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_parameters.go index 412dca787..877e865eb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackReservationsPartialUpdateParams creates a new DcimRackReservationsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_responses.go index 049e69ae5..3afd55485 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackReservationsPartialUpdateReader is a Reader for the DcimRackReservationsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_parameters.go index 6ffb6558f..4da80df60 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackReservationsReadParams creates a new DcimRackReservationsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_responses.go index 9baff2cca..f8149312e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackReservationsReadReader is a Reader for the DcimRackReservationsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_parameters.go index d19f2c8f5..232c75333 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackReservationsUpdateParams creates a new DcimRackReservationsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_responses.go index 15740c87d..445ebec49 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_reservations_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackReservationsUpdateReader is a Reader for the DcimRackReservationsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_parameters.go index cf53bd03d..b28db40b7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackRolesCreateParams creates a new DcimRackRolesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_responses.go index 6027a075b..625f6be5f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackRolesCreateReader is a Reader for the DcimRackRolesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_parameters.go index e29094a60..1c8333eff 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackRolesDeleteParams creates a new DcimRackRolesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_responses.go index ea7f25082..725e39b71 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRackRolesDeleteReader is a Reader for the DcimRackRolesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go index e1e9faf8a..b34988ded 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackRolesListParams creates a new DcimRackRolesListParams object @@ -79,8 +78,36 @@ type DcimRackRolesListParams struct { /*Color*/ Color *string + /*ColorIc*/ + ColorIc *string + /*ColorIe*/ + ColorIe *string + /*ColorIew*/ + ColorIew *string + /*ColorIsw*/ + ColorIsw *string + /*Colorn*/ + Colorn *string + /*ColorNic*/ + ColorNic *string + /*ColorNie*/ + ColorNie *string + /*ColorNiew*/ + ColorNiew *string + /*ColorNisw*/ + ColorNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +115,24 @@ type DcimRackRolesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -97,6 +142,24 @@ type DcimRackRolesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -147,6 +210,105 @@ func (o *DcimRackRolesListParams) SetColor(color *string) { o.Color = color } +// WithColorIc adds the colorIc to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorIc(colorIc *string) *DcimRackRolesListParams { + o.SetColorIc(colorIc) + return o +} + +// SetColorIc adds the colorIc to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorIc(colorIc *string) { + o.ColorIc = colorIc +} + +// WithColorIe adds the colorIe to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorIe(colorIe *string) *DcimRackRolesListParams { + o.SetColorIe(colorIe) + return o +} + +// SetColorIe adds the colorIe to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorIe(colorIe *string) { + o.ColorIe = colorIe +} + +// WithColorIew adds the colorIew to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorIew(colorIew *string) *DcimRackRolesListParams { + o.SetColorIew(colorIew) + return o +} + +// SetColorIew adds the colorIew to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorIew(colorIew *string) { + o.ColorIew = colorIew +} + +// WithColorIsw adds the colorIsw to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorIsw(colorIsw *string) *DcimRackRolesListParams { + o.SetColorIsw(colorIsw) + return o +} + +// SetColorIsw adds the colorIsw to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorIsw(colorIsw *string) { + o.ColorIsw = colorIsw +} + +// WithColorn adds the colorn to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorn(colorn *string) *DcimRackRolesListParams { + o.SetColorn(colorn) + return o +} + +// SetColorn adds the colorN to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorn(colorn *string) { + o.Colorn = colorn +} + +// WithColorNic adds the colorNic to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorNic(colorNic *string) *DcimRackRolesListParams { + o.SetColorNic(colorNic) + return o +} + +// SetColorNic adds the colorNic to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorNic(colorNic *string) { + o.ColorNic = colorNic +} + +// WithColorNie adds the colorNie to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorNie(colorNie *string) *DcimRackRolesListParams { + o.SetColorNie(colorNie) + return o +} + +// SetColorNie adds the colorNie to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorNie(colorNie *string) { + o.ColorNie = colorNie +} + +// WithColorNiew adds the colorNiew to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorNiew(colorNiew *string) *DcimRackRolesListParams { + o.SetColorNiew(colorNiew) + return o +} + +// SetColorNiew adds the colorNiew to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorNiew(colorNiew *string) { + o.ColorNiew = colorNiew +} + +// WithColorNisw adds the colorNisw to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithColorNisw(colorNisw *string) *DcimRackRolesListParams { + o.SetColorNisw(colorNisw) + return o +} + +// SetColorNisw adds the colorNisw to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetColorNisw(colorNisw *string) { + o.ColorNisw = colorNisw +} + // WithID adds the id to the dcim rack roles list params func (o *DcimRackRolesListParams) WithID(id *string) *DcimRackRolesListParams { o.SetID(id) @@ -158,6 +320,61 @@ func (o *DcimRackRolesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithIDGt(iDGt *string) *DcimRackRolesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithIDGte(iDGte *string) *DcimRackRolesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithIDLt(iDLt *string) *DcimRackRolesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithIDLte(iDLte *string) *DcimRackRolesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithIDn(iDn *string) *DcimRackRolesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim rack roles list params func (o *DcimRackRolesListParams) WithLimit(limit *int64) *DcimRackRolesListParams { o.SetLimit(limit) @@ -180,6 +397,105 @@ func (o *DcimRackRolesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameIc(nameIc *string) *DcimRackRolesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameIe(nameIe *string) *DcimRackRolesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameIew(nameIew *string) *DcimRackRolesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameIsw(nameIsw *string) *DcimRackRolesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNamen(namen *string) *DcimRackRolesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameNic(nameNic *string) *DcimRackRolesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameNie(nameNie *string) *DcimRackRolesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameNiew(nameNiew *string) *DcimRackRolesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithNameNisw(nameNisw *string) *DcimRackRolesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim rack roles list params func (o *DcimRackRolesListParams) WithOffset(offset *int64) *DcimRackRolesListParams { o.SetOffset(offset) @@ -213,6 +529,105 @@ func (o *DcimRackRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugIc(slugIc *string) *DcimRackRolesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugIe(slugIe *string) *DcimRackRolesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugIew(slugIew *string) *DcimRackRolesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugIsw(slugIsw *string) *DcimRackRolesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugn(slugn *string) *DcimRackRolesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugNic(slugNic *string) *DcimRackRolesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugNie(slugNie *string) *DcimRackRolesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugNiew(slugNiew *string) *DcimRackRolesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim rack roles list params +func (o *DcimRackRolesListParams) WithSlugNisw(slugNisw *string) *DcimRackRolesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim rack roles list params +func (o *DcimRackRolesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -237,6 +652,150 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.ColorIc != nil { + + // query param color__ic + var qrColorIc string + if o.ColorIc != nil { + qrColorIc = *o.ColorIc + } + qColorIc := qrColorIc + if qColorIc != "" { + if err := r.SetQueryParam("color__ic", qColorIc); err != nil { + return err + } + } + + } + + if o.ColorIe != nil { + + // query param color__ie + var qrColorIe string + if o.ColorIe != nil { + qrColorIe = *o.ColorIe + } + qColorIe := qrColorIe + if qColorIe != "" { + if err := r.SetQueryParam("color__ie", qColorIe); err != nil { + return err + } + } + + } + + if o.ColorIew != nil { + + // query param color__iew + var qrColorIew string + if o.ColorIew != nil { + qrColorIew = *o.ColorIew + } + qColorIew := qrColorIew + if qColorIew != "" { + if err := r.SetQueryParam("color__iew", qColorIew); err != nil { + return err + } + } + + } + + if o.ColorIsw != nil { + + // query param color__isw + var qrColorIsw string + if o.ColorIsw != nil { + qrColorIsw = *o.ColorIsw + } + qColorIsw := qrColorIsw + if qColorIsw != "" { + if err := r.SetQueryParam("color__isw", qColorIsw); err != nil { + return err + } + } + + } + + if o.Colorn != nil { + + // query param color__n + var qrColorn string + if o.Colorn != nil { + qrColorn = *o.Colorn + } + qColorn := qrColorn + if qColorn != "" { + if err := r.SetQueryParam("color__n", qColorn); err != nil { + return err + } + } + + } + + if o.ColorNic != nil { + + // query param color__nic + var qrColorNic string + if o.ColorNic != nil { + qrColorNic = *o.ColorNic + } + qColorNic := qrColorNic + if qColorNic != "" { + if err := r.SetQueryParam("color__nic", qColorNic); err != nil { + return err + } + } + + } + + if o.ColorNie != nil { + + // query param color__nie + var qrColorNie string + if o.ColorNie != nil { + qrColorNie = *o.ColorNie + } + qColorNie := qrColorNie + if qColorNie != "" { + if err := r.SetQueryParam("color__nie", qColorNie); err != nil { + return err + } + } + + } + + if o.ColorNiew != nil { + + // query param color__niew + var qrColorNiew string + if o.ColorNiew != nil { + qrColorNiew = *o.ColorNiew + } + qColorNiew := qrColorNiew + if qColorNiew != "" { + if err := r.SetQueryParam("color__niew", qColorNiew); err != nil { + return err + } + } + + } + + if o.ColorNisw != nil { + + // query param color__nisw + var qrColorNisw string + if o.ColorNisw != nil { + qrColorNisw = *o.ColorNisw + } + qColorNisw := qrColorNisw + if qColorNisw != "" { + if err := r.SetQueryParam("color__nisw", qColorNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -253,6 +812,86 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -285,6 +924,150 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -333,6 +1116,150 @@ func (o *DcimRackRolesListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_responses.go index 3e50624e5..43f8d5016 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackRolesListReader is a Reader for the DcimRackRolesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_parameters.go index 828babbbc..0d4bb6153 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackRolesPartialUpdateParams creates a new DcimRackRolesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_responses.go index 959341d3e..4039418a7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackRolesPartialUpdateReader is a Reader for the DcimRackRolesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_parameters.go index 33191d601..172804361 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRackRolesReadParams creates a new DcimRackRolesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_responses.go index dd17ccf7a..4de3fa666 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackRolesReadReader is a Reader for the DcimRackRolesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_parameters.go index e92341e89..90efc5357 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRackRolesUpdateParams creates a new DcimRackRolesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_responses.go index 032ff457b..0e1e11f2c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rack_roles_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRackRolesUpdateReader is a Reader for the DcimRackRolesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_parameters.go index 311c7a1df..c96d14106 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRacksCreateParams creates a new DcimRacksCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_responses.go index ddcd2c909..08e6f675e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRacksCreateReader is a Reader for the DcimRacksCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_parameters.go index ee508d613..9e46f8930 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRacksDeleteParams creates a new DcimRacksDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_responses.go index 43795f259..9d651b067 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRacksDeleteReader is a Reader for the DcimRacksDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_parameters.go index 5430b67b4..9eb122999 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRacksElevationParams creates a new DcimRacksElevationParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_responses.go index 1c7a1dcdd..0b78a4060 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_elevation_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRacksElevationReader is a Reader for the DcimRacksElevation structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go index 032af1ac5..b2523d66f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRacksListParams creates a new DcimRacksListParams object @@ -79,6 +78,24 @@ type DcimRacksListParams struct { /*AssetTag*/ AssetTag *string + /*AssetTagIc*/ + AssetTagIc *string + /*AssetTagIe*/ + AssetTagIe *string + /*AssetTagIew*/ + AssetTagIew *string + /*AssetTagIsw*/ + AssetTagIsw *string + /*AssetTagn*/ + AssetTagn *string + /*AssetTagNic*/ + AssetTagNic *string + /*AssetTagNie*/ + AssetTagNie *string + /*AssetTagNiew*/ + AssetTagNiew *string + /*AssetTagNisw*/ + AssetTagNisw *string /*Created*/ Created *string /*CreatedGte*/ @@ -89,17 +106,44 @@ type DcimRacksListParams struct { DescUnits *string /*FacilityID*/ FacilityID *string + /*FacilityIDIc*/ + FacilityIDIc *string + /*FacilityIDIe*/ + FacilityIDIe *string + /*FacilityIDIew*/ + FacilityIDIew *string + /*FacilityIDIsw*/ + FacilityIDIsw *string + /*FacilityIDn*/ + FacilityIDn *string + /*FacilityIDNic*/ + FacilityIDNic *string + /*FacilityIDNie*/ + FacilityIDNie *string + /*FacilityIDNiew*/ + FacilityIDNiew *string + /*FacilityIDNisw*/ + FacilityIDNisw *string /*Group*/ Group *string + /*Groupn*/ + Groupn *string /*GroupID*/ GroupID *string + /*GroupIDn*/ + GroupIDn *string /*ID*/ ID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -113,6 +157,24 @@ type DcimRacksListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -120,44 +182,104 @@ type DcimRacksListParams struct { Offset *int64 /*OuterDepth*/ OuterDepth *string + /*OuterDepthGt*/ + OuterDepthGt *string + /*OuterDepthGte*/ + OuterDepthGte *string + /*OuterDepthLt*/ + OuterDepthLt *string + /*OuterDepthLte*/ + OuterDepthLte *string + /*OuterDepthn*/ + OuterDepthn *string /*OuterUnit*/ OuterUnit *string + /*OuterUnitn*/ + OuterUnitn *string /*OuterWidth*/ OuterWidth *string + /*OuterWidthGt*/ + OuterWidthGt *string + /*OuterWidthGte*/ + OuterWidthGte *string + /*OuterWidthLt*/ + OuterWidthLt *string + /*OuterWidthLte*/ + OuterWidthLte *string + /*OuterWidthn*/ + OuterWidthn *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Serial*/ Serial *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*Type*/ Type *string + /*Typen*/ + Typen *string /*UHeight*/ UHeight *string + /*UHeightGt*/ + UHeightGt *string + /*UHeightGte*/ + UHeightGte *string + /*UHeightLt*/ + UHeightLt *string + /*UHeightLte*/ + UHeightLte *string + /*UHeightn*/ + UHeightn *string /*Width*/ Width *string + /*Widthn*/ + Widthn *string timeout time.Duration Context context.Context @@ -208,6 +330,105 @@ func (o *DcimRacksListParams) SetAssetTag(assetTag *string) { o.AssetTag = assetTag } +// WithAssetTagIc adds the assetTagIc to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagIc(assetTagIc *string) *DcimRacksListParams { + o.SetAssetTagIc(assetTagIc) + return o +} + +// SetAssetTagIc adds the assetTagIc to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagIc(assetTagIc *string) { + o.AssetTagIc = assetTagIc +} + +// WithAssetTagIe adds the assetTagIe to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagIe(assetTagIe *string) *DcimRacksListParams { + o.SetAssetTagIe(assetTagIe) + return o +} + +// SetAssetTagIe adds the assetTagIe to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagIe(assetTagIe *string) { + o.AssetTagIe = assetTagIe +} + +// WithAssetTagIew adds the assetTagIew to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagIew(assetTagIew *string) *DcimRacksListParams { + o.SetAssetTagIew(assetTagIew) + return o +} + +// SetAssetTagIew adds the assetTagIew to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagIew(assetTagIew *string) { + o.AssetTagIew = assetTagIew +} + +// WithAssetTagIsw adds the assetTagIsw to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagIsw(assetTagIsw *string) *DcimRacksListParams { + o.SetAssetTagIsw(assetTagIsw) + return o +} + +// SetAssetTagIsw adds the assetTagIsw to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagIsw(assetTagIsw *string) { + o.AssetTagIsw = assetTagIsw +} + +// WithAssetTagn adds the assetTagn to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagn(assetTagn *string) *DcimRacksListParams { + o.SetAssetTagn(assetTagn) + return o +} + +// SetAssetTagn adds the assetTagN to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagn(assetTagn *string) { + o.AssetTagn = assetTagn +} + +// WithAssetTagNic adds the assetTagNic to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagNic(assetTagNic *string) *DcimRacksListParams { + o.SetAssetTagNic(assetTagNic) + return o +} + +// SetAssetTagNic adds the assetTagNic to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagNic(assetTagNic *string) { + o.AssetTagNic = assetTagNic +} + +// WithAssetTagNie adds the assetTagNie to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagNie(assetTagNie *string) *DcimRacksListParams { + o.SetAssetTagNie(assetTagNie) + return o +} + +// SetAssetTagNie adds the assetTagNie to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagNie(assetTagNie *string) { + o.AssetTagNie = assetTagNie +} + +// WithAssetTagNiew adds the assetTagNiew to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagNiew(assetTagNiew *string) *DcimRacksListParams { + o.SetAssetTagNiew(assetTagNiew) + return o +} + +// SetAssetTagNiew adds the assetTagNiew to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagNiew(assetTagNiew *string) { + o.AssetTagNiew = assetTagNiew +} + +// WithAssetTagNisw adds the assetTagNisw to the dcim racks list params +func (o *DcimRacksListParams) WithAssetTagNisw(assetTagNisw *string) *DcimRacksListParams { + o.SetAssetTagNisw(assetTagNisw) + return o +} + +// SetAssetTagNisw adds the assetTagNisw to the dcim racks list params +func (o *DcimRacksListParams) SetAssetTagNisw(assetTagNisw *string) { + o.AssetTagNisw = assetTagNisw +} + // WithCreated adds the created to the dcim racks list params func (o *DcimRacksListParams) WithCreated(created *string) *DcimRacksListParams { o.SetCreated(created) @@ -263,6 +484,105 @@ func (o *DcimRacksListParams) SetFacilityID(facilityID *string) { o.FacilityID = facilityID } +// WithFacilityIDIc adds the facilityIDIc to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDIc(facilityIDIc *string) *DcimRacksListParams { + o.SetFacilityIDIc(facilityIDIc) + return o +} + +// SetFacilityIDIc adds the facilityIdIc to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDIc(facilityIDIc *string) { + o.FacilityIDIc = facilityIDIc +} + +// WithFacilityIDIe adds the facilityIDIe to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDIe(facilityIDIe *string) *DcimRacksListParams { + o.SetFacilityIDIe(facilityIDIe) + return o +} + +// SetFacilityIDIe adds the facilityIdIe to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDIe(facilityIDIe *string) { + o.FacilityIDIe = facilityIDIe +} + +// WithFacilityIDIew adds the facilityIDIew to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDIew(facilityIDIew *string) *DcimRacksListParams { + o.SetFacilityIDIew(facilityIDIew) + return o +} + +// SetFacilityIDIew adds the facilityIdIew to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDIew(facilityIDIew *string) { + o.FacilityIDIew = facilityIDIew +} + +// WithFacilityIDIsw adds the facilityIDIsw to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDIsw(facilityIDIsw *string) *DcimRacksListParams { + o.SetFacilityIDIsw(facilityIDIsw) + return o +} + +// SetFacilityIDIsw adds the facilityIdIsw to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDIsw(facilityIDIsw *string) { + o.FacilityIDIsw = facilityIDIsw +} + +// WithFacilityIDn adds the facilityIDn to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDn(facilityIDn *string) *DcimRacksListParams { + o.SetFacilityIDn(facilityIDn) + return o +} + +// SetFacilityIDn adds the facilityIdN to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDn(facilityIDn *string) { + o.FacilityIDn = facilityIDn +} + +// WithFacilityIDNic adds the facilityIDNic to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDNic(facilityIDNic *string) *DcimRacksListParams { + o.SetFacilityIDNic(facilityIDNic) + return o +} + +// SetFacilityIDNic adds the facilityIdNic to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDNic(facilityIDNic *string) { + o.FacilityIDNic = facilityIDNic +} + +// WithFacilityIDNie adds the facilityIDNie to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDNie(facilityIDNie *string) *DcimRacksListParams { + o.SetFacilityIDNie(facilityIDNie) + return o +} + +// SetFacilityIDNie adds the facilityIdNie to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDNie(facilityIDNie *string) { + o.FacilityIDNie = facilityIDNie +} + +// WithFacilityIDNiew adds the facilityIDNiew to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDNiew(facilityIDNiew *string) *DcimRacksListParams { + o.SetFacilityIDNiew(facilityIDNiew) + return o +} + +// SetFacilityIDNiew adds the facilityIdNiew to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDNiew(facilityIDNiew *string) { + o.FacilityIDNiew = facilityIDNiew +} + +// WithFacilityIDNisw adds the facilityIDNisw to the dcim racks list params +func (o *DcimRacksListParams) WithFacilityIDNisw(facilityIDNisw *string) *DcimRacksListParams { + o.SetFacilityIDNisw(facilityIDNisw) + return o +} + +// SetFacilityIDNisw adds the facilityIdNisw to the dcim racks list params +func (o *DcimRacksListParams) SetFacilityIDNisw(facilityIDNisw *string) { + o.FacilityIDNisw = facilityIDNisw +} + // WithGroup adds the group to the dcim racks list params func (o *DcimRacksListParams) WithGroup(group *string) *DcimRacksListParams { o.SetGroup(group) @@ -274,6 +594,17 @@ func (o *DcimRacksListParams) SetGroup(group *string) { o.Group = group } +// WithGroupn adds the groupn to the dcim racks list params +func (o *DcimRacksListParams) WithGroupn(groupn *string) *DcimRacksListParams { + o.SetGroupn(groupn) + return o +} + +// SetGroupn adds the groupN to the dcim racks list params +func (o *DcimRacksListParams) SetGroupn(groupn *string) { + o.Groupn = groupn +} + // WithGroupID adds the groupID to the dcim racks list params func (o *DcimRacksListParams) WithGroupID(groupID *string) *DcimRacksListParams { o.SetGroupID(groupID) @@ -285,6 +616,17 @@ func (o *DcimRacksListParams) SetGroupID(groupID *string) { o.GroupID = groupID } +// WithGroupIDn adds the groupIDn to the dcim racks list params +func (o *DcimRacksListParams) WithGroupIDn(groupIDn *string) *DcimRacksListParams { + o.SetGroupIDn(groupIDn) + return o +} + +// SetGroupIDn adds the groupIdN to the dcim racks list params +func (o *DcimRacksListParams) SetGroupIDn(groupIDn *string) { + o.GroupIDn = groupIDn +} + // WithID adds the id to the dcim racks list params func (o *DcimRacksListParams) WithID(id *string) *DcimRacksListParams { o.SetID(id) @@ -296,15 +638,59 @@ func (o *DcimRacksListParams) SetID(id *string) { o.ID = id } -// WithIDIn adds the iDIn to the dcim racks list params -func (o *DcimRacksListParams) WithIDIn(iDIn *string) *DcimRacksListParams { - o.SetIDIn(iDIn) +// WithIDGt adds the iDGt to the dcim racks list params +func (o *DcimRacksListParams) WithIDGt(iDGt *string) *DcimRacksListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim racks list params +func (o *DcimRacksListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim racks list params +func (o *DcimRacksListParams) WithIDGte(iDGte *string) *DcimRacksListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim racks list params +func (o *DcimRacksListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim racks list params +func (o *DcimRacksListParams) WithIDLt(iDLt *string) *DcimRacksListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim racks list params +func (o *DcimRacksListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim racks list params +func (o *DcimRacksListParams) WithIDLte(iDLte *string) *DcimRacksListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim racks list params +func (o *DcimRacksListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim racks list params +func (o *DcimRacksListParams) WithIDn(iDn *string) *DcimRacksListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the dcim racks list params -func (o *DcimRacksListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the dcim racks list params +func (o *DcimRacksListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the dcim racks list params @@ -362,6 +748,105 @@ func (o *DcimRacksListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim racks list params +func (o *DcimRacksListParams) WithNameIc(nameIc *string) *DcimRacksListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim racks list params +func (o *DcimRacksListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim racks list params +func (o *DcimRacksListParams) WithNameIe(nameIe *string) *DcimRacksListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim racks list params +func (o *DcimRacksListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim racks list params +func (o *DcimRacksListParams) WithNameIew(nameIew *string) *DcimRacksListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim racks list params +func (o *DcimRacksListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim racks list params +func (o *DcimRacksListParams) WithNameIsw(nameIsw *string) *DcimRacksListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim racks list params +func (o *DcimRacksListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim racks list params +func (o *DcimRacksListParams) WithNamen(namen *string) *DcimRacksListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim racks list params +func (o *DcimRacksListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim racks list params +func (o *DcimRacksListParams) WithNameNic(nameNic *string) *DcimRacksListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim racks list params +func (o *DcimRacksListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim racks list params +func (o *DcimRacksListParams) WithNameNie(nameNie *string) *DcimRacksListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim racks list params +func (o *DcimRacksListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim racks list params +func (o *DcimRacksListParams) WithNameNiew(nameNiew *string) *DcimRacksListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim racks list params +func (o *DcimRacksListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim racks list params +func (o *DcimRacksListParams) WithNameNisw(nameNisw *string) *DcimRacksListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim racks list params +func (o *DcimRacksListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim racks list params func (o *DcimRacksListParams) WithOffset(offset *int64) *DcimRacksListParams { o.SetOffset(offset) @@ -384,6 +869,61 @@ func (o *DcimRacksListParams) SetOuterDepth(outerDepth *string) { o.OuterDepth = outerDepth } +// WithOuterDepthGt adds the outerDepthGt to the dcim racks list params +func (o *DcimRacksListParams) WithOuterDepthGt(outerDepthGt *string) *DcimRacksListParams { + o.SetOuterDepthGt(outerDepthGt) + return o +} + +// SetOuterDepthGt adds the outerDepthGt to the dcim racks list params +func (o *DcimRacksListParams) SetOuterDepthGt(outerDepthGt *string) { + o.OuterDepthGt = outerDepthGt +} + +// WithOuterDepthGte adds the outerDepthGte to the dcim racks list params +func (o *DcimRacksListParams) WithOuterDepthGte(outerDepthGte *string) *DcimRacksListParams { + o.SetOuterDepthGte(outerDepthGte) + return o +} + +// SetOuterDepthGte adds the outerDepthGte to the dcim racks list params +func (o *DcimRacksListParams) SetOuterDepthGte(outerDepthGte *string) { + o.OuterDepthGte = outerDepthGte +} + +// WithOuterDepthLt adds the outerDepthLt to the dcim racks list params +func (o *DcimRacksListParams) WithOuterDepthLt(outerDepthLt *string) *DcimRacksListParams { + o.SetOuterDepthLt(outerDepthLt) + return o +} + +// SetOuterDepthLt adds the outerDepthLt to the dcim racks list params +func (o *DcimRacksListParams) SetOuterDepthLt(outerDepthLt *string) { + o.OuterDepthLt = outerDepthLt +} + +// WithOuterDepthLte adds the outerDepthLte to the dcim racks list params +func (o *DcimRacksListParams) WithOuterDepthLte(outerDepthLte *string) *DcimRacksListParams { + o.SetOuterDepthLte(outerDepthLte) + return o +} + +// SetOuterDepthLte adds the outerDepthLte to the dcim racks list params +func (o *DcimRacksListParams) SetOuterDepthLte(outerDepthLte *string) { + o.OuterDepthLte = outerDepthLte +} + +// WithOuterDepthn adds the outerDepthn to the dcim racks list params +func (o *DcimRacksListParams) WithOuterDepthn(outerDepthn *string) *DcimRacksListParams { + o.SetOuterDepthn(outerDepthn) + return o +} + +// SetOuterDepthn adds the outerDepthN to the dcim racks list params +func (o *DcimRacksListParams) SetOuterDepthn(outerDepthn *string) { + o.OuterDepthn = outerDepthn +} + // WithOuterUnit adds the outerUnit to the dcim racks list params func (o *DcimRacksListParams) WithOuterUnit(outerUnit *string) *DcimRacksListParams { o.SetOuterUnit(outerUnit) @@ -395,6 +935,17 @@ func (o *DcimRacksListParams) SetOuterUnit(outerUnit *string) { o.OuterUnit = outerUnit } +// WithOuterUnitn adds the outerUnitn to the dcim racks list params +func (o *DcimRacksListParams) WithOuterUnitn(outerUnitn *string) *DcimRacksListParams { + o.SetOuterUnitn(outerUnitn) + return o +} + +// SetOuterUnitn adds the outerUnitN to the dcim racks list params +func (o *DcimRacksListParams) SetOuterUnitn(outerUnitn *string) { + o.OuterUnitn = outerUnitn +} + // WithOuterWidth adds the outerWidth to the dcim racks list params func (o *DcimRacksListParams) WithOuterWidth(outerWidth *string) *DcimRacksListParams { o.SetOuterWidth(outerWidth) @@ -406,6 +957,61 @@ func (o *DcimRacksListParams) SetOuterWidth(outerWidth *string) { o.OuterWidth = outerWidth } +// WithOuterWidthGt adds the outerWidthGt to the dcim racks list params +func (o *DcimRacksListParams) WithOuterWidthGt(outerWidthGt *string) *DcimRacksListParams { + o.SetOuterWidthGt(outerWidthGt) + return o +} + +// SetOuterWidthGt adds the outerWidthGt to the dcim racks list params +func (o *DcimRacksListParams) SetOuterWidthGt(outerWidthGt *string) { + o.OuterWidthGt = outerWidthGt +} + +// WithOuterWidthGte adds the outerWidthGte to the dcim racks list params +func (o *DcimRacksListParams) WithOuterWidthGte(outerWidthGte *string) *DcimRacksListParams { + o.SetOuterWidthGte(outerWidthGte) + return o +} + +// SetOuterWidthGte adds the outerWidthGte to the dcim racks list params +func (o *DcimRacksListParams) SetOuterWidthGte(outerWidthGte *string) { + o.OuterWidthGte = outerWidthGte +} + +// WithOuterWidthLt adds the outerWidthLt to the dcim racks list params +func (o *DcimRacksListParams) WithOuterWidthLt(outerWidthLt *string) *DcimRacksListParams { + o.SetOuterWidthLt(outerWidthLt) + return o +} + +// SetOuterWidthLt adds the outerWidthLt to the dcim racks list params +func (o *DcimRacksListParams) SetOuterWidthLt(outerWidthLt *string) { + o.OuterWidthLt = outerWidthLt +} + +// WithOuterWidthLte adds the outerWidthLte to the dcim racks list params +func (o *DcimRacksListParams) WithOuterWidthLte(outerWidthLte *string) *DcimRacksListParams { + o.SetOuterWidthLte(outerWidthLte) + return o +} + +// SetOuterWidthLte adds the outerWidthLte to the dcim racks list params +func (o *DcimRacksListParams) SetOuterWidthLte(outerWidthLte *string) { + o.OuterWidthLte = outerWidthLte +} + +// WithOuterWidthn adds the outerWidthn to the dcim racks list params +func (o *DcimRacksListParams) WithOuterWidthn(outerWidthn *string) *DcimRacksListParams { + o.SetOuterWidthn(outerWidthn) + return o +} + +// SetOuterWidthn adds the outerWidthN to the dcim racks list params +func (o *DcimRacksListParams) SetOuterWidthn(outerWidthn *string) { + o.OuterWidthn = outerWidthn +} + // WithQ adds the q to the dcim racks list params func (o *DcimRacksListParams) WithQ(q *string) *DcimRacksListParams { o.SetQ(q) @@ -428,6 +1034,17 @@ func (o *DcimRacksListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim racks list params +func (o *DcimRacksListParams) WithRegionn(regionn *string) *DcimRacksListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim racks list params +func (o *DcimRacksListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim racks list params func (o *DcimRacksListParams) WithRegionID(regionID *string) *DcimRacksListParams { o.SetRegionID(regionID) @@ -439,6 +1056,17 @@ func (o *DcimRacksListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim racks list params +func (o *DcimRacksListParams) WithRegionIDn(regionIDn *string) *DcimRacksListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim racks list params +func (o *DcimRacksListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithRole adds the role to the dcim racks list params func (o *DcimRacksListParams) WithRole(role *string) *DcimRacksListParams { o.SetRole(role) @@ -450,6 +1078,17 @@ func (o *DcimRacksListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the dcim racks list params +func (o *DcimRacksListParams) WithRolen(rolen *string) *DcimRacksListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the dcim racks list params +func (o *DcimRacksListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the dcim racks list params func (o *DcimRacksListParams) WithRoleID(roleID *string) *DcimRacksListParams { o.SetRoleID(roleID) @@ -461,6 +1100,17 @@ func (o *DcimRacksListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the dcim racks list params +func (o *DcimRacksListParams) WithRoleIDn(roleIDn *string) *DcimRacksListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the dcim racks list params +func (o *DcimRacksListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSerial adds the serial to the dcim racks list params func (o *DcimRacksListParams) WithSerial(serial *string) *DcimRacksListParams { o.SetSerial(serial) @@ -483,6 +1133,17 @@ func (o *DcimRacksListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim racks list params +func (o *DcimRacksListParams) WithSiten(siten *string) *DcimRacksListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim racks list params +func (o *DcimRacksListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim racks list params func (o *DcimRacksListParams) WithSiteID(siteID *string) *DcimRacksListParams { o.SetSiteID(siteID) @@ -494,6 +1155,17 @@ func (o *DcimRacksListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim racks list params +func (o *DcimRacksListParams) WithSiteIDn(siteIDn *string) *DcimRacksListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim racks list params +func (o *DcimRacksListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the dcim racks list params func (o *DcimRacksListParams) WithStatus(status *string) *DcimRacksListParams { o.SetStatus(status) @@ -505,9 +1177,20 @@ func (o *DcimRacksListParams) SetStatus(status *string) { o.Status = status } -// WithTag adds the tag to the dcim racks list params -func (o *DcimRacksListParams) WithTag(tag *string) *DcimRacksListParams { - o.SetTag(tag) +// WithStatusn adds the statusn to the dcim racks list params +func (o *DcimRacksListParams) WithStatusn(statusn *string) *DcimRacksListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim racks list params +func (o *DcimRacksListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + +// WithTag adds the tag to the dcim racks list params +func (o *DcimRacksListParams) WithTag(tag *string) *DcimRacksListParams { + o.SetTag(tag) return o } @@ -516,6 +1199,17 @@ func (o *DcimRacksListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim racks list params +func (o *DcimRacksListParams) WithTagn(tagn *string) *DcimRacksListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim racks list params +func (o *DcimRacksListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the dcim racks list params func (o *DcimRacksListParams) WithTenant(tenant *string) *DcimRacksListParams { o.SetTenant(tenant) @@ -527,6 +1221,17 @@ func (o *DcimRacksListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the dcim racks list params +func (o *DcimRacksListParams) WithTenantn(tenantn *string) *DcimRacksListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the dcim racks list params +func (o *DcimRacksListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the dcim racks list params func (o *DcimRacksListParams) WithTenantGroup(tenantGroup *string) *DcimRacksListParams { o.SetTenantGroup(tenantGroup) @@ -538,6 +1243,17 @@ func (o *DcimRacksListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the dcim racks list params +func (o *DcimRacksListParams) WithTenantGroupn(tenantGroupn *string) *DcimRacksListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the dcim racks list params +func (o *DcimRacksListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the dcim racks list params func (o *DcimRacksListParams) WithTenantGroupID(tenantGroupID *string) *DcimRacksListParams { o.SetTenantGroupID(tenantGroupID) @@ -549,6 +1265,17 @@ func (o *DcimRacksListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the dcim racks list params +func (o *DcimRacksListParams) WithTenantGroupIDn(tenantGroupIDn *string) *DcimRacksListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the dcim racks list params +func (o *DcimRacksListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the dcim racks list params func (o *DcimRacksListParams) WithTenantID(tenantID *string) *DcimRacksListParams { o.SetTenantID(tenantID) @@ -560,6 +1287,17 @@ func (o *DcimRacksListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the dcim racks list params +func (o *DcimRacksListParams) WithTenantIDn(tenantIDn *string) *DcimRacksListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the dcim racks list params +func (o *DcimRacksListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithType adds the typeVar to the dcim racks list params func (o *DcimRacksListParams) WithType(typeVar *string) *DcimRacksListParams { o.SetType(typeVar) @@ -571,6 +1309,17 @@ func (o *DcimRacksListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim racks list params +func (o *DcimRacksListParams) WithTypen(typen *string) *DcimRacksListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim racks list params +func (o *DcimRacksListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WithUHeight adds the uHeight to the dcim racks list params func (o *DcimRacksListParams) WithUHeight(uHeight *string) *DcimRacksListParams { o.SetUHeight(uHeight) @@ -582,6 +1331,61 @@ func (o *DcimRacksListParams) SetUHeight(uHeight *string) { o.UHeight = uHeight } +// WithUHeightGt adds the uHeightGt to the dcim racks list params +func (o *DcimRacksListParams) WithUHeightGt(uHeightGt *string) *DcimRacksListParams { + o.SetUHeightGt(uHeightGt) + return o +} + +// SetUHeightGt adds the uHeightGt to the dcim racks list params +func (o *DcimRacksListParams) SetUHeightGt(uHeightGt *string) { + o.UHeightGt = uHeightGt +} + +// WithUHeightGte adds the uHeightGte to the dcim racks list params +func (o *DcimRacksListParams) WithUHeightGte(uHeightGte *string) *DcimRacksListParams { + o.SetUHeightGte(uHeightGte) + return o +} + +// SetUHeightGte adds the uHeightGte to the dcim racks list params +func (o *DcimRacksListParams) SetUHeightGte(uHeightGte *string) { + o.UHeightGte = uHeightGte +} + +// WithUHeightLt adds the uHeightLt to the dcim racks list params +func (o *DcimRacksListParams) WithUHeightLt(uHeightLt *string) *DcimRacksListParams { + o.SetUHeightLt(uHeightLt) + return o +} + +// SetUHeightLt adds the uHeightLt to the dcim racks list params +func (o *DcimRacksListParams) SetUHeightLt(uHeightLt *string) { + o.UHeightLt = uHeightLt +} + +// WithUHeightLte adds the uHeightLte to the dcim racks list params +func (o *DcimRacksListParams) WithUHeightLte(uHeightLte *string) *DcimRacksListParams { + o.SetUHeightLte(uHeightLte) + return o +} + +// SetUHeightLte adds the uHeightLte to the dcim racks list params +func (o *DcimRacksListParams) SetUHeightLte(uHeightLte *string) { + o.UHeightLte = uHeightLte +} + +// WithUHeightn adds the uHeightn to the dcim racks list params +func (o *DcimRacksListParams) WithUHeightn(uHeightn *string) *DcimRacksListParams { + o.SetUHeightn(uHeightn) + return o +} + +// SetUHeightn adds the uHeightN to the dcim racks list params +func (o *DcimRacksListParams) SetUHeightn(uHeightn *string) { + o.UHeightn = uHeightn +} + // WithWidth adds the width to the dcim racks list params func (o *DcimRacksListParams) WithWidth(width *string) *DcimRacksListParams { o.SetWidth(width) @@ -593,6 +1397,17 @@ func (o *DcimRacksListParams) SetWidth(width *string) { o.Width = width } +// WithWidthn adds the widthn to the dcim racks list params +func (o *DcimRacksListParams) WithWidthn(widthn *string) *DcimRacksListParams { + o.SetWidthn(widthn) + return o +} + +// SetWidthn adds the widthN to the dcim racks list params +func (o *DcimRacksListParams) SetWidthn(widthn *string) { + o.Widthn = widthn +} + // WriteToRequest writes these params to a swagger request func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -617,6 +1432,150 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.AssetTagIc != nil { + + // query param asset_tag__ic + var qrAssetTagIc string + if o.AssetTagIc != nil { + qrAssetTagIc = *o.AssetTagIc + } + qAssetTagIc := qrAssetTagIc + if qAssetTagIc != "" { + if err := r.SetQueryParam("asset_tag__ic", qAssetTagIc); err != nil { + return err + } + } + + } + + if o.AssetTagIe != nil { + + // query param asset_tag__ie + var qrAssetTagIe string + if o.AssetTagIe != nil { + qrAssetTagIe = *o.AssetTagIe + } + qAssetTagIe := qrAssetTagIe + if qAssetTagIe != "" { + if err := r.SetQueryParam("asset_tag__ie", qAssetTagIe); err != nil { + return err + } + } + + } + + if o.AssetTagIew != nil { + + // query param asset_tag__iew + var qrAssetTagIew string + if o.AssetTagIew != nil { + qrAssetTagIew = *o.AssetTagIew + } + qAssetTagIew := qrAssetTagIew + if qAssetTagIew != "" { + if err := r.SetQueryParam("asset_tag__iew", qAssetTagIew); err != nil { + return err + } + } + + } + + if o.AssetTagIsw != nil { + + // query param asset_tag__isw + var qrAssetTagIsw string + if o.AssetTagIsw != nil { + qrAssetTagIsw = *o.AssetTagIsw + } + qAssetTagIsw := qrAssetTagIsw + if qAssetTagIsw != "" { + if err := r.SetQueryParam("asset_tag__isw", qAssetTagIsw); err != nil { + return err + } + } + + } + + if o.AssetTagn != nil { + + // query param asset_tag__n + var qrAssetTagn string + if o.AssetTagn != nil { + qrAssetTagn = *o.AssetTagn + } + qAssetTagn := qrAssetTagn + if qAssetTagn != "" { + if err := r.SetQueryParam("asset_tag__n", qAssetTagn); err != nil { + return err + } + } + + } + + if o.AssetTagNic != nil { + + // query param asset_tag__nic + var qrAssetTagNic string + if o.AssetTagNic != nil { + qrAssetTagNic = *o.AssetTagNic + } + qAssetTagNic := qrAssetTagNic + if qAssetTagNic != "" { + if err := r.SetQueryParam("asset_tag__nic", qAssetTagNic); err != nil { + return err + } + } + + } + + if o.AssetTagNie != nil { + + // query param asset_tag__nie + var qrAssetTagNie string + if o.AssetTagNie != nil { + qrAssetTagNie = *o.AssetTagNie + } + qAssetTagNie := qrAssetTagNie + if qAssetTagNie != "" { + if err := r.SetQueryParam("asset_tag__nie", qAssetTagNie); err != nil { + return err + } + } + + } + + if o.AssetTagNiew != nil { + + // query param asset_tag__niew + var qrAssetTagNiew string + if o.AssetTagNiew != nil { + qrAssetTagNiew = *o.AssetTagNiew + } + qAssetTagNiew := qrAssetTagNiew + if qAssetTagNiew != "" { + if err := r.SetQueryParam("asset_tag__niew", qAssetTagNiew); err != nil { + return err + } + } + + } + + if o.AssetTagNisw != nil { + + // query param asset_tag__nisw + var qrAssetTagNisw string + if o.AssetTagNisw != nil { + qrAssetTagNisw = *o.AssetTagNisw + } + qAssetTagNisw := qrAssetTagNisw + if qAssetTagNisw != "" { + if err := r.SetQueryParam("asset_tag__nisw", qAssetTagNisw); err != nil { + return err + } + } + + } + if o.Created != nil { // query param created @@ -697,6 +1656,150 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.FacilityIDIc != nil { + + // query param facility_id__ic + var qrFacilityIDIc string + if o.FacilityIDIc != nil { + qrFacilityIDIc = *o.FacilityIDIc + } + qFacilityIDIc := qrFacilityIDIc + if qFacilityIDIc != "" { + if err := r.SetQueryParam("facility_id__ic", qFacilityIDIc); err != nil { + return err + } + } + + } + + if o.FacilityIDIe != nil { + + // query param facility_id__ie + var qrFacilityIDIe string + if o.FacilityIDIe != nil { + qrFacilityIDIe = *o.FacilityIDIe + } + qFacilityIDIe := qrFacilityIDIe + if qFacilityIDIe != "" { + if err := r.SetQueryParam("facility_id__ie", qFacilityIDIe); err != nil { + return err + } + } + + } + + if o.FacilityIDIew != nil { + + // query param facility_id__iew + var qrFacilityIDIew string + if o.FacilityIDIew != nil { + qrFacilityIDIew = *o.FacilityIDIew + } + qFacilityIDIew := qrFacilityIDIew + if qFacilityIDIew != "" { + if err := r.SetQueryParam("facility_id__iew", qFacilityIDIew); err != nil { + return err + } + } + + } + + if o.FacilityIDIsw != nil { + + // query param facility_id__isw + var qrFacilityIDIsw string + if o.FacilityIDIsw != nil { + qrFacilityIDIsw = *o.FacilityIDIsw + } + qFacilityIDIsw := qrFacilityIDIsw + if qFacilityIDIsw != "" { + if err := r.SetQueryParam("facility_id__isw", qFacilityIDIsw); err != nil { + return err + } + } + + } + + if o.FacilityIDn != nil { + + // query param facility_id__n + var qrFacilityIDn string + if o.FacilityIDn != nil { + qrFacilityIDn = *o.FacilityIDn + } + qFacilityIDn := qrFacilityIDn + if qFacilityIDn != "" { + if err := r.SetQueryParam("facility_id__n", qFacilityIDn); err != nil { + return err + } + } + + } + + if o.FacilityIDNic != nil { + + // query param facility_id__nic + var qrFacilityIDNic string + if o.FacilityIDNic != nil { + qrFacilityIDNic = *o.FacilityIDNic + } + qFacilityIDNic := qrFacilityIDNic + if qFacilityIDNic != "" { + if err := r.SetQueryParam("facility_id__nic", qFacilityIDNic); err != nil { + return err + } + } + + } + + if o.FacilityIDNie != nil { + + // query param facility_id__nie + var qrFacilityIDNie string + if o.FacilityIDNie != nil { + qrFacilityIDNie = *o.FacilityIDNie + } + qFacilityIDNie := qrFacilityIDNie + if qFacilityIDNie != "" { + if err := r.SetQueryParam("facility_id__nie", qFacilityIDNie); err != nil { + return err + } + } + + } + + if o.FacilityIDNiew != nil { + + // query param facility_id__niew + var qrFacilityIDNiew string + if o.FacilityIDNiew != nil { + qrFacilityIDNiew = *o.FacilityIDNiew + } + qFacilityIDNiew := qrFacilityIDNiew + if qFacilityIDNiew != "" { + if err := r.SetQueryParam("facility_id__niew", qFacilityIDNiew); err != nil { + return err + } + } + + } + + if o.FacilityIDNisw != nil { + + // query param facility_id__nisw + var qrFacilityIDNisw string + if o.FacilityIDNisw != nil { + qrFacilityIDNisw = *o.FacilityIDNisw + } + qFacilityIDNisw := qrFacilityIDNisw + if qFacilityIDNisw != "" { + if err := r.SetQueryParam("facility_id__nisw", qFacilityIDNisw); err != nil { + return err + } + } + + } + if o.Group != nil { // query param group @@ -713,192 +1816,608 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } - if o.GroupID != nil { + if o.Groupn != nil { + + // query param group__n + var qrGroupn string + if o.Groupn != nil { + qrGroupn = *o.Groupn + } + qGroupn := qrGroupn + if qGroupn != "" { + if err := r.SetQueryParam("group__n", qGroupn); err != nil { + return err + } + } + + } + + if o.GroupID != nil { + + // query param group_id + var qrGroupID string + if o.GroupID != nil { + qrGroupID = *o.GroupID + } + qGroupID := qrGroupID + if qGroupID != "" { + if err := r.SetQueryParam("group_id", qGroupID); err != nil { + return err + } + } + + } + + if o.GroupIDn != nil { + + // query param group_id__n + var qrGroupIDn string + if o.GroupIDn != nil { + qrGroupIDn = *o.GroupIDn + } + qGroupIDn := qrGroupIDn + if qGroupIDn != "" { + if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.LastUpdated != nil { + + // query param last_updated + var qrLastUpdated string + if o.LastUpdated != nil { + qrLastUpdated = *o.LastUpdated + } + qLastUpdated := qrLastUpdated + if qLastUpdated != "" { + if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + return err + } + } + + } + + if o.LastUpdatedGte != nil { + + // query param last_updated__gte + var qrLastUpdatedGte string + if o.LastUpdatedGte != nil { + qrLastUpdatedGte = *o.LastUpdatedGte + } + qLastUpdatedGte := qrLastUpdatedGte + if qLastUpdatedGte != "" { + if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { + return err + } + } + + } + + if o.LastUpdatedLte != nil { + + // query param last_updated__lte + var qrLastUpdatedLte string + if o.LastUpdatedLte != nil { + qrLastUpdatedLte = *o.LastUpdatedLte + } + qLastUpdatedLte := qrLastUpdatedLte + if qLastUpdatedLte != "" { + if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { + return err + } + } + + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); 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 + } + } + + } + + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + + } + + if o.OuterDepth != nil { + + // query param outer_depth + var qrOuterDepth string + if o.OuterDepth != nil { + qrOuterDepth = *o.OuterDepth + } + qOuterDepth := qrOuterDepth + if qOuterDepth != "" { + if err := r.SetQueryParam("outer_depth", qOuterDepth); err != nil { + return err + } + } + + } + + if o.OuterDepthGt != nil { + + // query param outer_depth__gt + var qrOuterDepthGt string + if o.OuterDepthGt != nil { + qrOuterDepthGt = *o.OuterDepthGt + } + qOuterDepthGt := qrOuterDepthGt + if qOuterDepthGt != "" { + if err := r.SetQueryParam("outer_depth__gt", qOuterDepthGt); err != nil { + return err + } + } + + } + + if o.OuterDepthGte != nil { - // query param group_id - var qrGroupID string - if o.GroupID != nil { - qrGroupID = *o.GroupID + // query param outer_depth__gte + var qrOuterDepthGte string + if o.OuterDepthGte != nil { + qrOuterDepthGte = *o.OuterDepthGte } - qGroupID := qrGroupID - if qGroupID != "" { - if err := r.SetQueryParam("group_id", qGroupID); err != nil { + qOuterDepthGte := qrOuterDepthGte + if qOuterDepthGte != "" { + if err := r.SetQueryParam("outer_depth__gte", qOuterDepthGte); err != nil { return err } } } - if o.ID != nil { + if o.OuterDepthLt != nil { - // query param id - var qrID string - if o.ID != nil { - qrID = *o.ID + // query param outer_depth__lt + var qrOuterDepthLt string + if o.OuterDepthLt != nil { + qrOuterDepthLt = *o.OuterDepthLt } - qID := qrID - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { + qOuterDepthLt := qrOuterDepthLt + if qOuterDepthLt != "" { + if err := r.SetQueryParam("outer_depth__lt", qOuterDepthLt); err != nil { return err } } } - if o.IDIn != nil { + if o.OuterDepthLte != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param outer_depth__lte + var qrOuterDepthLte string + if o.OuterDepthLte != nil { + qrOuterDepthLte = *o.OuterDepthLte } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qOuterDepthLte := qrOuterDepthLte + if qOuterDepthLte != "" { + if err := r.SetQueryParam("outer_depth__lte", qOuterDepthLte); err != nil { return err } } } - if o.LastUpdated != nil { + if o.OuterDepthn != nil { - // query param last_updated - var qrLastUpdated string - if o.LastUpdated != nil { - qrLastUpdated = *o.LastUpdated + // query param outer_depth__n + var qrOuterDepthn string + if o.OuterDepthn != nil { + qrOuterDepthn = *o.OuterDepthn } - qLastUpdated := qrLastUpdated - if qLastUpdated != "" { - if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + qOuterDepthn := qrOuterDepthn + if qOuterDepthn != "" { + if err := r.SetQueryParam("outer_depth__n", qOuterDepthn); err != nil { return err } } } - if o.LastUpdatedGte != nil { + if o.OuterUnit != nil { - // query param last_updated__gte - var qrLastUpdatedGte string - if o.LastUpdatedGte != nil { - qrLastUpdatedGte = *o.LastUpdatedGte + // query param outer_unit + var qrOuterUnit string + if o.OuterUnit != nil { + qrOuterUnit = *o.OuterUnit } - qLastUpdatedGte := qrLastUpdatedGte - if qLastUpdatedGte != "" { - if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { + qOuterUnit := qrOuterUnit + if qOuterUnit != "" { + if err := r.SetQueryParam("outer_unit", qOuterUnit); err != nil { return err } } } - if o.LastUpdatedLte != nil { + if o.OuterUnitn != nil { - // query param last_updated__lte - var qrLastUpdatedLte string - if o.LastUpdatedLte != nil { - qrLastUpdatedLte = *o.LastUpdatedLte + // query param outer_unit__n + var qrOuterUnitn string + if o.OuterUnitn != nil { + qrOuterUnitn = *o.OuterUnitn } - qLastUpdatedLte := qrLastUpdatedLte - if qLastUpdatedLte != "" { - if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { + qOuterUnitn := qrOuterUnitn + if qOuterUnitn != "" { + if err := r.SetQueryParam("outer_unit__n", qOuterUnitn); err != nil { return err } } } - if o.Limit != nil { + if o.OuterWidth != nil { - // query param limit - var qrLimit int64 - if o.Limit != nil { - qrLimit = *o.Limit + // query param outer_width + var qrOuterWidth string + if o.OuterWidth != nil { + qrOuterWidth = *o.OuterWidth } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { + qOuterWidth := qrOuterWidth + if qOuterWidth != "" { + if err := r.SetQueryParam("outer_width", qOuterWidth); err != nil { return err } } } - if o.Name != nil { + if o.OuterWidthGt != nil { - // query param name - var qrName string - if o.Name != nil { - qrName = *o.Name + // query param outer_width__gt + var qrOuterWidthGt string + if o.OuterWidthGt != nil { + qrOuterWidthGt = *o.OuterWidthGt } - qName := qrName - if qName != "" { - if err := r.SetQueryParam("name", qName); err != nil { + qOuterWidthGt := qrOuterWidthGt + if qOuterWidthGt != "" { + if err := r.SetQueryParam("outer_width__gt", qOuterWidthGt); err != nil { return err } } } - if o.Offset != nil { + if o.OuterWidthGte != nil { - // query param offset - var qrOffset int64 - if o.Offset != nil { - qrOffset = *o.Offset + // query param outer_width__gte + var qrOuterWidthGte string + if o.OuterWidthGte != nil { + qrOuterWidthGte = *o.OuterWidthGte } - qOffset := swag.FormatInt64(qrOffset) - if qOffset != "" { - if err := r.SetQueryParam("offset", qOffset); err != nil { + qOuterWidthGte := qrOuterWidthGte + if qOuterWidthGte != "" { + if err := r.SetQueryParam("outer_width__gte", qOuterWidthGte); err != nil { return err } } } - if o.OuterDepth != nil { + if o.OuterWidthLt != nil { - // query param outer_depth - var qrOuterDepth string - if o.OuterDepth != nil { - qrOuterDepth = *o.OuterDepth + // query param outer_width__lt + var qrOuterWidthLt string + if o.OuterWidthLt != nil { + qrOuterWidthLt = *o.OuterWidthLt } - qOuterDepth := qrOuterDepth - if qOuterDepth != "" { - if err := r.SetQueryParam("outer_depth", qOuterDepth); err != nil { + qOuterWidthLt := qrOuterWidthLt + if qOuterWidthLt != "" { + if err := r.SetQueryParam("outer_width__lt", qOuterWidthLt); err != nil { return err } } } - if o.OuterUnit != nil { + if o.OuterWidthLte != nil { - // query param outer_unit - var qrOuterUnit string - if o.OuterUnit != nil { - qrOuterUnit = *o.OuterUnit + // query param outer_width__lte + var qrOuterWidthLte string + if o.OuterWidthLte != nil { + qrOuterWidthLte = *o.OuterWidthLte } - qOuterUnit := qrOuterUnit - if qOuterUnit != "" { - if err := r.SetQueryParam("outer_unit", qOuterUnit); err != nil { + qOuterWidthLte := qrOuterWidthLte + if qOuterWidthLte != "" { + if err := r.SetQueryParam("outer_width__lte", qOuterWidthLte); err != nil { return err } } } - if o.OuterWidth != nil { + if o.OuterWidthn != nil { - // query param outer_width - var qrOuterWidth string - if o.OuterWidth != nil { - qrOuterWidth = *o.OuterWidth + // query param outer_width__n + var qrOuterWidthn string + if o.OuterWidthn != nil { + qrOuterWidthn = *o.OuterWidthn } - qOuterWidth := qrOuterWidth - if qOuterWidth != "" { - if err := r.SetQueryParam("outer_width", qOuterWidth); err != nil { + qOuterWidthn := qrOuterWidthn + if qOuterWidthn != "" { + if err := r.SetQueryParam("outer_width__n", qOuterWidthn); err != nil { return err } } @@ -937,6 +2456,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -953,6 +2488,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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.Role != nil { // query param role @@ -969,6 +2520,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -985,6 +2552,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -1017,6 +2600,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -1033,6 +2632,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -1049,6 +2664,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -1065,6 +2696,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -1081,6 +2728,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -1097,6 +2760,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -1113,6 +2792,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -1129,6 +2824,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.Type != nil { // query param type @@ -1145,6 +2856,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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.UHeight != nil { // query param u_height @@ -1161,6 +2888,86 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.UHeightGt != nil { + + // query param u_height__gt + var qrUHeightGt string + if o.UHeightGt != nil { + qrUHeightGt = *o.UHeightGt + } + qUHeightGt := qrUHeightGt + if qUHeightGt != "" { + if err := r.SetQueryParam("u_height__gt", qUHeightGt); err != nil { + return err + } + } + + } + + if o.UHeightGte != nil { + + // query param u_height__gte + var qrUHeightGte string + if o.UHeightGte != nil { + qrUHeightGte = *o.UHeightGte + } + qUHeightGte := qrUHeightGte + if qUHeightGte != "" { + if err := r.SetQueryParam("u_height__gte", qUHeightGte); err != nil { + return err + } + } + + } + + if o.UHeightLt != nil { + + // query param u_height__lt + var qrUHeightLt string + if o.UHeightLt != nil { + qrUHeightLt = *o.UHeightLt + } + qUHeightLt := qrUHeightLt + if qUHeightLt != "" { + if err := r.SetQueryParam("u_height__lt", qUHeightLt); err != nil { + return err + } + } + + } + + if o.UHeightLte != nil { + + // query param u_height__lte + var qrUHeightLte string + if o.UHeightLte != nil { + qrUHeightLte = *o.UHeightLte + } + qUHeightLte := qrUHeightLte + if qUHeightLte != "" { + if err := r.SetQueryParam("u_height__lte", qUHeightLte); err != nil { + return err + } + } + + } + + if o.UHeightn != nil { + + // query param u_height__n + var qrUHeightn string + if o.UHeightn != nil { + qrUHeightn = *o.UHeightn + } + qUHeightn := qrUHeightn + if qUHeightn != "" { + if err := r.SetQueryParam("u_height__n", qUHeightn); err != nil { + return err + } + } + + } + if o.Width != nil { // query param width @@ -1177,6 +2984,22 @@ func (o *DcimRacksListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Widthn != nil { + + // query param width__n + var qrWidthn string + if o.Widthn != nil { + qrWidthn = *o.Widthn + } + qWidthn := qrWidthn + if qWidthn != "" { + if err := r.SetQueryParam("width__n", qWidthn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_responses.go index 5be7babbc..70a7b2d35 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRacksListReader is a Reader for the DcimRacksList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_parameters.go index 3a601a251..04ab7728e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRacksPartialUpdateParams creates a new DcimRacksPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_responses.go index 8916bfd3d..dbba90ba6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRacksPartialUpdateReader is a Reader for the DcimRacksPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_parameters.go index f5affe51c..444115167 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRacksReadParams creates a new DcimRacksReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_responses.go index 66211b615..82cfdf4da 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRacksReadReader is a Reader for the DcimRacksRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_parameters.go index e74425b04..5a1bedb04 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRacksUpdateParams creates a new DcimRacksUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_responses.go index b432281fb..02450d5d8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_racks_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRacksUpdateReader is a Reader for the DcimRacksUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_parameters.go index 8d697646e..a8622f354 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRearPortTemplatesCreateParams creates a new DcimRearPortTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_responses.go index 9e76be809..5020d1dd6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortTemplatesCreateReader is a Reader for the DcimRearPortTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_parameters.go index 66a6f41a5..c69d516b0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRearPortTemplatesDeleteParams creates a new DcimRearPortTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_responses.go index 69c2149b7..0da9cf2b8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRearPortTemplatesDeleteReader is a Reader for the DcimRearPortTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go index bb0d3f0f5..b479460cd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRearPortTemplatesListParams creates a new DcimRearPortTemplatesListParams object @@ -79,8 +78,20 @@ type DcimRearPortTemplatesListParams struct { /*DevicetypeID*/ DevicetypeID *string + /*DevicetypeIDn*/ + DevicetypeIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,6 +99,24 @@ type DcimRearPortTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,10 +124,22 @@ type DcimRearPortTemplatesListParams struct { Offset *int64 /*Positions*/ Positions *string + /*PositionsGt*/ + PositionsGt *string + /*PositionsGte*/ + PositionsGte *string + /*PositionsLt*/ + PositionsLt *string + /*PositionsLte*/ + PositionsLte *string + /*Positionsn*/ + Positionsn *string /*Q*/ Q *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -149,6 +190,17 @@ func (o *DcimRearPortTemplatesListParams) SetDevicetypeID(devicetypeID *string) o.DevicetypeID = devicetypeID } +// WithDevicetypeIDn adds the devicetypeIDn to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithDevicetypeIDn(devicetypeIDn *string) *DcimRearPortTemplatesListParams { + o.SetDevicetypeIDn(devicetypeIDn) + return o +} + +// SetDevicetypeIDn adds the devicetypeIdN to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetDevicetypeIDn(devicetypeIDn *string) { + o.DevicetypeIDn = devicetypeIDn +} + // WithID adds the id to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithID(id *string) *DcimRearPortTemplatesListParams { o.SetID(id) @@ -160,6 +212,61 @@ func (o *DcimRearPortTemplatesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithIDGt(iDGt *string) *DcimRearPortTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithIDGte(iDGte *string) *DcimRearPortTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithIDLt(iDLt *string) *DcimRearPortTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithIDLte(iDLte *string) *DcimRearPortTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithIDn(iDn *string) *DcimRearPortTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithLimit(limit *int64) *DcimRearPortTemplatesListParams { o.SetLimit(limit) @@ -182,6 +289,105 @@ func (o *DcimRearPortTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameIc(nameIc *string) *DcimRearPortTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameIe(nameIe *string) *DcimRearPortTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameIew(nameIew *string) *DcimRearPortTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameIsw(nameIsw *string) *DcimRearPortTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNamen(namen *string) *DcimRearPortTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameNic(nameNic *string) *DcimRearPortTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameNie(nameNie *string) *DcimRearPortTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameNiew(nameNiew *string) *DcimRearPortTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithNameNisw(nameNisw *string) *DcimRearPortTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithOffset(offset *int64) *DcimRearPortTemplatesListParams { o.SetOffset(offset) @@ -204,6 +410,61 @@ func (o *DcimRearPortTemplatesListParams) SetPositions(positions *string) { o.Positions = positions } +// WithPositionsGt adds the positionsGt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithPositionsGt(positionsGt *string) *DcimRearPortTemplatesListParams { + o.SetPositionsGt(positionsGt) + return o +} + +// SetPositionsGt adds the positionsGt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetPositionsGt(positionsGt *string) { + o.PositionsGt = positionsGt +} + +// WithPositionsGte adds the positionsGte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithPositionsGte(positionsGte *string) *DcimRearPortTemplatesListParams { + o.SetPositionsGte(positionsGte) + return o +} + +// SetPositionsGte adds the positionsGte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetPositionsGte(positionsGte *string) { + o.PositionsGte = positionsGte +} + +// WithPositionsLt adds the positionsLt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithPositionsLt(positionsLt *string) *DcimRearPortTemplatesListParams { + o.SetPositionsLt(positionsLt) + return o +} + +// SetPositionsLt adds the positionsLt to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetPositionsLt(positionsLt *string) { + o.PositionsLt = positionsLt +} + +// WithPositionsLte adds the positionsLte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithPositionsLte(positionsLte *string) *DcimRearPortTemplatesListParams { + o.SetPositionsLte(positionsLte) + return o +} + +// SetPositionsLte adds the positionsLte to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetPositionsLte(positionsLte *string) { + o.PositionsLte = positionsLte +} + +// WithPositionsn adds the positionsn to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithPositionsn(positionsn *string) *DcimRearPortTemplatesListParams { + o.SetPositionsn(positionsn) + return o +} + +// SetPositionsn adds the positionsN to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetPositionsn(positionsn *string) { + o.Positionsn = positionsn +} + // WithQ adds the q to the dcim rear port templates list params func (o *DcimRearPortTemplatesListParams) WithQ(q *string) *DcimRearPortTemplatesListParams { o.SetQ(q) @@ -226,6 +487,17 @@ func (o *DcimRearPortTemplatesListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) WithTypen(typen *string) *DcimRearPortTemplatesListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim rear port templates list params +func (o *DcimRearPortTemplatesListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -250,6 +522,22 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.DevicetypeIDn != nil { + + // query param devicetype_id__n + var qrDevicetypeIDn string + if o.DevicetypeIDn != nil { + qrDevicetypeIDn = *o.DevicetypeIDn + } + qDevicetypeIDn := qrDevicetypeIDn + if qDevicetypeIDn != "" { + if err := r.SetQueryParam("devicetype_id__n", qDevicetypeIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -266,6 +554,86 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -298,6 +666,150 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -330,6 +842,86 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.PositionsGt != nil { + + // query param positions__gt + var qrPositionsGt string + if o.PositionsGt != nil { + qrPositionsGt = *o.PositionsGt + } + qPositionsGt := qrPositionsGt + if qPositionsGt != "" { + if err := r.SetQueryParam("positions__gt", qPositionsGt); err != nil { + return err + } + } + + } + + if o.PositionsGte != nil { + + // query param positions__gte + var qrPositionsGte string + if o.PositionsGte != nil { + qrPositionsGte = *o.PositionsGte + } + qPositionsGte := qrPositionsGte + if qPositionsGte != "" { + if err := r.SetQueryParam("positions__gte", qPositionsGte); err != nil { + return err + } + } + + } + + if o.PositionsLt != nil { + + // query param positions__lt + var qrPositionsLt string + if o.PositionsLt != nil { + qrPositionsLt = *o.PositionsLt + } + qPositionsLt := qrPositionsLt + if qPositionsLt != "" { + if err := r.SetQueryParam("positions__lt", qPositionsLt); err != nil { + return err + } + } + + } + + if o.PositionsLte != nil { + + // query param positions__lte + var qrPositionsLte string + if o.PositionsLte != nil { + qrPositionsLte = *o.PositionsLte + } + qPositionsLte := qrPositionsLte + if qPositionsLte != "" { + if err := r.SetQueryParam("positions__lte", qPositionsLte); err != nil { + return err + } + } + + } + + if o.Positionsn != nil { + + // query param positions__n + var qrPositionsn string + if o.Positionsn != nil { + qrPositionsn = *o.Positionsn + } + qPositionsn := qrPositionsn + if qPositionsn != "" { + if err := r.SetQueryParam("positions__n", qPositionsn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -362,6 +954,22 @@ func (o *DcimRearPortTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_responses.go index 0ad7d1dfe..be101c0f1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortTemplatesListReader is a Reader for the DcimRearPortTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_parameters.go index 166677d17..2d81df077 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRearPortTemplatesPartialUpdateParams creates a new DcimRearPortTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_responses.go index f744c7e9b..a044035c2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortTemplatesPartialUpdateReader is a Reader for the DcimRearPortTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_parameters.go index d65fe0536..3d108f9e3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRearPortTemplatesReadParams creates a new DcimRearPortTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_responses.go index ceec24215..a294db6d2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortTemplatesReadReader is a Reader for the DcimRearPortTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_parameters.go index de96a644e..8c618238a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRearPortTemplatesUpdateParams creates a new DcimRearPortTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_responses.go index 4456eb8bb..ab33ea7f1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_port_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortTemplatesUpdateReader is a Reader for the DcimRearPortTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_parameters.go index 4fde24024..0eeeb6118 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRearPortsCreateParams creates a new DcimRearPortsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_responses.go index e7faca36e..7384d9913 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortsCreateReader is a Reader for the DcimRearPortsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_parameters.go index 229772515..41740e271 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRearPortsDeleteParams creates a new DcimRearPortsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_responses.go index 2e2b6e6f9..2b70e9cbd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRearPortsDeleteReader is a Reader for the DcimRearPortsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go index fa9631063..e5699e8ae 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRearPortsListParams creates a new DcimRearPortsListParams object @@ -81,12 +80,44 @@ type DcimRearPortsListParams struct { Cabled *string /*Description*/ Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -94,6 +125,24 @@ type DcimRearPortsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -101,20 +150,42 @@ type DcimRearPortsListParams struct { Offset *int64 /*Positions*/ Positions *string + /*PositionsGt*/ + PositionsGt *string + /*PositionsGte*/ + PositionsGte *string + /*PositionsLt*/ + PositionsLt *string + /*PositionsLte*/ + PositionsLte *string + /*Positionsn*/ + Positionsn *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -176,6 +247,105 @@ func (o *DcimRearPortsListParams) SetDescription(description *string) { o.Description = description } +// WithDescriptionIc adds the descriptionIc to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionIc(descriptionIc *string) *DcimRearPortsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionIe(descriptionIe *string) *DcimRearPortsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionIew(descriptionIew *string) *DcimRearPortsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimRearPortsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionn(descriptionn *string) *DcimRearPortsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionNic(descriptionNic *string) *DcimRearPortsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionNie(descriptionNie *string) *DcimRearPortsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimRearPortsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimRearPortsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithDevice adds the device to the dcim rear ports list params func (o *DcimRearPortsListParams) WithDevice(device *string) *DcimRearPortsListParams { o.SetDevice(device) @@ -187,6 +357,17 @@ func (o *DcimRearPortsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDevicen(devicen *string) *DcimRearPortsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the dcim rear ports list params func (o *DcimRearPortsListParams) WithDeviceID(deviceID *string) *DcimRearPortsListParams { o.SetDeviceID(deviceID) @@ -198,6 +379,17 @@ func (o *DcimRearPortsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithDeviceIDn(deviceIDn *string) *DcimRearPortsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the dcim rear ports list params func (o *DcimRearPortsListParams) WithID(id *string) *DcimRearPortsListParams { o.SetID(id) @@ -209,6 +401,61 @@ func (o *DcimRearPortsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithIDGt(iDGt *string) *DcimRearPortsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithIDGte(iDGte *string) *DcimRearPortsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithIDLt(iDLt *string) *DcimRearPortsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithIDLte(iDLte *string) *DcimRearPortsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithIDn(iDn *string) *DcimRearPortsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim rear ports list params func (o *DcimRearPortsListParams) WithLimit(limit *int64) *DcimRearPortsListParams { o.SetLimit(limit) @@ -231,6 +478,105 @@ func (o *DcimRearPortsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameIc(nameIc *string) *DcimRearPortsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameIe(nameIe *string) *DcimRearPortsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameIew(nameIew *string) *DcimRearPortsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameIsw(nameIsw *string) *DcimRearPortsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNamen(namen *string) *DcimRearPortsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameNic(nameNic *string) *DcimRearPortsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameNie(nameNie *string) *DcimRearPortsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameNiew(nameNiew *string) *DcimRearPortsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithNameNisw(nameNisw *string) *DcimRearPortsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim rear ports list params func (o *DcimRearPortsListParams) WithOffset(offset *int64) *DcimRearPortsListParams { o.SetOffset(offset) @@ -253,6 +599,61 @@ func (o *DcimRearPortsListParams) SetPositions(positions *string) { o.Positions = positions } +// WithPositionsGt adds the positionsGt to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithPositionsGt(positionsGt *string) *DcimRearPortsListParams { + o.SetPositionsGt(positionsGt) + return o +} + +// SetPositionsGt adds the positionsGt to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetPositionsGt(positionsGt *string) { + o.PositionsGt = positionsGt +} + +// WithPositionsGte adds the positionsGte to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithPositionsGte(positionsGte *string) *DcimRearPortsListParams { + o.SetPositionsGte(positionsGte) + return o +} + +// SetPositionsGte adds the positionsGte to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetPositionsGte(positionsGte *string) { + o.PositionsGte = positionsGte +} + +// WithPositionsLt adds the positionsLt to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithPositionsLt(positionsLt *string) *DcimRearPortsListParams { + o.SetPositionsLt(positionsLt) + return o +} + +// SetPositionsLt adds the positionsLt to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetPositionsLt(positionsLt *string) { + o.PositionsLt = positionsLt +} + +// WithPositionsLte adds the positionsLte to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithPositionsLte(positionsLte *string) *DcimRearPortsListParams { + o.SetPositionsLte(positionsLte) + return o +} + +// SetPositionsLte adds the positionsLte to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetPositionsLte(positionsLte *string) { + o.PositionsLte = positionsLte +} + +// WithPositionsn adds the positionsn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithPositionsn(positionsn *string) *DcimRearPortsListParams { + o.SetPositionsn(positionsn) + return o +} + +// SetPositionsn adds the positionsN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetPositionsn(positionsn *string) { + o.Positionsn = positionsn +} + // WithQ adds the q to the dcim rear ports list params func (o *DcimRearPortsListParams) WithQ(q *string) *DcimRearPortsListParams { o.SetQ(q) @@ -275,6 +676,17 @@ func (o *DcimRearPortsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithRegionn(regionn *string) *DcimRearPortsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim rear ports list params func (o *DcimRearPortsListParams) WithRegionID(regionID *string) *DcimRearPortsListParams { o.SetRegionID(regionID) @@ -286,6 +698,17 @@ func (o *DcimRearPortsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithRegionIDn(regionIDn *string) *DcimRearPortsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim rear ports list params func (o *DcimRearPortsListParams) WithSite(site *string) *DcimRearPortsListParams { o.SetSite(site) @@ -297,6 +720,17 @@ func (o *DcimRearPortsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithSiten(siten *string) *DcimRearPortsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim rear ports list params func (o *DcimRearPortsListParams) WithSiteID(siteID *string) *DcimRearPortsListParams { o.SetSiteID(siteID) @@ -308,6 +742,17 @@ func (o *DcimRearPortsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithSiteIDn(siteIDn *string) *DcimRearPortsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim rear ports list params func (o *DcimRearPortsListParams) WithTag(tag *string) *DcimRearPortsListParams { o.SetTag(tag) @@ -319,6 +764,17 @@ func (o *DcimRearPortsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithTagn(tagn *string) *DcimRearPortsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithType adds the typeVar to the dcim rear ports list params func (o *DcimRearPortsListParams) WithType(typeVar *string) *DcimRearPortsListParams { o.SetType(typeVar) @@ -330,6 +786,17 @@ func (o *DcimRearPortsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the dcim rear ports list params +func (o *DcimRearPortsListParams) WithTypen(typen *string) *DcimRearPortsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the dcim rear ports list params +func (o *DcimRearPortsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -370,6 +837,150 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.Device != nil { // query param device @@ -386,6 +997,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -402,6 +1029,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -418,6 +1061,86 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -450,6 +1173,150 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -482,6 +1349,86 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.PositionsGt != nil { + + // query param positions__gt + var qrPositionsGt string + if o.PositionsGt != nil { + qrPositionsGt = *o.PositionsGt + } + qPositionsGt := qrPositionsGt + if qPositionsGt != "" { + if err := r.SetQueryParam("positions__gt", qPositionsGt); err != nil { + return err + } + } + + } + + if o.PositionsGte != nil { + + // query param positions__gte + var qrPositionsGte string + if o.PositionsGte != nil { + qrPositionsGte = *o.PositionsGte + } + qPositionsGte := qrPositionsGte + if qPositionsGte != "" { + if err := r.SetQueryParam("positions__gte", qPositionsGte); err != nil { + return err + } + } + + } + + if o.PositionsLt != nil { + + // query param positions__lt + var qrPositionsLt string + if o.PositionsLt != nil { + qrPositionsLt = *o.PositionsLt + } + qPositionsLt := qrPositionsLt + if qPositionsLt != "" { + if err := r.SetQueryParam("positions__lt", qPositionsLt); err != nil { + return err + } + } + + } + + if o.PositionsLte != nil { + + // query param positions__lte + var qrPositionsLte string + if o.PositionsLte != nil { + qrPositionsLte = *o.PositionsLte + } + qPositionsLte := qrPositionsLte + if qPositionsLte != "" { + if err := r.SetQueryParam("positions__lte", qPositionsLte); err != nil { + return err + } + } + + } + + if o.Positionsn != nil { + + // query param positions__n + var qrPositionsn string + if o.Positionsn != nil { + qrPositionsn = *o.Positionsn + } + qPositionsn := qrPositionsn + if qPositionsn != "" { + if err := r.SetQueryParam("positions__n", qPositionsn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -514,6 +1461,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + 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 @@ -530,6 +1493,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + 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 @@ -546,6 +1525,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -562,6 +1557,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -578,6 +1589,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + 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.Type != nil { // query param type @@ -594,6 +1621,22 @@ func (o *DcimRearPortsListParams) WriteToRequest(r runtime.ClientRequest, reg st } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_responses.go index d0fdee0d0..6ca238406 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortsListReader is a Reader for the DcimRearPortsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_parameters.go index 64645f443..436c5dd1b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRearPortsPartialUpdateParams creates a new DcimRearPortsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_responses.go index 9bd2e5336..ff81e5233 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortsPartialUpdateReader is a Reader for the DcimRearPortsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_parameters.go index 256a68d2b..88974ae33 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRearPortsReadParams creates a new DcimRearPortsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_responses.go index 7a40879cb..2c9e2b7dc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortsReadReader is a Reader for the DcimRearPortsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_parameters.go index 71508189b..29af8d41c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRearPortsUpdateParams creates a new DcimRearPortsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_responses.go index 810c07cf9..aacb4ebfb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_rear_ports_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRearPortsUpdateReader is a Reader for the DcimRearPortsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_parameters.go index 7a1ebae36..ffaf5de2e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRegionsCreateParams creates a new DcimRegionsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_responses.go index cd7643609..517fa87e2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRegionsCreateReader is a Reader for the DcimRegionsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_parameters.go index 380ba07fd..06a440b56 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRegionsDeleteParams creates a new DcimRegionsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_responses.go index 17bd22575..f7af747ce 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimRegionsDeleteReader is a Reader for the DcimRegionsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go index 715a06f76..429d4bd5f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRegionsListParams creates a new DcimRegionsListParams object @@ -77,8 +76,38 @@ for the dcim regions list operation typically these are written to a http.Reques */ type DcimRegionsListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +115,24 @@ type DcimRegionsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -93,12 +140,34 @@ type DcimRegionsListParams struct { Offset *int64 /*Parent*/ Parent *string + /*Parentn*/ + Parentn *string /*ParentID*/ ParentID *string + /*ParentIDn*/ + ParentIDn *string /*Q*/ Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -138,6 +207,116 @@ func (o *DcimRegionsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithDescription adds the description to the dcim regions list params +func (o *DcimRegionsListParams) WithDescription(description *string) *DcimRegionsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the dcim regions list params +func (o *DcimRegionsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionIc(descriptionIc *string) *DcimRegionsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionIe(descriptionIe *string) *DcimRegionsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionIew(descriptionIew *string) *DcimRegionsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionIsw(descriptionIsw *string) *DcimRegionsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionn(descriptionn *string) *DcimRegionsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionNic(descriptionNic *string) *DcimRegionsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionNie(descriptionNie *string) *DcimRegionsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionNiew(descriptionNiew *string) *DcimRegionsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the dcim regions list params +func (o *DcimRegionsListParams) WithDescriptionNisw(descriptionNisw *string) *DcimRegionsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the dcim regions list params +func (o *DcimRegionsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the dcim regions list params func (o *DcimRegionsListParams) WithID(id *string) *DcimRegionsListParams { o.SetID(id) @@ -149,6 +328,61 @@ func (o *DcimRegionsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim regions list params +func (o *DcimRegionsListParams) WithIDGt(iDGt *string) *DcimRegionsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim regions list params +func (o *DcimRegionsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim regions list params +func (o *DcimRegionsListParams) WithIDGte(iDGte *string) *DcimRegionsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim regions list params +func (o *DcimRegionsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim regions list params +func (o *DcimRegionsListParams) WithIDLt(iDLt *string) *DcimRegionsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim regions list params +func (o *DcimRegionsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim regions list params +func (o *DcimRegionsListParams) WithIDLte(iDLte *string) *DcimRegionsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim regions list params +func (o *DcimRegionsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim regions list params +func (o *DcimRegionsListParams) WithIDn(iDn *string) *DcimRegionsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim regions list params +func (o *DcimRegionsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim regions list params func (o *DcimRegionsListParams) WithLimit(limit *int64) *DcimRegionsListParams { o.SetLimit(limit) @@ -171,6 +405,105 @@ func (o *DcimRegionsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim regions list params +func (o *DcimRegionsListParams) WithNameIc(nameIc *string) *DcimRegionsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim regions list params +func (o *DcimRegionsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim regions list params +func (o *DcimRegionsListParams) WithNameIe(nameIe *string) *DcimRegionsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim regions list params +func (o *DcimRegionsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim regions list params +func (o *DcimRegionsListParams) WithNameIew(nameIew *string) *DcimRegionsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim regions list params +func (o *DcimRegionsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim regions list params +func (o *DcimRegionsListParams) WithNameIsw(nameIsw *string) *DcimRegionsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim regions list params +func (o *DcimRegionsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim regions list params +func (o *DcimRegionsListParams) WithNamen(namen *string) *DcimRegionsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim regions list params +func (o *DcimRegionsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim regions list params +func (o *DcimRegionsListParams) WithNameNic(nameNic *string) *DcimRegionsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim regions list params +func (o *DcimRegionsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim regions list params +func (o *DcimRegionsListParams) WithNameNie(nameNie *string) *DcimRegionsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim regions list params +func (o *DcimRegionsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim regions list params +func (o *DcimRegionsListParams) WithNameNiew(nameNiew *string) *DcimRegionsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim regions list params +func (o *DcimRegionsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim regions list params +func (o *DcimRegionsListParams) WithNameNisw(nameNisw *string) *DcimRegionsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim regions list params +func (o *DcimRegionsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim regions list params func (o *DcimRegionsListParams) WithOffset(offset *int64) *DcimRegionsListParams { o.SetOffset(offset) @@ -193,6 +526,17 @@ func (o *DcimRegionsListParams) SetParent(parent *string) { o.Parent = parent } +// WithParentn adds the parentn to the dcim regions list params +func (o *DcimRegionsListParams) WithParentn(parentn *string) *DcimRegionsListParams { + o.SetParentn(parentn) + return o +} + +// SetParentn adds the parentN to the dcim regions list params +func (o *DcimRegionsListParams) SetParentn(parentn *string) { + o.Parentn = parentn +} + // WithParentID adds the parentID to the dcim regions list params func (o *DcimRegionsListParams) WithParentID(parentID *string) *DcimRegionsListParams { o.SetParentID(parentID) @@ -204,6 +548,17 @@ func (o *DcimRegionsListParams) SetParentID(parentID *string) { o.ParentID = parentID } +// WithParentIDn adds the parentIDn to the dcim regions list params +func (o *DcimRegionsListParams) WithParentIDn(parentIDn *string) *DcimRegionsListParams { + o.SetParentIDn(parentIDn) + return o +} + +// SetParentIDn adds the parentIdN to the dcim regions list params +func (o *DcimRegionsListParams) SetParentIDn(parentIDn *string) { + o.ParentIDn = parentIDn +} + // WithQ adds the q to the dcim regions list params func (o *DcimRegionsListParams) WithQ(q *string) *DcimRegionsListParams { o.SetQ(q) @@ -226,6 +581,105 @@ func (o *DcimRegionsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugIc(slugIc *string) *DcimRegionsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugIe(slugIe *string) *DcimRegionsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugIew(slugIew *string) *DcimRegionsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugIsw(slugIsw *string) *DcimRegionsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugn(slugn *string) *DcimRegionsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugNic(slugNic *string) *DcimRegionsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugNie(slugNie *string) *DcimRegionsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugNiew(slugNiew *string) *DcimRegionsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim regions list params +func (o *DcimRegionsListParams) WithSlugNisw(slugNisw *string) *DcimRegionsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim regions list params +func (o *DcimRegionsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -234,6 +688,166 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } var res []error + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -250,6 +864,86 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -282,6 +976,150 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -314,6 +1152,22 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.Parentn != nil { + + // query param parent__n + var qrParentn string + if o.Parentn != nil { + qrParentn = *o.Parentn + } + qParentn := qrParentn + if qParentn != "" { + if err := r.SetQueryParam("parent__n", qParentn); err != nil { + return err + } + } + + } + if o.ParentID != nil { // query param parent_id @@ -330,6 +1184,22 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.ParentIDn != nil { + + // query param parent_id__n + var qrParentIDn string + if o.ParentIDn != nil { + qrParentIDn = *o.ParentIDn + } + qParentIDn := qrParentIDn + if qParentIDn != "" { + if err := r.SetQueryParam("parent_id__n", qParentIDn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -362,6 +1232,150 @@ func (o *DcimRegionsListParams) WriteToRequest(r runtime.ClientRequest, reg strf } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_responses.go index 0c9789ef5..d1df1f4f4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRegionsListReader is a Reader for the DcimRegionsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_parameters.go index a5a5cf6b1..7182f5990 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRegionsPartialUpdateParams creates a new DcimRegionsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_responses.go index 0c2ed364d..cef539cc1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRegionsPartialUpdateReader is a Reader for the DcimRegionsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_parameters.go index a05fb5e58..e0acdb7a2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimRegionsReadParams creates a new DcimRegionsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_responses.go index 4d5f93346..215d7e5b0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRegionsReadReader is a Reader for the DcimRegionsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_parameters.go index 9fe1bdf2e..4e1721463 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimRegionsUpdateParams creates a new DcimRegionsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_responses.go index a531b9f68..ada784637 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_regions_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimRegionsUpdateReader is a Reader for the DcimRegionsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_parameters.go index 73fda369c..d1c31e68a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimSitesCreateParams creates a new DcimSitesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_responses.go index b6211b285..df5322b6d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimSitesCreateReader is a Reader for the DcimSitesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_parameters.go index 7d5056eb9..5b104adbe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimSitesDeleteParams creates a new DcimSitesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_responses.go index 470bc0bd2..422e9337f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimSitesDeleteReader is a Reader for the DcimSitesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_parameters.go index d54c5f4c9..b9b95dcd7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimSitesGraphsParams creates a new DcimSitesGraphsParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_responses.go index d8b970594..a499ac923 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_graphs_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimSitesGraphsReader is a Reader for the DcimSitesGraphs structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go index 1c55202ab..2556fdc32 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimSitesListParams creates a new DcimSitesListParams object @@ -79,12 +78,76 @@ type DcimSitesListParams struct { /*Asn*/ Asn *string + /*AsnGt*/ + AsnGt *string + /*AsnGte*/ + AsnGte *string + /*AsnLt*/ + AsnLt *string + /*AsnLte*/ + AsnLte *string + /*Asnn*/ + Asnn *string /*ContactEmail*/ ContactEmail *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 + /*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 + /*ContactPhoneIc*/ + ContactPhoneIc *string + /*ContactPhoneIe*/ + ContactPhoneIe *string + /*ContactPhoneIew*/ + ContactPhoneIew *string + /*ContactPhoneIsw*/ + ContactPhoneIsw *string + /*ContactPhonen*/ + ContactPhonen *string + /*ContactPhoneNic*/ + ContactPhoneNic *string + /*ContactPhoneNie*/ + ContactPhoneNie *string + /*ContactPhoneNiew*/ + ContactPhoneNiew *string + /*ContactPhoneNisw*/ + ContactPhoneNisw *string /*Created*/ Created *string /*CreatedGte*/ @@ -93,13 +156,36 @@ type DcimSitesListParams struct { CreatedLte *string /*Facility*/ Facility *string + /*FacilityIc*/ + FacilityIc *string + /*FacilityIe*/ + FacilityIe *string + /*FacilityIew*/ + FacilityIew *string + /*FacilityIsw*/ + FacilityIsw *string + /*Facilityn*/ + Facilityn *string + /*FacilityNic*/ + FacilityNic *string + /*FacilityNie*/ + FacilityNie *string + /*FacilityNiew*/ + FacilityNiew *string + /*FacilityNisw*/ + FacilityNisw *string /*ID*/ ID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -108,6 +194,16 @@ type DcimSitesListParams struct { LastUpdatedLte *string /*Latitude*/ Latitude *string + /*LatitudeGt*/ + LatitudeGt *string + /*LatitudeGte*/ + LatitudeGte *string + /*LatitudeLt*/ + LatitudeLt *string + /*LatitudeLte*/ + LatitudeLte *string + /*Latituden*/ + Latituden *string /*Limit Number of results to return per page. @@ -115,8 +211,36 @@ type DcimSitesListParams struct { Limit *int64 /*Longitude*/ Longitude *string + /*LongitudeGt*/ + LongitudeGt *string + /*LongitudeGte*/ + LongitudeGte *string + /*LongitudeLt*/ + LongitudeLt *string + /*LongitudeLte*/ + LongitudeLte *string + /*Longituden*/ + Longituden *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -126,22 +250,56 @@ type DcimSitesListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string timeout time.Duration Context context.Context @@ -192,6 +350,61 @@ 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) + return o +} + +// SetAsnn adds the asnN to the dcim sites list params +func (o *DcimSitesListParams) SetAsnn(asnn *string) { + o.Asnn = asnn +} + // WithContactEmail adds the contactEmail to the dcim sites list params func (o *DcimSitesListParams) WithContactEmail(contactEmail *string) *DcimSitesListParams { o.SetContactEmail(contactEmail) @@ -203,6 +416,105 @@ func (o *DcimSitesListParams) SetContactEmail(contactEmail *string) { o.ContactEmail = contactEmail } +// 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) @@ -214,6 +526,105 @@ func (o *DcimSitesListParams) SetContactName(contactName *string) { o.ContactName = contactName } +// 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) @@ -225,6 +636,105 @@ func (o *DcimSitesListParams) SetContactPhone(contactPhone *string) { o.ContactPhone = contactPhone } +// 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) + return o +} + +// SetContactPhoneNiew adds the contactPhoneNiew to the dcim sites list params +func (o *DcimSitesListParams) SetContactPhoneNiew(contactPhoneNiew *string) { + o.ContactPhoneNiew = contactPhoneNiew +} + +// WithContactPhoneNisw adds the contactPhoneNisw to the dcim sites list params +func (o *DcimSitesListParams) WithContactPhoneNisw(contactPhoneNisw *string) *DcimSitesListParams { + o.SetContactPhoneNisw(contactPhoneNisw) + return o +} + +// SetContactPhoneNisw adds the contactPhoneNisw to the dcim sites list params +func (o *DcimSitesListParams) SetContactPhoneNisw(contactPhoneNisw *string) { + o.ContactPhoneNisw = contactPhoneNisw +} + // WithCreated adds the created to the dcim sites list params func (o *DcimSitesListParams) WithCreated(created *string) *DcimSitesListParams { o.SetCreated(created) @@ -269,6 +779,105 @@ func (o *DcimSitesListParams) SetFacility(facility *string) { o.Facility = facility } +// WithFacilityIc adds the facilityIc to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityIc(facilityIc *string) *DcimSitesListParams { + o.SetFacilityIc(facilityIc) + return o +} + +// SetFacilityIc adds the facilityIc to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityIc(facilityIc *string) { + o.FacilityIc = facilityIc +} + +// WithFacilityIe adds the facilityIe to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityIe(facilityIe *string) *DcimSitesListParams { + o.SetFacilityIe(facilityIe) + return o +} + +// SetFacilityIe adds the facilityIe to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityIe(facilityIe *string) { + o.FacilityIe = facilityIe +} + +// WithFacilityIew adds the facilityIew to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityIew(facilityIew *string) *DcimSitesListParams { + o.SetFacilityIew(facilityIew) + return o +} + +// SetFacilityIew adds the facilityIew to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityIew(facilityIew *string) { + o.FacilityIew = facilityIew +} + +// WithFacilityIsw adds the facilityIsw to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityIsw(facilityIsw *string) *DcimSitesListParams { + o.SetFacilityIsw(facilityIsw) + return o +} + +// SetFacilityIsw adds the facilityIsw to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityIsw(facilityIsw *string) { + o.FacilityIsw = facilityIsw +} + +// WithFacilityn adds the facilityn to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityn(facilityn *string) *DcimSitesListParams { + o.SetFacilityn(facilityn) + return o +} + +// SetFacilityn adds the facilityN to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityn(facilityn *string) { + o.Facilityn = facilityn +} + +// WithFacilityNic adds the facilityNic to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityNic(facilityNic *string) *DcimSitesListParams { + o.SetFacilityNic(facilityNic) + return o +} + +// SetFacilityNic adds the facilityNic to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityNic(facilityNic *string) { + o.FacilityNic = facilityNic +} + +// WithFacilityNie adds the facilityNie to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityNie(facilityNie *string) *DcimSitesListParams { + o.SetFacilityNie(facilityNie) + return o +} + +// SetFacilityNie adds the facilityNie to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityNie(facilityNie *string) { + o.FacilityNie = facilityNie +} + +// WithFacilityNiew adds the facilityNiew to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityNiew(facilityNiew *string) *DcimSitesListParams { + o.SetFacilityNiew(facilityNiew) + return o +} + +// SetFacilityNiew adds the facilityNiew to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityNiew(facilityNiew *string) { + o.FacilityNiew = facilityNiew +} + +// WithFacilityNisw adds the facilityNisw to the dcim sites list params +func (o *DcimSitesListParams) WithFacilityNisw(facilityNisw *string) *DcimSitesListParams { + o.SetFacilityNisw(facilityNisw) + return o +} + +// SetFacilityNisw adds the facilityNisw to the dcim sites list params +func (o *DcimSitesListParams) SetFacilityNisw(facilityNisw *string) { + o.FacilityNisw = facilityNisw +} + // WithID adds the id to the dcim sites list params func (o *DcimSitesListParams) WithID(id *string) *DcimSitesListParams { o.SetID(id) @@ -280,15 +889,59 @@ func (o *DcimSitesListParams) SetID(id *string) { o.ID = id } -// WithIDIn adds the iDIn to the dcim sites list params -func (o *DcimSitesListParams) WithIDIn(iDIn *string) *DcimSitesListParams { - o.SetIDIn(iDIn) +// WithIDGt adds the iDGt to the dcim sites list params +func (o *DcimSitesListParams) WithIDGt(iDGt *string) *DcimSitesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim sites list params +func (o *DcimSitesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim sites list params +func (o *DcimSitesListParams) WithIDGte(iDGte *string) *DcimSitesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim sites list params +func (o *DcimSitesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim sites list params +func (o *DcimSitesListParams) WithIDLt(iDLt *string) *DcimSitesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim sites list params +func (o *DcimSitesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim sites list params +func (o *DcimSitesListParams) WithIDLte(iDLte *string) *DcimSitesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim sites list params +func (o *DcimSitesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim sites list params +func (o *DcimSitesListParams) WithIDn(iDn *string) *DcimSitesListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the dcim sites list params -func (o *DcimSitesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the dcim sites list params +func (o *DcimSitesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the dcim sites list params @@ -335,6 +988,61 @@ func (o *DcimSitesListParams) SetLatitude(latitude *string) { o.Latitude = latitude } +// WithLatitudeGt adds the latitudeGt to the dcim sites list params +func (o *DcimSitesListParams) WithLatitudeGt(latitudeGt *string) *DcimSitesListParams { + o.SetLatitudeGt(latitudeGt) + return o +} + +// SetLatitudeGt adds the latitudeGt to the dcim sites list params +func (o *DcimSitesListParams) SetLatitudeGt(latitudeGt *string) { + o.LatitudeGt = latitudeGt +} + +// WithLatitudeGte adds the latitudeGte to the dcim sites list params +func (o *DcimSitesListParams) WithLatitudeGte(latitudeGte *string) *DcimSitesListParams { + o.SetLatitudeGte(latitudeGte) + return o +} + +// SetLatitudeGte adds the latitudeGte to the dcim sites list params +func (o *DcimSitesListParams) SetLatitudeGte(latitudeGte *string) { + o.LatitudeGte = latitudeGte +} + +// WithLatitudeLt adds the latitudeLt to the dcim sites list params +func (o *DcimSitesListParams) WithLatitudeLt(latitudeLt *string) *DcimSitesListParams { + o.SetLatitudeLt(latitudeLt) + return o +} + +// SetLatitudeLt adds the latitudeLt to the dcim sites list params +func (o *DcimSitesListParams) SetLatitudeLt(latitudeLt *string) { + o.LatitudeLt = latitudeLt +} + +// WithLatitudeLte adds the latitudeLte to the dcim sites list params +func (o *DcimSitesListParams) WithLatitudeLte(latitudeLte *string) *DcimSitesListParams { + o.SetLatitudeLte(latitudeLte) + return o +} + +// SetLatitudeLte adds the latitudeLte to the dcim sites list params +func (o *DcimSitesListParams) SetLatitudeLte(latitudeLte *string) { + o.LatitudeLte = latitudeLte +} + +// WithLatituden adds the latituden to the dcim sites list params +func (o *DcimSitesListParams) WithLatituden(latituden *string) *DcimSitesListParams { + o.SetLatituden(latituden) + return o +} + +// SetLatituden adds the latitudeN to the dcim sites list params +func (o *DcimSitesListParams) SetLatituden(latituden *string) { + o.Latituden = latituden +} + // WithLimit adds the limit to the dcim sites list params func (o *DcimSitesListParams) WithLimit(limit *int64) *DcimSitesListParams { o.SetLimit(limit) @@ -357,9 +1065,64 @@ func (o *DcimSitesListParams) SetLongitude(longitude *string) { o.Longitude = longitude } -// WithName adds the name to the dcim sites list params -func (o *DcimSitesListParams) WithName(name *string) *DcimSitesListParams { - o.SetName(name) +// WithLongitudeGt adds the longitudeGt to the dcim sites list params +func (o *DcimSitesListParams) WithLongitudeGt(longitudeGt *string) *DcimSitesListParams { + o.SetLongitudeGt(longitudeGt) + return o +} + +// SetLongitudeGt adds the longitudeGt to the dcim sites list params +func (o *DcimSitesListParams) SetLongitudeGt(longitudeGt *string) { + o.LongitudeGt = longitudeGt +} + +// WithLongitudeGte adds the longitudeGte to the dcim sites list params +func (o *DcimSitesListParams) WithLongitudeGte(longitudeGte *string) *DcimSitesListParams { + o.SetLongitudeGte(longitudeGte) + return o +} + +// SetLongitudeGte adds the longitudeGte to the dcim sites list params +func (o *DcimSitesListParams) SetLongitudeGte(longitudeGte *string) { + o.LongitudeGte = longitudeGte +} + +// WithLongitudeLt adds the longitudeLt to the dcim sites list params +func (o *DcimSitesListParams) WithLongitudeLt(longitudeLt *string) *DcimSitesListParams { + o.SetLongitudeLt(longitudeLt) + return o +} + +// SetLongitudeLt adds the longitudeLt to the dcim sites list params +func (o *DcimSitesListParams) SetLongitudeLt(longitudeLt *string) { + o.LongitudeLt = longitudeLt +} + +// WithLongitudeLte adds the longitudeLte to the dcim sites list params +func (o *DcimSitesListParams) WithLongitudeLte(longitudeLte *string) *DcimSitesListParams { + o.SetLongitudeLte(longitudeLte) + return o +} + +// SetLongitudeLte adds the longitudeLte to the dcim sites list params +func (o *DcimSitesListParams) SetLongitudeLte(longitudeLte *string) { + o.LongitudeLte = longitudeLte +} + +// WithLongituden adds the longituden to the dcim sites list params +func (o *DcimSitesListParams) WithLongituden(longituden *string) *DcimSitesListParams { + o.SetLongituden(longituden) + return o +} + +// SetLongituden adds the longitudeN to the dcim sites list params +func (o *DcimSitesListParams) SetLongituden(longituden *string) { + o.Longituden = longituden +} + +// WithName adds the name to the dcim sites list params +func (o *DcimSitesListParams) WithName(name *string) *DcimSitesListParams { + o.SetName(name) return o } @@ -368,6 +1131,105 @@ func (o *DcimSitesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the dcim sites list params +func (o *DcimSitesListParams) WithNameIc(nameIc *string) *DcimSitesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the dcim sites list params +func (o *DcimSitesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the dcim sites list params +func (o *DcimSitesListParams) WithNameIe(nameIe *string) *DcimSitesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the dcim sites list params +func (o *DcimSitesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the dcim sites list params +func (o *DcimSitesListParams) WithNameIew(nameIew *string) *DcimSitesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the dcim sites list params +func (o *DcimSitesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the dcim sites list params +func (o *DcimSitesListParams) WithNameIsw(nameIsw *string) *DcimSitesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the dcim sites list params +func (o *DcimSitesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the dcim sites list params +func (o *DcimSitesListParams) WithNamen(namen *string) *DcimSitesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the dcim sites list params +func (o *DcimSitesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the dcim sites list params +func (o *DcimSitesListParams) WithNameNic(nameNic *string) *DcimSitesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the dcim sites list params +func (o *DcimSitesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the dcim sites list params +func (o *DcimSitesListParams) WithNameNie(nameNie *string) *DcimSitesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the dcim sites list params +func (o *DcimSitesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the dcim sites list params +func (o *DcimSitesListParams) WithNameNiew(nameNiew *string) *DcimSitesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the dcim sites list params +func (o *DcimSitesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the dcim sites list params +func (o *DcimSitesListParams) WithNameNisw(nameNisw *string) *DcimSitesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the dcim sites list params +func (o *DcimSitesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the dcim sites list params func (o *DcimSitesListParams) WithOffset(offset *int64) *DcimSitesListParams { o.SetOffset(offset) @@ -401,6 +1263,17 @@ func (o *DcimSitesListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim sites list params +func (o *DcimSitesListParams) WithRegionn(regionn *string) *DcimSitesListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim sites list params +func (o *DcimSitesListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim sites list params func (o *DcimSitesListParams) WithRegionID(regionID *string) *DcimSitesListParams { o.SetRegionID(regionID) @@ -412,6 +1285,17 @@ func (o *DcimSitesListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim sites list params +func (o *DcimSitesListParams) WithRegionIDn(regionIDn *string) *DcimSitesListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim sites list params +func (o *DcimSitesListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSlug adds the slug to the dcim sites list params func (o *DcimSitesListParams) WithSlug(slug *string) *DcimSitesListParams { o.SetSlug(slug) @@ -423,6 +1307,105 @@ func (o *DcimSitesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the dcim sites list params +func (o *DcimSitesListParams) WithSlugIc(slugIc *string) *DcimSitesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the dcim sites list params +func (o *DcimSitesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the dcim sites list params +func (o *DcimSitesListParams) WithSlugIe(slugIe *string) *DcimSitesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the dcim sites list params +func (o *DcimSitesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the dcim sites list params +func (o *DcimSitesListParams) WithSlugIew(slugIew *string) *DcimSitesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the dcim sites list params +func (o *DcimSitesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the dcim sites list params +func (o *DcimSitesListParams) WithSlugIsw(slugIsw *string) *DcimSitesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the dcim sites list params +func (o *DcimSitesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the dcim sites list params +func (o *DcimSitesListParams) WithSlugn(slugn *string) *DcimSitesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the dcim sites list params +func (o *DcimSitesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the dcim sites list params +func (o *DcimSitesListParams) WithSlugNic(slugNic *string) *DcimSitesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the dcim sites list params +func (o *DcimSitesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the dcim sites list params +func (o *DcimSitesListParams) WithSlugNie(slugNie *string) *DcimSitesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the dcim sites list params +func (o *DcimSitesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the dcim sites list params +func (o *DcimSitesListParams) WithSlugNiew(slugNiew *string) *DcimSitesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the dcim sites list params +func (o *DcimSitesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the dcim sites list params +func (o *DcimSitesListParams) WithSlugNisw(slugNisw *string) *DcimSitesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the dcim sites list params +func (o *DcimSitesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WithStatus adds the status to the dcim sites list params func (o *DcimSitesListParams) WithStatus(status *string) *DcimSitesListParams { o.SetStatus(status) @@ -434,6 +1417,17 @@ func (o *DcimSitesListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the dcim sites list params +func (o *DcimSitesListParams) WithStatusn(statusn *string) *DcimSitesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the dcim sites list params +func (o *DcimSitesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the dcim sites list params func (o *DcimSitesListParams) WithTag(tag *string) *DcimSitesListParams { o.SetTag(tag) @@ -445,6 +1439,17 @@ func (o *DcimSitesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim sites list params +func (o *DcimSitesListParams) WithTagn(tagn *string) *DcimSitesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim sites list params +func (o *DcimSitesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the dcim sites list params func (o *DcimSitesListParams) WithTenant(tenant *string) *DcimSitesListParams { o.SetTenant(tenant) @@ -456,6 +1461,17 @@ func (o *DcimSitesListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the dcim sites list params +func (o *DcimSitesListParams) WithTenantn(tenantn *string) *DcimSitesListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the dcim sites list params +func (o *DcimSitesListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the dcim sites list params func (o *DcimSitesListParams) WithTenantGroup(tenantGroup *string) *DcimSitesListParams { o.SetTenantGroup(tenantGroup) @@ -467,6 +1483,17 @@ func (o *DcimSitesListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the dcim sites list params +func (o *DcimSitesListParams) WithTenantGroupn(tenantGroupn *string) *DcimSitesListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the dcim sites list params +func (o *DcimSitesListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the dcim sites list params func (o *DcimSitesListParams) WithTenantGroupID(tenantGroupID *string) *DcimSitesListParams { o.SetTenantGroupID(tenantGroupID) @@ -478,6 +1505,17 @@ func (o *DcimSitesListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the dcim sites list params +func (o *DcimSitesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *DcimSitesListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the dcim sites list params +func (o *DcimSitesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the dcim sites list params func (o *DcimSitesListParams) WithTenantID(tenantID *string) *DcimSitesListParams { o.SetTenantID(tenantID) @@ -489,6 +1527,17 @@ func (o *DcimSitesListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the dcim sites list params +func (o *DcimSitesListParams) WithTenantIDn(tenantIDn *string) *DcimSitesListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the dcim sites list params +func (o *DcimSitesListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WriteToRequest writes these params to a swagger request func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -513,6 +1562,86 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.AsnGt != nil { + + // query param asn__gt + var qrAsnGt string + if o.AsnGt != nil { + qrAsnGt = *o.AsnGt + } + qAsnGt := qrAsnGt + if qAsnGt != "" { + if err := r.SetQueryParam("asn__gt", qAsnGt); err != nil { + return err + } + } + + } + + if o.AsnGte != nil { + + // query param asn__gte + var qrAsnGte string + if o.AsnGte != nil { + qrAsnGte = *o.AsnGte + } + qAsnGte := qrAsnGte + if qAsnGte != "" { + if err := r.SetQueryParam("asn__gte", qAsnGte); err != nil { + return err + } + } + + } + + if o.AsnLt != nil { + + // query param asn__lt + var qrAsnLt 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.ContactEmail != nil { // query param contact_email @@ -529,240 +1658,1184 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } - if o.ContactName != nil { + 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 { + + // query param contact_email__n + var qrContactEmailn string + if o.ContactEmailn != nil { + qrContactEmailn = *o.ContactEmailn + } + qContactEmailn := qrContactEmailn + if qContactEmailn != "" { + if err := r.SetQueryParam("contact_email__n", qContactEmailn); err != nil { + return err + } + } + + } + + if o.ContactEmailNic != nil { + + // query param contact_email__nic + var qrContactEmailNic string + if o.ContactEmailNic != nil { + qrContactEmailNic = *o.ContactEmailNic + } + qContactEmailNic := qrContactEmailNic + if qContactEmailNic != "" { + 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.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.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 { + return err + } + } + + } + + if o.Created != nil { + + // query param created + var qrCreated string + if o.Created != nil { + qrCreated = *o.Created + } + qCreated := qrCreated + if qCreated != "" { + if err := r.SetQueryParam("created", qCreated); err != nil { + return err + } + } + + } + + if o.CreatedGte != nil { + + // query param created__gte + var qrCreatedGte string + if o.CreatedGte != nil { + qrCreatedGte = *o.CreatedGte + } + qCreatedGte := qrCreatedGte + if qCreatedGte != "" { + if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { + return err + } + } + + } + + if o.CreatedLte != nil { + + // query param created__lte + var qrCreatedLte string + if o.CreatedLte != nil { + qrCreatedLte = *o.CreatedLte + } + qCreatedLte := qrCreatedLte + if qCreatedLte != "" { + if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { + return err + } + } + + } + + if o.Facility != nil { + + // query param facility + var qrFacility string + if o.Facility != nil { + qrFacility = *o.Facility + } + qFacility := qrFacility + if qFacility != "" { + if err := r.SetQueryParam("facility", qFacility); err != nil { + return err + } + } + + } + + if o.FacilityIc != nil { + + // query param facility__ic + var qrFacilityIc string + if o.FacilityIc != nil { + qrFacilityIc = *o.FacilityIc + } + qFacilityIc := qrFacilityIc + if qFacilityIc != "" { + if err := r.SetQueryParam("facility__ic", qFacilityIc); err != nil { + return err + } + } + + } + + if o.FacilityIe != nil { + + // query param facility__ie + var qrFacilityIe string + if o.FacilityIe != nil { + qrFacilityIe = *o.FacilityIe + } + qFacilityIe := qrFacilityIe + if qFacilityIe != "" { + if err := r.SetQueryParam("facility__ie", qFacilityIe); err != nil { + return err + } + } + + } + + if o.FacilityIew != nil { + + // query param facility__iew + var qrFacilityIew string + if o.FacilityIew != nil { + qrFacilityIew = *o.FacilityIew + } + qFacilityIew := qrFacilityIew + if qFacilityIew != "" { + if err := r.SetQueryParam("facility__iew", qFacilityIew); err != nil { + return err + } + } + + } + + if o.FacilityIsw != nil { + + // query param facility__isw + var qrFacilityIsw string + if o.FacilityIsw != nil { + qrFacilityIsw = *o.FacilityIsw + } + qFacilityIsw := qrFacilityIsw + if qFacilityIsw != "" { + if err := r.SetQueryParam("facility__isw", qFacilityIsw); err != nil { + return err + } + } + + } + + if o.Facilityn != nil { + + // query param facility__n + var qrFacilityn string + if o.Facilityn != nil { + qrFacilityn = *o.Facilityn + } + qFacilityn := qrFacilityn + if qFacilityn != "" { + if err := r.SetQueryParam("facility__n", qFacilityn); err != nil { + return err + } + } + + } + + if o.FacilityNic != nil { + + // query param facility__nic + var qrFacilityNic string + if o.FacilityNic != nil { + qrFacilityNic = *o.FacilityNic + } + qFacilityNic := qrFacilityNic + if qFacilityNic != "" { + if err := r.SetQueryParam("facility__nic", qFacilityNic); err != nil { + return err + } + } + + } + + if o.FacilityNie != nil { + + // query param facility__nie + var qrFacilityNie string + if o.FacilityNie != nil { + qrFacilityNie = *o.FacilityNie + } + qFacilityNie := qrFacilityNie + if qFacilityNie != "" { + if err := r.SetQueryParam("facility__nie", qFacilityNie); err != nil { + return err + } + } + + } + + if o.FacilityNiew != nil { + + // query param facility__niew + var qrFacilityNiew string + if o.FacilityNiew != nil { + qrFacilityNiew = *o.FacilityNiew + } + qFacilityNiew := qrFacilityNiew + if qFacilityNiew != "" { + if err := r.SetQueryParam("facility__niew", qFacilityNiew); err != nil { + return err + } + } + + } + + if o.FacilityNisw != nil { + + // query param facility__nisw + var qrFacilityNisw string + if o.FacilityNisw != nil { + qrFacilityNisw = *o.FacilityNisw + } + qFacilityNisw := qrFacilityNisw + if qFacilityNisw != "" { + if err := r.SetQueryParam("facility__nisw", qFacilityNisw); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + + if o.LastUpdated != nil { + + // query param last_updated + var qrLastUpdated string + if o.LastUpdated != nil { + qrLastUpdated = *o.LastUpdated + } + qLastUpdated := qrLastUpdated + if qLastUpdated != "" { + if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + return err + } + } + + } + + if o.LastUpdatedGte != nil { + + // query param last_updated__gte + var qrLastUpdatedGte string + if o.LastUpdatedGte != nil { + qrLastUpdatedGte = *o.LastUpdatedGte + } + qLastUpdatedGte := qrLastUpdatedGte + if qLastUpdatedGte != "" { + if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { + return err + } + } + + } + + if o.LastUpdatedLte != nil { + + // query param last_updated__lte + var qrLastUpdatedLte string + if o.LastUpdatedLte != nil { + qrLastUpdatedLte = *o.LastUpdatedLte + } + qLastUpdatedLte := qrLastUpdatedLte + if qLastUpdatedLte != "" { + if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { + return err + } + } + + } + + if o.Latitude != nil { + + // query param latitude + var qrLatitude string + if o.Latitude != nil { + qrLatitude = *o.Latitude + } + qLatitude := qrLatitude + if qLatitude != "" { + if err := r.SetQueryParam("latitude", qLatitude); err != nil { + return err + } + } + + } + + if o.LatitudeGt != nil { + + // query param latitude__gt + var qrLatitudeGt string + if o.LatitudeGt != nil { + qrLatitudeGt = *o.LatitudeGt + } + qLatitudeGt := qrLatitudeGt + if qLatitudeGt != "" { + if err := r.SetQueryParam("latitude__gt", qLatitudeGt); err != nil { + return err + } + } + + } + + if o.LatitudeGte != nil { + + // query param latitude__gte + var qrLatitudeGte string + if o.LatitudeGte != nil { + qrLatitudeGte = *o.LatitudeGte + } + qLatitudeGte := qrLatitudeGte + if qLatitudeGte != "" { + if err := r.SetQueryParam("latitude__gte", qLatitudeGte); err != nil { + return err + } + } + + } + + if o.LatitudeLt != nil { + + // query param latitude__lt + var qrLatitudeLt string + if o.LatitudeLt != nil { + qrLatitudeLt = *o.LatitudeLt + } + qLatitudeLt := qrLatitudeLt + if qLatitudeLt != "" { + if err := r.SetQueryParam("latitude__lt", qLatitudeLt); err != nil { + return err + } + } + + } + + if o.LatitudeLte != nil { + + // query param latitude__lte + var qrLatitudeLte string + if o.LatitudeLte != nil { + qrLatitudeLte = *o.LatitudeLte + } + qLatitudeLte := qrLatitudeLte + if qLatitudeLte != "" { + if err := r.SetQueryParam("latitude__lte", qLatitudeLte); err != nil { + return err + } + } + + } + + if o.Latituden != nil { + + // query param latitude__n + var qrLatituden string + if o.Latituden != nil { + qrLatituden = *o.Latituden + } + qLatituden := qrLatituden + if qLatituden != "" { + if err := r.SetQueryParam("latitude__n", qLatituden); err != nil { + return err + } + } + + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + + } + + if o.Longitude != nil { + + // query param longitude + var qrLongitude string + if o.Longitude != nil { + qrLongitude = *o.Longitude + } + qLongitude := qrLongitude + if qLongitude != "" { + if err := r.SetQueryParam("longitude", qLongitude); err != nil { + return err + } + } + + } + + if o.LongitudeGt != nil { - // query param contact_name - var qrContactName string - if o.ContactName != nil { - qrContactName = *o.ContactName + // query param longitude__gt + var qrLongitudeGt string + if o.LongitudeGt != nil { + qrLongitudeGt = *o.LongitudeGt } - qContactName := qrContactName - if qContactName != "" { - if err := r.SetQueryParam("contact_name", qContactName); err != nil { + qLongitudeGt := qrLongitudeGt + if qLongitudeGt != "" { + if err := r.SetQueryParam("longitude__gt", qLongitudeGt); err != nil { return err } } } - if o.ContactPhone != nil { + if o.LongitudeGte != nil { - // query param contact_phone - var qrContactPhone string - if o.ContactPhone != nil { - qrContactPhone = *o.ContactPhone + // query param longitude__gte + var qrLongitudeGte string + if o.LongitudeGte != nil { + qrLongitudeGte = *o.LongitudeGte } - qContactPhone := qrContactPhone - if qContactPhone != "" { - if err := r.SetQueryParam("contact_phone", qContactPhone); err != nil { + qLongitudeGte := qrLongitudeGte + if qLongitudeGte != "" { + if err := r.SetQueryParam("longitude__gte", qLongitudeGte); err != nil { return err } } } - if o.Created != nil { + if o.LongitudeLt != nil { - // query param created - var qrCreated string - if o.Created != nil { - qrCreated = *o.Created + // query param longitude__lt + var qrLongitudeLt string + if o.LongitudeLt != nil { + qrLongitudeLt = *o.LongitudeLt } - qCreated := qrCreated - if qCreated != "" { - if err := r.SetQueryParam("created", qCreated); err != nil { + qLongitudeLt := qrLongitudeLt + if qLongitudeLt != "" { + if err := r.SetQueryParam("longitude__lt", qLongitudeLt); err != nil { return err } } } - if o.CreatedGte != nil { + if o.LongitudeLte != nil { - // query param created__gte - var qrCreatedGte string - if o.CreatedGte != nil { - qrCreatedGte = *o.CreatedGte + // query param longitude__lte + var qrLongitudeLte string + if o.LongitudeLte != nil { + qrLongitudeLte = *o.LongitudeLte } - qCreatedGte := qrCreatedGte - if qCreatedGte != "" { - if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil { + qLongitudeLte := qrLongitudeLte + if qLongitudeLte != "" { + if err := r.SetQueryParam("longitude__lte", qLongitudeLte); err != nil { return err } } } - if o.CreatedLte != nil { + if o.Longituden != nil { - // query param created__lte - var qrCreatedLte string - if o.CreatedLte != nil { - qrCreatedLte = *o.CreatedLte + // query param longitude__n + var qrLongituden string + if o.Longituden != nil { + qrLongituden = *o.Longituden } - qCreatedLte := qrCreatedLte - if qCreatedLte != "" { - if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil { + qLongituden := qrLongituden + if qLongituden != "" { + if err := r.SetQueryParam("longitude__n", qLongituden); err != nil { return err } } } - if o.Facility != nil { + if o.Name != nil { - // query param facility - var qrFacility string - if o.Facility != nil { - qrFacility = *o.Facility + // query param name + var qrName string + if o.Name != nil { + qrName = *o.Name } - qFacility := qrFacility - if qFacility != "" { - if err := r.SetQueryParam("facility", qFacility); err != nil { + qName := qrName + if qName != "" { + if err := r.SetQueryParam("name", qName); err != nil { return err } } } - if o.ID != nil { + if o.NameIc != nil { - // query param id - var qrID string - if o.ID != nil { - qrID = *o.ID + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc } - qID := qrID - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { return err } } } - if o.IDIn != nil { + if o.NameIe != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { return err } } } - if o.LastUpdated != nil { + if o.NameIew != nil { - // query param last_updated - var qrLastUpdated string - if o.LastUpdated != nil { - qrLastUpdated = *o.LastUpdated + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew } - qLastUpdated := qrLastUpdated - if qLastUpdated != "" { - if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil { + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { return err } } } - if o.LastUpdatedGte != nil { + if o.NameIsw != nil { - // query param last_updated__gte - var qrLastUpdatedGte string - if o.LastUpdatedGte != nil { - qrLastUpdatedGte = *o.LastUpdatedGte + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw } - qLastUpdatedGte := qrLastUpdatedGte - if qLastUpdatedGte != "" { - if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil { + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { return err } } } - if o.LastUpdatedLte != nil { + if o.Namen != nil { - // query param last_updated__lte - var qrLastUpdatedLte string - if o.LastUpdatedLte != nil { - qrLastUpdatedLte = *o.LastUpdatedLte + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen } - qLastUpdatedLte := qrLastUpdatedLte - if qLastUpdatedLte != "" { - if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil { + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { return err } } } - if o.Latitude != nil { + if o.NameNic != nil { - // query param latitude - var qrLatitude string - if o.Latitude != nil { - qrLatitude = *o.Latitude + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic } - qLatitude := qrLatitude - if qLatitude != "" { - if err := r.SetQueryParam("latitude", qLatitude); err != nil { + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { return err } } } - if o.Limit != nil { + if o.NameNie != nil { - // query param limit - var qrLimit int64 - if o.Limit != nil { - qrLimit = *o.Limit + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { return err } } } - if o.Longitude != nil { + if o.NameNiew != nil { - // query param longitude - var qrLongitude string - if o.Longitude != nil { - qrLongitude = *o.Longitude + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew } - qLongitude := qrLongitude - if qLongitude != "" { - if err := r.SetQueryParam("longitude", qLongitude); err != nil { + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { return err } } } - if o.Name != nil { + if o.NameNisw != nil { - // query param name - var qrName string - if o.Name != nil { - qrName = *o.Name + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw } - qName := qrName - if qName != "" { - if err := r.SetQueryParam("name", qName); err != nil { + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { return err } } @@ -817,6 +2890,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -833,6 +2922,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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.Slug != nil { // query param slug @@ -849,6 +2954,150 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -865,6 +3114,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -881,6 +3146,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -897,6 +3178,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -913,6 +3210,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -929,6 +3242,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -945,6 +3274,22 @@ func (o *DcimSitesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_responses.go index aeae2e56c..91930daeb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimSitesListReader is a Reader for the DcimSitesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_parameters.go index 8b2a5428b..98e7076bd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimSitesPartialUpdateParams creates a new DcimSitesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_responses.go index d1f6f85db..3a2d1c815 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimSitesPartialUpdateReader is a Reader for the DcimSitesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_parameters.go index e92251c30..ae533d7fb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimSitesReadParams creates a new DcimSitesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_responses.go index daa9c8f78..019580435 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimSitesReadReader is a Reader for the DcimSitesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_parameters.go index 072e87a16..e43283fa6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimSitesUpdateParams creates a new DcimSitesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_responses.go index b32cfde4d..9784a4a3d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_sites_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimSitesUpdateReader is a Reader for the DcimSitesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_parameters.go index 8a6ed0cfa..aaf10123b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimVirtualChassisCreateParams creates a new DcimVirtualChassisCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_responses.go index 0d4947b45..12bb9e617 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimVirtualChassisCreateReader is a Reader for the DcimVirtualChassisCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_parameters.go index 05479be21..f49b21435 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimVirtualChassisDeleteParams creates a new DcimVirtualChassisDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_responses.go index ea62a92f0..46a3812a2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // DcimVirtualChassisDeleteReader is a Reader for the DcimVirtualChassisDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go index 98e73a04d..2e1a1da5e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimVirtualChassisListParams creates a new DcimVirtualChassisListParams object @@ -79,8 +78,36 @@ type DcimVirtualChassisListParams struct { /*Domain*/ Domain *string + /*DomainIc*/ + DomainIc *string + /*DomainIe*/ + DomainIe *string + /*DomainIew*/ + DomainIew *string + /*DomainIsw*/ + DomainIsw *string + /*Domainn*/ + Domainn *string + /*DomainNic*/ + DomainNic *string + /*DomainNie*/ + DomainNie *string + /*DomainNiew*/ + DomainNiew *string + /*DomainNisw*/ + DomainNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -95,18 +122,32 @@ type DcimVirtualChassisListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string timeout time.Duration Context context.Context @@ -157,6 +198,105 @@ func (o *DcimVirtualChassisListParams) SetDomain(domain *string) { o.Domain = domain } +// WithDomainIc adds the domainIc to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainIc(domainIc *string) *DcimVirtualChassisListParams { + o.SetDomainIc(domainIc) + return o +} + +// SetDomainIc adds the domainIc to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainIc(domainIc *string) { + o.DomainIc = domainIc +} + +// WithDomainIe adds the domainIe to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainIe(domainIe *string) *DcimVirtualChassisListParams { + o.SetDomainIe(domainIe) + return o +} + +// SetDomainIe adds the domainIe to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainIe(domainIe *string) { + o.DomainIe = domainIe +} + +// WithDomainIew adds the domainIew to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainIew(domainIew *string) *DcimVirtualChassisListParams { + o.SetDomainIew(domainIew) + return o +} + +// SetDomainIew adds the domainIew to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainIew(domainIew *string) { + o.DomainIew = domainIew +} + +// WithDomainIsw adds the domainIsw to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainIsw(domainIsw *string) *DcimVirtualChassisListParams { + o.SetDomainIsw(domainIsw) + return o +} + +// SetDomainIsw adds the domainIsw to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainIsw(domainIsw *string) { + o.DomainIsw = domainIsw +} + +// WithDomainn adds the domainn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainn(domainn *string) *DcimVirtualChassisListParams { + o.SetDomainn(domainn) + return o +} + +// SetDomainn adds the domainN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainn(domainn *string) { + o.Domainn = domainn +} + +// WithDomainNic adds the domainNic to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainNic(domainNic *string) *DcimVirtualChassisListParams { + o.SetDomainNic(domainNic) + return o +} + +// SetDomainNic adds the domainNic to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainNic(domainNic *string) { + o.DomainNic = domainNic +} + +// WithDomainNie adds the domainNie to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainNie(domainNie *string) *DcimVirtualChassisListParams { + o.SetDomainNie(domainNie) + return o +} + +// SetDomainNie adds the domainNie to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainNie(domainNie *string) { + o.DomainNie = domainNie +} + +// WithDomainNiew adds the domainNiew to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainNiew(domainNiew *string) *DcimVirtualChassisListParams { + o.SetDomainNiew(domainNiew) + return o +} + +// SetDomainNiew adds the domainNiew to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainNiew(domainNiew *string) { + o.DomainNiew = domainNiew +} + +// WithDomainNisw adds the domainNisw to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithDomainNisw(domainNisw *string) *DcimVirtualChassisListParams { + o.SetDomainNisw(domainNisw) + return o +} + +// SetDomainNisw adds the domainNisw to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetDomainNisw(domainNisw *string) { + o.DomainNisw = domainNisw +} + // WithID adds the id to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithID(id *string) *DcimVirtualChassisListParams { o.SetID(id) @@ -168,6 +308,61 @@ func (o *DcimVirtualChassisListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithIDGt(iDGt *string) *DcimVirtualChassisListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithIDGte(iDGte *string) *DcimVirtualChassisListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithIDLt(iDLt *string) *DcimVirtualChassisListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithIDLte(iDLte *string) *DcimVirtualChassisListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithIDn(iDn *string) *DcimVirtualChassisListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithLimit(limit *int64) *DcimVirtualChassisListParams { o.SetLimit(limit) @@ -212,6 +407,17 @@ func (o *DcimVirtualChassisListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithRegionn(regionn *string) *DcimVirtualChassisListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithRegionID(regionID *string) *DcimVirtualChassisListParams { o.SetRegionID(regionID) @@ -223,6 +429,17 @@ func (o *DcimVirtualChassisListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithRegionIDn(regionIDn *string) *DcimVirtualChassisListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithSite(site *string) *DcimVirtualChassisListParams { o.SetSite(site) @@ -234,6 +451,17 @@ func (o *DcimVirtualChassisListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithSiten(siten *string) *DcimVirtualChassisListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithSiteID(siteID *string) *DcimVirtualChassisListParams { o.SetSiteID(siteID) @@ -245,6 +473,17 @@ func (o *DcimVirtualChassisListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithSiteIDn(siteIDn *string) *DcimVirtualChassisListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithTag(tag *string) *DcimVirtualChassisListParams { o.SetTag(tag) @@ -256,6 +495,17 @@ func (o *DcimVirtualChassisListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithTagn(tagn *string) *DcimVirtualChassisListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithTenant(tenant *string) *DcimVirtualChassisListParams { o.SetTenant(tenant) @@ -267,6 +517,17 @@ func (o *DcimVirtualChassisListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithTenantn(tenantn *string) *DcimVirtualChassisListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantID adds the tenantID to the dcim virtual chassis list params func (o *DcimVirtualChassisListParams) WithTenantID(tenantID *string) *DcimVirtualChassisListParams { o.SetTenantID(tenantID) @@ -278,6 +539,17 @@ func (o *DcimVirtualChassisListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) WithTenantIDn(tenantIDn *string) *DcimVirtualChassisListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the dcim virtual chassis list params +func (o *DcimVirtualChassisListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WriteToRequest writes these params to a swagger request func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -302,6 +574,150 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.DomainIc != nil { + + // query param domain__ic + var qrDomainIc string + if o.DomainIc != nil { + qrDomainIc = *o.DomainIc + } + qDomainIc := qrDomainIc + if qDomainIc != "" { + if err := r.SetQueryParam("domain__ic", qDomainIc); err != nil { + return err + } + } + + } + + if o.DomainIe != nil { + + // query param domain__ie + var qrDomainIe string + if o.DomainIe != nil { + qrDomainIe = *o.DomainIe + } + qDomainIe := qrDomainIe + if qDomainIe != "" { + if err := r.SetQueryParam("domain__ie", qDomainIe); err != nil { + return err + } + } + + } + + if o.DomainIew != nil { + + // query param domain__iew + var qrDomainIew string + if o.DomainIew != nil { + qrDomainIew = *o.DomainIew + } + qDomainIew := qrDomainIew + if qDomainIew != "" { + if err := r.SetQueryParam("domain__iew", qDomainIew); err != nil { + return err + } + } + + } + + if o.DomainIsw != nil { + + // query param domain__isw + var qrDomainIsw string + if o.DomainIsw != nil { + qrDomainIsw = *o.DomainIsw + } + qDomainIsw := qrDomainIsw + if qDomainIsw != "" { + if err := r.SetQueryParam("domain__isw", qDomainIsw); err != nil { + return err + } + } + + } + + if o.Domainn != nil { + + // query param domain__n + var qrDomainn string + if o.Domainn != nil { + qrDomainn = *o.Domainn + } + qDomainn := qrDomainn + if qDomainn != "" { + if err := r.SetQueryParam("domain__n", qDomainn); err != nil { + return err + } + } + + } + + if o.DomainNic != nil { + + // query param domain__nic + var qrDomainNic string + if o.DomainNic != nil { + qrDomainNic = *o.DomainNic + } + qDomainNic := qrDomainNic + if qDomainNic != "" { + if err := r.SetQueryParam("domain__nic", qDomainNic); err != nil { + return err + } + } + + } + + if o.DomainNie != nil { + + // query param domain__nie + var qrDomainNie string + if o.DomainNie != nil { + qrDomainNie = *o.DomainNie + } + qDomainNie := qrDomainNie + if qDomainNie != "" { + if err := r.SetQueryParam("domain__nie", qDomainNie); err != nil { + return err + } + } + + } + + if o.DomainNiew != nil { + + // query param domain__niew + var qrDomainNiew string + if o.DomainNiew != nil { + qrDomainNiew = *o.DomainNiew + } + qDomainNiew := qrDomainNiew + if qDomainNiew != "" { + if err := r.SetQueryParam("domain__niew", qDomainNiew); err != nil { + return err + } + } + + } + + if o.DomainNisw != nil { + + // query param domain__nisw + var qrDomainNisw string + if o.DomainNisw != nil { + qrDomainNisw = *o.DomainNisw + } + qDomainNisw := qrDomainNisw + if qDomainNisw != "" { + if err := r.SetQueryParam("domain__nisw", qDomainNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -318,6 +734,86 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -382,6 +878,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + 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 @@ -398,6 +910,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + 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 @@ -414,6 +942,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -430,6 +974,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -446,6 +1006,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + 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 @@ -462,6 +1038,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -478,6 +1070,22 @@ func (o *DcimVirtualChassisListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_responses.go index c5a1beef7..efb77a346 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimVirtualChassisListReader is a Reader for the DcimVirtualChassisList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_parameters.go index 1ae7df151..c06f30b82 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimVirtualChassisPartialUpdateParams creates a new DcimVirtualChassisPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_responses.go index 0495daa95..44b458215 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimVirtualChassisPartialUpdateReader is a Reader for the DcimVirtualChassisPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_parameters.go index 8a94da5f3..51e3583d4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewDcimVirtualChassisReadParams creates a new DcimVirtualChassisReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_responses.go index 3b4cf7d21..55ed4690d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimVirtualChassisReadReader is a Reader for the DcimVirtualChassisRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_parameters.go index e93190989..a58f06513 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewDcimVirtualChassisUpdateParams creates a new DcimVirtualChassisUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_responses.go index 2037ce10c..e4016abdc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/dcim/dcim_virtual_chassis_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // DcimVirtualChassisUpdateReader is a Reader for the DcimVirtualChassisUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_client.go index 0029d2894..1742e37c1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new extras API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,78 +40,91 @@ type Client struct { formats strfmt.Registry } -/* -ExtrasChoicesList extras choices list API -*/ -func (a *Client) ExtrasChoicesList(params *ExtrasChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewExtrasChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + ExtrasCustomFieldChoicesList(params *ExtrasCustomFieldChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasCustomFieldChoicesListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "extras__choices_list", - Method: "GET", - PathPattern: "/extras/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ExtrasChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ExtrasChoicesListOK) - 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 extras__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + ExtrasCustomFieldChoicesRead(params *ExtrasCustomFieldChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasCustomFieldChoicesReadOK, error) -/* -ExtrasChoicesRead extras choices read API -*/ -func (a *Client) ExtrasChoicesRead(params *ExtrasChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewExtrasChoicesReadParams() - } + ExtrasConfigContextsCreate(params *ExtrasConfigContextsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "extras__choices_read", - Method: "GET", - PathPattern: "/extras/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ExtrasChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ExtrasChoicesReadOK) - 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 extras__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + ExtrasConfigContextsDelete(params *ExtrasConfigContextsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsDeleteNoContent, error) + + ExtrasConfigContextsList(params *ExtrasConfigContextsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsListOK, error) + + ExtrasConfigContextsPartialUpdate(params *ExtrasConfigContextsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsPartialUpdateOK, error) + + ExtrasConfigContextsRead(params *ExtrasConfigContextsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsReadOK, error) + + ExtrasConfigContextsUpdate(params *ExtrasConfigContextsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsUpdateOK, error) + + ExtrasExportTemplatesCreate(params *ExtrasExportTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesCreateCreated, error) + + ExtrasExportTemplatesDelete(params *ExtrasExportTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesDeleteNoContent, error) + + ExtrasExportTemplatesList(params *ExtrasExportTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesListOK, error) + + ExtrasExportTemplatesPartialUpdate(params *ExtrasExportTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesPartialUpdateOK, error) + + ExtrasExportTemplatesRead(params *ExtrasExportTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesReadOK, error) + + ExtrasExportTemplatesUpdate(params *ExtrasExportTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesUpdateOK, error) + + ExtrasGraphsCreate(params *ExtrasGraphsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsCreateCreated, error) + + ExtrasGraphsDelete(params *ExtrasGraphsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsDeleteNoContent, error) + + ExtrasGraphsList(params *ExtrasGraphsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsListOK, error) + + ExtrasGraphsPartialUpdate(params *ExtrasGraphsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsPartialUpdateOK, error) + + ExtrasGraphsRead(params *ExtrasGraphsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsReadOK, error) + + ExtrasGraphsUpdate(params *ExtrasGraphsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsUpdateOK, error) + + ExtrasImageAttachmentsCreate(params *ExtrasImageAttachmentsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsCreateCreated, error) + + ExtrasImageAttachmentsDelete(params *ExtrasImageAttachmentsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsDeleteNoContent, error) + + ExtrasImageAttachmentsList(params *ExtrasImageAttachmentsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsListOK, error) + + ExtrasImageAttachmentsPartialUpdate(params *ExtrasImageAttachmentsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsPartialUpdateOK, error) + + ExtrasImageAttachmentsRead(params *ExtrasImageAttachmentsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsReadOK, error) + + ExtrasImageAttachmentsUpdate(params *ExtrasImageAttachmentsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsUpdateOK, error) + + ExtrasObjectChangesList(params *ExtrasObjectChangesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasObjectChangesListOK, error) + + ExtrasObjectChangesRead(params *ExtrasObjectChangesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasObjectChangesReadOK, error) + + ExtrasReportsList(params *ExtrasReportsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasReportsListOK, error) + + ExtrasReportsRead(params *ExtrasReportsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasReportsReadOK, error) + + ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasReportsRunCreated, error) + + ExtrasScriptsList(params *ExtrasScriptsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasScriptsListOK, error) + + ExtrasScriptsRead(params *ExtrasScriptsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasScriptsReadOK, error) + + ExtrasTagsCreate(params *ExtrasTagsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsCreateCreated, error) + + ExtrasTagsDelete(params *ExtrasTagsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsDeleteNoContent, error) + + ExtrasTagsList(params *ExtrasTagsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsListOK, error) + + ExtrasTagsPartialUpdate(params *ExtrasTagsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsPartialUpdateOK, error) + + ExtrasTagsRead(params *ExtrasTagsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsReadOK, error) + + ExtrasTagsUpdate(params *ExtrasTagsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -ExtrasCustomFieldChoicesList extras custom field choices list API + ExtrasCustomFieldChoicesList extras custom field choices list API */ func (a *Client) ExtrasCustomFieldChoicesList(params *ExtrasCustomFieldChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasCustomFieldChoicesListOK, error) { // TODO: Validate the params before sending @@ -147,7 +159,7 @@ func (a *Client) ExtrasCustomFieldChoicesList(params *ExtrasCustomFieldChoicesLi } /* -ExtrasCustomFieldChoicesRead extras custom field choices read API + ExtrasCustomFieldChoicesRead extras custom field choices read API */ func (a *Client) ExtrasCustomFieldChoicesRead(params *ExtrasCustomFieldChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasCustomFieldChoicesReadOK, error) { // TODO: Validate the params before sending @@ -182,7 +194,7 @@ func (a *Client) ExtrasCustomFieldChoicesRead(params *ExtrasCustomFieldChoicesRe } /* -ExtrasConfigContextsCreate extras config contexts create API + ExtrasConfigContextsCreate extras config contexts create API */ func (a *Client) ExtrasConfigContextsCreate(params *ExtrasConfigContextsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsCreateCreated, error) { // TODO: Validate the params before sending @@ -217,7 +229,7 @@ func (a *Client) ExtrasConfigContextsCreate(params *ExtrasConfigContextsCreatePa } /* -ExtrasConfigContextsDelete extras config contexts delete API + ExtrasConfigContextsDelete extras config contexts delete API */ func (a *Client) ExtrasConfigContextsDelete(params *ExtrasConfigContextsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -252,7 +264,7 @@ func (a *Client) ExtrasConfigContextsDelete(params *ExtrasConfigContextsDeletePa } /* -ExtrasConfigContextsList Call to super to allow for caching + ExtrasConfigContextsList Call to super to allow for caching */ func (a *Client) ExtrasConfigContextsList(params *ExtrasConfigContextsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsListOK, error) { // TODO: Validate the params before sending @@ -287,7 +299,7 @@ func (a *Client) ExtrasConfigContextsList(params *ExtrasConfigContextsListParams } /* -ExtrasConfigContextsPartialUpdate extras config contexts partial update API + ExtrasConfigContextsPartialUpdate extras config contexts partial update API */ func (a *Client) ExtrasConfigContextsPartialUpdate(params *ExtrasConfigContextsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -322,7 +334,7 @@ func (a *Client) ExtrasConfigContextsPartialUpdate(params *ExtrasConfigContextsP } /* -ExtrasConfigContextsRead Call to super to allow for caching + ExtrasConfigContextsRead Call to super to allow for caching */ func (a *Client) ExtrasConfigContextsRead(params *ExtrasConfigContextsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsReadOK, error) { // TODO: Validate the params before sending @@ -357,7 +369,7 @@ func (a *Client) ExtrasConfigContextsRead(params *ExtrasConfigContextsReadParams } /* -ExtrasConfigContextsUpdate extras config contexts update API + ExtrasConfigContextsUpdate extras config contexts update API */ func (a *Client) ExtrasConfigContextsUpdate(params *ExtrasConfigContextsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasConfigContextsUpdateOK, error) { // TODO: Validate the params before sending @@ -392,7 +404,7 @@ func (a *Client) ExtrasConfigContextsUpdate(params *ExtrasConfigContextsUpdatePa } /* -ExtrasExportTemplatesCreate extras export templates create API + ExtrasExportTemplatesCreate extras export templates create API */ func (a *Client) ExtrasExportTemplatesCreate(params *ExtrasExportTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesCreateCreated, error) { // TODO: Validate the params before sending @@ -427,7 +439,7 @@ func (a *Client) ExtrasExportTemplatesCreate(params *ExtrasExportTemplatesCreate } /* -ExtrasExportTemplatesDelete extras export templates delete API + ExtrasExportTemplatesDelete extras export templates delete API */ func (a *Client) ExtrasExportTemplatesDelete(params *ExtrasExportTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -462,7 +474,7 @@ func (a *Client) ExtrasExportTemplatesDelete(params *ExtrasExportTemplatesDelete } /* -ExtrasExportTemplatesList Call to super to allow for caching + ExtrasExportTemplatesList Call to super to allow for caching */ func (a *Client) ExtrasExportTemplatesList(params *ExtrasExportTemplatesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesListOK, error) { // TODO: Validate the params before sending @@ -497,7 +509,7 @@ func (a *Client) ExtrasExportTemplatesList(params *ExtrasExportTemplatesListPara } /* -ExtrasExportTemplatesPartialUpdate extras export templates partial update API + ExtrasExportTemplatesPartialUpdate extras export templates partial update API */ func (a *Client) ExtrasExportTemplatesPartialUpdate(params *ExtrasExportTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -532,7 +544,7 @@ func (a *Client) ExtrasExportTemplatesPartialUpdate(params *ExtrasExportTemplate } /* -ExtrasExportTemplatesRead Call to super to allow for caching + ExtrasExportTemplatesRead Call to super to allow for caching */ func (a *Client) ExtrasExportTemplatesRead(params *ExtrasExportTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesReadOK, error) { // TODO: Validate the params before sending @@ -567,7 +579,7 @@ func (a *Client) ExtrasExportTemplatesRead(params *ExtrasExportTemplatesReadPara } /* -ExtrasExportTemplatesUpdate extras export templates update API + ExtrasExportTemplatesUpdate extras export templates update API */ func (a *Client) ExtrasExportTemplatesUpdate(params *ExtrasExportTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasExportTemplatesUpdateOK, error) { // TODO: Validate the params before sending @@ -602,7 +614,7 @@ func (a *Client) ExtrasExportTemplatesUpdate(params *ExtrasExportTemplatesUpdate } /* -ExtrasGraphsCreate extras graphs create API + ExtrasGraphsCreate extras graphs create API */ func (a *Client) ExtrasGraphsCreate(params *ExtrasGraphsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsCreateCreated, error) { // TODO: Validate the params before sending @@ -637,7 +649,7 @@ func (a *Client) ExtrasGraphsCreate(params *ExtrasGraphsCreateParams, authInfo r } /* -ExtrasGraphsDelete extras graphs delete API + ExtrasGraphsDelete extras graphs delete API */ func (a *Client) ExtrasGraphsDelete(params *ExtrasGraphsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -672,7 +684,7 @@ func (a *Client) ExtrasGraphsDelete(params *ExtrasGraphsDeleteParams, authInfo r } /* -ExtrasGraphsList Call to super to allow for caching + ExtrasGraphsList Call to super to allow for caching */ func (a *Client) ExtrasGraphsList(params *ExtrasGraphsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsListOK, error) { // TODO: Validate the params before sending @@ -707,7 +719,7 @@ func (a *Client) ExtrasGraphsList(params *ExtrasGraphsListParams, authInfo runti } /* -ExtrasGraphsPartialUpdate extras graphs partial update API + ExtrasGraphsPartialUpdate extras graphs partial update API */ func (a *Client) ExtrasGraphsPartialUpdate(params *ExtrasGraphsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -742,7 +754,7 @@ func (a *Client) ExtrasGraphsPartialUpdate(params *ExtrasGraphsPartialUpdatePara } /* -ExtrasGraphsRead Call to super to allow for caching + ExtrasGraphsRead Call to super to allow for caching */ func (a *Client) ExtrasGraphsRead(params *ExtrasGraphsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsReadOK, error) { // TODO: Validate the params before sending @@ -777,7 +789,7 @@ func (a *Client) ExtrasGraphsRead(params *ExtrasGraphsReadParams, authInfo runti } /* -ExtrasGraphsUpdate extras graphs update API + ExtrasGraphsUpdate extras graphs update API */ func (a *Client) ExtrasGraphsUpdate(params *ExtrasGraphsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasGraphsUpdateOK, error) { // TODO: Validate the params before sending @@ -812,7 +824,7 @@ func (a *Client) ExtrasGraphsUpdate(params *ExtrasGraphsUpdateParams, authInfo r } /* -ExtrasImageAttachmentsCreate extras image attachments create API + ExtrasImageAttachmentsCreate extras image attachments create API */ func (a *Client) ExtrasImageAttachmentsCreate(params *ExtrasImageAttachmentsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsCreateCreated, error) { // TODO: Validate the params before sending @@ -847,7 +859,7 @@ func (a *Client) ExtrasImageAttachmentsCreate(params *ExtrasImageAttachmentsCrea } /* -ExtrasImageAttachmentsDelete extras image attachments delete API + ExtrasImageAttachmentsDelete extras image attachments delete API */ func (a *Client) ExtrasImageAttachmentsDelete(params *ExtrasImageAttachmentsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -882,7 +894,7 @@ func (a *Client) ExtrasImageAttachmentsDelete(params *ExtrasImageAttachmentsDele } /* -ExtrasImageAttachmentsList Call to super to allow for caching + ExtrasImageAttachmentsList Call to super to allow for caching */ func (a *Client) ExtrasImageAttachmentsList(params *ExtrasImageAttachmentsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsListOK, error) { // TODO: Validate the params before sending @@ -917,7 +929,7 @@ func (a *Client) ExtrasImageAttachmentsList(params *ExtrasImageAttachmentsListPa } /* -ExtrasImageAttachmentsPartialUpdate extras image attachments partial update API + ExtrasImageAttachmentsPartialUpdate extras image attachments partial update API */ func (a *Client) ExtrasImageAttachmentsPartialUpdate(params *ExtrasImageAttachmentsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -952,7 +964,7 @@ func (a *Client) ExtrasImageAttachmentsPartialUpdate(params *ExtrasImageAttachme } /* -ExtrasImageAttachmentsRead Call to super to allow for caching + ExtrasImageAttachmentsRead Call to super to allow for caching */ func (a *Client) ExtrasImageAttachmentsRead(params *ExtrasImageAttachmentsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsReadOK, error) { // TODO: Validate the params before sending @@ -987,7 +999,7 @@ func (a *Client) ExtrasImageAttachmentsRead(params *ExtrasImageAttachmentsReadPa } /* -ExtrasImageAttachmentsUpdate extras image attachments update API + ExtrasImageAttachmentsUpdate extras image attachments update API */ func (a *Client) ExtrasImageAttachmentsUpdate(params *ExtrasImageAttachmentsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasImageAttachmentsUpdateOK, error) { // TODO: Validate the params before sending @@ -1022,7 +1034,7 @@ func (a *Client) ExtrasImageAttachmentsUpdate(params *ExtrasImageAttachmentsUpda } /* -ExtrasObjectChangesList Retrieve a list of recent changes. + ExtrasObjectChangesList Retrieve a list of recent changes. */ func (a *Client) ExtrasObjectChangesList(params *ExtrasObjectChangesListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasObjectChangesListOK, error) { // TODO: Validate the params before sending @@ -1057,7 +1069,7 @@ func (a *Client) ExtrasObjectChangesList(params *ExtrasObjectChangesListParams, } /* -ExtrasObjectChangesRead Retrieve a list of recent changes. + ExtrasObjectChangesRead Retrieve a list of recent changes. */ func (a *Client) ExtrasObjectChangesRead(params *ExtrasObjectChangesReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasObjectChangesReadOK, error) { // TODO: Validate the params before sending @@ -1092,7 +1104,7 @@ func (a *Client) ExtrasObjectChangesRead(params *ExtrasObjectChangesReadParams, } /* -ExtrasReportsList Compile all reports and their related results (if any). Result data is deferred in the list view. + ExtrasReportsList Compile all reports and their related results (if any). Result data is deferred in the list view. */ func (a *Client) ExtrasReportsList(params *ExtrasReportsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasReportsListOK, error) { // TODO: Validate the params before sending @@ -1127,7 +1139,7 @@ func (a *Client) ExtrasReportsList(params *ExtrasReportsListParams, authInfo run } /* -ExtrasReportsRead Retrieve a single Report identified as ".". + ExtrasReportsRead Retrieve a single Report identified as ".". */ func (a *Client) ExtrasReportsRead(params *ExtrasReportsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasReportsReadOK, error) { // TODO: Validate the params before sending @@ -1162,7 +1174,7 @@ func (a *Client) ExtrasReportsRead(params *ExtrasReportsReadParams, authInfo run } /* -ExtrasReportsRun Run a Report and create a new ReportResult, overwriting any previous result for the Report. + ExtrasReportsRun Run a Report and create a new ReportResult, overwriting any previous result for the Report. */ func (a *Client) ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasReportsRunCreated, error) { // TODO: Validate the params before sending @@ -1197,7 +1209,7 @@ func (a *Client) ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runti } /* -ExtrasScriptsList extras scripts list API + ExtrasScriptsList extras scripts list API */ func (a *Client) ExtrasScriptsList(params *ExtrasScriptsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasScriptsListOK, error) { // TODO: Validate the params before sending @@ -1232,7 +1244,7 @@ func (a *Client) ExtrasScriptsList(params *ExtrasScriptsListParams, authInfo run } /* -ExtrasScriptsRead extras scripts read API + ExtrasScriptsRead extras scripts read API */ func (a *Client) ExtrasScriptsRead(params *ExtrasScriptsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasScriptsReadOK, error) { // TODO: Validate the params before sending @@ -1267,7 +1279,7 @@ func (a *Client) ExtrasScriptsRead(params *ExtrasScriptsReadParams, authInfo run } /* -ExtrasTagsCreate extras tags create API + ExtrasTagsCreate extras tags create API */ func (a *Client) ExtrasTagsCreate(params *ExtrasTagsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsCreateCreated, error) { // TODO: Validate the params before sending @@ -1302,7 +1314,7 @@ func (a *Client) ExtrasTagsCreate(params *ExtrasTagsCreateParams, authInfo runti } /* -ExtrasTagsDelete extras tags delete API + ExtrasTagsDelete extras tags delete API */ func (a *Client) ExtrasTagsDelete(params *ExtrasTagsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1337,7 +1349,7 @@ func (a *Client) ExtrasTagsDelete(params *ExtrasTagsDeleteParams, authInfo runti } /* -ExtrasTagsList Call to super to allow for caching + ExtrasTagsList Call to super to allow for caching */ func (a *Client) ExtrasTagsList(params *ExtrasTagsListParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsListOK, error) { // TODO: Validate the params before sending @@ -1372,7 +1384,7 @@ func (a *Client) ExtrasTagsList(params *ExtrasTagsListParams, authInfo runtime.C } /* -ExtrasTagsPartialUpdate extras tags partial update API + ExtrasTagsPartialUpdate extras tags partial update API */ func (a *Client) ExtrasTagsPartialUpdate(params *ExtrasTagsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1407,7 +1419,7 @@ func (a *Client) ExtrasTagsPartialUpdate(params *ExtrasTagsPartialUpdateParams, } /* -ExtrasTagsRead Call to super to allow for caching + ExtrasTagsRead Call to super to allow for caching */ func (a *Client) ExtrasTagsRead(params *ExtrasTagsReadParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsReadOK, error) { // TODO: Validate the params before sending @@ -1442,7 +1454,7 @@ func (a *Client) ExtrasTagsRead(params *ExtrasTagsReadParams, authInfo runtime.C } /* -ExtrasTagsUpdate extras tags update API + ExtrasTagsUpdate extras tags update API */ func (a *Client) ExtrasTagsUpdate(params *ExtrasTagsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ExtrasTagsUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_parameters.go index f8fb44af4..bd7693427 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasConfigContextsCreateParams creates a new ExtrasConfigContextsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_responses.go index 0e4d71edd..b5b6d4a7e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasConfigContextsCreateReader is a Reader for the ExtrasConfigContextsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_parameters.go index 7bc3441c1..ad5e72c3b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasConfigContextsDeleteParams creates a new ExtrasConfigContextsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_responses.go index 81c4551ec..e02c34b6a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasConfigContextsDeleteReader is a Reader for the ExtrasConfigContextsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go index fcb6dede1..32c349571 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasConfigContextsListParams creates a new ExtrasConfigContextsListParams object @@ -79,10 +78,28 @@ type ExtrasConfigContextsListParams struct { /*ClusterGroup*/ ClusterGroup *string + /*ClusterGroupn*/ + ClusterGroupn *string /*ClusterGroupID*/ ClusterGroupID *string + /*ClusterGroupIDn*/ + ClusterGroupIDn *string /*ClusterID*/ ClusterID *string + /*ClusterIDn*/ + ClusterIDn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*IsActive*/ IsActive *string /*Limit @@ -92,6 +109,24 @@ type ExtrasConfigContextsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -99,32 +134,58 @@ type ExtrasConfigContextsListParams struct { Offset *int64 /*Platform*/ Platform *string + /*Platformn*/ + Platformn *string /*PlatformID*/ PlatformID *string + /*PlatformIDn*/ + PlatformIDn *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string timeout time.Duration Context context.Context @@ -175,6 +236,17 @@ func (o *ExtrasConfigContextsListParams) SetClusterGroup(clusterGroup *string) { o.ClusterGroup = clusterGroup } +// WithClusterGroupn adds the clusterGroupn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterGroupn(clusterGroupn *string) *ExtrasConfigContextsListParams { + o.SetClusterGroupn(clusterGroupn) + return o +} + +// SetClusterGroupn adds the clusterGroupN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterGroupn(clusterGroupn *string) { + o.ClusterGroupn = clusterGroupn +} + // WithClusterGroupID adds the clusterGroupID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithClusterGroupID(clusterGroupID *string) *ExtrasConfigContextsListParams { o.SetClusterGroupID(clusterGroupID) @@ -186,6 +258,17 @@ func (o *ExtrasConfigContextsListParams) SetClusterGroupID(clusterGroupID *strin o.ClusterGroupID = clusterGroupID } +// WithClusterGroupIDn adds the clusterGroupIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterGroupIDn(clusterGroupIDn *string) *ExtrasConfigContextsListParams { + o.SetClusterGroupIDn(clusterGroupIDn) + return o +} + +// SetClusterGroupIDn adds the clusterGroupIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterGroupIDn(clusterGroupIDn *string) { + o.ClusterGroupIDn = clusterGroupIDn +} + // WithClusterID adds the clusterID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithClusterID(clusterID *string) *ExtrasConfigContextsListParams { o.SetClusterID(clusterID) @@ -197,6 +280,83 @@ func (o *ExtrasConfigContextsListParams) SetClusterID(clusterID *string) { o.ClusterID = clusterID } +// WithClusterIDn adds the clusterIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithClusterIDn(clusterIDn *string) *ExtrasConfigContextsListParams { + o.SetClusterIDn(clusterIDn) + return o +} + +// SetClusterIDn adds the clusterIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetClusterIDn(clusterIDn *string) { + o.ClusterIDn = clusterIDn +} + +// WithID adds the id to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithID(id *string) *ExtrasConfigContextsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithIDGt(iDGt *string) *ExtrasConfigContextsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithIDGte(iDGte *string) *ExtrasConfigContextsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithIDLt(iDLt *string) *ExtrasConfigContextsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithIDLte(iDLte *string) *ExtrasConfigContextsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithIDn(iDn *string) *ExtrasConfigContextsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithIsActive adds the isActive to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithIsActive(isActive *string) *ExtrasConfigContextsListParams { o.SetIsActive(isActive) @@ -230,6 +390,105 @@ func (o *ExtrasConfigContextsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameIc(nameIc *string) *ExtrasConfigContextsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameIe(nameIe *string) *ExtrasConfigContextsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameIew(nameIew *string) *ExtrasConfigContextsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameIsw(nameIsw *string) *ExtrasConfigContextsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNamen(namen *string) *ExtrasConfigContextsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameNic(nameNic *string) *ExtrasConfigContextsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameNie(nameNie *string) *ExtrasConfigContextsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameNiew(nameNiew *string) *ExtrasConfigContextsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithNameNisw(nameNisw *string) *ExtrasConfigContextsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithOffset(offset *int64) *ExtrasConfigContextsListParams { o.SetOffset(offset) @@ -252,6 +511,17 @@ func (o *ExtrasConfigContextsListParams) SetPlatform(platform *string) { o.Platform = platform } +// WithPlatformn adds the platformn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithPlatformn(platformn *string) *ExtrasConfigContextsListParams { + o.SetPlatformn(platformn) + return o +} + +// SetPlatformn adds the platformN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetPlatformn(platformn *string) { + o.Platformn = platformn +} + // WithPlatformID adds the platformID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithPlatformID(platformID *string) *ExtrasConfigContextsListParams { o.SetPlatformID(platformID) @@ -263,6 +533,17 @@ func (o *ExtrasConfigContextsListParams) SetPlatformID(platformID *string) { o.PlatformID = platformID } +// WithPlatformIDn adds the platformIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithPlatformIDn(platformIDn *string) *ExtrasConfigContextsListParams { + o.SetPlatformIDn(platformIDn) + return o +} + +// SetPlatformIDn adds the platformIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetPlatformIDn(platformIDn *string) { + o.PlatformIDn = platformIDn +} + // WithQ adds the q to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithQ(q *string) *ExtrasConfigContextsListParams { o.SetQ(q) @@ -285,6 +566,17 @@ func (o *ExtrasConfigContextsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithRegionn(regionn *string) *ExtrasConfigContextsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithRegionID(regionID *string) *ExtrasConfigContextsListParams { o.SetRegionID(regionID) @@ -296,6 +588,17 @@ func (o *ExtrasConfigContextsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithRegionIDn(regionIDn *string) *ExtrasConfigContextsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithRole adds the role to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithRole(role *string) *ExtrasConfigContextsListParams { o.SetRole(role) @@ -307,6 +610,17 @@ func (o *ExtrasConfigContextsListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithRolen(rolen *string) *ExtrasConfigContextsListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithRoleID(roleID *string) *ExtrasConfigContextsListParams { o.SetRoleID(roleID) @@ -318,6 +632,17 @@ func (o *ExtrasConfigContextsListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithRoleIDn(roleIDn *string) *ExtrasConfigContextsListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSite adds the site to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithSite(site *string) *ExtrasConfigContextsListParams { o.SetSite(site) @@ -329,6 +654,17 @@ func (o *ExtrasConfigContextsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithSiten(siten *string) *ExtrasConfigContextsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithSiteID(siteID *string) *ExtrasConfigContextsListParams { o.SetSiteID(siteID) @@ -340,6 +676,17 @@ func (o *ExtrasConfigContextsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithSiteIDn(siteIDn *string) *ExtrasConfigContextsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithTag(tag *string) *ExtrasConfigContextsListParams { o.SetTag(tag) @@ -351,6 +698,17 @@ func (o *ExtrasConfigContextsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithTagn(tagn *string) *ExtrasConfigContextsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithTenant(tenant *string) *ExtrasConfigContextsListParams { o.SetTenant(tenant) @@ -362,6 +720,17 @@ func (o *ExtrasConfigContextsListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithTenantn(tenantn *string) *ExtrasConfigContextsListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithTenantGroup(tenantGroup *string) *ExtrasConfigContextsListParams { o.SetTenantGroup(tenantGroup) @@ -373,6 +742,17 @@ func (o *ExtrasConfigContextsListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithTenantGroupn(tenantGroupn *string) *ExtrasConfigContextsListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithTenantGroupID(tenantGroupID *string) *ExtrasConfigContextsListParams { o.SetTenantGroupID(tenantGroupID) @@ -384,6 +764,17 @@ func (o *ExtrasConfigContextsListParams) SetTenantGroupID(tenantGroupID *string) o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithTenantGroupIDn(tenantGroupIDn *string) *ExtrasConfigContextsListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the extras config contexts list params func (o *ExtrasConfigContextsListParams) WithTenantID(tenantID *string) *ExtrasConfigContextsListParams { o.SetTenantID(tenantID) @@ -395,6 +786,17 @@ func (o *ExtrasConfigContextsListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) WithTenantIDn(tenantIDn *string) *ExtrasConfigContextsListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the extras config contexts list params +func (o *ExtrasConfigContextsListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WriteToRequest writes these params to a swagger request func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -419,6 +821,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ClusterGroupn != nil { + + // query param cluster_group__n + var qrClusterGroupn string + if o.ClusterGroupn != nil { + qrClusterGroupn = *o.ClusterGroupn + } + qClusterGroupn := qrClusterGroupn + if qClusterGroupn != "" { + if err := r.SetQueryParam("cluster_group__n", qClusterGroupn); err != nil { + return err + } + } + + } + if o.ClusterGroupID != nil { // query param cluster_group_id @@ -435,6 +853,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ClusterGroupIDn != nil { + + // query param cluster_group_id__n + var qrClusterGroupIDn string + if o.ClusterGroupIDn != nil { + qrClusterGroupIDn = *o.ClusterGroupIDn + } + qClusterGroupIDn := qrClusterGroupIDn + if qClusterGroupIDn != "" { + if err := r.SetQueryParam("cluster_group_id__n", qClusterGroupIDn); err != nil { + return err + } + } + + } + if o.ClusterID != nil { // query param cluster_id @@ -451,6 +885,118 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ClusterIDn != nil { + + // query param cluster_id__n + var qrClusterIDn string + if o.ClusterIDn != nil { + qrClusterIDn = *o.ClusterIDn + } + qClusterIDn := qrClusterIDn + if qClusterIDn != "" { + if err := r.SetQueryParam("cluster_id__n", qClusterIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.IsActive != nil { // query param is_active @@ -499,6 +1045,150 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -531,6 +1221,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Platformn != nil { + + // query param platform__n + var qrPlatformn string + if o.Platformn != nil { + qrPlatformn = *o.Platformn + } + qPlatformn := qrPlatformn + if qPlatformn != "" { + if err := r.SetQueryParam("platform__n", qPlatformn); err != nil { + return err + } + } + + } + if o.PlatformID != nil { // query param platform_id @@ -547,6 +1253,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.PlatformIDn != nil { + + // query param platform_id__n + var qrPlatformIDn string + if o.PlatformIDn != nil { + qrPlatformIDn = *o.PlatformIDn + } + qPlatformIDn := qrPlatformIDn + if qPlatformIDn != "" { + if err := r.SetQueryParam("platform_id__n", qPlatformIDn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -579,6 +1301,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + 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 @@ -595,6 +1333,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + 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.Role != nil { // query param role @@ -611,6 +1365,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + 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 @@ -627,6 +1397,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + 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.Site != nil { // query param site @@ -643,6 +1429,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -659,6 +1461,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -675,6 +1493,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + 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 @@ -691,6 +1525,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -707,6 +1557,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -723,6 +1589,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -739,6 +1621,22 @@ func (o *ExtrasConfigContextsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_responses.go index 97fd237cb..8065fcf3e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasConfigContextsListReader is a Reader for the ExtrasConfigContextsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_parameters.go index 22433b687..5f6565c5f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasConfigContextsPartialUpdateParams creates a new ExtrasConfigContextsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_responses.go index fadf1a848..996c94231 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasConfigContextsPartialUpdateReader is a Reader for the ExtrasConfigContextsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_parameters.go index 9366eb98e..59928d56b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasConfigContextsReadParams creates a new ExtrasConfigContextsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_responses.go index 2829197f8..36ce4f21c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasConfigContextsReadReader is a Reader for the ExtrasConfigContextsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_parameters.go index 01cbdba9e..783814109 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasConfigContextsUpdateParams creates a new ExtrasConfigContextsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_responses.go index 97daac007..bedc84805 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_config_contexts_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasConfigContextsUpdateReader is a Reader for the ExtrasConfigContextsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_parameters.go index 1f1fdab18..8d90c0eb4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasCustomFieldChoicesListParams creates a new ExtrasCustomFieldChoicesListParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_responses.go index 2e07625fa..ee75814d9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_list_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasCustomFieldChoicesListReader is a Reader for the ExtrasCustomFieldChoicesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_parameters.go index 34af5e741..4fd101d42 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasCustomFieldChoicesReadParams creates a new ExtrasCustomFieldChoicesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_responses.go index b5da34d37..15f12706d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_custom_field_choices_read_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasCustomFieldChoicesReadReader is a Reader for the ExtrasCustomFieldChoicesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_parameters.go index e8ff5be6d..3692ff5e9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasExportTemplatesCreateParams creates a new ExtrasExportTemplatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_responses.go index e9c6a689f..26ae26d2d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasExportTemplatesCreateReader is a Reader for the ExtrasExportTemplatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_parameters.go index a31726a91..2bfa41be8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasExportTemplatesDeleteParams creates a new ExtrasExportTemplatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_responses.go index 92c1fa24d..ccab67adb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasExportTemplatesDeleteReader is a Reader for the ExtrasExportTemplatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go index 7a228a01c..f340526c5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasExportTemplatesListParams creates a new ExtrasExportTemplatesListParams object @@ -79,6 +78,20 @@ type ExtrasExportTemplatesListParams struct { /*ContentType*/ ContentType *string + /*ContentTypen*/ + ContentTypen *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +99,24 @@ type ExtrasExportTemplatesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -93,6 +124,8 @@ type ExtrasExportTemplatesListParams struct { Offset *int64 /*TemplateLanguage*/ TemplateLanguage *string + /*TemplateLanguagen*/ + TemplateLanguagen *string timeout time.Duration Context context.Context @@ -143,6 +176,83 @@ func (o *ExtrasExportTemplatesListParams) SetContentType(contentType *string) { o.ContentType = contentType } +// WithContentTypen adds the contentTypen to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithContentTypen(contentTypen *string) *ExtrasExportTemplatesListParams { + o.SetContentTypen(contentTypen) + return o +} + +// SetContentTypen adds the contentTypeN to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetContentTypen(contentTypen *string) { + o.ContentTypen = contentTypen +} + +// WithID adds the id to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithID(id *string) *ExtrasExportTemplatesListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithIDGt(iDGt *string) *ExtrasExportTemplatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithIDGte(iDGte *string) *ExtrasExportTemplatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithIDLt(iDLt *string) *ExtrasExportTemplatesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithIDLte(iDLte *string) *ExtrasExportTemplatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithIDn(iDn *string) *ExtrasExportTemplatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the extras export templates list params func (o *ExtrasExportTemplatesListParams) WithLimit(limit *int64) *ExtrasExportTemplatesListParams { o.SetLimit(limit) @@ -165,6 +275,105 @@ func (o *ExtrasExportTemplatesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameIc(nameIc *string) *ExtrasExportTemplatesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameIe(nameIe *string) *ExtrasExportTemplatesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameIew(nameIew *string) *ExtrasExportTemplatesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameIsw(nameIsw *string) *ExtrasExportTemplatesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNamen(namen *string) *ExtrasExportTemplatesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameNic(nameNic *string) *ExtrasExportTemplatesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameNie(nameNie *string) *ExtrasExportTemplatesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameNiew(nameNiew *string) *ExtrasExportTemplatesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithNameNisw(nameNisw *string) *ExtrasExportTemplatesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the extras export templates list params func (o *ExtrasExportTemplatesListParams) WithOffset(offset *int64) *ExtrasExportTemplatesListParams { o.SetOffset(offset) @@ -187,6 +396,17 @@ func (o *ExtrasExportTemplatesListParams) SetTemplateLanguage(templateLanguage * o.TemplateLanguage = templateLanguage } +// WithTemplateLanguagen adds the templateLanguagen to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) WithTemplateLanguagen(templateLanguagen *string) *ExtrasExportTemplatesListParams { + o.SetTemplateLanguagen(templateLanguagen) + return o +} + +// SetTemplateLanguagen adds the templateLanguageN to the extras export templates list params +func (o *ExtrasExportTemplatesListParams) SetTemplateLanguagen(templateLanguagen *string) { + o.TemplateLanguagen = templateLanguagen +} + // WriteToRequest writes these params to a swagger request func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -211,6 +431,118 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.ContentTypen != nil { + + // query param content_type__n + var qrContentTypen string + if o.ContentTypen != nil { + qrContentTypen = *o.ContentTypen + } + qContentTypen := qrContentTypen + if qContentTypen != "" { + if err := r.SetQueryParam("content_type__n", qContentTypen); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -243,6 +575,150 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -275,6 +751,22 @@ func (o *ExtrasExportTemplatesListParams) WriteToRequest(r runtime.ClientRequest } + if o.TemplateLanguagen != nil { + + // query param template_language__n + var qrTemplateLanguagen string + if o.TemplateLanguagen != nil { + qrTemplateLanguagen = *o.TemplateLanguagen + } + qTemplateLanguagen := qrTemplateLanguagen + if qTemplateLanguagen != "" { + if err := r.SetQueryParam("template_language__n", qTemplateLanguagen); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_responses.go index 14a15bbb2..ff5b1f79b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasExportTemplatesListReader is a Reader for the ExtrasExportTemplatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_parameters.go index e6131e5c9..9f3f4af0a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasExportTemplatesPartialUpdateParams creates a new ExtrasExportTemplatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_responses.go index e8bbd75ad..b8781bd7b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasExportTemplatesPartialUpdateReader is a Reader for the ExtrasExportTemplatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_parameters.go index 298b6d01b..542f4281c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasExportTemplatesReadParams creates a new ExtrasExportTemplatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_responses.go index 138ec75bf..247b2ed77 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasExportTemplatesReadReader is a Reader for the ExtrasExportTemplatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_parameters.go index 1cafd2ee4..925aa3135 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasExportTemplatesUpdateParams creates a new ExtrasExportTemplatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_responses.go index b21be2011..59d1cefde 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_export_templates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasExportTemplatesUpdateReader is a Reader for the ExtrasExportTemplatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_parameters.go index f01d608c8..d37cb4f1f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasGraphsCreateParams creates a new ExtrasGraphsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_responses.go index 63650e70e..2b40abff0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasGraphsCreateReader is a Reader for the ExtrasGraphsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_parameters.go index 4bd18b555..9ddca305a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasGraphsDeleteParams creates a new ExtrasGraphsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_responses.go index e0837de40..8cf632188 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasGraphsDeleteReader is a Reader for the ExtrasGraphsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_parameters.go index 363de0764..72e4119c2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasGraphsListParams creates a new ExtrasGraphsListParams object @@ -77,6 +76,18 @@ for the extras graphs list operation typically these are written to a http.Reque */ type ExtrasGraphsListParams struct { + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -84,6 +95,24 @@ type ExtrasGraphsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -91,8 +120,12 @@ type ExtrasGraphsListParams struct { Offset *int64 /*TemplateLanguage*/ TemplateLanguage *string + /*TemplateLanguagen*/ + TemplateLanguagen *string /*Type*/ Type *string + /*Typen*/ + Typen *string timeout time.Duration Context context.Context @@ -132,6 +165,72 @@ func (o *ExtrasGraphsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithID adds the id to the extras graphs list params +func (o *ExtrasGraphsListParams) WithID(id *string) *ExtrasGraphsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras graphs list params +func (o *ExtrasGraphsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the extras graphs list params +func (o *ExtrasGraphsListParams) WithIDGt(iDGt *string) *ExtrasGraphsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the extras graphs list params +func (o *ExtrasGraphsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the extras graphs list params +func (o *ExtrasGraphsListParams) WithIDGte(iDGte *string) *ExtrasGraphsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the extras graphs list params +func (o *ExtrasGraphsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the extras graphs list params +func (o *ExtrasGraphsListParams) WithIDLt(iDLt *string) *ExtrasGraphsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the extras graphs list params +func (o *ExtrasGraphsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the extras graphs list params +func (o *ExtrasGraphsListParams) WithIDLte(iDLte *string) *ExtrasGraphsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the extras graphs list params +func (o *ExtrasGraphsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the extras graphs list params +func (o *ExtrasGraphsListParams) WithIDn(iDn *string) *ExtrasGraphsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the extras graphs list params +func (o *ExtrasGraphsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the extras graphs list params func (o *ExtrasGraphsListParams) WithLimit(limit *int64) *ExtrasGraphsListParams { o.SetLimit(limit) @@ -154,6 +253,105 @@ func (o *ExtrasGraphsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameIc(nameIc *string) *ExtrasGraphsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameIe(nameIe *string) *ExtrasGraphsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameIew(nameIew *string) *ExtrasGraphsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameIsw(nameIsw *string) *ExtrasGraphsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNamen(namen *string) *ExtrasGraphsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameNic(nameNic *string) *ExtrasGraphsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameNie(nameNie *string) *ExtrasGraphsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameNiew(nameNiew *string) *ExtrasGraphsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the extras graphs list params +func (o *ExtrasGraphsListParams) WithNameNisw(nameNisw *string) *ExtrasGraphsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the extras graphs list params +func (o *ExtrasGraphsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the extras graphs list params func (o *ExtrasGraphsListParams) WithOffset(offset *int64) *ExtrasGraphsListParams { o.SetOffset(offset) @@ -176,6 +374,17 @@ func (o *ExtrasGraphsListParams) SetTemplateLanguage(templateLanguage *string) { o.TemplateLanguage = templateLanguage } +// WithTemplateLanguagen adds the templateLanguagen to the extras graphs list params +func (o *ExtrasGraphsListParams) WithTemplateLanguagen(templateLanguagen *string) *ExtrasGraphsListParams { + o.SetTemplateLanguagen(templateLanguagen) + return o +} + +// SetTemplateLanguagen adds the templateLanguageN to the extras graphs list params +func (o *ExtrasGraphsListParams) SetTemplateLanguagen(templateLanguagen *string) { + o.TemplateLanguagen = templateLanguagen +} + // WithType adds the typeVar to the extras graphs list params func (o *ExtrasGraphsListParams) WithType(typeVar *string) *ExtrasGraphsListParams { o.SetType(typeVar) @@ -187,6 +396,17 @@ func (o *ExtrasGraphsListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the extras graphs list params +func (o *ExtrasGraphsListParams) WithTypen(typen *string) *ExtrasGraphsListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the extras graphs list params +func (o *ExtrasGraphsListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WriteToRequest writes these params to a swagger request func (o *ExtrasGraphsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -195,6 +415,102 @@ func (o *ExtrasGraphsListParams) WriteToRequest(r runtime.ClientRequest, reg str } var res []error + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -227,6 +543,150 @@ func (o *ExtrasGraphsListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -259,6 +719,22 @@ func (o *ExtrasGraphsListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.TemplateLanguagen != nil { + + // query param template_language__n + var qrTemplateLanguagen string + if o.TemplateLanguagen != nil { + qrTemplateLanguagen = *o.TemplateLanguagen + } + qTemplateLanguagen := qrTemplateLanguagen + if qTemplateLanguagen != "" { + if err := r.SetQueryParam("template_language__n", qTemplateLanguagen); err != nil { + return err + } + } + + } + if o.Type != nil { // query param type @@ -275,6 +751,22 @@ func (o *ExtrasGraphsListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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 len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_responses.go index 12db6194e..65ea81033 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasGraphsListReader is a Reader for the ExtrasGraphsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_parameters.go index 7bc225e73..4c6243a51 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasGraphsPartialUpdateParams creates a new ExtrasGraphsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_responses.go index 2a80b555a..1cb34d72a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasGraphsPartialUpdateReader is a Reader for the ExtrasGraphsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_parameters.go index 62e1375c7..402af1420 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasGraphsReadParams creates a new ExtrasGraphsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_responses.go index d364f96af..ebf5dee41 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasGraphsReadReader is a Reader for the ExtrasGraphsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_parameters.go index 244fac06d..440d4194c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasGraphsUpdateParams creates a new ExtrasGraphsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_responses.go index 6801e7ff5..0622f0261 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_graphs_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasGraphsUpdateReader is a Reader for the ExtrasGraphsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_parameters.go index d64ea214b..031ae6729 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasImageAttachmentsCreateParams creates a new ExtrasImageAttachmentsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_responses.go index 27aa8946d..0690fdca4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasImageAttachmentsCreateReader is a Reader for the ExtrasImageAttachmentsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_parameters.go index 8cc5cc285..7de69281f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasImageAttachmentsDeleteParams creates a new ExtrasImageAttachmentsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_responses.go index 7ddc3b085..5afa1f23c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasImageAttachmentsDeleteReader is a Reader for the ExtrasImageAttachmentsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go index 7f70753ab..3dfa7ef85 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasImageAttachmentsListParams creates a new ExtrasImageAttachmentsListParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_responses.go index 7fc47a59f..842e7ddc1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasImageAttachmentsListReader is a Reader for the ExtrasImageAttachmentsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_parameters.go index c4cd99ce0..8d424346c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasImageAttachmentsPartialUpdateParams creates a new ExtrasImageAttachmentsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_responses.go index 62c644676..b6f8722c0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasImageAttachmentsPartialUpdateReader is a Reader for the ExtrasImageAttachmentsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_parameters.go index e4d810506..55f988ace 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasImageAttachmentsReadParams creates a new ExtrasImageAttachmentsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_responses.go index 30a24e745..145d706b9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasImageAttachmentsReadReader is a Reader for the ExtrasImageAttachmentsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_parameters.go index c3f31cd2b..b71135e51 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasImageAttachmentsUpdateParams creates a new ExtrasImageAttachmentsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_responses.go index 4ae2e97e9..8aff14d69 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_image_attachments_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasImageAttachmentsUpdateReader is a Reader for the ExtrasImageAttachmentsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go index 96bb24247..f093a3048 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasObjectChangesListParams creates a new ExtrasObjectChangesListParams object @@ -79,10 +78,36 @@ type ExtrasObjectChangesListParams struct { /*Action*/ Action *string + /*Actionn*/ + Actionn *string /*ChangedObjectID*/ - ChangedObjectID *float64 + ChangedObjectID *string + /*ChangedObjectIDGt*/ + ChangedObjectIDGt *string + /*ChangedObjectIDGte*/ + ChangedObjectIDGte *string + /*ChangedObjectIDLt*/ + ChangedObjectIDLt *string + /*ChangedObjectIDLte*/ + ChangedObjectIDLte *string + /*ChangedObjectIDn*/ + ChangedObjectIDn *string /*ChangedObjectType*/ ChangedObjectType *string + /*ChangedObjectTypen*/ + ChangedObjectTypen *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -90,6 +115,24 @@ type ExtrasObjectChangesListParams struct { Limit *int64 /*ObjectRepr*/ ObjectRepr *string + /*ObjectReprIc*/ + ObjectReprIc *string + /*ObjectReprIe*/ + ObjectReprIe *string + /*ObjectReprIew*/ + ObjectReprIew *string + /*ObjectReprIsw*/ + ObjectReprIsw *string + /*ObjectReprn*/ + ObjectReprn *string + /*ObjectReprNic*/ + ObjectReprNic *string + /*ObjectReprNie*/ + ObjectReprNie *string + /*ObjectReprNiew*/ + ObjectReprNiew *string + /*ObjectReprNisw*/ + ObjectReprNisw *string /*Offset The initial index from which to return the results. @@ -103,8 +146,28 @@ type ExtrasObjectChangesListParams struct { Time *string /*User*/ User *string + /*Usern*/ + Usern *string /*UserName*/ UserName *string + /*UserNameIc*/ + UserNameIc *string + /*UserNameIe*/ + UserNameIe *string + /*UserNameIew*/ + UserNameIew *string + /*UserNameIsw*/ + UserNameIsw *string + /*UserNamen*/ + UserNamen *string + /*UserNameNic*/ + UserNameNic *string + /*UserNameNie*/ + UserNameNie *string + /*UserNameNiew*/ + UserNameNiew *string + /*UserNameNisw*/ + UserNameNisw *string timeout time.Duration Context context.Context @@ -155,17 +218,83 @@ func (o *ExtrasObjectChangesListParams) SetAction(action *string) { o.Action = action } +// WithActionn adds the actionn to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithActionn(actionn *string) *ExtrasObjectChangesListParams { + o.SetActionn(actionn) + return o +} + +// SetActionn adds the actionN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetActionn(actionn *string) { + o.Actionn = actionn +} + // WithChangedObjectID adds the changedObjectID to the extras object changes list params -func (o *ExtrasObjectChangesListParams) WithChangedObjectID(changedObjectID *float64) *ExtrasObjectChangesListParams { +func (o *ExtrasObjectChangesListParams) WithChangedObjectID(changedObjectID *string) *ExtrasObjectChangesListParams { o.SetChangedObjectID(changedObjectID) return o } // SetChangedObjectID adds the changedObjectId to the extras object changes list params -func (o *ExtrasObjectChangesListParams) SetChangedObjectID(changedObjectID *float64) { +func (o *ExtrasObjectChangesListParams) SetChangedObjectID(changedObjectID *string) { o.ChangedObjectID = changedObjectID } +// WithChangedObjectIDGt adds the changedObjectIDGt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithChangedObjectIDGt(changedObjectIDGt *string) *ExtrasObjectChangesListParams { + o.SetChangedObjectIDGt(changedObjectIDGt) + return o +} + +// SetChangedObjectIDGt adds the changedObjectIdGt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetChangedObjectIDGt(changedObjectIDGt *string) { + o.ChangedObjectIDGt = changedObjectIDGt +} + +// WithChangedObjectIDGte adds the changedObjectIDGte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithChangedObjectIDGte(changedObjectIDGte *string) *ExtrasObjectChangesListParams { + o.SetChangedObjectIDGte(changedObjectIDGte) + return o +} + +// SetChangedObjectIDGte adds the changedObjectIdGte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetChangedObjectIDGte(changedObjectIDGte *string) { + o.ChangedObjectIDGte = changedObjectIDGte +} + +// WithChangedObjectIDLt adds the changedObjectIDLt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithChangedObjectIDLt(changedObjectIDLt *string) *ExtrasObjectChangesListParams { + o.SetChangedObjectIDLt(changedObjectIDLt) + return o +} + +// SetChangedObjectIDLt adds the changedObjectIdLt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetChangedObjectIDLt(changedObjectIDLt *string) { + o.ChangedObjectIDLt = changedObjectIDLt +} + +// WithChangedObjectIDLte adds the changedObjectIDLte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithChangedObjectIDLte(changedObjectIDLte *string) *ExtrasObjectChangesListParams { + o.SetChangedObjectIDLte(changedObjectIDLte) + return o +} + +// SetChangedObjectIDLte adds the changedObjectIdLte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetChangedObjectIDLte(changedObjectIDLte *string) { + o.ChangedObjectIDLte = changedObjectIDLte +} + +// WithChangedObjectIDn adds the changedObjectIDn to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithChangedObjectIDn(changedObjectIDn *string) *ExtrasObjectChangesListParams { + o.SetChangedObjectIDn(changedObjectIDn) + return o +} + +// SetChangedObjectIDn adds the changedObjectIdN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetChangedObjectIDn(changedObjectIDn *string) { + o.ChangedObjectIDn = changedObjectIDn +} + // WithChangedObjectType adds the changedObjectType to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithChangedObjectType(changedObjectType *string) *ExtrasObjectChangesListParams { o.SetChangedObjectType(changedObjectType) @@ -177,6 +306,83 @@ func (o *ExtrasObjectChangesListParams) SetChangedObjectType(changedObjectType * o.ChangedObjectType = changedObjectType } +// WithChangedObjectTypen adds the changedObjectTypen to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithChangedObjectTypen(changedObjectTypen *string) *ExtrasObjectChangesListParams { + o.SetChangedObjectTypen(changedObjectTypen) + return o +} + +// SetChangedObjectTypen adds the changedObjectTypeN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetChangedObjectTypen(changedObjectTypen *string) { + o.ChangedObjectTypen = changedObjectTypen +} + +// WithID adds the id to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithID(id *string) *ExtrasObjectChangesListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithIDGt(iDGt *string) *ExtrasObjectChangesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithIDGte(iDGte *string) *ExtrasObjectChangesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithIDLt(iDLt *string) *ExtrasObjectChangesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithIDLte(iDLte *string) *ExtrasObjectChangesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithIDn(iDn *string) *ExtrasObjectChangesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithLimit(limit *int64) *ExtrasObjectChangesListParams { o.SetLimit(limit) @@ -199,6 +405,105 @@ func (o *ExtrasObjectChangesListParams) SetObjectRepr(objectRepr *string) { o.ObjectRepr = objectRepr } +// WithObjectReprIc adds the objectReprIc to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprIc(objectReprIc *string) *ExtrasObjectChangesListParams { + o.SetObjectReprIc(objectReprIc) + return o +} + +// SetObjectReprIc adds the objectReprIc to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprIc(objectReprIc *string) { + o.ObjectReprIc = objectReprIc +} + +// WithObjectReprIe adds the objectReprIe to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprIe(objectReprIe *string) *ExtrasObjectChangesListParams { + o.SetObjectReprIe(objectReprIe) + return o +} + +// SetObjectReprIe adds the objectReprIe to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprIe(objectReprIe *string) { + o.ObjectReprIe = objectReprIe +} + +// WithObjectReprIew adds the objectReprIew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprIew(objectReprIew *string) *ExtrasObjectChangesListParams { + o.SetObjectReprIew(objectReprIew) + return o +} + +// SetObjectReprIew adds the objectReprIew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprIew(objectReprIew *string) { + o.ObjectReprIew = objectReprIew +} + +// WithObjectReprIsw adds the objectReprIsw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprIsw(objectReprIsw *string) *ExtrasObjectChangesListParams { + o.SetObjectReprIsw(objectReprIsw) + return o +} + +// SetObjectReprIsw adds the objectReprIsw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprIsw(objectReprIsw *string) { + o.ObjectReprIsw = objectReprIsw +} + +// WithObjectReprn adds the objectReprn to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprn(objectReprn *string) *ExtrasObjectChangesListParams { + o.SetObjectReprn(objectReprn) + return o +} + +// SetObjectReprn adds the objectReprN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprn(objectReprn *string) { + o.ObjectReprn = objectReprn +} + +// WithObjectReprNic adds the objectReprNic to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprNic(objectReprNic *string) *ExtrasObjectChangesListParams { + o.SetObjectReprNic(objectReprNic) + return o +} + +// SetObjectReprNic adds the objectReprNic to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprNic(objectReprNic *string) { + o.ObjectReprNic = objectReprNic +} + +// WithObjectReprNie adds the objectReprNie to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprNie(objectReprNie *string) *ExtrasObjectChangesListParams { + o.SetObjectReprNie(objectReprNie) + return o +} + +// SetObjectReprNie adds the objectReprNie to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprNie(objectReprNie *string) { + o.ObjectReprNie = objectReprNie +} + +// WithObjectReprNiew adds the objectReprNiew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprNiew(objectReprNiew *string) *ExtrasObjectChangesListParams { + o.SetObjectReprNiew(objectReprNiew) + return o +} + +// SetObjectReprNiew adds the objectReprNiew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprNiew(objectReprNiew *string) { + o.ObjectReprNiew = objectReprNiew +} + +// WithObjectReprNisw adds the objectReprNisw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithObjectReprNisw(objectReprNisw *string) *ExtrasObjectChangesListParams { + o.SetObjectReprNisw(objectReprNisw) + return o +} + +// SetObjectReprNisw adds the objectReprNisw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetObjectReprNisw(objectReprNisw *string) { + o.ObjectReprNisw = objectReprNisw +} + // WithOffset adds the offset to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithOffset(offset *int64) *ExtrasObjectChangesListParams { o.SetOffset(offset) @@ -254,6 +559,17 @@ func (o *ExtrasObjectChangesListParams) SetUser(user *string) { o.User = user } +// WithUsern adds the usern to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUsern(usern *string) *ExtrasObjectChangesListParams { + o.SetUsern(usern) + return o +} + +// SetUsern adds the userN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUsern(usern *string) { + o.Usern = usern +} + // WithUserName adds the userName to the extras object changes list params func (o *ExtrasObjectChangesListParams) WithUserName(userName *string) *ExtrasObjectChangesListParams { o.SetUserName(userName) @@ -265,6 +581,105 @@ func (o *ExtrasObjectChangesListParams) SetUserName(userName *string) { o.UserName = userName } +// WithUserNameIc adds the userNameIc to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameIc(userNameIc *string) *ExtrasObjectChangesListParams { + o.SetUserNameIc(userNameIc) + return o +} + +// SetUserNameIc adds the userNameIc to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameIc(userNameIc *string) { + o.UserNameIc = userNameIc +} + +// WithUserNameIe adds the userNameIe to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameIe(userNameIe *string) *ExtrasObjectChangesListParams { + o.SetUserNameIe(userNameIe) + return o +} + +// SetUserNameIe adds the userNameIe to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameIe(userNameIe *string) { + o.UserNameIe = userNameIe +} + +// WithUserNameIew adds the userNameIew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameIew(userNameIew *string) *ExtrasObjectChangesListParams { + o.SetUserNameIew(userNameIew) + return o +} + +// SetUserNameIew adds the userNameIew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameIew(userNameIew *string) { + o.UserNameIew = userNameIew +} + +// WithUserNameIsw adds the userNameIsw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameIsw(userNameIsw *string) *ExtrasObjectChangesListParams { + o.SetUserNameIsw(userNameIsw) + return o +} + +// SetUserNameIsw adds the userNameIsw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameIsw(userNameIsw *string) { + o.UserNameIsw = userNameIsw +} + +// WithUserNamen adds the userNamen to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNamen(userNamen *string) *ExtrasObjectChangesListParams { + o.SetUserNamen(userNamen) + return o +} + +// SetUserNamen adds the userNameN to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNamen(userNamen *string) { + o.UserNamen = userNamen +} + +// WithUserNameNic adds the userNameNic to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameNic(userNameNic *string) *ExtrasObjectChangesListParams { + o.SetUserNameNic(userNameNic) + return o +} + +// SetUserNameNic adds the userNameNic to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameNic(userNameNic *string) { + o.UserNameNic = userNameNic +} + +// WithUserNameNie adds the userNameNie to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameNie(userNameNie *string) *ExtrasObjectChangesListParams { + o.SetUserNameNie(userNameNie) + return o +} + +// SetUserNameNie adds the userNameNie to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameNie(userNameNie *string) { + o.UserNameNie = userNameNie +} + +// WithUserNameNiew adds the userNameNiew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameNiew(userNameNiew *string) *ExtrasObjectChangesListParams { + o.SetUserNameNiew(userNameNiew) + return o +} + +// SetUserNameNiew adds the userNameNiew to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameNiew(userNameNiew *string) { + o.UserNameNiew = userNameNiew +} + +// WithUserNameNisw adds the userNameNisw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) WithUserNameNisw(userNameNisw *string) *ExtrasObjectChangesListParams { + o.SetUserNameNisw(userNameNisw) + return o +} + +// SetUserNameNisw adds the userNameNisw to the extras object changes list params +func (o *ExtrasObjectChangesListParams) SetUserNameNisw(userNameNisw *string) { + o.UserNameNisw = userNameNisw +} + // WriteToRequest writes these params to a swagger request func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -289,14 +704,30 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Actionn != nil { + + // query param action__n + var qrActionn string + if o.Actionn != nil { + qrActionn = *o.Actionn + } + qActionn := qrActionn + if qActionn != "" { + if err := r.SetQueryParam("action__n", qActionn); err != nil { + return err + } + } + + } + if o.ChangedObjectID != nil { // query param changed_object_id - var qrChangedObjectID float64 + var qrChangedObjectID string if o.ChangedObjectID != nil { qrChangedObjectID = *o.ChangedObjectID } - qChangedObjectID := swag.FormatFloat64(qrChangedObjectID) + qChangedObjectID := qrChangedObjectID if qChangedObjectID != "" { if err := r.SetQueryParam("changed_object_id", qChangedObjectID); err != nil { return err @@ -305,6 +736,86 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ChangedObjectIDGt != nil { + + // query param changed_object_id__gt + var qrChangedObjectIDGt string + if o.ChangedObjectIDGt != nil { + qrChangedObjectIDGt = *o.ChangedObjectIDGt + } + qChangedObjectIDGt := qrChangedObjectIDGt + if qChangedObjectIDGt != "" { + if err := r.SetQueryParam("changed_object_id__gt", qChangedObjectIDGt); err != nil { + return err + } + } + + } + + if o.ChangedObjectIDGte != nil { + + // query param changed_object_id__gte + var qrChangedObjectIDGte string + if o.ChangedObjectIDGte != nil { + qrChangedObjectIDGte = *o.ChangedObjectIDGte + } + qChangedObjectIDGte := qrChangedObjectIDGte + if qChangedObjectIDGte != "" { + if err := r.SetQueryParam("changed_object_id__gte", qChangedObjectIDGte); err != nil { + return err + } + } + + } + + if o.ChangedObjectIDLt != nil { + + // query param changed_object_id__lt + var qrChangedObjectIDLt string + if o.ChangedObjectIDLt != nil { + qrChangedObjectIDLt = *o.ChangedObjectIDLt + } + qChangedObjectIDLt := qrChangedObjectIDLt + if qChangedObjectIDLt != "" { + if err := r.SetQueryParam("changed_object_id__lt", qChangedObjectIDLt); err != nil { + return err + } + } + + } + + if o.ChangedObjectIDLte != nil { + + // query param changed_object_id__lte + var qrChangedObjectIDLte string + if o.ChangedObjectIDLte != nil { + qrChangedObjectIDLte = *o.ChangedObjectIDLte + } + qChangedObjectIDLte := qrChangedObjectIDLte + if qChangedObjectIDLte != "" { + if err := r.SetQueryParam("changed_object_id__lte", qChangedObjectIDLte); err != nil { + return err + } + } + + } + + if o.ChangedObjectIDn != nil { + + // query param changed_object_id__n + var qrChangedObjectIDn string + if o.ChangedObjectIDn != nil { + qrChangedObjectIDn = *o.ChangedObjectIDn + } + qChangedObjectIDn := qrChangedObjectIDn + if qChangedObjectIDn != "" { + if err := r.SetQueryParam("changed_object_id__n", qChangedObjectIDn); err != nil { + return err + } + } + + } + if o.ChangedObjectType != nil { // query param changed_object_type @@ -321,6 +832,118 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ChangedObjectTypen != nil { + + // query param changed_object_type__n + var qrChangedObjectTypen string + if o.ChangedObjectTypen != nil { + qrChangedObjectTypen = *o.ChangedObjectTypen + } + qChangedObjectTypen := qrChangedObjectTypen + if qChangedObjectTypen != "" { + if err := r.SetQueryParam("changed_object_type__n", qChangedObjectTypen); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -353,6 +976,150 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.ObjectReprIc != nil { + + // query param object_repr__ic + var qrObjectReprIc string + if o.ObjectReprIc != nil { + qrObjectReprIc = *o.ObjectReprIc + } + qObjectReprIc := qrObjectReprIc + if qObjectReprIc != "" { + if err := r.SetQueryParam("object_repr__ic", qObjectReprIc); err != nil { + return err + } + } + + } + + if o.ObjectReprIe != nil { + + // query param object_repr__ie + var qrObjectReprIe string + if o.ObjectReprIe != nil { + qrObjectReprIe = *o.ObjectReprIe + } + qObjectReprIe := qrObjectReprIe + if qObjectReprIe != "" { + if err := r.SetQueryParam("object_repr__ie", qObjectReprIe); err != nil { + return err + } + } + + } + + if o.ObjectReprIew != nil { + + // query param object_repr__iew + var qrObjectReprIew string + if o.ObjectReprIew != nil { + qrObjectReprIew = *o.ObjectReprIew + } + qObjectReprIew := qrObjectReprIew + if qObjectReprIew != "" { + if err := r.SetQueryParam("object_repr__iew", qObjectReprIew); err != nil { + return err + } + } + + } + + if o.ObjectReprIsw != nil { + + // query param object_repr__isw + var qrObjectReprIsw string + if o.ObjectReprIsw != nil { + qrObjectReprIsw = *o.ObjectReprIsw + } + qObjectReprIsw := qrObjectReprIsw + if qObjectReprIsw != "" { + if err := r.SetQueryParam("object_repr__isw", qObjectReprIsw); err != nil { + return err + } + } + + } + + if o.ObjectReprn != nil { + + // query param object_repr__n + var qrObjectReprn string + if o.ObjectReprn != nil { + qrObjectReprn = *o.ObjectReprn + } + qObjectReprn := qrObjectReprn + if qObjectReprn != "" { + if err := r.SetQueryParam("object_repr__n", qObjectReprn); err != nil { + return err + } + } + + } + + if o.ObjectReprNic != nil { + + // query param object_repr__nic + var qrObjectReprNic string + if o.ObjectReprNic != nil { + qrObjectReprNic = *o.ObjectReprNic + } + qObjectReprNic := qrObjectReprNic + if qObjectReprNic != "" { + if err := r.SetQueryParam("object_repr__nic", qObjectReprNic); err != nil { + return err + } + } + + } + + if o.ObjectReprNie != nil { + + // query param object_repr__nie + var qrObjectReprNie string + if o.ObjectReprNie != nil { + qrObjectReprNie = *o.ObjectReprNie + } + qObjectReprNie := qrObjectReprNie + if qObjectReprNie != "" { + if err := r.SetQueryParam("object_repr__nie", qObjectReprNie); err != nil { + return err + } + } + + } + + if o.ObjectReprNiew != nil { + + // query param object_repr__niew + var qrObjectReprNiew string + if o.ObjectReprNiew != nil { + qrObjectReprNiew = *o.ObjectReprNiew + } + qObjectReprNiew := qrObjectReprNiew + if qObjectReprNiew != "" { + if err := r.SetQueryParam("object_repr__niew", qObjectReprNiew); err != nil { + return err + } + } + + } + + if o.ObjectReprNisw != nil { + + // query param object_repr__nisw + var qrObjectReprNisw string + if o.ObjectReprNisw != nil { + qrObjectReprNisw = *o.ObjectReprNisw + } + qObjectReprNisw := qrObjectReprNisw + if qObjectReprNisw != "" { + if err := r.SetQueryParam("object_repr__nisw", qObjectReprNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -433,6 +1200,22 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Usern != nil { + + // query param user__n + var qrUsern string + if o.Usern != nil { + qrUsern = *o.Usern + } + qUsern := qrUsern + if qUsern != "" { + if err := r.SetQueryParam("user__n", qUsern); err != nil { + return err + } + } + + } + if o.UserName != nil { // query param user_name @@ -449,6 +1232,150 @@ func (o *ExtrasObjectChangesListParams) WriteToRequest(r runtime.ClientRequest, } + if o.UserNameIc != nil { + + // query param user_name__ic + var qrUserNameIc string + if o.UserNameIc != nil { + qrUserNameIc = *o.UserNameIc + } + qUserNameIc := qrUserNameIc + if qUserNameIc != "" { + if err := r.SetQueryParam("user_name__ic", qUserNameIc); err != nil { + return err + } + } + + } + + if o.UserNameIe != nil { + + // query param user_name__ie + var qrUserNameIe string + if o.UserNameIe != nil { + qrUserNameIe = *o.UserNameIe + } + qUserNameIe := qrUserNameIe + if qUserNameIe != "" { + if err := r.SetQueryParam("user_name__ie", qUserNameIe); err != nil { + return err + } + } + + } + + if o.UserNameIew != nil { + + // query param user_name__iew + var qrUserNameIew string + if o.UserNameIew != nil { + qrUserNameIew = *o.UserNameIew + } + qUserNameIew := qrUserNameIew + if qUserNameIew != "" { + if err := r.SetQueryParam("user_name__iew", qUserNameIew); err != nil { + return err + } + } + + } + + if o.UserNameIsw != nil { + + // query param user_name__isw + var qrUserNameIsw string + if o.UserNameIsw != nil { + qrUserNameIsw = *o.UserNameIsw + } + qUserNameIsw := qrUserNameIsw + if qUserNameIsw != "" { + if err := r.SetQueryParam("user_name__isw", qUserNameIsw); err != nil { + return err + } + } + + } + + if o.UserNamen != nil { + + // query param user_name__n + var qrUserNamen string + if o.UserNamen != nil { + qrUserNamen = *o.UserNamen + } + qUserNamen := qrUserNamen + if qUserNamen != "" { + if err := r.SetQueryParam("user_name__n", qUserNamen); err != nil { + return err + } + } + + } + + if o.UserNameNic != nil { + + // query param user_name__nic + var qrUserNameNic string + if o.UserNameNic != nil { + qrUserNameNic = *o.UserNameNic + } + qUserNameNic := qrUserNameNic + if qUserNameNic != "" { + if err := r.SetQueryParam("user_name__nic", qUserNameNic); err != nil { + return err + } + } + + } + + if o.UserNameNie != nil { + + // query param user_name__nie + var qrUserNameNie string + if o.UserNameNie != nil { + qrUserNameNie = *o.UserNameNie + } + qUserNameNie := qrUserNameNie + if qUserNameNie != "" { + if err := r.SetQueryParam("user_name__nie", qUserNameNie); err != nil { + return err + } + } + + } + + if o.UserNameNiew != nil { + + // query param user_name__niew + var qrUserNameNiew string + if o.UserNameNiew != nil { + qrUserNameNiew = *o.UserNameNiew + } + qUserNameNiew := qrUserNameNiew + if qUserNameNiew != "" { + if err := r.SetQueryParam("user_name__niew", qUserNameNiew); err != nil { + return err + } + } + + } + + if o.UserNameNisw != nil { + + // query param user_name__nisw + var qrUserNameNisw string + if o.UserNameNisw != nil { + qrUserNameNisw = *o.UserNameNisw + } + qUserNameNisw := qrUserNameNisw + if qUserNameNisw != "" { + if err := r.SetQueryParam("user_name__nisw", qUserNameNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_responses.go index aebbf6d70..82f94059a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasObjectChangesListReader is a Reader for the ExtrasObjectChangesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_parameters.go index d9fb11e9f..5cd3e3906 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasObjectChangesReadParams creates a new ExtrasObjectChangesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_responses.go index 3b578fe2f..beecb0f13 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_object_changes_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasObjectChangesReadReader is a Reader for the ExtrasObjectChangesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_parameters.go index 07819377c..341c2e1d3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasReportsListParams creates a new ExtrasReportsListParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_responses.go index 290b34b38..761692f10 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_list_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasReportsListReader is a Reader for the ExtrasReportsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_parameters.go index f7c84e1e9..ab800e69a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasReportsReadParams creates a new ExtrasReportsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_responses.go index 416d0321f..b2c5219b1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_read_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasReportsReadReader is a Reader for the ExtrasReportsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_parameters.go index a0187af84..c5f1e4a64 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasReportsRunParams creates a new ExtrasReportsRunParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_responses.go index e8a194b26..c3027d33a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_reports_run_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasReportsRunReader is a Reader for the ExtrasReportsRun structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_parameters.go index 9fd6cb534..250e18d91 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasScriptsListParams creates a new ExtrasScriptsListParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_responses.go index 34f68cdbd..2eb307f38 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_list_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasScriptsListReader is a Reader for the ExtrasScriptsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_parameters.go index 5a8b3f008..02bbccc72 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewExtrasScriptsReadParams creates a new ExtrasScriptsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_responses.go index 43fcf2272..7b7f73e31 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_scripts_read_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasScriptsReadReader is a Reader for the ExtrasScriptsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_parameters.go index a03c36ed2..8d368a81d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasTagsCreateParams creates a new ExtrasTagsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_responses.go index 55d12c40f..56ea9776c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasTagsCreateReader is a Reader for the ExtrasTagsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_parameters.go index 275e146a1..872331b69 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasTagsDeleteParams creates a new ExtrasTagsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_responses.go index 398152124..48bfb3eb0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // ExtrasTagsDeleteReader is a Reader for the ExtrasTagsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_parameters.go index 4b85413f7..a9ad07a76 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasTagsListParams creates a new ExtrasTagsListParams object @@ -77,6 +76,38 @@ for the extras tags list operation typically these are written to a http.Request */ type ExtrasTagsListParams struct { + /*Color*/ + Color *string + /*ColorIc*/ + ColorIc *string + /*ColorIe*/ + ColorIe *string + /*ColorIew*/ + ColorIew *string + /*ColorIsw*/ + ColorIsw *string + /*Colorn*/ + Colorn *string + /*ColorNic*/ + ColorNic *string + /*ColorNie*/ + ColorNie *string + /*ColorNiew*/ + ColorNiew *string + /*ColorNisw*/ + ColorNisw *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -84,6 +115,24 @@ type ExtrasTagsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -93,6 +142,24 @@ type ExtrasTagsListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -132,6 +199,182 @@ func (o *ExtrasTagsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithColor adds the color to the extras tags list params +func (o *ExtrasTagsListParams) WithColor(color *string) *ExtrasTagsListParams { + o.SetColor(color) + return o +} + +// SetColor adds the color to the extras tags list params +func (o *ExtrasTagsListParams) SetColor(color *string) { + o.Color = color +} + +// WithColorIc adds the colorIc to the extras tags list params +func (o *ExtrasTagsListParams) WithColorIc(colorIc *string) *ExtrasTagsListParams { + o.SetColorIc(colorIc) + return o +} + +// SetColorIc adds the colorIc to the extras tags list params +func (o *ExtrasTagsListParams) SetColorIc(colorIc *string) { + o.ColorIc = colorIc +} + +// WithColorIe adds the colorIe to the extras tags list params +func (o *ExtrasTagsListParams) WithColorIe(colorIe *string) *ExtrasTagsListParams { + o.SetColorIe(colorIe) + return o +} + +// SetColorIe adds the colorIe to the extras tags list params +func (o *ExtrasTagsListParams) SetColorIe(colorIe *string) { + o.ColorIe = colorIe +} + +// WithColorIew adds the colorIew to the extras tags list params +func (o *ExtrasTagsListParams) WithColorIew(colorIew *string) *ExtrasTagsListParams { + o.SetColorIew(colorIew) + return o +} + +// SetColorIew adds the colorIew to the extras tags list params +func (o *ExtrasTagsListParams) SetColorIew(colorIew *string) { + o.ColorIew = colorIew +} + +// WithColorIsw adds the colorIsw to the extras tags list params +func (o *ExtrasTagsListParams) WithColorIsw(colorIsw *string) *ExtrasTagsListParams { + o.SetColorIsw(colorIsw) + return o +} + +// SetColorIsw adds the colorIsw to the extras tags list params +func (o *ExtrasTagsListParams) SetColorIsw(colorIsw *string) { + o.ColorIsw = colorIsw +} + +// WithColorn adds the colorn to the extras tags list params +func (o *ExtrasTagsListParams) WithColorn(colorn *string) *ExtrasTagsListParams { + o.SetColorn(colorn) + return o +} + +// SetColorn adds the colorN to the extras tags list params +func (o *ExtrasTagsListParams) SetColorn(colorn *string) { + o.Colorn = colorn +} + +// WithColorNic adds the colorNic to the extras tags list params +func (o *ExtrasTagsListParams) WithColorNic(colorNic *string) *ExtrasTagsListParams { + o.SetColorNic(colorNic) + return o +} + +// SetColorNic adds the colorNic to the extras tags list params +func (o *ExtrasTagsListParams) SetColorNic(colorNic *string) { + o.ColorNic = colorNic +} + +// WithColorNie adds the colorNie to the extras tags list params +func (o *ExtrasTagsListParams) WithColorNie(colorNie *string) *ExtrasTagsListParams { + o.SetColorNie(colorNie) + return o +} + +// SetColorNie adds the colorNie to the extras tags list params +func (o *ExtrasTagsListParams) SetColorNie(colorNie *string) { + o.ColorNie = colorNie +} + +// WithColorNiew adds the colorNiew to the extras tags list params +func (o *ExtrasTagsListParams) WithColorNiew(colorNiew *string) *ExtrasTagsListParams { + o.SetColorNiew(colorNiew) + return o +} + +// SetColorNiew adds the colorNiew to the extras tags list params +func (o *ExtrasTagsListParams) SetColorNiew(colorNiew *string) { + o.ColorNiew = colorNiew +} + +// WithColorNisw adds the colorNisw to the extras tags list params +func (o *ExtrasTagsListParams) WithColorNisw(colorNisw *string) *ExtrasTagsListParams { + o.SetColorNisw(colorNisw) + return o +} + +// SetColorNisw adds the colorNisw to the extras tags list params +func (o *ExtrasTagsListParams) SetColorNisw(colorNisw *string) { + o.ColorNisw = colorNisw +} + +// WithID adds the id to the extras tags list params +func (o *ExtrasTagsListParams) WithID(id *string) *ExtrasTagsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the extras tags list params +func (o *ExtrasTagsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the extras tags list params +func (o *ExtrasTagsListParams) WithIDGt(iDGt *string) *ExtrasTagsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the extras tags list params +func (o *ExtrasTagsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the extras tags list params +func (o *ExtrasTagsListParams) WithIDGte(iDGte *string) *ExtrasTagsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the extras tags list params +func (o *ExtrasTagsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the extras tags list params +func (o *ExtrasTagsListParams) WithIDLt(iDLt *string) *ExtrasTagsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the extras tags list params +func (o *ExtrasTagsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the extras tags list params +func (o *ExtrasTagsListParams) WithIDLte(iDLte *string) *ExtrasTagsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the extras tags list params +func (o *ExtrasTagsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the extras tags list params +func (o *ExtrasTagsListParams) WithIDn(iDn *string) *ExtrasTagsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the extras tags list params +func (o *ExtrasTagsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the extras tags list params func (o *ExtrasTagsListParams) WithLimit(limit *int64) *ExtrasTagsListParams { o.SetLimit(limit) @@ -154,6 +397,105 @@ func (o *ExtrasTagsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the extras tags list params +func (o *ExtrasTagsListParams) WithNameIc(nameIc *string) *ExtrasTagsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the extras tags list params +func (o *ExtrasTagsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the extras tags list params +func (o *ExtrasTagsListParams) WithNameIe(nameIe *string) *ExtrasTagsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the extras tags list params +func (o *ExtrasTagsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the extras tags list params +func (o *ExtrasTagsListParams) WithNameIew(nameIew *string) *ExtrasTagsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the extras tags list params +func (o *ExtrasTagsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the extras tags list params +func (o *ExtrasTagsListParams) WithNameIsw(nameIsw *string) *ExtrasTagsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the extras tags list params +func (o *ExtrasTagsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the extras tags list params +func (o *ExtrasTagsListParams) WithNamen(namen *string) *ExtrasTagsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the extras tags list params +func (o *ExtrasTagsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the extras tags list params +func (o *ExtrasTagsListParams) WithNameNic(nameNic *string) *ExtrasTagsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the extras tags list params +func (o *ExtrasTagsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the extras tags list params +func (o *ExtrasTagsListParams) WithNameNie(nameNie *string) *ExtrasTagsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the extras tags list params +func (o *ExtrasTagsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the extras tags list params +func (o *ExtrasTagsListParams) WithNameNiew(nameNiew *string) *ExtrasTagsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the extras tags list params +func (o *ExtrasTagsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the extras tags list params +func (o *ExtrasTagsListParams) WithNameNisw(nameNisw *string) *ExtrasTagsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the extras tags list params +func (o *ExtrasTagsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the extras tags list params func (o *ExtrasTagsListParams) WithOffset(offset *int64) *ExtrasTagsListParams { o.SetOffset(offset) @@ -187,6 +529,105 @@ func (o *ExtrasTagsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugIc(slugIc *string) *ExtrasTagsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugIe(slugIe *string) *ExtrasTagsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugIew(slugIew *string) *ExtrasTagsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugIsw(slugIsw *string) *ExtrasTagsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugn(slugn *string) *ExtrasTagsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugNic(slugNic *string) *ExtrasTagsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugNie(slugNie *string) *ExtrasTagsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugNiew(slugNiew *string) *ExtrasTagsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the extras tags list params +func (o *ExtrasTagsListParams) WithSlugNisw(slugNisw *string) *ExtrasTagsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the extras tags list params +func (o *ExtrasTagsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -195,6 +636,262 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } var res []error + if o.Color != nil { + + // query param color + var qrColor string + if o.Color != nil { + qrColor = *o.Color + } + qColor := qrColor + if qColor != "" { + if err := r.SetQueryParam("color", qColor); err != nil { + return err + } + } + + } + + if o.ColorIc != nil { + + // query param color__ic + var qrColorIc string + if o.ColorIc != nil { + qrColorIc = *o.ColorIc + } + qColorIc := qrColorIc + if qColorIc != "" { + if err := r.SetQueryParam("color__ic", qColorIc); err != nil { + return err + } + } + + } + + if o.ColorIe != nil { + + // query param color__ie + var qrColorIe string + if o.ColorIe != nil { + qrColorIe = *o.ColorIe + } + qColorIe := qrColorIe + if qColorIe != "" { + if err := r.SetQueryParam("color__ie", qColorIe); err != nil { + return err + } + } + + } + + if o.ColorIew != nil { + + // query param color__iew + var qrColorIew string + if o.ColorIew != nil { + qrColorIew = *o.ColorIew + } + qColorIew := qrColorIew + if qColorIew != "" { + if err := r.SetQueryParam("color__iew", qColorIew); err != nil { + return err + } + } + + } + + if o.ColorIsw != nil { + + // query param color__isw + var qrColorIsw string + if o.ColorIsw != nil { + qrColorIsw = *o.ColorIsw + } + qColorIsw := qrColorIsw + if qColorIsw != "" { + if err := r.SetQueryParam("color__isw", qColorIsw); err != nil { + return err + } + } + + } + + if o.Colorn != nil { + + // query param color__n + var qrColorn string + if o.Colorn != nil { + qrColorn = *o.Colorn + } + qColorn := qrColorn + if qColorn != "" { + if err := r.SetQueryParam("color__n", qColorn); err != nil { + return err + } + } + + } + + if o.ColorNic != nil { + + // query param color__nic + var qrColorNic string + if o.ColorNic != nil { + qrColorNic = *o.ColorNic + } + qColorNic := qrColorNic + if qColorNic != "" { + if err := r.SetQueryParam("color__nic", qColorNic); err != nil { + return err + } + } + + } + + if o.ColorNie != nil { + + // query param color__nie + var qrColorNie string + if o.ColorNie != nil { + qrColorNie = *o.ColorNie + } + qColorNie := qrColorNie + if qColorNie != "" { + if err := r.SetQueryParam("color__nie", qColorNie); err != nil { + return err + } + } + + } + + if o.ColorNiew != nil { + + // query param color__niew + var qrColorNiew string + if o.ColorNiew != nil { + qrColorNiew = *o.ColorNiew + } + qColorNiew := qrColorNiew + if qColorNiew != "" { + if err := r.SetQueryParam("color__niew", qColorNiew); err != nil { + return err + } + } + + } + + if o.ColorNisw != nil { + + // query param color__nisw + var qrColorNisw string + if o.ColorNisw != nil { + qrColorNisw = *o.ColorNisw + } + qColorNisw := qrColorNisw + if qColorNisw != "" { + if err := r.SetQueryParam("color__nisw", qColorNisw); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -227,6 +924,150 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -275,6 +1116,150 @@ func (o *ExtrasTagsListParams) WriteToRequest(r runtime.ClientRequest, reg strfm } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_responses.go index 22807931d..d6382b2ca 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasTagsListReader is a Reader for the ExtrasTagsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_parameters.go index ddcb72007..236d7e8ae 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasTagsPartialUpdateParams creates a new ExtrasTagsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_responses.go index e3476daf2..6e7eacfcc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasTagsPartialUpdateReader is a Reader for the ExtrasTagsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_parameters.go index f40f341d7..43fecbfe4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewExtrasTagsReadParams creates a new ExtrasTagsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_responses.go index 894eec5c4..576f8683e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasTagsReadReader is a Reader for the ExtrasTagsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_parameters.go index e41cb6a3b..5f84fa961 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewExtrasTagsUpdateParams creates a new ExtrasTagsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_responses.go index ab81d3a7c..a5ffbc5d0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/extras/extras_tags_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // ExtrasTagsUpdateReader is a Reader for the ExtrasTagsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_parameters.go index 31de8ba92..90a4f41c2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamAggregatesCreateParams creates a new IpamAggregatesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_responses.go index 0cc7744e0..b551c1ab4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamAggregatesCreateReader is a Reader for the IpamAggregatesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_parameters.go index 346554273..8eeb3c1f8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamAggregatesDeleteParams creates a new IpamAggregatesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_responses.go index 359c6fee0..2e82fcc87 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamAggregatesDeleteReader is a Reader for the IpamAggregatesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go index b07a31d6e..2ca48fa39 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamAggregatesListParams creates a new IpamAggregatesListParams object @@ -85,13 +84,30 @@ type IpamAggregatesListParams struct { CreatedLte *string /*DateAdded*/ DateAdded *string + /*DateAddedGt*/ + DateAddedGt *string + /*DateAddedGte*/ + DateAddedGte *string + /*DateAddedLt*/ + DateAddedLt *string + /*DateAddedLte*/ + DateAddedLte *string + /*DateAddedn*/ + DateAddedn *string /*Family*/ - Family *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + Family *float64 + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -114,10 +130,16 @@ type IpamAggregatesListParams struct { Q *string /*Rir*/ Rir *string + /*Rirn*/ + Rirn *string /*RirID*/ RirID *string + /*RirIDn*/ + RirIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string timeout time.Duration Context context.Context @@ -201,26 +223,136 @@ func (o *IpamAggregatesListParams) SetDateAdded(dateAdded *string) { o.DateAdded = dateAdded } +// WithDateAddedGt adds the dateAddedGt to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithDateAddedGt(dateAddedGt *string) *IpamAggregatesListParams { + o.SetDateAddedGt(dateAddedGt) + return o +} + +// SetDateAddedGt adds the dateAddedGt to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetDateAddedGt(dateAddedGt *string) { + o.DateAddedGt = dateAddedGt +} + +// WithDateAddedGte adds the dateAddedGte to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithDateAddedGte(dateAddedGte *string) *IpamAggregatesListParams { + o.SetDateAddedGte(dateAddedGte) + return o +} + +// SetDateAddedGte adds the dateAddedGte to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetDateAddedGte(dateAddedGte *string) { + o.DateAddedGte = dateAddedGte +} + +// WithDateAddedLt adds the dateAddedLt to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithDateAddedLt(dateAddedLt *string) *IpamAggregatesListParams { + o.SetDateAddedLt(dateAddedLt) + return o +} + +// SetDateAddedLt adds the dateAddedLt to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetDateAddedLt(dateAddedLt *string) { + o.DateAddedLt = dateAddedLt +} + +// WithDateAddedLte adds the dateAddedLte to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithDateAddedLte(dateAddedLte *string) *IpamAggregatesListParams { + o.SetDateAddedLte(dateAddedLte) + return o +} + +// SetDateAddedLte adds the dateAddedLte to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetDateAddedLte(dateAddedLte *string) { + o.DateAddedLte = dateAddedLte +} + +// WithDateAddedn adds the dateAddedn to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithDateAddedn(dateAddedn *string) *IpamAggregatesListParams { + o.SetDateAddedn(dateAddedn) + return o +} + +// SetDateAddedn adds the dateAddedN to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetDateAddedn(dateAddedn *string) { + o.DateAddedn = dateAddedn +} + // WithFamily adds the family to the ipam aggregates list params -func (o *IpamAggregatesListParams) WithFamily(family *string) *IpamAggregatesListParams { +func (o *IpamAggregatesListParams) WithFamily(family *float64) *IpamAggregatesListParams { o.SetFamily(family) return o } // SetFamily adds the family to the ipam aggregates list params -func (o *IpamAggregatesListParams) SetFamily(family *string) { +func (o *IpamAggregatesListParams) SetFamily(family *float64) { o.Family = family } -// WithIDIn adds the iDIn to the ipam aggregates list params -func (o *IpamAggregatesListParams) WithIDIn(iDIn *string) *IpamAggregatesListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithID(id *string) *IpamAggregatesListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithIDGt(iDGt *string) *IpamAggregatesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithIDGte(iDGte *string) *IpamAggregatesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithIDLt(iDLt *string) *IpamAggregatesListParams { + o.SetIDLt(iDLt) return o } -// SetIDIn adds the idIn to the ipam aggregates list params -func (o *IpamAggregatesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDLt adds the idLt to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithIDLte(iDLte *string) *IpamAggregatesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithIDn(iDn *string) *IpamAggregatesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the ipam aggregates list params @@ -311,6 +443,17 @@ func (o *IpamAggregatesListParams) SetRir(rir *string) { o.Rir = rir } +// WithRirn adds the rirn to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithRirn(rirn *string) *IpamAggregatesListParams { + o.SetRirn(rirn) + return o +} + +// SetRirn adds the rirN to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetRirn(rirn *string) { + o.Rirn = rirn +} + // WithRirID adds the rirID to the ipam aggregates list params func (o *IpamAggregatesListParams) WithRirID(rirID *string) *IpamAggregatesListParams { o.SetRirID(rirID) @@ -322,6 +465,17 @@ func (o *IpamAggregatesListParams) SetRirID(rirID *string) { o.RirID = rirID } +// WithRirIDn adds the rirIDn to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithRirIDn(rirIDn *string) *IpamAggregatesListParams { + o.SetRirIDn(rirIDn) + return o +} + +// SetRirIDn adds the rirIdN to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetRirIDn(rirIDn *string) { + o.RirIDn = rirIDn +} + // WithTag adds the tag to the ipam aggregates list params func (o *IpamAggregatesListParams) WithTag(tag *string) *IpamAggregatesListParams { o.SetTag(tag) @@ -333,6 +487,17 @@ func (o *IpamAggregatesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the ipam aggregates list params +func (o *IpamAggregatesListParams) WithTagn(tagn *string) *IpamAggregatesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam aggregates list params +func (o *IpamAggregatesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -405,14 +570,94 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.DateAddedGt != nil { + + // query param date_added__gt + var qrDateAddedGt string + if o.DateAddedGt != nil { + qrDateAddedGt = *o.DateAddedGt + } + qDateAddedGt := qrDateAddedGt + if qDateAddedGt != "" { + if err := r.SetQueryParam("date_added__gt", qDateAddedGt); err != nil { + return err + } + } + + } + + if o.DateAddedGte != nil { + + // query param date_added__gte + var qrDateAddedGte string + if o.DateAddedGte != nil { + qrDateAddedGte = *o.DateAddedGte + } + qDateAddedGte := qrDateAddedGte + if qDateAddedGte != "" { + if err := r.SetQueryParam("date_added__gte", qDateAddedGte); err != nil { + return err + } + } + + } + + if o.DateAddedLt != nil { + + // query param date_added__lt + var qrDateAddedLt string + if o.DateAddedLt != nil { + qrDateAddedLt = *o.DateAddedLt + } + qDateAddedLt := qrDateAddedLt + if qDateAddedLt != "" { + if err := r.SetQueryParam("date_added__lt", qDateAddedLt); err != nil { + return err + } + } + + } + + if o.DateAddedLte != nil { + + // query param date_added__lte + var qrDateAddedLte string + if o.DateAddedLte != nil { + qrDateAddedLte = *o.DateAddedLte + } + qDateAddedLte := qrDateAddedLte + if qDateAddedLte != "" { + if err := r.SetQueryParam("date_added__lte", qDateAddedLte); err != nil { + return err + } + } + + } + + if o.DateAddedn != nil { + + // query param date_added__n + var qrDateAddedn string + if o.DateAddedn != nil { + qrDateAddedn = *o.DateAddedn + } + qDateAddedn := qrDateAddedn + if qDateAddedn != "" { + if err := r.SetQueryParam("date_added__n", qDateAddedn); err != nil { + return err + } + } + + } + if o.Family != nil { // query param family - var qrFamily string + var qrFamily float64 if o.Family != nil { qrFamily = *o.Family } - qFamily := qrFamily + qFamily := swag.FormatFloat64(qrFamily) if qFamily != "" { if err := r.SetQueryParam("family", qFamily); err != nil { return err @@ -421,16 +666,96 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } - if o.IDIn != nil { + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -565,6 +890,22 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Rirn != nil { + + // query param rir__n + var qrRirn string + if o.Rirn != nil { + qrRirn = *o.Rirn + } + qRirn := qrRirn + if qRirn != "" { + if err := r.SetQueryParam("rir__n", qRirn); err != nil { + return err + } + } + + } + if o.RirID != nil { // query param rir_id @@ -581,6 +922,22 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.RirIDn != nil { + + // query param rir_id__n + var qrRirIDn string + if o.RirIDn != nil { + qrRirIDn = *o.RirIDn + } + qRirIDn := qrRirIDn + if qRirIDn != "" { + if err := r.SetQueryParam("rir_id__n", qRirIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -597,6 +954,22 @@ func (o *IpamAggregatesListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_responses.go index d965a4111..3fef2e957 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamAggregatesListReader is a Reader for the IpamAggregatesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_parameters.go index 3d8065f98..87ebf151d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamAggregatesPartialUpdateParams creates a new IpamAggregatesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_responses.go index 0cdf2f28d..ca668f795 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamAggregatesPartialUpdateReader is a Reader for the IpamAggregatesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_parameters.go index 002396030..4aa950439 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamAggregatesReadParams creates a new IpamAggregatesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_responses.go index 7a7833dd6..4404c8108 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamAggregatesReadReader is a Reader for the IpamAggregatesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_parameters.go index 8e745be21..ed31cacd7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamAggregatesUpdateParams creates a new IpamAggregatesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_responses.go index 5ff239379..8382b4dbf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_aggregates_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamAggregatesUpdateReader is a Reader for the IpamAggregatesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_client.go index 74c9408a7..42f4f1c84 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new ipam API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,78 +40,129 @@ type Client struct { formats strfmt.Registry } -/* -IpamChoicesList ipam choices list API -*/ -func (a *Client) IpamChoicesList(params *IpamChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewIpamChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + IpamAggregatesCreate(params *IpamAggregatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ipam__choices_list", - Method: "GET", - PathPattern: "/ipam/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &IpamChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*IpamChoicesListOK) - 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__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + IpamAggregatesDelete(params *IpamAggregatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesDeleteNoContent, error) -/* -IpamChoicesRead ipam choices read API -*/ -func (a *Client) IpamChoicesRead(params *IpamChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewIpamChoicesReadParams() - } + IpamAggregatesList(params *IpamAggregatesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ipam__choices_read", - Method: "GET", - PathPattern: "/ipam/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &IpamChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*IpamChoicesReadOK) - 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__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + IpamAggregatesPartialUpdate(params *IpamAggregatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesPartialUpdateOK, error) + + IpamAggregatesRead(params *IpamAggregatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesReadOK, error) + + IpamAggregatesUpdate(params *IpamAggregatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesUpdateOK, error) + + IpamIPAddressesCreate(params *IpamIPAddressesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesCreateCreated, error) + + IpamIPAddressesDelete(params *IpamIPAddressesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesDeleteNoContent, error) + + IpamIPAddressesList(params *IpamIPAddressesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesListOK, error) + + IpamIPAddressesPartialUpdate(params *IpamIPAddressesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesPartialUpdateOK, error) + + IpamIPAddressesRead(params *IpamIPAddressesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesReadOK, error) + + IpamIPAddressesUpdate(params *IpamIPAddressesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesUpdateOK, error) + + IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIpsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailableIpsCreateOK, error) + + IpamPrefixesAvailableIpsRead(params *IpamPrefixesAvailableIpsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailableIpsReadOK, error) + + IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailablePrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailablePrefixesCreateOK, error) + + IpamPrefixesAvailablePrefixesRead(params *IpamPrefixesAvailablePrefixesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailablePrefixesReadOK, error) + + IpamPrefixesCreate(params *IpamPrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesCreateCreated, error) + + IpamPrefixesDelete(params *IpamPrefixesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesDeleteNoContent, error) + + IpamPrefixesList(params *IpamPrefixesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesListOK, error) + + IpamPrefixesPartialUpdate(params *IpamPrefixesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesPartialUpdateOK, error) + + IpamPrefixesRead(params *IpamPrefixesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesReadOK, error) + + IpamPrefixesUpdate(params *IpamPrefixesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesUpdateOK, error) + + IpamRirsCreate(params *IpamRirsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsCreateCreated, error) + + IpamRirsDelete(params *IpamRirsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsDeleteNoContent, error) + + IpamRirsList(params *IpamRirsListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsListOK, error) + + IpamRirsPartialUpdate(params *IpamRirsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsPartialUpdateOK, error) + + IpamRirsRead(params *IpamRirsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsReadOK, error) + + IpamRirsUpdate(params *IpamRirsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsUpdateOK, error) + + IpamRolesCreate(params *IpamRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesCreateCreated, error) + + IpamRolesDelete(params *IpamRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesDeleteNoContent, error) + + IpamRolesList(params *IpamRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesListOK, error) + + IpamRolesPartialUpdate(params *IpamRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesPartialUpdateOK, error) + + IpamRolesRead(params *IpamRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesReadOK, error) + + IpamRolesUpdate(params *IpamRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesUpdateOK, error) + + IpamServicesCreate(params *IpamServicesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesCreateCreated, error) + + IpamServicesDelete(params *IpamServicesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesDeleteNoContent, error) + + IpamServicesList(params *IpamServicesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesListOK, error) + + IpamServicesPartialUpdate(params *IpamServicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesPartialUpdateOK, error) + + IpamServicesRead(params *IpamServicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesReadOK, error) + + IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesUpdateOK, error) + + IpamVlanGroupsCreate(params *IpamVlanGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsCreateCreated, error) + + IpamVlanGroupsDelete(params *IpamVlanGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsDeleteNoContent, error) + + IpamVlanGroupsList(params *IpamVlanGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsListOK, error) + + IpamVlanGroupsPartialUpdate(params *IpamVlanGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsPartialUpdateOK, error) + + IpamVlanGroupsRead(params *IpamVlanGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsReadOK, error) + + IpamVlanGroupsUpdate(params *IpamVlanGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsUpdateOK, error) + + IpamVlansCreate(params *IpamVlansCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansCreateCreated, error) + + IpamVlansDelete(params *IpamVlansDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansDeleteNoContent, error) + + IpamVlansList(params *IpamVlansListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansListOK, error) + + IpamVlansPartialUpdate(params *IpamVlansPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansPartialUpdateOK, error) + + IpamVlansRead(params *IpamVlansReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansReadOK, error) + + IpamVlansUpdate(params *IpamVlansUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansUpdateOK, error) + + IpamVrfsCreate(params *IpamVrfsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsCreateCreated, error) + + IpamVrfsDelete(params *IpamVrfsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsDeleteNoContent, error) + + IpamVrfsList(params *IpamVrfsListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsListOK, error) + + IpamVrfsPartialUpdate(params *IpamVrfsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsPartialUpdateOK, error) + + IpamVrfsRead(params *IpamVrfsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsReadOK, error) + + IpamVrfsUpdate(params *IpamVrfsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -IpamAggregatesCreate ipam aggregates create API + IpamAggregatesCreate ipam aggregates create API */ func (a *Client) IpamAggregatesCreate(params *IpamAggregatesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesCreateCreated, error) { // TODO: Validate the params before sending @@ -147,7 +197,7 @@ func (a *Client) IpamAggregatesCreate(params *IpamAggregatesCreateParams, authIn } /* -IpamAggregatesDelete ipam aggregates delete API + IpamAggregatesDelete ipam aggregates delete API */ func (a *Client) IpamAggregatesDelete(params *IpamAggregatesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -182,7 +232,7 @@ func (a *Client) IpamAggregatesDelete(params *IpamAggregatesDeleteParams, authIn } /* -IpamAggregatesList Call to super to allow for caching + IpamAggregatesList Call to super to allow for caching */ func (a *Client) IpamAggregatesList(params *IpamAggregatesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesListOK, error) { // TODO: Validate the params before sending @@ -217,7 +267,7 @@ func (a *Client) IpamAggregatesList(params *IpamAggregatesListParams, authInfo r } /* -IpamAggregatesPartialUpdate ipam aggregates partial update API + IpamAggregatesPartialUpdate ipam aggregates partial update API */ func (a *Client) IpamAggregatesPartialUpdate(params *IpamAggregatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -252,7 +302,7 @@ func (a *Client) IpamAggregatesPartialUpdate(params *IpamAggregatesPartialUpdate } /* -IpamAggregatesRead Call to super to allow for caching + IpamAggregatesRead Call to super to allow for caching */ func (a *Client) IpamAggregatesRead(params *IpamAggregatesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesReadOK, error) { // TODO: Validate the params before sending @@ -287,7 +337,7 @@ func (a *Client) IpamAggregatesRead(params *IpamAggregatesReadParams, authInfo r } /* -IpamAggregatesUpdate ipam aggregates update API + IpamAggregatesUpdate ipam aggregates update API */ func (a *Client) IpamAggregatesUpdate(params *IpamAggregatesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamAggregatesUpdateOK, error) { // TODO: Validate the params before sending @@ -322,7 +372,7 @@ func (a *Client) IpamAggregatesUpdate(params *IpamAggregatesUpdateParams, authIn } /* -IpamIPAddressesCreate ipam ip addresses create API + IpamIPAddressesCreate ipam ip addresses create API */ func (a *Client) IpamIPAddressesCreate(params *IpamIPAddressesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesCreateCreated, error) { // TODO: Validate the params before sending @@ -357,7 +407,7 @@ func (a *Client) IpamIPAddressesCreate(params *IpamIPAddressesCreateParams, auth } /* -IpamIPAddressesDelete ipam ip addresses delete API + IpamIPAddressesDelete ipam ip addresses delete API */ func (a *Client) IpamIPAddressesDelete(params *IpamIPAddressesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -392,7 +442,7 @@ func (a *Client) IpamIPAddressesDelete(params *IpamIPAddressesDeleteParams, auth } /* -IpamIPAddressesList Call to super to allow for caching + IpamIPAddressesList Call to super to allow for caching */ func (a *Client) IpamIPAddressesList(params *IpamIPAddressesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesListOK, error) { // TODO: Validate the params before sending @@ -427,7 +477,7 @@ func (a *Client) IpamIPAddressesList(params *IpamIPAddressesListParams, authInfo } /* -IpamIPAddressesPartialUpdate ipam ip addresses partial update API + IpamIPAddressesPartialUpdate ipam ip addresses partial update API */ func (a *Client) IpamIPAddressesPartialUpdate(params *IpamIPAddressesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -462,7 +512,7 @@ func (a *Client) IpamIPAddressesPartialUpdate(params *IpamIPAddressesPartialUpda } /* -IpamIPAddressesRead Call to super to allow for caching + IpamIPAddressesRead Call to super to allow for caching */ func (a *Client) IpamIPAddressesRead(params *IpamIPAddressesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesReadOK, error) { // TODO: Validate the params before sending @@ -497,7 +547,7 @@ func (a *Client) IpamIPAddressesRead(params *IpamIPAddressesReadParams, authInfo } /* -IpamIPAddressesUpdate ipam ip addresses update API + IpamIPAddressesUpdate ipam ip addresses update API */ func (a *Client) IpamIPAddressesUpdate(params *IpamIPAddressesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamIPAddressesUpdateOK, error) { // TODO: Validate the params before sending @@ -532,14 +582,14 @@ func (a *Client) IpamIPAddressesUpdate(params *IpamIPAddressesUpdateParams, auth } /* -IpamPrefixesAvailableIpsCreate A convenience method for returning available IP addresses within a prefix. By default, the number of IPs + IpamPrefixesAvailableIpsCreate A convenience method for returning available IP addresses within a prefix. By default, the number of IPs returned will be equivalent to PAGINATE_COUNT. An arbitrary limit (up to MAX_PAGE_SIZE, if set) may be passed, however results will not be paginated. The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being invoked in parallel, which results in a race condition where multiple insertions can occur. */ -func (a *Client) IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIpsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailableIpsCreateCreated, error) { +func (a *Client) IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIpsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailableIpsCreateOK, error) { // TODO: Validate the params before sending if params == nil { params = NewIpamPrefixesAvailableIpsCreateParams() @@ -561,7 +611,7 @@ func (a *Client) IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIps if err != nil { return nil, err } - success, ok := result.(*IpamPrefixesAvailableIpsCreateCreated) + success, ok := result.(*IpamPrefixesAvailableIpsCreateOK) if ok { return success, nil } @@ -572,7 +622,7 @@ func (a *Client) IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIps } /* -IpamPrefixesAvailableIpsRead A convenience method for returning available IP addresses within a prefix. By default, the number of IPs + IpamPrefixesAvailableIpsRead A convenience method for returning available IP addresses within a prefix. By default, the number of IPs returned will be equivalent to PAGINATE_COUNT. An arbitrary limit (up to MAX_PAGE_SIZE, if set) may be passed, however results will not be paginated. @@ -612,12 +662,12 @@ func (a *Client) IpamPrefixesAvailableIpsRead(params *IpamPrefixesAvailableIpsRe } /* -IpamPrefixesAvailablePrefixesCreate as convenience method for returning available child prefixes within a parent + IpamPrefixesAvailablePrefixesCreate as convenience method for returning available child prefixes within a parent -The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being + The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being invoked in parallel, which results in a race condition where multiple insertions can occur. */ -func (a *Client) IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailablePrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailablePrefixesCreateCreated, error) { +func (a *Client) IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailablePrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailablePrefixesCreateOK, error) { // TODO: Validate the params before sending if params == nil { params = NewIpamPrefixesAvailablePrefixesCreateParams() @@ -639,7 +689,7 @@ func (a *Client) IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailab if err != nil { return nil, err } - success, ok := result.(*IpamPrefixesAvailablePrefixesCreateCreated) + success, ok := result.(*IpamPrefixesAvailablePrefixesCreateOK) if ok { return success, nil } @@ -650,9 +700,9 @@ func (a *Client) IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailab } /* -IpamPrefixesAvailablePrefixesRead as convenience method for returning available child prefixes within a parent + IpamPrefixesAvailablePrefixesRead as convenience method for returning available child prefixes within a parent -The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being + The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being invoked in parallel, which results in a race condition where multiple insertions can occur. */ func (a *Client) IpamPrefixesAvailablePrefixesRead(params *IpamPrefixesAvailablePrefixesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesAvailablePrefixesReadOK, error) { @@ -688,7 +738,7 @@ func (a *Client) IpamPrefixesAvailablePrefixesRead(params *IpamPrefixesAvailable } /* -IpamPrefixesCreate ipam prefixes create API + IpamPrefixesCreate ipam prefixes create API */ func (a *Client) IpamPrefixesCreate(params *IpamPrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesCreateCreated, error) { // TODO: Validate the params before sending @@ -723,7 +773,7 @@ func (a *Client) IpamPrefixesCreate(params *IpamPrefixesCreateParams, authInfo r } /* -IpamPrefixesDelete ipam prefixes delete API + IpamPrefixesDelete ipam prefixes delete API */ func (a *Client) IpamPrefixesDelete(params *IpamPrefixesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -758,7 +808,7 @@ func (a *Client) IpamPrefixesDelete(params *IpamPrefixesDeleteParams, authInfo r } /* -IpamPrefixesList Call to super to allow for caching + IpamPrefixesList Call to super to allow for caching */ func (a *Client) IpamPrefixesList(params *IpamPrefixesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesListOK, error) { // TODO: Validate the params before sending @@ -793,7 +843,7 @@ func (a *Client) IpamPrefixesList(params *IpamPrefixesListParams, authInfo runti } /* -IpamPrefixesPartialUpdate ipam prefixes partial update API + IpamPrefixesPartialUpdate ipam prefixes partial update API */ func (a *Client) IpamPrefixesPartialUpdate(params *IpamPrefixesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -828,7 +878,7 @@ func (a *Client) IpamPrefixesPartialUpdate(params *IpamPrefixesPartialUpdatePara } /* -IpamPrefixesRead Call to super to allow for caching + IpamPrefixesRead Call to super to allow for caching */ func (a *Client) IpamPrefixesRead(params *IpamPrefixesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesReadOK, error) { // TODO: Validate the params before sending @@ -863,7 +913,7 @@ func (a *Client) IpamPrefixesRead(params *IpamPrefixesReadParams, authInfo runti } /* -IpamPrefixesUpdate ipam prefixes update API + IpamPrefixesUpdate ipam prefixes update API */ func (a *Client) IpamPrefixesUpdate(params *IpamPrefixesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamPrefixesUpdateOK, error) { // TODO: Validate the params before sending @@ -898,7 +948,7 @@ func (a *Client) IpamPrefixesUpdate(params *IpamPrefixesUpdateParams, authInfo r } /* -IpamRirsCreate ipam rirs create API + IpamRirsCreate ipam rirs create API */ func (a *Client) IpamRirsCreate(params *IpamRirsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsCreateCreated, error) { // TODO: Validate the params before sending @@ -933,7 +983,7 @@ func (a *Client) IpamRirsCreate(params *IpamRirsCreateParams, authInfo runtime.C } /* -IpamRirsDelete ipam rirs delete API + IpamRirsDelete ipam rirs delete API */ func (a *Client) IpamRirsDelete(params *IpamRirsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -968,7 +1018,7 @@ func (a *Client) IpamRirsDelete(params *IpamRirsDeleteParams, authInfo runtime.C } /* -IpamRirsList Call to super to allow for caching + IpamRirsList Call to super to allow for caching */ func (a *Client) IpamRirsList(params *IpamRirsListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsListOK, error) { // TODO: Validate the params before sending @@ -1003,7 +1053,7 @@ func (a *Client) IpamRirsList(params *IpamRirsListParams, authInfo runtime.Clien } /* -IpamRirsPartialUpdate ipam rirs partial update API + IpamRirsPartialUpdate ipam rirs partial update API */ func (a *Client) IpamRirsPartialUpdate(params *IpamRirsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1038,7 +1088,7 @@ func (a *Client) IpamRirsPartialUpdate(params *IpamRirsPartialUpdateParams, auth } /* -IpamRirsRead Call to super to allow for caching + IpamRirsRead Call to super to allow for caching */ func (a *Client) IpamRirsRead(params *IpamRirsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsReadOK, error) { // TODO: Validate the params before sending @@ -1073,7 +1123,7 @@ func (a *Client) IpamRirsRead(params *IpamRirsReadParams, authInfo runtime.Clien } /* -IpamRirsUpdate ipam rirs update API + IpamRirsUpdate ipam rirs update API */ func (a *Client) IpamRirsUpdate(params *IpamRirsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRirsUpdateOK, error) { // TODO: Validate the params before sending @@ -1108,7 +1158,7 @@ func (a *Client) IpamRirsUpdate(params *IpamRirsUpdateParams, authInfo runtime.C } /* -IpamRolesCreate ipam roles create API + IpamRolesCreate ipam roles create API */ func (a *Client) IpamRolesCreate(params *IpamRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesCreateCreated, error) { // TODO: Validate the params before sending @@ -1143,7 +1193,7 @@ func (a *Client) IpamRolesCreate(params *IpamRolesCreateParams, authInfo runtime } /* -IpamRolesDelete ipam roles delete API + IpamRolesDelete ipam roles delete API */ func (a *Client) IpamRolesDelete(params *IpamRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1178,7 +1228,7 @@ func (a *Client) IpamRolesDelete(params *IpamRolesDeleteParams, authInfo runtime } /* -IpamRolesList Call to super to allow for caching + IpamRolesList Call to super to allow for caching */ func (a *Client) IpamRolesList(params *IpamRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesListOK, error) { // TODO: Validate the params before sending @@ -1213,7 +1263,7 @@ func (a *Client) IpamRolesList(params *IpamRolesListParams, authInfo runtime.Cli } /* -IpamRolesPartialUpdate ipam roles partial update API + IpamRolesPartialUpdate ipam roles partial update API */ func (a *Client) IpamRolesPartialUpdate(params *IpamRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1248,7 +1298,7 @@ func (a *Client) IpamRolesPartialUpdate(params *IpamRolesPartialUpdateParams, au } /* -IpamRolesRead Call to super to allow for caching + IpamRolesRead Call to super to allow for caching */ func (a *Client) IpamRolesRead(params *IpamRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesReadOK, error) { // TODO: Validate the params before sending @@ -1283,7 +1333,7 @@ func (a *Client) IpamRolesRead(params *IpamRolesReadParams, authInfo runtime.Cli } /* -IpamRolesUpdate ipam roles update API + IpamRolesUpdate ipam roles update API */ func (a *Client) IpamRolesUpdate(params *IpamRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamRolesUpdateOK, error) { // TODO: Validate the params before sending @@ -1318,7 +1368,7 @@ func (a *Client) IpamRolesUpdate(params *IpamRolesUpdateParams, authInfo runtime } /* -IpamServicesCreate ipam services create API + IpamServicesCreate ipam services create API */ func (a *Client) IpamServicesCreate(params *IpamServicesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesCreateCreated, error) { // TODO: Validate the params before sending @@ -1353,7 +1403,7 @@ func (a *Client) IpamServicesCreate(params *IpamServicesCreateParams, authInfo r } /* -IpamServicesDelete ipam services delete API + IpamServicesDelete ipam services delete API */ func (a *Client) IpamServicesDelete(params *IpamServicesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1388,7 +1438,7 @@ func (a *Client) IpamServicesDelete(params *IpamServicesDeleteParams, authInfo r } /* -IpamServicesList Call to super to allow for caching + IpamServicesList Call to super to allow for caching */ func (a *Client) IpamServicesList(params *IpamServicesListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesListOK, error) { // TODO: Validate the params before sending @@ -1423,7 +1473,7 @@ func (a *Client) IpamServicesList(params *IpamServicesListParams, authInfo runti } /* -IpamServicesPartialUpdate ipam services partial update API + IpamServicesPartialUpdate ipam services partial update API */ func (a *Client) IpamServicesPartialUpdate(params *IpamServicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1458,7 +1508,7 @@ func (a *Client) IpamServicesPartialUpdate(params *IpamServicesPartialUpdatePara } /* -IpamServicesRead Call to super to allow for caching + IpamServicesRead Call to super to allow for caching */ func (a *Client) IpamServicesRead(params *IpamServicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesReadOK, error) { // TODO: Validate the params before sending @@ -1493,7 +1543,7 @@ func (a *Client) IpamServicesRead(params *IpamServicesReadParams, authInfo runti } /* -IpamServicesUpdate ipam services update API + IpamServicesUpdate ipam services update API */ func (a *Client) IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamServicesUpdateOK, error) { // TODO: Validate the params before sending @@ -1528,7 +1578,7 @@ func (a *Client) IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo r } /* -IpamVlanGroupsCreate ipam vlan groups create API + IpamVlanGroupsCreate ipam vlan groups create API */ func (a *Client) IpamVlanGroupsCreate(params *IpamVlanGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsCreateCreated, error) { // TODO: Validate the params before sending @@ -1563,7 +1613,7 @@ func (a *Client) IpamVlanGroupsCreate(params *IpamVlanGroupsCreateParams, authIn } /* -IpamVlanGroupsDelete ipam vlan groups delete API + IpamVlanGroupsDelete ipam vlan groups delete API */ func (a *Client) IpamVlanGroupsDelete(params *IpamVlanGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1598,7 +1648,7 @@ func (a *Client) IpamVlanGroupsDelete(params *IpamVlanGroupsDeleteParams, authIn } /* -IpamVlanGroupsList Call to super to allow for caching + IpamVlanGroupsList Call to super to allow for caching */ func (a *Client) IpamVlanGroupsList(params *IpamVlanGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsListOK, error) { // TODO: Validate the params before sending @@ -1633,7 +1683,7 @@ func (a *Client) IpamVlanGroupsList(params *IpamVlanGroupsListParams, authInfo r } /* -IpamVlanGroupsPartialUpdate ipam vlan groups partial update API + IpamVlanGroupsPartialUpdate ipam vlan groups partial update API */ func (a *Client) IpamVlanGroupsPartialUpdate(params *IpamVlanGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1668,7 +1718,7 @@ func (a *Client) IpamVlanGroupsPartialUpdate(params *IpamVlanGroupsPartialUpdate } /* -IpamVlanGroupsRead Call to super to allow for caching + IpamVlanGroupsRead Call to super to allow for caching */ func (a *Client) IpamVlanGroupsRead(params *IpamVlanGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsReadOK, error) { // TODO: Validate the params before sending @@ -1703,7 +1753,7 @@ func (a *Client) IpamVlanGroupsRead(params *IpamVlanGroupsReadParams, authInfo r } /* -IpamVlanGroupsUpdate ipam vlan groups update API + IpamVlanGroupsUpdate ipam vlan groups update API */ func (a *Client) IpamVlanGroupsUpdate(params *IpamVlanGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlanGroupsUpdateOK, error) { // TODO: Validate the params before sending @@ -1738,7 +1788,7 @@ func (a *Client) IpamVlanGroupsUpdate(params *IpamVlanGroupsUpdateParams, authIn } /* -IpamVlansCreate ipam vlans create API + IpamVlansCreate ipam vlans create API */ func (a *Client) IpamVlansCreate(params *IpamVlansCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansCreateCreated, error) { // TODO: Validate the params before sending @@ -1773,7 +1823,7 @@ func (a *Client) IpamVlansCreate(params *IpamVlansCreateParams, authInfo runtime } /* -IpamVlansDelete ipam vlans delete API + IpamVlansDelete ipam vlans delete API */ func (a *Client) IpamVlansDelete(params *IpamVlansDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1808,7 +1858,7 @@ func (a *Client) IpamVlansDelete(params *IpamVlansDeleteParams, authInfo runtime } /* -IpamVlansList Call to super to allow for caching + IpamVlansList Call to super to allow for caching */ func (a *Client) IpamVlansList(params *IpamVlansListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansListOK, error) { // TODO: Validate the params before sending @@ -1843,7 +1893,7 @@ func (a *Client) IpamVlansList(params *IpamVlansListParams, authInfo runtime.Cli } /* -IpamVlansPartialUpdate ipam vlans partial update API + IpamVlansPartialUpdate ipam vlans partial update API */ func (a *Client) IpamVlansPartialUpdate(params *IpamVlansPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1878,7 +1928,7 @@ func (a *Client) IpamVlansPartialUpdate(params *IpamVlansPartialUpdateParams, au } /* -IpamVlansRead Call to super to allow for caching + IpamVlansRead Call to super to allow for caching */ func (a *Client) IpamVlansRead(params *IpamVlansReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansReadOK, error) { // TODO: Validate the params before sending @@ -1913,7 +1963,7 @@ func (a *Client) IpamVlansRead(params *IpamVlansReadParams, authInfo runtime.Cli } /* -IpamVlansUpdate ipam vlans update API + IpamVlansUpdate ipam vlans update API */ func (a *Client) IpamVlansUpdate(params *IpamVlansUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVlansUpdateOK, error) { // TODO: Validate the params before sending @@ -1948,7 +1998,7 @@ func (a *Client) IpamVlansUpdate(params *IpamVlansUpdateParams, authInfo runtime } /* -IpamVrfsCreate ipam vrfs create API + IpamVrfsCreate ipam vrfs create API */ func (a *Client) IpamVrfsCreate(params *IpamVrfsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsCreateCreated, error) { // TODO: Validate the params before sending @@ -1983,7 +2033,7 @@ func (a *Client) IpamVrfsCreate(params *IpamVrfsCreateParams, authInfo runtime.C } /* -IpamVrfsDelete ipam vrfs delete API + IpamVrfsDelete ipam vrfs delete API */ func (a *Client) IpamVrfsDelete(params *IpamVrfsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -2018,7 +2068,7 @@ func (a *Client) IpamVrfsDelete(params *IpamVrfsDeleteParams, authInfo runtime.C } /* -IpamVrfsList Call to super to allow for caching + IpamVrfsList Call to super to allow for caching */ func (a *Client) IpamVrfsList(params *IpamVrfsListParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsListOK, error) { // TODO: Validate the params before sending @@ -2053,7 +2103,7 @@ func (a *Client) IpamVrfsList(params *IpamVrfsListParams, authInfo runtime.Clien } /* -IpamVrfsPartialUpdate ipam vrfs partial update API + IpamVrfsPartialUpdate ipam vrfs partial update API */ func (a *Client) IpamVrfsPartialUpdate(params *IpamVrfsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -2088,7 +2138,7 @@ func (a *Client) IpamVrfsPartialUpdate(params *IpamVrfsPartialUpdateParams, auth } /* -IpamVrfsRead Call to super to allow for caching + IpamVrfsRead Call to super to allow for caching */ func (a *Client) IpamVrfsRead(params *IpamVrfsReadParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsReadOK, error) { // TODO: Validate the params before sending @@ -2123,7 +2173,7 @@ func (a *Client) IpamVrfsRead(params *IpamVrfsReadParams, authInfo runtime.Clien } /* -IpamVrfsUpdate ipam vrfs update API + IpamVrfsUpdate ipam vrfs update API */ func (a *Client) IpamVrfsUpdate(params *IpamVrfsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*IpamVrfsUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_parameters.go index a6c29dcb5..cad6d291b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamIPAddressesCreateParams creates a new IpamIPAddressesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_responses.go index 332296f23..7f6b43923 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamIPAddressesCreateReader is a Reader for the IpamIPAddressesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_parameters.go index 710a281d1..108d5905f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamIPAddressesDeleteParams creates a new IpamIPAddressesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_responses.go index abc5226c7..3d6402fde 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamIPAddressesDeleteReader is a Reader for the IpamIPAddressesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go index a1aeeffd6..b3e4d8cce 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamIPAddressesListParams creates a new IpamIPAddressesListParams object @@ -93,17 +92,46 @@ type IpamIPAddressesListParams struct { DeviceID *string /*DNSName*/ DNSName *string + /*DNSNameIc*/ + DNSNameIc *string + /*DNSNameIe*/ + DNSNameIe *string + /*DNSNameIew*/ + DNSNameIew *string + /*DNSNameIsw*/ + DNSNameIsw *string + /*DNSNamen*/ + DNSNamen *string + /*DNSNameNic*/ + DNSNameNic *string + /*DNSNameNie*/ + DNSNameNie *string + /*DNSNameNiew*/ + DNSNameNiew *string + /*DNSNameNisw*/ + DNSNameNisw *string /*Family*/ - Family *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + Family *float64 + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Interface*/ Interface *string + /*Interfacen*/ + Interfacen *string /*InterfaceID*/ InterfaceID *string + /*InterfaceIDn*/ + InterfaceIDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -128,26 +156,48 @@ type IpamIPAddressesListParams struct { Q *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*VirtualMachine*/ VirtualMachine *string + /*VirtualMachinen*/ + VirtualMachinen *string /*VirtualMachineID*/ VirtualMachineID *string + /*VirtualMachineIDn*/ + VirtualMachineIDn *string /*Vrf*/ Vrf *string + /*Vrfn*/ + Vrfn *string /*VrfID*/ VrfID *string + /*VrfIDn*/ + VrfIDn *string timeout time.Duration Context context.Context @@ -275,26 +325,180 @@ func (o *IpamIPAddressesListParams) SetDNSName(dNSName *string) { o.DNSName = dNSName } +// WithDNSNameIc adds the dNSNameIc to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameIc(dNSNameIc *string) *IpamIPAddressesListParams { + o.SetDNSNameIc(dNSNameIc) + return o +} + +// SetDNSNameIc adds the dnsNameIc to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameIc(dNSNameIc *string) { + o.DNSNameIc = dNSNameIc +} + +// WithDNSNameIe adds the dNSNameIe to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameIe(dNSNameIe *string) *IpamIPAddressesListParams { + o.SetDNSNameIe(dNSNameIe) + return o +} + +// SetDNSNameIe adds the dnsNameIe to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameIe(dNSNameIe *string) { + o.DNSNameIe = dNSNameIe +} + +// WithDNSNameIew adds the dNSNameIew to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameIew(dNSNameIew *string) *IpamIPAddressesListParams { + o.SetDNSNameIew(dNSNameIew) + return o +} + +// SetDNSNameIew adds the dnsNameIew to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameIew(dNSNameIew *string) { + o.DNSNameIew = dNSNameIew +} + +// WithDNSNameIsw adds the dNSNameIsw to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameIsw(dNSNameIsw *string) *IpamIPAddressesListParams { + o.SetDNSNameIsw(dNSNameIsw) + return o +} + +// SetDNSNameIsw adds the dnsNameIsw to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameIsw(dNSNameIsw *string) { + o.DNSNameIsw = dNSNameIsw +} + +// WithDNSNamen adds the dNSNamen to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNamen(dNSNamen *string) *IpamIPAddressesListParams { + o.SetDNSNamen(dNSNamen) + return o +} + +// SetDNSNamen adds the dnsNameN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNamen(dNSNamen *string) { + o.DNSNamen = dNSNamen +} + +// WithDNSNameNic adds the dNSNameNic to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameNic(dNSNameNic *string) *IpamIPAddressesListParams { + o.SetDNSNameNic(dNSNameNic) + return o +} + +// SetDNSNameNic adds the dnsNameNic to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameNic(dNSNameNic *string) { + o.DNSNameNic = dNSNameNic +} + +// WithDNSNameNie adds the dNSNameNie to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameNie(dNSNameNie *string) *IpamIPAddressesListParams { + o.SetDNSNameNie(dNSNameNie) + return o +} + +// SetDNSNameNie adds the dnsNameNie to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameNie(dNSNameNie *string) { + o.DNSNameNie = dNSNameNie +} + +// WithDNSNameNiew adds the dNSNameNiew to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameNiew(dNSNameNiew *string) *IpamIPAddressesListParams { + o.SetDNSNameNiew(dNSNameNiew) + return o +} + +// SetDNSNameNiew adds the dnsNameNiew to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameNiew(dNSNameNiew *string) { + o.DNSNameNiew = dNSNameNiew +} + +// WithDNSNameNisw adds the dNSNameNisw to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithDNSNameNisw(dNSNameNisw *string) *IpamIPAddressesListParams { + o.SetDNSNameNisw(dNSNameNisw) + return o +} + +// SetDNSNameNisw adds the dnsNameNisw to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetDNSNameNisw(dNSNameNisw *string) { + o.DNSNameNisw = dNSNameNisw +} + // WithFamily adds the family to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) WithFamily(family *string) *IpamIPAddressesListParams { +func (o *IpamIPAddressesListParams) WithFamily(family *float64) *IpamIPAddressesListParams { o.SetFamily(family) return o } // SetFamily adds the family to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) SetFamily(family *string) { +func (o *IpamIPAddressesListParams) SetFamily(family *float64) { o.Family = family } -// WithIDIn adds the iDIn to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) WithIDIn(iDIn *string) *IpamIPAddressesListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithID(id *string) *IpamIPAddressesListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithIDGt(iDGt *string) *IpamIPAddressesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithIDGte(iDGte *string) *IpamIPAddressesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithIDLt(iDLt *string) *IpamIPAddressesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithIDLte(iDLte *string) *IpamIPAddressesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithIDn(iDn *string) *IpamIPAddressesListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the ipam ip addresses list params -func (o *IpamIPAddressesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithInterface adds the interfaceVar to the ipam ip addresses list params @@ -308,6 +512,17 @@ func (o *IpamIPAddressesListParams) SetInterface(interfaceVar *string) { o.Interface = interfaceVar } +// WithInterfacen adds the interfacen to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithInterfacen(interfacen *string) *IpamIPAddressesListParams { + o.SetInterfacen(interfacen) + return o +} + +// SetInterfacen adds the interfaceN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetInterfacen(interfacen *string) { + o.Interfacen = interfacen +} + // WithInterfaceID adds the interfaceID to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithInterfaceID(interfaceID *string) *IpamIPAddressesListParams { o.SetInterfaceID(interfaceID) @@ -319,6 +534,17 @@ func (o *IpamIPAddressesListParams) SetInterfaceID(interfaceID *string) { o.InterfaceID = interfaceID } +// WithInterfaceIDn adds the interfaceIDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithInterfaceIDn(interfaceIDn *string) *IpamIPAddressesListParams { + o.SetInterfaceIDn(interfaceIDn) + return o +} + +// SetInterfaceIDn adds the interfaceIdN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetInterfaceIDn(interfaceIDn *string) { + o.InterfaceIDn = interfaceIDn +} + // WithLastUpdated adds the lastUpdated to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithLastUpdated(lastUpdated *string) *IpamIPAddressesListParams { o.SetLastUpdated(lastUpdated) @@ -418,6 +644,17 @@ func (o *IpamIPAddressesListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithRolen(rolen *string) *IpamIPAddressesListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithStatus adds the status to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithStatus(status *string) *IpamIPAddressesListParams { o.SetStatus(status) @@ -429,6 +666,17 @@ func (o *IpamIPAddressesListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithStatusn(statusn *string) *IpamIPAddressesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithTag(tag *string) *IpamIPAddressesListParams { o.SetTag(tag) @@ -440,6 +688,17 @@ func (o *IpamIPAddressesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithTagn(tagn *string) *IpamIPAddressesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithTenant(tenant *string) *IpamIPAddressesListParams { o.SetTenant(tenant) @@ -451,6 +710,17 @@ func (o *IpamIPAddressesListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithTenantn(tenantn *string) *IpamIPAddressesListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithTenantGroup(tenantGroup *string) *IpamIPAddressesListParams { o.SetTenantGroup(tenantGroup) @@ -462,6 +732,17 @@ func (o *IpamIPAddressesListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithTenantGroupn(tenantGroupn *string) *IpamIPAddressesListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithTenantGroupID(tenantGroupID *string) *IpamIPAddressesListParams { o.SetTenantGroupID(tenantGroupID) @@ -473,6 +754,17 @@ func (o *IpamIPAddressesListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *IpamIPAddressesListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithTenantID(tenantID *string) *IpamIPAddressesListParams { o.SetTenantID(tenantID) @@ -484,6 +776,17 @@ func (o *IpamIPAddressesListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithTenantIDn(tenantIDn *string) *IpamIPAddressesListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithVirtualMachine adds the virtualMachine to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithVirtualMachine(virtualMachine *string) *IpamIPAddressesListParams { o.SetVirtualMachine(virtualMachine) @@ -495,6 +798,17 @@ func (o *IpamIPAddressesListParams) SetVirtualMachine(virtualMachine *string) { o.VirtualMachine = virtualMachine } +// WithVirtualMachinen adds the virtualMachinen to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithVirtualMachinen(virtualMachinen *string) *IpamIPAddressesListParams { + o.SetVirtualMachinen(virtualMachinen) + return o +} + +// SetVirtualMachinen adds the virtualMachineN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetVirtualMachinen(virtualMachinen *string) { + o.VirtualMachinen = virtualMachinen +} + // WithVirtualMachineID adds the virtualMachineID to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithVirtualMachineID(virtualMachineID *string) *IpamIPAddressesListParams { o.SetVirtualMachineID(virtualMachineID) @@ -506,6 +820,17 @@ func (o *IpamIPAddressesListParams) SetVirtualMachineID(virtualMachineID *string o.VirtualMachineID = virtualMachineID } +// WithVirtualMachineIDn adds the virtualMachineIDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithVirtualMachineIDn(virtualMachineIDn *string) *IpamIPAddressesListParams { + o.SetVirtualMachineIDn(virtualMachineIDn) + return o +} + +// SetVirtualMachineIDn adds the virtualMachineIdN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetVirtualMachineIDn(virtualMachineIDn *string) { + o.VirtualMachineIDn = virtualMachineIDn +} + // WithVrf adds the vrf to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithVrf(vrf *string) *IpamIPAddressesListParams { o.SetVrf(vrf) @@ -517,6 +842,17 @@ func (o *IpamIPAddressesListParams) SetVrf(vrf *string) { o.Vrf = vrf } +// WithVrfn adds the vrfn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithVrfn(vrfn *string) *IpamIPAddressesListParams { + o.SetVrfn(vrfn) + return o +} + +// SetVrfn adds the vrfN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetVrfn(vrfn *string) { + o.Vrfn = vrfn +} + // WithVrfID adds the vrfID to the ipam ip addresses list params func (o *IpamIPAddressesListParams) WithVrfID(vrfID *string) *IpamIPAddressesListParams { o.SetVrfID(vrfID) @@ -528,6 +864,17 @@ func (o *IpamIPAddressesListParams) SetVrfID(vrfID *string) { o.VrfID = vrfID } +// WithVrfIDn adds the vrfIDn to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) WithVrfIDn(vrfIDn *string) *IpamIPAddressesListParams { + o.SetVrfIDn(vrfIDn) + return o +} + +// SetVrfIDn adds the vrfIdN to the ipam ip addresses list params +func (o *IpamIPAddressesListParams) SetVrfIDn(vrfIDn *string) { + o.VrfIDn = vrfIDn +} + // WriteToRequest writes these params to a swagger request func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -664,14 +1011,158 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.DNSNameIc != nil { + + // query param dns_name__ic + var qrDNSNameIc string + if o.DNSNameIc != nil { + qrDNSNameIc = *o.DNSNameIc + } + qDNSNameIc := qrDNSNameIc + if qDNSNameIc != "" { + if err := r.SetQueryParam("dns_name__ic", qDNSNameIc); err != nil { + return err + } + } + + } + + if o.DNSNameIe != nil { + + // query param dns_name__ie + var qrDNSNameIe string + if o.DNSNameIe != nil { + qrDNSNameIe = *o.DNSNameIe + } + qDNSNameIe := qrDNSNameIe + if qDNSNameIe != "" { + if err := r.SetQueryParam("dns_name__ie", qDNSNameIe); err != nil { + return err + } + } + + } + + if o.DNSNameIew != nil { + + // query param dns_name__iew + var qrDNSNameIew string + if o.DNSNameIew != nil { + qrDNSNameIew = *o.DNSNameIew + } + qDNSNameIew := qrDNSNameIew + if qDNSNameIew != "" { + if err := r.SetQueryParam("dns_name__iew", qDNSNameIew); err != nil { + return err + } + } + + } + + if o.DNSNameIsw != nil { + + // query param dns_name__isw + var qrDNSNameIsw string + if o.DNSNameIsw != nil { + qrDNSNameIsw = *o.DNSNameIsw + } + qDNSNameIsw := qrDNSNameIsw + if qDNSNameIsw != "" { + if err := r.SetQueryParam("dns_name__isw", qDNSNameIsw); err != nil { + return err + } + } + + } + + if o.DNSNamen != nil { + + // query param dns_name__n + var qrDNSNamen string + if o.DNSNamen != nil { + qrDNSNamen = *o.DNSNamen + } + qDNSNamen := qrDNSNamen + if qDNSNamen != "" { + if err := r.SetQueryParam("dns_name__n", qDNSNamen); err != nil { + return err + } + } + + } + + if o.DNSNameNic != nil { + + // query param dns_name__nic + var qrDNSNameNic string + if o.DNSNameNic != nil { + qrDNSNameNic = *o.DNSNameNic + } + qDNSNameNic := qrDNSNameNic + if qDNSNameNic != "" { + if err := r.SetQueryParam("dns_name__nic", qDNSNameNic); err != nil { + return err + } + } + + } + + if o.DNSNameNie != nil { + + // query param dns_name__nie + var qrDNSNameNie string + if o.DNSNameNie != nil { + qrDNSNameNie = *o.DNSNameNie + } + qDNSNameNie := qrDNSNameNie + if qDNSNameNie != "" { + if err := r.SetQueryParam("dns_name__nie", qDNSNameNie); err != nil { + return err + } + } + + } + + if o.DNSNameNiew != nil { + + // query param dns_name__niew + var qrDNSNameNiew string + if o.DNSNameNiew != nil { + qrDNSNameNiew = *o.DNSNameNiew + } + qDNSNameNiew := qrDNSNameNiew + if qDNSNameNiew != "" { + if err := r.SetQueryParam("dns_name__niew", qDNSNameNiew); err != nil { + return err + } + } + + } + + if o.DNSNameNisw != nil { + + // query param dns_name__nisw + var qrDNSNameNisw string + if o.DNSNameNisw != nil { + qrDNSNameNisw = *o.DNSNameNisw + } + qDNSNameNisw := qrDNSNameNisw + if qDNSNameNisw != "" { + if err := r.SetQueryParam("dns_name__nisw", qDNSNameNisw); err != nil { + return err + } + } + + } + if o.Family != nil { // query param family - var qrFamily string + var qrFamily float64 if o.Family != nil { qrFamily = *o.Family } - qFamily := qrFamily + qFamily := swag.FormatFloat64(qrFamily) if qFamily != "" { if err := r.SetQueryParam("family", qFamily); err != nil { return err @@ -680,16 +1171,96 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } - if o.IDIn != nil { + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -712,6 +1283,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Interfacen != nil { + + // query param interface__n + var qrInterfacen string + if o.Interfacen != nil { + qrInterfacen = *o.Interfacen + } + qInterfacen := qrInterfacen + if qInterfacen != "" { + if err := r.SetQueryParam("interface__n", qInterfacen); err != nil { + return err + } + } + + } + if o.InterfaceID != nil { // query param interface_id @@ -728,6 +1315,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.InterfaceIDn != nil { + + // query param interface_id__n + var qrInterfaceIDn string + if o.InterfaceIDn != nil { + qrInterfaceIDn = *o.InterfaceIDn + } + qInterfaceIDn := qrInterfaceIDn + if qInterfaceIDn != "" { + if err := r.SetQueryParam("interface_id__n", qInterfaceIDn); err != nil { + return err + } + } + + } + if o.LastUpdated != nil { // query param last_updated @@ -872,6 +1475,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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.Status != nil { // query param status @@ -888,6 +1507,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -904,6 +1539,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -920,6 +1571,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -936,6 +1603,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -952,6 +1635,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -968,6 +1667,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.VirtualMachine != nil { // query param virtual_machine @@ -984,6 +1699,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.VirtualMachinen != nil { + + // query param virtual_machine__n + var qrVirtualMachinen string + if o.VirtualMachinen != nil { + qrVirtualMachinen = *o.VirtualMachinen + } + qVirtualMachinen := qrVirtualMachinen + if qVirtualMachinen != "" { + if err := r.SetQueryParam("virtual_machine__n", qVirtualMachinen); err != nil { + return err + } + } + + } + if o.VirtualMachineID != nil { // query param virtual_machine_id @@ -1000,6 +1731,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + if o.VirtualMachineIDn != nil { + + // query param virtual_machine_id__n + var qrVirtualMachineIDn string + if o.VirtualMachineIDn != nil { + qrVirtualMachineIDn = *o.VirtualMachineIDn + } + qVirtualMachineIDn := qrVirtualMachineIDn + if qVirtualMachineIDn != "" { + if err := r.SetQueryParam("virtual_machine_id__n", qVirtualMachineIDn); err != nil { + return err + } + } + + } + if o.Vrf != nil { // query param vrf @@ -1016,6 +1763,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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 @@ -1032,6 +1795,22 @@ func (o *IpamIPAddressesListParams) WriteToRequest(r runtime.ClientRequest, reg } + 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/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_responses.go index 63515c0e4..4f8634e3f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamIPAddressesListReader is a Reader for the IpamIPAddressesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_parameters.go index c29cae59f..bd45d1bf8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamIPAddressesPartialUpdateParams creates a new IpamIPAddressesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_responses.go index b722698c4..4031fd25a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamIPAddressesPartialUpdateReader is a Reader for the IpamIPAddressesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_parameters.go index a7c23f6ad..b04560cde 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamIPAddressesReadParams creates a new IpamIPAddressesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_responses.go index d3f39d2dc..14ca1b3ca 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamIPAddressesReadReader is a Reader for the IpamIPAddressesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_parameters.go index 628127213..85615a1ba 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamIPAddressesUpdateParams creates a new IpamIPAddressesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_responses.go index ecaaf11ff..ee2e258ad 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_ip_addresses_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamIPAddressesUpdateReader is a Reader for the IpamIPAddressesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_parameters.go index 25d458eca..05820a6de 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamPrefixesAvailableIpsCreateParams creates a new IpamPrefixesAvailableIpsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_responses.go index 50db5578a..efe265034 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesAvailableIpsCreateReader is a Reader for the IpamPrefixesAvailableIpsCreate structure. @@ -39,8 +38,8 @@ type IpamPrefixesAvailableIpsCreateReader struct { // ReadResponse reads a server response into the received o. func (o *IpamPrefixesAvailableIpsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 201: - result := NewIpamPrefixesAvailableIpsCreateCreated() + case 200: + result := NewIpamPrefixesAvailableIpsCreateOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -51,33 +50,31 @@ func (o *IpamPrefixesAvailableIpsCreateReader) ReadResponse(response runtime.Cli } } -// NewIpamPrefixesAvailableIpsCreateCreated creates a IpamPrefixesAvailableIpsCreateCreated with default headers values -func NewIpamPrefixesAvailableIpsCreateCreated() *IpamPrefixesAvailableIpsCreateCreated { - return &IpamPrefixesAvailableIpsCreateCreated{} +// NewIpamPrefixesAvailableIpsCreateOK creates a IpamPrefixesAvailableIpsCreateOK with default headers values +func NewIpamPrefixesAvailableIpsCreateOK() *IpamPrefixesAvailableIpsCreateOK { + return &IpamPrefixesAvailableIpsCreateOK{} } -/*IpamPrefixesAvailableIpsCreateCreated handles this case with default header values. +/*IpamPrefixesAvailableIpsCreateOK handles this case with default header values. -IpamPrefixesAvailableIpsCreateCreated ipam prefixes available ips create created +IpamPrefixesAvailableIpsCreateOK ipam prefixes available ips create o k */ -type IpamPrefixesAvailableIpsCreateCreated struct { - Payload *models.Prefix +type IpamPrefixesAvailableIpsCreateOK struct { + Payload []*models.AvailableIP } -func (o *IpamPrefixesAvailableIpsCreateCreated) Error() string { - return fmt.Sprintf("[POST /ipam/prefixes/{id}/available-ips/][%d] ipamPrefixesAvailableIpsCreateCreated %+v", 201, o.Payload) +func (o *IpamPrefixesAvailableIpsCreateOK) Error() string { + return fmt.Sprintf("[POST /ipam/prefixes/{id}/available-ips/][%d] ipamPrefixesAvailableIpsCreateOK %+v", 200, o.Payload) } -func (o *IpamPrefixesAvailableIpsCreateCreated) GetPayload() *models.Prefix { +func (o *IpamPrefixesAvailableIpsCreateOK) GetPayload() []*models.AvailableIP { return o.Payload } -func (o *IpamPrefixesAvailableIpsCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Prefix) +func (o *IpamPrefixesAvailableIpsCreateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_parameters.go index 687420fec..c75a57334 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamPrefixesAvailableIpsReadParams creates a new IpamPrefixesAvailableIpsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_responses.go index cb8c8a082..2a8f6c69c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_ips_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesAvailableIpsReadReader is a Reader for the IpamPrefixesAvailableIpsRead structure. @@ -61,23 +60,21 @@ func NewIpamPrefixesAvailableIpsReadOK() *IpamPrefixesAvailableIpsReadOK { IpamPrefixesAvailableIpsReadOK ipam prefixes available ips read o k */ type IpamPrefixesAvailableIpsReadOK struct { - Payload *models.Prefix + Payload []*models.AvailableIP } func (o *IpamPrefixesAvailableIpsReadOK) Error() string { return fmt.Sprintf("[GET /ipam/prefixes/{id}/available-ips/][%d] ipamPrefixesAvailableIpsReadOK %+v", 200, o.Payload) } -func (o *IpamPrefixesAvailableIpsReadOK) GetPayload() *models.Prefix { +func (o *IpamPrefixesAvailableIpsReadOK) GetPayload() []*models.AvailableIP { return o.Payload } func (o *IpamPrefixesAvailableIpsReadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(models.Prefix) - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_parameters.go index 7baf77f47..8546ff907 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamPrefixesAvailablePrefixesCreateParams creates a new IpamPrefixesAvailablePrefixesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_responses.go index ecced194c..64acc55ab 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesAvailablePrefixesCreateReader is a Reader for the IpamPrefixesAvailablePrefixesCreate structure. @@ -39,8 +38,8 @@ type IpamPrefixesAvailablePrefixesCreateReader struct { // ReadResponse reads a server response into the received o. func (o *IpamPrefixesAvailablePrefixesCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 201: - result := NewIpamPrefixesAvailablePrefixesCreateCreated() + case 200: + result := NewIpamPrefixesAvailablePrefixesCreateOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -51,33 +50,31 @@ func (o *IpamPrefixesAvailablePrefixesCreateReader) ReadResponse(response runtim } } -// NewIpamPrefixesAvailablePrefixesCreateCreated creates a IpamPrefixesAvailablePrefixesCreateCreated with default headers values -func NewIpamPrefixesAvailablePrefixesCreateCreated() *IpamPrefixesAvailablePrefixesCreateCreated { - return &IpamPrefixesAvailablePrefixesCreateCreated{} +// NewIpamPrefixesAvailablePrefixesCreateOK creates a IpamPrefixesAvailablePrefixesCreateOK with default headers values +func NewIpamPrefixesAvailablePrefixesCreateOK() *IpamPrefixesAvailablePrefixesCreateOK { + return &IpamPrefixesAvailablePrefixesCreateOK{} } -/*IpamPrefixesAvailablePrefixesCreateCreated handles this case with default header values. +/*IpamPrefixesAvailablePrefixesCreateOK handles this case with default header values. -IpamPrefixesAvailablePrefixesCreateCreated ipam prefixes available prefixes create created +IpamPrefixesAvailablePrefixesCreateOK ipam prefixes available prefixes create o k */ -type IpamPrefixesAvailablePrefixesCreateCreated struct { - Payload *models.Prefix +type IpamPrefixesAvailablePrefixesCreateOK struct { + Payload []*models.AvailablePrefix } -func (o *IpamPrefixesAvailablePrefixesCreateCreated) Error() string { - return fmt.Sprintf("[POST /ipam/prefixes/{id}/available-prefixes/][%d] ipamPrefixesAvailablePrefixesCreateCreated %+v", 201, o.Payload) +func (o *IpamPrefixesAvailablePrefixesCreateOK) Error() string { + return fmt.Sprintf("[POST /ipam/prefixes/{id}/available-prefixes/][%d] ipamPrefixesAvailablePrefixesCreateOK %+v", 200, o.Payload) } -func (o *IpamPrefixesAvailablePrefixesCreateCreated) GetPayload() *models.Prefix { +func (o *IpamPrefixesAvailablePrefixesCreateOK) GetPayload() []*models.AvailablePrefix { return o.Payload } -func (o *IpamPrefixesAvailablePrefixesCreateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Prefix) +func (o *IpamPrefixesAvailablePrefixesCreateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_parameters.go index 55bbae871..659fc02fd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamPrefixesAvailablePrefixesReadParams creates a new IpamPrefixesAvailablePrefixesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_responses.go index 7f3106525..4f3df6f4a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_available_prefixes_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesAvailablePrefixesReadReader is a Reader for the IpamPrefixesAvailablePrefixesRead structure. @@ -61,23 +60,21 @@ func NewIpamPrefixesAvailablePrefixesReadOK() *IpamPrefixesAvailablePrefixesRead IpamPrefixesAvailablePrefixesReadOK ipam prefixes available prefixes read o k */ type IpamPrefixesAvailablePrefixesReadOK struct { - Payload *models.Prefix + Payload []*models.AvailablePrefix } func (o *IpamPrefixesAvailablePrefixesReadOK) Error() string { return fmt.Sprintf("[GET /ipam/prefixes/{id}/available-prefixes/][%d] ipamPrefixesAvailablePrefixesReadOK %+v", 200, o.Payload) } -func (o *IpamPrefixesAvailablePrefixesReadOK) GetPayload() *models.Prefix { +func (o *IpamPrefixesAvailablePrefixesReadOK) GetPayload() []*models.AvailablePrefix { return o.Payload } func (o *IpamPrefixesAvailablePrefixesReadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(models.Prefix) - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_parameters.go index 4997ec348..85dafe666 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamPrefixesCreateParams creates a new IpamPrefixesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_responses.go index 7cda6d533..c8fd649f0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesCreateReader is a Reader for the IpamPrefixesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_parameters.go index ffebc2ac8..41ed06684 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamPrefixesDeleteParams creates a new IpamPrefixesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_responses.go index c0123a7fb..c48d1a679 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamPrefixesDeleteReader is a Reader for the IpamPrefixesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go index 6264e4089..e4a1b4b25 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamPrefixesListParams creates a new IpamPrefixesListParams object @@ -86,12 +85,19 @@ type IpamPrefixesListParams struct { /*CreatedLte*/ CreatedLte *string /*Family*/ - Family *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + Family *float64 + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*IsPool*/ IsPool *string /*LastUpdated*/ @@ -118,36 +124,66 @@ type IpamPrefixesListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*VlanID*/ VlanID *string + /*VlanIDn*/ + VlanIDn *string /*VlanVid*/ VlanVid *float64 /*Vrf*/ Vrf *string + /*Vrfn*/ + Vrfn *string /*VrfID*/ VrfID *string + /*VrfIDn*/ + VrfIDn *string /*Within*/ Within *string /*WithinInclude*/ @@ -236,25 +272,80 @@ func (o *IpamPrefixesListParams) SetCreatedLte(createdLte *string) { } // WithFamily adds the family to the ipam prefixes list params -func (o *IpamPrefixesListParams) WithFamily(family *string) *IpamPrefixesListParams { +func (o *IpamPrefixesListParams) WithFamily(family *float64) *IpamPrefixesListParams { o.SetFamily(family) return o } // SetFamily adds the family to the ipam prefixes list params -func (o *IpamPrefixesListParams) SetFamily(family *string) { +func (o *IpamPrefixesListParams) SetFamily(family *float64) { o.Family = family } -// WithIDIn adds the iDIn to the ipam prefixes list params -func (o *IpamPrefixesListParams) WithIDIn(iDIn *string) *IpamPrefixesListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithID(id *string) *IpamPrefixesListParams { + o.SetID(id) return o } -// SetIDIn adds the idIn to the ipam prefixes list params -func (o *IpamPrefixesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetID adds the id to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithIDGt(iDGt *string) *IpamPrefixesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithIDGte(iDGte *string) *IpamPrefixesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithIDLt(iDLt *string) *IpamPrefixesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithIDLte(iDLte *string) *IpamPrefixesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithIDn(iDn *string) *IpamPrefixesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithIsPool adds the isPool to the ipam prefixes list params @@ -367,6 +458,17 @@ func (o *IpamPrefixesListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithRegionn(regionn *string) *IpamPrefixesListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithRegionID(regionID *string) *IpamPrefixesListParams { o.SetRegionID(regionID) @@ -378,6 +480,17 @@ func (o *IpamPrefixesListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithRegionIDn(regionIDn *string) *IpamPrefixesListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithRole adds the role to the ipam prefixes list params func (o *IpamPrefixesListParams) WithRole(role *string) *IpamPrefixesListParams { o.SetRole(role) @@ -389,6 +502,17 @@ func (o *IpamPrefixesListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithRolen(rolen *string) *IpamPrefixesListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithRoleID(roleID *string) *IpamPrefixesListParams { o.SetRoleID(roleID) @@ -400,6 +524,17 @@ func (o *IpamPrefixesListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithRoleIDn(roleIDn *string) *IpamPrefixesListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSite adds the site to the ipam prefixes list params func (o *IpamPrefixesListParams) WithSite(site *string) *IpamPrefixesListParams { o.SetSite(site) @@ -411,6 +546,17 @@ func (o *IpamPrefixesListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithSiten(siten *string) *IpamPrefixesListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithSiteID(siteID *string) *IpamPrefixesListParams { o.SetSiteID(siteID) @@ -422,6 +568,17 @@ func (o *IpamPrefixesListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithSiteIDn(siteIDn *string) *IpamPrefixesListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the ipam prefixes list params func (o *IpamPrefixesListParams) WithStatus(status *string) *IpamPrefixesListParams { o.SetStatus(status) @@ -433,6 +590,17 @@ func (o *IpamPrefixesListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithStatusn(statusn *string) *IpamPrefixesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the ipam prefixes list params func (o *IpamPrefixesListParams) WithTag(tag *string) *IpamPrefixesListParams { o.SetTag(tag) @@ -444,6 +612,17 @@ func (o *IpamPrefixesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithTagn(tagn *string) *IpamPrefixesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the ipam prefixes list params func (o *IpamPrefixesListParams) WithTenant(tenant *string) *IpamPrefixesListParams { o.SetTenant(tenant) @@ -455,6 +634,17 @@ func (o *IpamPrefixesListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithTenantn(tenantn *string) *IpamPrefixesListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the ipam prefixes list params func (o *IpamPrefixesListParams) WithTenantGroup(tenantGroup *string) *IpamPrefixesListParams { o.SetTenantGroup(tenantGroup) @@ -466,6 +656,17 @@ func (o *IpamPrefixesListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithTenantGroupn(tenantGroupn *string) *IpamPrefixesListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithTenantGroupID(tenantGroupID *string) *IpamPrefixesListParams { o.SetTenantGroupID(tenantGroupID) @@ -477,6 +678,17 @@ func (o *IpamPrefixesListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *IpamPrefixesListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithTenantID(tenantID *string) *IpamPrefixesListParams { o.SetTenantID(tenantID) @@ -488,6 +700,17 @@ func (o *IpamPrefixesListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithTenantIDn(tenantIDn *string) *IpamPrefixesListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithVlanID adds the vlanID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithVlanID(vlanID *string) *IpamPrefixesListParams { o.SetVlanID(vlanID) @@ -499,6 +722,17 @@ func (o *IpamPrefixesListParams) SetVlanID(vlanID *string) { o.VlanID = vlanID } +// WithVlanIDn adds the vlanIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithVlanIDn(vlanIDn *string) *IpamPrefixesListParams { + o.SetVlanIDn(vlanIDn) + return o +} + +// SetVlanIDn adds the vlanIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetVlanIDn(vlanIDn *string) { + o.VlanIDn = vlanIDn +} + // WithVlanVid adds the vlanVid to the ipam prefixes list params func (o *IpamPrefixesListParams) WithVlanVid(vlanVid *float64) *IpamPrefixesListParams { o.SetVlanVid(vlanVid) @@ -521,6 +755,17 @@ func (o *IpamPrefixesListParams) SetVrf(vrf *string) { o.Vrf = vrf } +// WithVrfn adds the vrfn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithVrfn(vrfn *string) *IpamPrefixesListParams { + o.SetVrfn(vrfn) + return o +} + +// SetVrfn adds the vrfN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetVrfn(vrfn *string) { + o.Vrfn = vrfn +} + // WithVrfID adds the vrfID to the ipam prefixes list params func (o *IpamPrefixesListParams) WithVrfID(vrfID *string) *IpamPrefixesListParams { o.SetVrfID(vrfID) @@ -532,6 +777,17 @@ func (o *IpamPrefixesListParams) SetVrfID(vrfID *string) { o.VrfID = vrfID } +// WithVrfIDn adds the vrfIDn to the ipam prefixes list params +func (o *IpamPrefixesListParams) WithVrfIDn(vrfIDn *string) *IpamPrefixesListParams { + o.SetVrfIDn(vrfIDn) + return o +} + +// SetVrfIDn adds the vrfIdN to the ipam prefixes list params +func (o *IpamPrefixesListParams) SetVrfIDn(vrfIDn *string) { + o.VrfIDn = vrfIDn +} + // WithWithin adds the within to the ipam prefixes list params func (o *IpamPrefixesListParams) WithWithin(within *string) *IpamPrefixesListParams { o.SetWithin(within) @@ -629,11 +885,11 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str if o.Family != nil { // query param family - var qrFamily string + var qrFamily float64 if o.Family != nil { qrFamily = *o.Family } - qFamily := qrFamily + qFamily := swag.FormatFloat64(qrFamily) if qFamily != "" { if err := r.SetQueryParam("family", qFamily); err != nil { return err @@ -642,16 +898,96 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } - if o.IDIn != nil { + if o.ID != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -818,6 +1154,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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 @@ -834,6 +1186,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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.Role != nil { // query param role @@ -850,6 +1218,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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 @@ -866,6 +1250,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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.Site != nil { // query param site @@ -882,6 +1282,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -898,6 +1314,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -914,6 +1346,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -930,6 +1378,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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 @@ -946,6 +1410,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -962,6 +1442,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -978,6 +1474,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -994,6 +1506,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.VlanID != nil { // query param vlan_id @@ -1010,6 +1538,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.VlanIDn != nil { + + // query param vlan_id__n + var qrVlanIDn string + if o.VlanIDn != nil { + qrVlanIDn = *o.VlanIDn + } + qVlanIDn := qrVlanIDn + if qVlanIDn != "" { + if err := r.SetQueryParam("vlan_id__n", qVlanIDn); err != nil { + return err + } + } + + } + if o.VlanVid != nil { // query param vlan_vid @@ -1042,6 +1586,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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 @@ -1058,6 +1618,22 @@ func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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.Within != nil { // query param within diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_responses.go index effed0f5e..564ea7db1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesListReader is a Reader for the IpamPrefixesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_parameters.go index c0889d27b..958e210f1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamPrefixesPartialUpdateParams creates a new IpamPrefixesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_responses.go index 33e168d78..3c5feb390 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesPartialUpdateReader is a Reader for the IpamPrefixesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_parameters.go index e70b5ee8d..06ca45937 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamPrefixesReadParams creates a new IpamPrefixesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_responses.go index f572501a4..26cf837b6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesReadReader is a Reader for the IpamPrefixesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_parameters.go index 29fd1e762..ad5cb7ecf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamPrefixesUpdateParams creates a new IpamPrefixesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_responses.go index 1f10e9fbb..157fedff0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_prefixes_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamPrefixesUpdateReader is a Reader for the IpamPrefixesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_parameters.go index 6d0c4aef5..1d91c009a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamRirsCreateParams creates a new IpamRirsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_responses.go index 27cd49113..77540f0ac 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRirsCreateReader is a Reader for the IpamRirsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_parameters.go index 0cdc05fda..843745d18 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamRirsDeleteParams creates a new IpamRirsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_responses.go index 6e8884a30..419d69e9e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamRirsDeleteReader is a Reader for the IpamRirsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go index 96e16948c..076df0512 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamRirsListParams creates a new IpamRirsListParams object @@ -77,11 +76,38 @@ for the ipam rirs list operation typically these are written to a http.Request */ type IpamRirsListParams struct { - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*IsPrivate*/ IsPrivate *string /*Limit @@ -91,6 +117,24 @@ type IpamRirsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -100,6 +144,24 @@ type IpamRirsListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -139,15 +201,180 @@ func (o *IpamRirsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithIDIn adds the iDIn to the ipam rirs list params -func (o *IpamRirsListParams) WithIDIn(iDIn *string) *IpamRirsListParams { - o.SetIDIn(iDIn) +// WithDescription adds the description to the ipam rirs list params +func (o *IpamRirsListParams) WithDescription(description *string) *IpamRirsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the ipam rirs list params +func (o *IpamRirsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionIc(descriptionIc *string) *IpamRirsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionIe(descriptionIe *string) *IpamRirsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionIew(descriptionIew *string) *IpamRirsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionIsw(descriptionIsw *string) *IpamRirsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionn(descriptionn *string) *IpamRirsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionNic(descriptionNic *string) *IpamRirsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionNie(descriptionNie *string) *IpamRirsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionNiew(descriptionNiew *string) *IpamRirsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the ipam rirs list params +func (o *IpamRirsListParams) WithDescriptionNisw(descriptionNisw *string) *IpamRirsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the ipam rirs list params +func (o *IpamRirsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + +// WithID adds the id to the ipam rirs list params +func (o *IpamRirsListParams) WithID(id *string) *IpamRirsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the ipam rirs list params +func (o *IpamRirsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the ipam rirs list params +func (o *IpamRirsListParams) WithIDGt(iDGt *string) *IpamRirsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam rirs list params +func (o *IpamRirsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam rirs list params +func (o *IpamRirsListParams) WithIDGte(iDGte *string) *IpamRirsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam rirs list params +func (o *IpamRirsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam rirs list params +func (o *IpamRirsListParams) WithIDLt(iDLt *string) *IpamRirsListParams { + o.SetIDLt(iDLt) return o } -// SetIDIn adds the idIn to the ipam rirs list params -func (o *IpamRirsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDLt adds the idLt to the ipam rirs list params +func (o *IpamRirsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam rirs list params +func (o *IpamRirsListParams) WithIDLte(iDLte *string) *IpamRirsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam rirs list params +func (o *IpamRirsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam rirs list params +func (o *IpamRirsListParams) WithIDn(iDn *string) *IpamRirsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam rirs list params +func (o *IpamRirsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithIsPrivate adds the isPrivate to the ipam rirs list params @@ -183,6 +410,105 @@ func (o *IpamRirsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the ipam rirs list params +func (o *IpamRirsListParams) WithNameIc(nameIc *string) *IpamRirsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam rirs list params +func (o *IpamRirsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam rirs list params +func (o *IpamRirsListParams) WithNameIe(nameIe *string) *IpamRirsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam rirs list params +func (o *IpamRirsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam rirs list params +func (o *IpamRirsListParams) WithNameIew(nameIew *string) *IpamRirsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam rirs list params +func (o *IpamRirsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam rirs list params +func (o *IpamRirsListParams) WithNameIsw(nameIsw *string) *IpamRirsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam rirs list params +func (o *IpamRirsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam rirs list params +func (o *IpamRirsListParams) WithNamen(namen *string) *IpamRirsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam rirs list params +func (o *IpamRirsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam rirs list params +func (o *IpamRirsListParams) WithNameNic(nameNic *string) *IpamRirsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam rirs list params +func (o *IpamRirsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam rirs list params +func (o *IpamRirsListParams) WithNameNie(nameNie *string) *IpamRirsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam rirs list params +func (o *IpamRirsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam rirs list params +func (o *IpamRirsListParams) WithNameNiew(nameNiew *string) *IpamRirsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam rirs list params +func (o *IpamRirsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam rirs list params +func (o *IpamRirsListParams) WithNameNisw(nameNisw *string) *IpamRirsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam rirs list params +func (o *IpamRirsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam rirs list params func (o *IpamRirsListParams) WithOffset(offset *int64) *IpamRirsListParams { o.SetOffset(offset) @@ -216,6 +542,105 @@ func (o *IpamRirsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugIc(slugIc *string) *IpamRirsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugIe(slugIe *string) *IpamRirsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugIew(slugIew *string) *IpamRirsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugIsw(slugIsw *string) *IpamRirsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugn(slugn *string) *IpamRirsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugNic(slugNic *string) *IpamRirsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugNie(slugNie *string) *IpamRirsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugNiew(slugNiew *string) *IpamRirsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the ipam rirs list params +func (o *IpamRirsListParams) WithSlugNisw(slugNisw *string) *IpamRirsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the ipam rirs list params +func (o *IpamRirsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -224,16 +649,256 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } var res []error - if o.IDIn != nil { + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -288,6 +953,150 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -336,6 +1145,150 @@ func (o *IpamRirsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_responses.go index e6043c4fb..a0b036d84 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRirsListReader is a Reader for the IpamRirsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_parameters.go index 2f93f45ed..fef333029 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamRirsPartialUpdateParams creates a new IpamRirsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_responses.go index c9a093f06..c31cd87f2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRirsPartialUpdateReader is a Reader for the IpamRirsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_parameters.go index 2b17e7b36..332f63f49 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamRirsReadParams creates a new IpamRirsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_responses.go index f785c493a..8712d9060 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRirsReadReader is a Reader for the IpamRirsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_parameters.go index cfc817e07..0850ac140 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamRirsUpdateParams creates a new IpamRirsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_responses.go index ddffc9091..e6ced36ce 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_rirs_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRirsUpdateReader is a Reader for the IpamRirsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_parameters.go index 3e1c69c40..6d011dfb3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamRolesCreateParams creates a new IpamRolesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_responses.go index b35eeebbd..6ff0284d0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRolesCreateReader is a Reader for the IpamRolesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_parameters.go index 3a048aba5..dcba299e2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamRolesDeleteParams creates a new IpamRolesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_responses.go index e942d9450..e44d2a219 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamRolesDeleteReader is a Reader for the IpamRolesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go index 5e6c95ba7..46fa937c9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamRolesListParams creates a new IpamRolesListParams object @@ -79,6 +78,16 @@ type IpamRolesListParams struct { /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +95,24 @@ type IpamRolesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,6 +122,24 @@ type IpamRolesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -145,6 +190,61 @@ func (o *IpamRolesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the ipam roles list params +func (o *IpamRolesListParams) WithIDGt(iDGt *string) *IpamRolesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam roles list params +func (o *IpamRolesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam roles list params +func (o *IpamRolesListParams) WithIDGte(iDGte *string) *IpamRolesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam roles list params +func (o *IpamRolesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam roles list params +func (o *IpamRolesListParams) WithIDLt(iDLt *string) *IpamRolesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam roles list params +func (o *IpamRolesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam roles list params +func (o *IpamRolesListParams) WithIDLte(iDLte *string) *IpamRolesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam roles list params +func (o *IpamRolesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam roles list params +func (o *IpamRolesListParams) WithIDn(iDn *string) *IpamRolesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam roles list params +func (o *IpamRolesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the ipam roles list params func (o *IpamRolesListParams) WithLimit(limit *int64) *IpamRolesListParams { o.SetLimit(limit) @@ -167,6 +267,105 @@ func (o *IpamRolesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the ipam roles list params +func (o *IpamRolesListParams) WithNameIc(nameIc *string) *IpamRolesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam roles list params +func (o *IpamRolesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam roles list params +func (o *IpamRolesListParams) WithNameIe(nameIe *string) *IpamRolesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam roles list params +func (o *IpamRolesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam roles list params +func (o *IpamRolesListParams) WithNameIew(nameIew *string) *IpamRolesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam roles list params +func (o *IpamRolesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam roles list params +func (o *IpamRolesListParams) WithNameIsw(nameIsw *string) *IpamRolesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam roles list params +func (o *IpamRolesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam roles list params +func (o *IpamRolesListParams) WithNamen(namen *string) *IpamRolesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam roles list params +func (o *IpamRolesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam roles list params +func (o *IpamRolesListParams) WithNameNic(nameNic *string) *IpamRolesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam roles list params +func (o *IpamRolesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam roles list params +func (o *IpamRolesListParams) WithNameNie(nameNie *string) *IpamRolesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam roles list params +func (o *IpamRolesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam roles list params +func (o *IpamRolesListParams) WithNameNiew(nameNiew *string) *IpamRolesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam roles list params +func (o *IpamRolesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam roles list params +func (o *IpamRolesListParams) WithNameNisw(nameNisw *string) *IpamRolesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam roles list params +func (o *IpamRolesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam roles list params func (o *IpamRolesListParams) WithOffset(offset *int64) *IpamRolesListParams { o.SetOffset(offset) @@ -200,6 +399,105 @@ func (o *IpamRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the ipam roles list params +func (o *IpamRolesListParams) WithSlugIc(slugIc *string) *IpamRolesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the ipam roles list params +func (o *IpamRolesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the ipam roles list params +func (o *IpamRolesListParams) WithSlugIe(slugIe *string) *IpamRolesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the ipam roles list params +func (o *IpamRolesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the ipam roles list params +func (o *IpamRolesListParams) WithSlugIew(slugIew *string) *IpamRolesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the ipam roles list params +func (o *IpamRolesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the ipam roles list params +func (o *IpamRolesListParams) WithSlugIsw(slugIsw *string) *IpamRolesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the ipam roles list params +func (o *IpamRolesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the ipam roles list params +func (o *IpamRolesListParams) WithSlugn(slugn *string) *IpamRolesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the ipam roles list params +func (o *IpamRolesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the ipam roles list params +func (o *IpamRolesListParams) WithSlugNic(slugNic *string) *IpamRolesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the ipam roles list params +func (o *IpamRolesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the ipam roles list params +func (o *IpamRolesListParams) WithSlugNie(slugNie *string) *IpamRolesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the ipam roles list params +func (o *IpamRolesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the ipam roles list params +func (o *IpamRolesListParams) WithSlugNiew(slugNiew *string) *IpamRolesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the ipam roles list params +func (o *IpamRolesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the ipam roles list params +func (o *IpamRolesListParams) WithSlugNisw(slugNisw *string) *IpamRolesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the ipam roles list params +func (o *IpamRolesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -224,6 +522,86 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +634,150 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -304,6 +826,150 @@ func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_responses.go index f85bb7d4b..e2697dd0f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRolesListReader is a Reader for the IpamRolesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_parameters.go index bff15244b..1ea3bac7b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamRolesPartialUpdateParams creates a new IpamRolesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_responses.go index 519911890..fc4785d1b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRolesPartialUpdateReader is a Reader for the IpamRolesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_parameters.go index 53169b7ce..b0133438e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamRolesReadParams creates a new IpamRolesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_responses.go index 2134bf51a..4ac8aab28 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRolesReadReader is a Reader for the IpamRolesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_parameters.go index 84f206314..94c273295 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamRolesUpdateParams creates a new IpamRolesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_responses.go index 6590dc968..28f455849 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_roles_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamRolesUpdateReader is a Reader for the IpamRolesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_parameters.go index ff5c41daf..69ff57529 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamServicesCreateParams creates a new IpamServicesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_responses.go index 69490b0c1..68897c01f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamServicesCreateReader is a Reader for the IpamServicesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_parameters.go index e85e90230..a020131de 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamServicesDeleteParams creates a new IpamServicesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_responses.go index 6fc4c3fea..65fc5958d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamServicesDeleteReader is a Reader for the IpamServicesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go index 4edca3c46..f9d9a631f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamServicesListParams creates a new IpamServicesListParams object @@ -85,10 +84,24 @@ type IpamServicesListParams struct { CreatedLte *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string + /*DeviceIDn*/ + DeviceIDn *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -102,6 +115,24 @@ type IpamServicesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -109,16 +140,34 @@ type IpamServicesListParams struct { Offset *int64 /*Port*/ Port *string + /*PortGt*/ + PortGt *string + /*PortGte*/ + PortGte *string + /*PortLt*/ + PortLt *string + /*PortLte*/ + PortLte *string + /*Portn*/ + Portn *string /*Protocol*/ Protocol *string + /*Protocoln*/ + Protocoln *string /*Q*/ Q *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*VirtualMachine*/ VirtualMachine *string + /*VirtualMachinen*/ + VirtualMachinen *string /*VirtualMachineID*/ VirtualMachineID *string + /*VirtualMachineIDn*/ + VirtualMachineIDn *string timeout time.Duration Context context.Context @@ -202,6 +251,17 @@ func (o *IpamServicesListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the ipam services list params +func (o *IpamServicesListParams) WithDevicen(devicen *string) *IpamServicesListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the ipam services list params +func (o *IpamServicesListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the ipam services list params func (o *IpamServicesListParams) WithDeviceID(deviceID *string) *IpamServicesListParams { o.SetDeviceID(deviceID) @@ -213,6 +273,17 @@ func (o *IpamServicesListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } +// WithDeviceIDn adds the deviceIDn to the ipam services list params +func (o *IpamServicesListParams) WithDeviceIDn(deviceIDn *string) *IpamServicesListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the ipam services list params +func (o *IpamServicesListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + // WithID adds the id to the ipam services list params func (o *IpamServicesListParams) WithID(id *string) *IpamServicesListParams { o.SetID(id) @@ -224,6 +295,61 @@ func (o *IpamServicesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the ipam services list params +func (o *IpamServicesListParams) WithIDGt(iDGt *string) *IpamServicesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam services list params +func (o *IpamServicesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam services list params +func (o *IpamServicesListParams) WithIDGte(iDGte *string) *IpamServicesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam services list params +func (o *IpamServicesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam services list params +func (o *IpamServicesListParams) WithIDLt(iDLt *string) *IpamServicesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam services list params +func (o *IpamServicesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam services list params +func (o *IpamServicesListParams) WithIDLte(iDLte *string) *IpamServicesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam services list params +func (o *IpamServicesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam services list params +func (o *IpamServicesListParams) WithIDn(iDn *string) *IpamServicesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam services list params +func (o *IpamServicesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLastUpdated adds the lastUpdated to the ipam services list params func (o *IpamServicesListParams) WithLastUpdated(lastUpdated *string) *IpamServicesListParams { o.SetLastUpdated(lastUpdated) @@ -279,6 +405,105 @@ func (o *IpamServicesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the ipam services list params +func (o *IpamServicesListParams) WithNameIc(nameIc *string) *IpamServicesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam services list params +func (o *IpamServicesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam services list params +func (o *IpamServicesListParams) WithNameIe(nameIe *string) *IpamServicesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam services list params +func (o *IpamServicesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam services list params +func (o *IpamServicesListParams) WithNameIew(nameIew *string) *IpamServicesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam services list params +func (o *IpamServicesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam services list params +func (o *IpamServicesListParams) WithNameIsw(nameIsw *string) *IpamServicesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam services list params +func (o *IpamServicesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam services list params +func (o *IpamServicesListParams) WithNamen(namen *string) *IpamServicesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam services list params +func (o *IpamServicesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam services list params +func (o *IpamServicesListParams) WithNameNic(nameNic *string) *IpamServicesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam services list params +func (o *IpamServicesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam services list params +func (o *IpamServicesListParams) WithNameNie(nameNie *string) *IpamServicesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam services list params +func (o *IpamServicesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam services list params +func (o *IpamServicesListParams) WithNameNiew(nameNiew *string) *IpamServicesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam services list params +func (o *IpamServicesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam services list params +func (o *IpamServicesListParams) WithNameNisw(nameNisw *string) *IpamServicesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam services list params +func (o *IpamServicesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam services list params func (o *IpamServicesListParams) WithOffset(offset *int64) *IpamServicesListParams { o.SetOffset(offset) @@ -301,6 +526,61 @@ func (o *IpamServicesListParams) SetPort(port *string) { o.Port = port } +// WithPortGt adds the portGt to the ipam services list params +func (o *IpamServicesListParams) WithPortGt(portGt *string) *IpamServicesListParams { + o.SetPortGt(portGt) + return o +} + +// SetPortGt adds the portGt to the ipam services list params +func (o *IpamServicesListParams) SetPortGt(portGt *string) { + o.PortGt = portGt +} + +// WithPortGte adds the portGte to the ipam services list params +func (o *IpamServicesListParams) WithPortGte(portGte *string) *IpamServicesListParams { + o.SetPortGte(portGte) + return o +} + +// SetPortGte adds the portGte to the ipam services list params +func (o *IpamServicesListParams) SetPortGte(portGte *string) { + o.PortGte = portGte +} + +// WithPortLt adds the portLt to the ipam services list params +func (o *IpamServicesListParams) WithPortLt(portLt *string) *IpamServicesListParams { + o.SetPortLt(portLt) + return o +} + +// SetPortLt adds the portLt to the ipam services list params +func (o *IpamServicesListParams) SetPortLt(portLt *string) { + o.PortLt = portLt +} + +// WithPortLte adds the portLte to the ipam services list params +func (o *IpamServicesListParams) WithPortLte(portLte *string) *IpamServicesListParams { + o.SetPortLte(portLte) + return o +} + +// SetPortLte adds the portLte to the ipam services list params +func (o *IpamServicesListParams) SetPortLte(portLte *string) { + o.PortLte = portLte +} + +// WithPortn adds the portn to the ipam services list params +func (o *IpamServicesListParams) WithPortn(portn *string) *IpamServicesListParams { + o.SetPortn(portn) + return o +} + +// SetPortn adds the portN to the ipam services list params +func (o *IpamServicesListParams) SetPortn(portn *string) { + o.Portn = portn +} + // WithProtocol adds the protocol to the ipam services list params func (o *IpamServicesListParams) WithProtocol(protocol *string) *IpamServicesListParams { o.SetProtocol(protocol) @@ -312,6 +592,17 @@ func (o *IpamServicesListParams) SetProtocol(protocol *string) { o.Protocol = protocol } +// WithProtocoln adds the protocoln to the ipam services list params +func (o *IpamServicesListParams) WithProtocoln(protocoln *string) *IpamServicesListParams { + o.SetProtocoln(protocoln) + return o +} + +// SetProtocoln adds the protocolN to the ipam services list params +func (o *IpamServicesListParams) SetProtocoln(protocoln *string) { + o.Protocoln = protocoln +} + // WithQ adds the q to the ipam services list params func (o *IpamServicesListParams) WithQ(q *string) *IpamServicesListParams { o.SetQ(q) @@ -334,6 +625,17 @@ func (o *IpamServicesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the ipam services list params +func (o *IpamServicesListParams) WithTagn(tagn *string) *IpamServicesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam services list params +func (o *IpamServicesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithVirtualMachine adds the virtualMachine to the ipam services list params func (o *IpamServicesListParams) WithVirtualMachine(virtualMachine *string) *IpamServicesListParams { o.SetVirtualMachine(virtualMachine) @@ -345,6 +647,17 @@ func (o *IpamServicesListParams) SetVirtualMachine(virtualMachine *string) { o.VirtualMachine = virtualMachine } +// WithVirtualMachinen adds the virtualMachinen to the ipam services list params +func (o *IpamServicesListParams) WithVirtualMachinen(virtualMachinen *string) *IpamServicesListParams { + o.SetVirtualMachinen(virtualMachinen) + return o +} + +// SetVirtualMachinen adds the virtualMachineN to the ipam services list params +func (o *IpamServicesListParams) SetVirtualMachinen(virtualMachinen *string) { + o.VirtualMachinen = virtualMachinen +} + // WithVirtualMachineID adds the virtualMachineID to the ipam services list params func (o *IpamServicesListParams) WithVirtualMachineID(virtualMachineID *string) *IpamServicesListParams { o.SetVirtualMachineID(virtualMachineID) @@ -356,6 +669,17 @@ func (o *IpamServicesListParams) SetVirtualMachineID(virtualMachineID *string) { o.VirtualMachineID = virtualMachineID } +// WithVirtualMachineIDn adds the virtualMachineIDn to the ipam services list params +func (o *IpamServicesListParams) WithVirtualMachineIDn(virtualMachineIDn *string) *IpamServicesListParams { + o.SetVirtualMachineIDn(virtualMachineIDn) + return o +} + +// SetVirtualMachineIDn adds the virtualMachineIdN to the ipam services list params +func (o *IpamServicesListParams) SetVirtualMachineIDn(virtualMachineIDn *string) { + o.VirtualMachineIDn = virtualMachineIDn +} + // WriteToRequest writes these params to a swagger request func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -428,6 +752,22 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -444,6 +784,22 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -460,6 +816,86 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.LastUpdated != nil { // query param last_updated @@ -540,6 +976,150 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -572,6 +1152,86 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.PortGt != nil { + + // query param port__gt + var qrPortGt string + if o.PortGt != nil { + qrPortGt = *o.PortGt + } + qPortGt := qrPortGt + if qPortGt != "" { + if err := r.SetQueryParam("port__gt", qPortGt); err != nil { + return err + } + } + + } + + if o.PortGte != nil { + + // query param port__gte + var qrPortGte string + if o.PortGte != nil { + qrPortGte = *o.PortGte + } + qPortGte := qrPortGte + if qPortGte != "" { + if err := r.SetQueryParam("port__gte", qPortGte); err != nil { + return err + } + } + + } + + if o.PortLt != nil { + + // query param port__lt + var qrPortLt string + if o.PortLt != nil { + qrPortLt = *o.PortLt + } + qPortLt := qrPortLt + if qPortLt != "" { + if err := r.SetQueryParam("port__lt", qPortLt); err != nil { + return err + } + } + + } + + if o.PortLte != nil { + + // query param port__lte + var qrPortLte string + if o.PortLte != nil { + qrPortLte = *o.PortLte + } + qPortLte := qrPortLte + if qPortLte != "" { + if err := r.SetQueryParam("port__lte", qPortLte); err != nil { + return err + } + } + + } + + if o.Portn != nil { + + // query param port__n + var qrPortn string + if o.Portn != nil { + qrPortn = *o.Portn + } + qPortn := qrPortn + if qPortn != "" { + if err := r.SetQueryParam("port__n", qPortn); err != nil { + return err + } + } + + } + if o.Protocol != nil { // query param protocol @@ -588,6 +1248,22 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.Protocoln != nil { + + // query param protocol__n + var qrProtocoln string + if o.Protocoln != nil { + qrProtocoln = *o.Protocoln + } + qProtocoln := qrProtocoln + if qProtocoln != "" { + if err := r.SetQueryParam("protocol__n", qProtocoln); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -620,6 +1296,22 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + 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.VirtualMachine != nil { // query param virtual_machine @@ -636,6 +1328,22 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.VirtualMachinen != nil { + + // query param virtual_machine__n + var qrVirtualMachinen string + if o.VirtualMachinen != nil { + qrVirtualMachinen = *o.VirtualMachinen + } + qVirtualMachinen := qrVirtualMachinen + if qVirtualMachinen != "" { + if err := r.SetQueryParam("virtual_machine__n", qVirtualMachinen); err != nil { + return err + } + } + + } + if o.VirtualMachineID != nil { // query param virtual_machine_id @@ -652,6 +1360,22 @@ func (o *IpamServicesListParams) WriteToRequest(r runtime.ClientRequest, reg str } + if o.VirtualMachineIDn != nil { + + // query param virtual_machine_id__n + var qrVirtualMachineIDn string + if o.VirtualMachineIDn != nil { + qrVirtualMachineIDn = *o.VirtualMachineIDn + } + qVirtualMachineIDn := qrVirtualMachineIDn + if qVirtualMachineIDn != "" { + if err := r.SetQueryParam("virtual_machine_id__n", qVirtualMachineIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_responses.go index 8110eaf2a..5541070ab 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamServicesListReader is a Reader for the IpamServicesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_parameters.go index c42464eb9..75d2a1972 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamServicesPartialUpdateParams creates a new IpamServicesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_responses.go index 62c22bb30..ff1f64641 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamServicesPartialUpdateReader is a Reader for the IpamServicesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_parameters.go index fb3137bb4..68c09de39 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamServicesReadParams creates a new IpamServicesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_responses.go index 9ed3ebe06..9c02f32af 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamServicesReadReader is a Reader for the IpamServicesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_parameters.go index 8e3fa7577..eeee91681 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamServicesUpdateParams creates a new IpamServicesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_responses.go index 9c1896256..ef7371725 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_services_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamServicesUpdateReader is a Reader for the IpamServicesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_parameters.go index 93a926484..59ed73c16 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVlanGroupsCreateParams creates a new IpamVlanGroupsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_responses.go index b6aea5c56..76c2c3999 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlanGroupsCreateReader is a Reader for the IpamVlanGroupsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_parameters.go index b9233a18e..06fd77546 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVlanGroupsDeleteParams creates a new IpamVlanGroupsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_responses.go index 4f78db2f0..104da8da8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamVlanGroupsDeleteReader is a Reader for the IpamVlanGroupsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go index 2efcc306a..b1efbff5d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVlanGroupsListParams creates a new IpamVlanGroupsListParams object @@ -77,8 +76,38 @@ for the ipam vlan groups list operation typically these are written to a http.Re */ type IpamVlanGroupsListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +115,24 @@ type IpamVlanGroupsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,14 +142,40 @@ type IpamVlanGroupsListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -142,6 +215,116 @@ func (o *IpamVlanGroupsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithDescription adds the description to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescription(description *string) *IpamVlanGroupsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionIc(descriptionIc *string) *IpamVlanGroupsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionIe(descriptionIe *string) *IpamVlanGroupsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionIew(descriptionIew *string) *IpamVlanGroupsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionIsw(descriptionIsw *string) *IpamVlanGroupsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionn(descriptionn *string) *IpamVlanGroupsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionNic(descriptionNic *string) *IpamVlanGroupsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionNie(descriptionNie *string) *IpamVlanGroupsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionNiew(descriptionNiew *string) *IpamVlanGroupsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithDescriptionNisw(descriptionNisw *string) *IpamVlanGroupsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithID(id *string) *IpamVlanGroupsListParams { o.SetID(id) @@ -153,6 +336,61 @@ func (o *IpamVlanGroupsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithIDGt(iDGt *string) *IpamVlanGroupsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithIDGte(iDGte *string) *IpamVlanGroupsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithIDLt(iDLt *string) *IpamVlanGroupsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithIDLte(iDLte *string) *IpamVlanGroupsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithIDn(iDn *string) *IpamVlanGroupsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithLimit(limit *int64) *IpamVlanGroupsListParams { o.SetLimit(limit) @@ -175,6 +413,105 @@ func (o *IpamVlanGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameIc(nameIc *string) *IpamVlanGroupsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameIe(nameIe *string) *IpamVlanGroupsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameIew(nameIew *string) *IpamVlanGroupsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameIsw(nameIsw *string) *IpamVlanGroupsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNamen(namen *string) *IpamVlanGroupsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameNic(nameNic *string) *IpamVlanGroupsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameNie(nameNie *string) *IpamVlanGroupsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameNiew(nameNiew *string) *IpamVlanGroupsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithNameNisw(nameNisw *string) *IpamVlanGroupsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithOffset(offset *int64) *IpamVlanGroupsListParams { o.SetOffset(offset) @@ -208,6 +545,17 @@ func (o *IpamVlanGroupsListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithRegionn(regionn *string) *IpamVlanGroupsListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithRegionID(regionID *string) *IpamVlanGroupsListParams { o.SetRegionID(regionID) @@ -219,6 +567,17 @@ func (o *IpamVlanGroupsListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithRegionIDn(regionIDn *string) *IpamVlanGroupsListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithSite(site *string) *IpamVlanGroupsListParams { o.SetSite(site) @@ -230,6 +589,17 @@ func (o *IpamVlanGroupsListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSiten(siten *string) *IpamVlanGroupsListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithSiteID(siteID *string) *IpamVlanGroupsListParams { o.SetSiteID(siteID) @@ -241,6 +611,17 @@ func (o *IpamVlanGroupsListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSiteIDn(siteIDn *string) *IpamVlanGroupsListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithSlug adds the slug to the ipam vlan groups list params func (o *IpamVlanGroupsListParams) WithSlug(slug *string) *IpamVlanGroupsListParams { o.SetSlug(slug) @@ -252,6 +633,105 @@ func (o *IpamVlanGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugIc(slugIc *string) *IpamVlanGroupsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugIe(slugIe *string) *IpamVlanGroupsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugIew(slugIew *string) *IpamVlanGroupsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugIsw(slugIsw *string) *IpamVlanGroupsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugn(slugn *string) *IpamVlanGroupsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugNic(slugNic *string) *IpamVlanGroupsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugNie(slugNie *string) *IpamVlanGroupsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugNiew(slugNiew *string) *IpamVlanGroupsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) WithSlugNisw(slugNisw *string) *IpamVlanGroupsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the ipam vlan groups list params +func (o *IpamVlanGroupsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -260,6 +740,166 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } var res []error + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -276,6 +916,86 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -308,6 +1028,150 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -356,6 +1220,22 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -372,6 +1252,22 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -388,6 +1284,22 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -404,6 +1316,22 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Slug != nil { // query param slug @@ -420,6 +1348,150 @@ func (o *IpamVlanGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_responses.go index de0d528d9..f8463db12 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlanGroupsListReader is a Reader for the IpamVlanGroupsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_parameters.go index 28d3af17f..42561bfe1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVlanGroupsPartialUpdateParams creates a new IpamVlanGroupsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_responses.go index dcf35de29..bea9f653a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlanGroupsPartialUpdateReader is a Reader for the IpamVlanGroupsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_parameters.go index ed6ceb27b..555f2deda 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVlanGroupsReadParams creates a new IpamVlanGroupsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_responses.go index 264f858d3..36ec03e9d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlanGroupsReadReader is a Reader for the IpamVlanGroupsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_parameters.go index 054e2d5f2..7757ea52d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVlanGroupsUpdateParams creates a new IpamVlanGroupsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_responses.go index 452dcdc58..165499823 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlan_groups_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlanGroupsUpdateReader is a Reader for the IpamVlanGroupsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_parameters.go index 8fca88b5d..7f330ec8c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVlansCreateParams creates a new IpamVlansCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_responses.go index 0426e9968..8e72e31a7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlansCreateReader is a Reader for the IpamVlansCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_parameters.go index 90d4f035c..6653ecaa9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVlansDeleteParams creates a new IpamVlansDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_responses.go index 6546dd5f5..171b95374 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamVlansDeleteReader is a Reader for the IpamVlansDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go index 41ba4056a..0b1f45913 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVlansListParams creates a new IpamVlansListParams object @@ -85,13 +84,24 @@ type IpamVlansListParams struct { CreatedLte *string /*Group*/ Group *string + /*Groupn*/ + Groupn *string /*GroupID*/ GroupID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*GroupIDn*/ + GroupIDn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -105,6 +115,24 @@ type IpamVlansListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -114,30 +142,64 @@ type IpamVlansListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*Vid*/ Vid *string + /*VidGt*/ + VidGt *string + /*VidGte*/ + VidGte *string + /*VidLt*/ + VidLt *string + /*VidLte*/ + VidLte *string + /*Vidn*/ + Vidn *string timeout time.Duration Context context.Context @@ -221,6 +283,17 @@ func (o *IpamVlansListParams) SetGroup(group *string) { o.Group = group } +// WithGroupn adds the groupn to the ipam vlans list params +func (o *IpamVlansListParams) WithGroupn(groupn *string) *IpamVlansListParams { + o.SetGroupn(groupn) + return o +} + +// SetGroupn adds the groupN to the ipam vlans list params +func (o *IpamVlansListParams) SetGroupn(groupn *string) { + o.Groupn = groupn +} + // WithGroupID adds the groupID to the ipam vlans list params func (o *IpamVlansListParams) WithGroupID(groupID *string) *IpamVlansListParams { o.SetGroupID(groupID) @@ -232,15 +305,81 @@ func (o *IpamVlansListParams) SetGroupID(groupID *string) { o.GroupID = groupID } -// WithIDIn adds the iDIn to the ipam vlans list params -func (o *IpamVlansListParams) WithIDIn(iDIn *string) *IpamVlansListParams { - o.SetIDIn(iDIn) +// WithGroupIDn adds the groupIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithGroupIDn(groupIDn *string) *IpamVlansListParams { + o.SetGroupIDn(groupIDn) + return o +} + +// SetGroupIDn adds the groupIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetGroupIDn(groupIDn *string) { + o.GroupIDn = groupIDn +} + +// WithID adds the id to the ipam vlans list params +func (o *IpamVlansListParams) WithID(id *string) *IpamVlansListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the ipam vlans list params +func (o *IpamVlansListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the ipam vlans list params +func (o *IpamVlansListParams) WithIDGt(iDGt *string) *IpamVlansListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam vlans list params +func (o *IpamVlansListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam vlans list params +func (o *IpamVlansListParams) WithIDGte(iDGte *string) *IpamVlansListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam vlans list params +func (o *IpamVlansListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam vlans list params +func (o *IpamVlansListParams) WithIDLt(iDLt *string) *IpamVlansListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam vlans list params +func (o *IpamVlansListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam vlans list params +func (o *IpamVlansListParams) WithIDLte(iDLte *string) *IpamVlansListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the ipam vlans list params +func (o *IpamVlansListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam vlans list params +func (o *IpamVlansListParams) WithIDn(iDn *string) *IpamVlansListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the ipam vlans list params -func (o *IpamVlansListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the ipam vlans list params +func (o *IpamVlansListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the ipam vlans list params @@ -298,6 +437,105 @@ func (o *IpamVlansListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the ipam vlans list params +func (o *IpamVlansListParams) WithNameIc(nameIc *string) *IpamVlansListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam vlans list params +func (o *IpamVlansListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam vlans list params +func (o *IpamVlansListParams) WithNameIe(nameIe *string) *IpamVlansListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam vlans list params +func (o *IpamVlansListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam vlans list params +func (o *IpamVlansListParams) WithNameIew(nameIew *string) *IpamVlansListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam vlans list params +func (o *IpamVlansListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam vlans list params +func (o *IpamVlansListParams) WithNameIsw(nameIsw *string) *IpamVlansListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam vlans list params +func (o *IpamVlansListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam vlans list params +func (o *IpamVlansListParams) WithNamen(namen *string) *IpamVlansListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam vlans list params +func (o *IpamVlansListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam vlans list params +func (o *IpamVlansListParams) WithNameNic(nameNic *string) *IpamVlansListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam vlans list params +func (o *IpamVlansListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam vlans list params +func (o *IpamVlansListParams) WithNameNie(nameNie *string) *IpamVlansListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam vlans list params +func (o *IpamVlansListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam vlans list params +func (o *IpamVlansListParams) WithNameNiew(nameNiew *string) *IpamVlansListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam vlans list params +func (o *IpamVlansListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam vlans list params +func (o *IpamVlansListParams) WithNameNisw(nameNisw *string) *IpamVlansListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam vlans list params +func (o *IpamVlansListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam vlans list params func (o *IpamVlansListParams) WithOffset(offset *int64) *IpamVlansListParams { o.SetOffset(offset) @@ -331,6 +569,17 @@ func (o *IpamVlansListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the ipam vlans list params +func (o *IpamVlansListParams) WithRegionn(regionn *string) *IpamVlansListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the ipam vlans list params +func (o *IpamVlansListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the ipam vlans list params func (o *IpamVlansListParams) WithRegionID(regionID *string) *IpamVlansListParams { o.SetRegionID(regionID) @@ -342,6 +591,17 @@ func (o *IpamVlansListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithRegionIDn(regionIDn *string) *IpamVlansListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithRole adds the role to the ipam vlans list params func (o *IpamVlansListParams) WithRole(role *string) *IpamVlansListParams { o.SetRole(role) @@ -353,6 +613,17 @@ func (o *IpamVlansListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the ipam vlans list params +func (o *IpamVlansListParams) WithRolen(rolen *string) *IpamVlansListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the ipam vlans list params +func (o *IpamVlansListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the ipam vlans list params func (o *IpamVlansListParams) WithRoleID(roleID *string) *IpamVlansListParams { o.SetRoleID(roleID) @@ -364,6 +635,17 @@ func (o *IpamVlansListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithRoleIDn(roleIDn *string) *IpamVlansListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSite adds the site to the ipam vlans list params func (o *IpamVlansListParams) WithSite(site *string) *IpamVlansListParams { o.SetSite(site) @@ -375,6 +657,17 @@ func (o *IpamVlansListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the ipam vlans list params +func (o *IpamVlansListParams) WithSiten(siten *string) *IpamVlansListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the ipam vlans list params +func (o *IpamVlansListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the ipam vlans list params func (o *IpamVlansListParams) WithSiteID(siteID *string) *IpamVlansListParams { o.SetSiteID(siteID) @@ -386,6 +679,17 @@ func (o *IpamVlansListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithSiteIDn(siteIDn *string) *IpamVlansListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the ipam vlans list params func (o *IpamVlansListParams) WithStatus(status *string) *IpamVlansListParams { o.SetStatus(status) @@ -397,6 +701,17 @@ func (o *IpamVlansListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the ipam vlans list params +func (o *IpamVlansListParams) WithStatusn(statusn *string) *IpamVlansListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the ipam vlans list params +func (o *IpamVlansListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the ipam vlans list params func (o *IpamVlansListParams) WithTag(tag *string) *IpamVlansListParams { o.SetTag(tag) @@ -408,6 +723,17 @@ func (o *IpamVlansListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the ipam vlans list params +func (o *IpamVlansListParams) WithTagn(tagn *string) *IpamVlansListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam vlans list params +func (o *IpamVlansListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the ipam vlans list params func (o *IpamVlansListParams) WithTenant(tenant *string) *IpamVlansListParams { o.SetTenant(tenant) @@ -419,6 +745,17 @@ func (o *IpamVlansListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the ipam vlans list params +func (o *IpamVlansListParams) WithTenantn(tenantn *string) *IpamVlansListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the ipam vlans list params +func (o *IpamVlansListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the ipam vlans list params func (o *IpamVlansListParams) WithTenantGroup(tenantGroup *string) *IpamVlansListParams { o.SetTenantGroup(tenantGroup) @@ -430,6 +767,17 @@ func (o *IpamVlansListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the ipam vlans list params +func (o *IpamVlansListParams) WithTenantGroupn(tenantGroupn *string) *IpamVlansListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the ipam vlans list params +func (o *IpamVlansListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the ipam vlans list params func (o *IpamVlansListParams) WithTenantGroupID(tenantGroupID *string) *IpamVlansListParams { o.SetTenantGroupID(tenantGroupID) @@ -441,6 +789,17 @@ func (o *IpamVlansListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithTenantGroupIDn(tenantGroupIDn *string) *IpamVlansListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the ipam vlans list params func (o *IpamVlansListParams) WithTenantID(tenantID *string) *IpamVlansListParams { o.SetTenantID(tenantID) @@ -452,6 +811,17 @@ func (o *IpamVlansListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the ipam vlans list params +func (o *IpamVlansListParams) WithTenantIDn(tenantIDn *string) *IpamVlansListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the ipam vlans list params +func (o *IpamVlansListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithVid adds the vid to the ipam vlans list params func (o *IpamVlansListParams) WithVid(vid *string) *IpamVlansListParams { o.SetVid(vid) @@ -463,6 +833,61 @@ func (o *IpamVlansListParams) SetVid(vid *string) { o.Vid = vid } +// WithVidGt adds the vidGt to the ipam vlans list params +func (o *IpamVlansListParams) WithVidGt(vidGt *string) *IpamVlansListParams { + o.SetVidGt(vidGt) + return o +} + +// SetVidGt adds the vidGt to the ipam vlans list params +func (o *IpamVlansListParams) SetVidGt(vidGt *string) { + o.VidGt = vidGt +} + +// WithVidGte adds the vidGte to the ipam vlans list params +func (o *IpamVlansListParams) WithVidGte(vidGte *string) *IpamVlansListParams { + o.SetVidGte(vidGte) + return o +} + +// SetVidGte adds the vidGte to the ipam vlans list params +func (o *IpamVlansListParams) SetVidGte(vidGte *string) { + o.VidGte = vidGte +} + +// WithVidLt adds the vidLt to the ipam vlans list params +func (o *IpamVlansListParams) WithVidLt(vidLt *string) *IpamVlansListParams { + o.SetVidLt(vidLt) + return o +} + +// SetVidLt adds the vidLt to the ipam vlans list params +func (o *IpamVlansListParams) SetVidLt(vidLt *string) { + o.VidLt = vidLt +} + +// WithVidLte adds the vidLte to the ipam vlans list params +func (o *IpamVlansListParams) WithVidLte(vidLte *string) *IpamVlansListParams { + o.SetVidLte(vidLte) + return o +} + +// SetVidLte adds the vidLte to the ipam vlans list params +func (o *IpamVlansListParams) SetVidLte(vidLte *string) { + o.VidLte = vidLte +} + +// WithVidn adds the vidn to the ipam vlans list params +func (o *IpamVlansListParams) WithVidn(vidn *string) *IpamVlansListParams { + o.SetVidn(vidn) + return o +} + +// SetVidn adds the vidN to the ipam vlans list params +func (o *IpamVlansListParams) SetVidn(vidn *string) { + o.Vidn = vidn +} + // WriteToRequest writes these params to a swagger request func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -535,6 +960,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Groupn != nil { + + // query param group__n + var qrGroupn string + if o.Groupn != nil { + qrGroupn = *o.Groupn + } + qGroupn := qrGroupn + if qGroupn != "" { + if err := r.SetQueryParam("group__n", qGroupn); err != nil { + return err + } + } + + } + if o.GroupID != nil { // query param group_id @@ -551,16 +992,112 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } - if o.IDIn != nil { + if o.GroupIDn != nil { + + // query param group_id__n + var qrGroupIDn string + if o.GroupIDn != nil { + qrGroupIDn = *o.GroupIDn + } + qGroupIDn := qrGroupIDn + if qGroupIDn != "" { + if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -647,6 +1184,150 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -695,6 +1376,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -711,6 +1408,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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.Role != nil { // query param role @@ -727,6 +1440,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -743,6 +1472,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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.Site != nil { // query param site @@ -759,6 +1504,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -775,6 +1536,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -791,6 +1568,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -807,6 +1600,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + 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 @@ -823,6 +1632,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -839,6 +1664,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -855,6 +1696,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -871,6 +1728,22 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.Vid != nil { // query param vid @@ -887,6 +1760,86 @@ func (o *IpamVlansListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } + if o.VidGt != nil { + + // query param vid__gt + var qrVidGt string + if o.VidGt != nil { + qrVidGt = *o.VidGt + } + qVidGt := qrVidGt + if qVidGt != "" { + if err := r.SetQueryParam("vid__gt", qVidGt); err != nil { + return err + } + } + + } + + if o.VidGte != nil { + + // query param vid__gte + var qrVidGte string + if o.VidGte != nil { + qrVidGte = *o.VidGte + } + qVidGte := qrVidGte + if qVidGte != "" { + if err := r.SetQueryParam("vid__gte", qVidGte); err != nil { + return err + } + } + + } + + if o.VidLt != nil { + + // query param vid__lt + var qrVidLt string + if o.VidLt != nil { + qrVidLt = *o.VidLt + } + qVidLt := qrVidLt + if qVidLt != "" { + if err := r.SetQueryParam("vid__lt", qVidLt); err != nil { + return err + } + } + + } + + if o.VidLte != nil { + + // query param vid__lte + var qrVidLte string + if o.VidLte != nil { + qrVidLte = *o.VidLte + } + qVidLte := qrVidLte + if qVidLte != "" { + if err := r.SetQueryParam("vid__lte", qVidLte); err != nil { + return err + } + } + + } + + if o.Vidn != nil { + + // query param vid__n + var qrVidn string + if o.Vidn != nil { + qrVidn = *o.Vidn + } + qVidn := qrVidn + if qVidn != "" { + if err := r.SetQueryParam("vid__n", qVidn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_responses.go index 412361948..5b7dd93fa 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlansListReader is a Reader for the IpamVlansList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_parameters.go index be814e7e6..257d21112 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVlansPartialUpdateParams creates a new IpamVlansPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_responses.go index f8c5b139c..793c8b945 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlansPartialUpdateReader is a Reader for the IpamVlansPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_parameters.go index eeb5d8e2f..cc3148069 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVlansReadParams creates a new IpamVlansReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_responses.go index 5dbba3061..b8b4e1433 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlansReadReader is a Reader for the IpamVlansRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_parameters.go index 4f5689e38..21ab621a6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVlansUpdateParams creates a new IpamVlansUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_responses.go index 417af94c4..4bc8acf30 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vlans_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVlansUpdateReader is a Reader for the IpamVlansUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_parameters.go index e170117ee..7285d0aac 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVrfsCreateParams creates a new IpamVrfsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_responses.go index 63ed32056..e27923d0c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVrfsCreateReader is a Reader for the IpamVrfsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_parameters.go index 1a359f27e..c30065efa 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVrfsDeleteParams creates a new IpamVrfsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_responses.go index b05cdea49..428c2d6c2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // IpamVrfsDeleteReader is a Reader for the IpamVrfsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go index 72d092943..e9950eb7f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVrfsListParams creates a new IpamVrfsListParams object @@ -85,11 +84,18 @@ type IpamVrfsListParams struct { CreatedLte *string /*EnforceUnique*/ EnforceUnique *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -103,6 +109,24 @@ type IpamVrfsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -112,16 +136,44 @@ type IpamVrfsListParams struct { Q *string /*Rd*/ Rd *string + /*RdIc*/ + RdIc *string + /*RdIe*/ + RdIe *string + /*RdIew*/ + RdIew *string + /*RdIsw*/ + RdIsw *string + /*Rdn*/ + Rdn *string + /*RdNic*/ + RdNic *string + /*RdNie*/ + RdNie *string + /*RdNiew*/ + RdNiew *string + /*RdNisw*/ + RdNisw *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string timeout time.Duration Context context.Context @@ -205,15 +257,70 @@ func (o *IpamVrfsListParams) SetEnforceUnique(enforceUnique *string) { o.EnforceUnique = enforceUnique } -// WithIDIn adds the iDIn to the ipam vrfs list params -func (o *IpamVrfsListParams) WithIDIn(iDIn *string) *IpamVrfsListParams { - o.SetIDIn(iDIn) +// WithID adds the id to the ipam vrfs list params +func (o *IpamVrfsListParams) WithID(id *string) *IpamVrfsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the ipam vrfs list params +func (o *IpamVrfsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the ipam vrfs list params +func (o *IpamVrfsListParams) WithIDGt(iDGt *string) *IpamVrfsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the ipam vrfs list params +func (o *IpamVrfsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the ipam vrfs list params +func (o *IpamVrfsListParams) WithIDGte(iDGte *string) *IpamVrfsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the ipam vrfs list params +func (o *IpamVrfsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the ipam vrfs list params +func (o *IpamVrfsListParams) WithIDLt(iDLt *string) *IpamVrfsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the ipam vrfs list params +func (o *IpamVrfsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the ipam vrfs list params +func (o *IpamVrfsListParams) WithIDLte(iDLte *string) *IpamVrfsListParams { + o.SetIDLte(iDLte) return o } -// SetIDIn adds the idIn to the ipam vrfs list params -func (o *IpamVrfsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDLte adds the idLte to the ipam vrfs list params +func (o *IpamVrfsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithIDn(iDn *string) *IpamVrfsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the ipam vrfs list params @@ -271,6 +378,105 @@ func (o *IpamVrfsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameIc(nameIc *string) *IpamVrfsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameIe(nameIe *string) *IpamVrfsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameIew(nameIew *string) *IpamVrfsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameIsw(nameIsw *string) *IpamVrfsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNamen(namen *string) *IpamVrfsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameNic(nameNic *string) *IpamVrfsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameNie(nameNie *string) *IpamVrfsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameNiew(nameNiew *string) *IpamVrfsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the ipam vrfs list params +func (o *IpamVrfsListParams) WithNameNisw(nameNisw *string) *IpamVrfsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the ipam vrfs list params +func (o *IpamVrfsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the ipam vrfs list params func (o *IpamVrfsListParams) WithOffset(offset *int64) *IpamVrfsListParams { o.SetOffset(offset) @@ -304,6 +510,105 @@ func (o *IpamVrfsListParams) SetRd(rd *string) { o.Rd = rd } +// WithRdIc adds the rdIc to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdIc(rdIc *string) *IpamVrfsListParams { + o.SetRdIc(rdIc) + return o +} + +// SetRdIc adds the rdIc to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdIc(rdIc *string) { + o.RdIc = rdIc +} + +// WithRdIe adds the rdIe to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdIe(rdIe *string) *IpamVrfsListParams { + o.SetRdIe(rdIe) + return o +} + +// SetRdIe adds the rdIe to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdIe(rdIe *string) { + o.RdIe = rdIe +} + +// WithRdIew adds the rdIew to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdIew(rdIew *string) *IpamVrfsListParams { + o.SetRdIew(rdIew) + return o +} + +// SetRdIew adds the rdIew to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdIew(rdIew *string) { + o.RdIew = rdIew +} + +// WithRdIsw adds the rdIsw to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdIsw(rdIsw *string) *IpamVrfsListParams { + o.SetRdIsw(rdIsw) + return o +} + +// SetRdIsw adds the rdIsw to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdIsw(rdIsw *string) { + o.RdIsw = rdIsw +} + +// WithRdn adds the rdn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdn(rdn *string) *IpamVrfsListParams { + o.SetRdn(rdn) + return o +} + +// SetRdn adds the rdN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdn(rdn *string) { + o.Rdn = rdn +} + +// WithRdNic adds the rdNic to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdNic(rdNic *string) *IpamVrfsListParams { + o.SetRdNic(rdNic) + return o +} + +// SetRdNic adds the rdNic to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdNic(rdNic *string) { + o.RdNic = rdNic +} + +// WithRdNie adds the rdNie to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdNie(rdNie *string) *IpamVrfsListParams { + o.SetRdNie(rdNie) + return o +} + +// SetRdNie adds the rdNie to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdNie(rdNie *string) { + o.RdNie = rdNie +} + +// WithRdNiew adds the rdNiew to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdNiew(rdNiew *string) *IpamVrfsListParams { + o.SetRdNiew(rdNiew) + return o +} + +// SetRdNiew adds the rdNiew to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdNiew(rdNiew *string) { + o.RdNiew = rdNiew +} + +// WithRdNisw adds the rdNisw to the ipam vrfs list params +func (o *IpamVrfsListParams) WithRdNisw(rdNisw *string) *IpamVrfsListParams { + o.SetRdNisw(rdNisw) + return o +} + +// SetRdNisw adds the rdNisw to the ipam vrfs list params +func (o *IpamVrfsListParams) SetRdNisw(rdNisw *string) { + o.RdNisw = rdNisw +} + // WithTag adds the tag to the ipam vrfs list params func (o *IpamVrfsListParams) WithTag(tag *string) *IpamVrfsListParams { o.SetTag(tag) @@ -315,6 +620,17 @@ func (o *IpamVrfsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithTagn(tagn *string) *IpamVrfsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the ipam vrfs list params func (o *IpamVrfsListParams) WithTenant(tenant *string) *IpamVrfsListParams { o.SetTenant(tenant) @@ -326,6 +642,17 @@ func (o *IpamVrfsListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithTenantn(tenantn *string) *IpamVrfsListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the ipam vrfs list params func (o *IpamVrfsListParams) WithTenantGroup(tenantGroup *string) *IpamVrfsListParams { o.SetTenantGroup(tenantGroup) @@ -337,6 +664,17 @@ func (o *IpamVrfsListParams) SetTenantGroup(tenantGroup *string) { o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithTenantGroupn(tenantGroupn *string) *IpamVrfsListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the ipam vrfs list params func (o *IpamVrfsListParams) WithTenantGroupID(tenantGroupID *string) *IpamVrfsListParams { o.SetTenantGroupID(tenantGroupID) @@ -348,6 +686,17 @@ func (o *IpamVrfsListParams) SetTenantGroupID(tenantGroupID *string) { o.TenantGroupID = tenantGroupID } +// WithTenantGroupIDn adds the tenantGroupIDn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithTenantGroupIDn(tenantGroupIDn *string) *IpamVrfsListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + // WithTenantID adds the tenantID to the ipam vrfs list params func (o *IpamVrfsListParams) WithTenantID(tenantID *string) *IpamVrfsListParams { o.SetTenantID(tenantID) @@ -359,6 +708,17 @@ func (o *IpamVrfsListParams) SetTenantID(tenantID *string) { o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the ipam vrfs list params +func (o *IpamVrfsListParams) WithTenantIDn(tenantIDn *string) *IpamVrfsListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the ipam vrfs list params +func (o *IpamVrfsListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WriteToRequest writes these params to a swagger request func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -431,16 +791,96 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } - if o.IDIn != nil { + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -527,6 +967,150 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -575,6 +1159,150 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.RdIc != nil { + + // query param rd__ic + var qrRdIc string + if o.RdIc != nil { + qrRdIc = *o.RdIc + } + qRdIc := qrRdIc + if qRdIc != "" { + if err := r.SetQueryParam("rd__ic", qRdIc); err != nil { + return err + } + } + + } + + if o.RdIe != nil { + + // query param rd__ie + var qrRdIe string + if o.RdIe != nil { + qrRdIe = *o.RdIe + } + qRdIe := qrRdIe + if qRdIe != "" { + if err := r.SetQueryParam("rd__ie", qRdIe); err != nil { + return err + } + } + + } + + if o.RdIew != nil { + + // query param rd__iew + var qrRdIew string + if o.RdIew != nil { + qrRdIew = *o.RdIew + } + qRdIew := qrRdIew + if qRdIew != "" { + if err := r.SetQueryParam("rd__iew", qRdIew); err != nil { + return err + } + } + + } + + if o.RdIsw != nil { + + // query param rd__isw + var qrRdIsw string + if o.RdIsw != nil { + qrRdIsw = *o.RdIsw + } + qRdIsw := qrRdIsw + if qRdIsw != "" { + if err := r.SetQueryParam("rd__isw", qRdIsw); err != nil { + return err + } + } + + } + + if o.Rdn != nil { + + // query param rd__n + var qrRdn string + if o.Rdn != nil { + qrRdn = *o.Rdn + } + qRdn := qrRdn + if qRdn != "" { + if err := r.SetQueryParam("rd__n", qRdn); err != nil { + return err + } + } + + } + + if o.RdNic != nil { + + // query param rd__nic + var qrRdNic string + if o.RdNic != nil { + qrRdNic = *o.RdNic + } + qRdNic := qrRdNic + if qRdNic != "" { + if err := r.SetQueryParam("rd__nic", qRdNic); err != nil { + return err + } + } + + } + + if o.RdNie != nil { + + // query param rd__nie + var qrRdNie string + if o.RdNie != nil { + qrRdNie = *o.RdNie + } + qRdNie := qrRdNie + if qRdNie != "" { + if err := r.SetQueryParam("rd__nie", qRdNie); err != nil { + return err + } + } + + } + + if o.RdNiew != nil { + + // query param rd__niew + var qrRdNiew string + if o.RdNiew != nil { + qrRdNiew = *o.RdNiew + } + qRdNiew := qrRdNiew + if qRdNiew != "" { + if err := r.SetQueryParam("rd__niew", qRdNiew); err != nil { + return err + } + } + + } + + if o.RdNisw != nil { + + // query param rd__nisw + var qrRdNisw string + if o.RdNisw != nil { + qrRdNisw = *o.RdNisw + } + qRdNisw := qrRdNisw + if qRdNisw != "" { + if err := r.SetQueryParam("rd__nisw", qRdNisw); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -591,6 +1319,22 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + 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 @@ -607,6 +1351,22 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -623,6 +1383,22 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -639,6 +1415,22 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -655,6 +1447,22 @@ func (o *IpamVrfsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_responses.go index 7ad40324f..966fb4012 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVrfsListReader is a Reader for the IpamVrfsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_parameters.go index c7da28d6b..4f4107cfe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVrfsPartialUpdateParams creates a new IpamVrfsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_responses.go index 8bf26aa59..5c81eac46 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVrfsPartialUpdateReader is a Reader for the IpamVrfsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_parameters.go index d76954dfd..245e3dc9f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewIpamVrfsReadParams creates a new IpamVrfsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_responses.go index 7069288ad..75d712e26 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVrfsReadReader is a Reader for the IpamVrfsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_parameters.go index 1b664f015..5ec56e200 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewIpamVrfsUpdateParams creates a new IpamVrfsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_responses.go index 15f807eb7..2c237fdc3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/ipam/ipam_vrfs_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // IpamVrfsUpdateReader is a Reader for the IpamVrfsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/net_box_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/net_box_client.go index 8813f3503..21a2a1599 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/net_box_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/net_box_client.go @@ -23,8 +23,7 @@ package client import ( "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/netbox-community/go-netbox/netbox/client/circuits" "github.com/netbox-community/go-netbox/netbox/client/dcim" @@ -77,21 +76,13 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *NetBox { cli := new(NetBox) cli.Transport = transport - cli.Circuits = circuits.New(transport, formats) - cli.Dcim = dcim.New(transport, formats) - cli.Extras = extras.New(transport, formats) - cli.Ipam = ipam.New(transport, formats) - cli.Secrets = secrets.New(transport, formats) - cli.Tenancy = tenancy.New(transport, formats) - cli.Virtualization = virtualization.New(transport, formats) - return cli } @@ -136,19 +127,19 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { // NetBox is a client for net box type NetBox struct { - Circuits *circuits.Client + Circuits circuits.ClientService - Dcim *dcim.Client + Dcim dcim.ClientService - Extras *extras.Client + Extras extras.ClientService - Ipam *ipam.Client + Ipam ipam.ClientService - Secrets *secrets.Client + Secrets secrets.ClientService - Tenancy *tenancy.Client + Tenancy tenancy.ClientService - Virtualization *virtualization.Client + Virtualization virtualization.ClientService Transport runtime.ClientTransport } @@ -156,19 +147,11 @@ type NetBox struct { // SetTransport changes the transport on the client and all its subresources func (c *NetBox) SetTransport(transport runtime.ClientTransport) { c.Transport = transport - c.Circuits.SetTransport(transport) - c.Dcim.SetTransport(transport) - c.Extras.SetTransport(transport) - c.Ipam.SetTransport(transport) - c.Secrets.SetTransport(transport) - c.Tenancy.SetTransport(transport) - c.Virtualization.SetTransport(transport) - } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_client.go index c9fd08b76..9e6142818 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new secrets API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,80 +40,43 @@ type Client struct { formats strfmt.Registry } -/* -SecretsChoicesList secrets choices list API -*/ -func (a *Client) SecretsChoicesList(params *SecretsChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSecretsChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + SecretsGenerateRsaKeyPairList(params *SecretsGenerateRsaKeyPairListParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsGenerateRsaKeyPairListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "secrets__choices_list", - Method: "GET", - PathPattern: "/secrets/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SecretsChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SecretsChoicesListOK) - 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 secrets__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + SecretsGetSessionKeyCreate(params *SecretsGetSessionKeyCreateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsGetSessionKeyCreateCreated, error) -/* -SecretsChoicesRead secrets choices read API -*/ -func (a *Client) SecretsChoicesRead(params *SecretsChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSecretsChoicesReadParams() - } + SecretsSecretRolesCreate(params *SecretsSecretRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "secrets__choices_read", - Method: "GET", - PathPattern: "/secrets/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SecretsChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SecretsChoicesReadOK) - 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 secrets__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + SecretsSecretRolesDelete(params *SecretsSecretRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesDeleteNoContent, error) + + SecretsSecretRolesList(params *SecretsSecretRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesListOK, error) + + SecretsSecretRolesPartialUpdate(params *SecretsSecretRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesPartialUpdateOK, error) + + SecretsSecretRolesRead(params *SecretsSecretRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesReadOK, error) + + SecretsSecretRolesUpdate(params *SecretsSecretRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesUpdateOK, error) + + SecretsSecretsCreate(params *SecretsSecretsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsCreateCreated, error) + + SecretsSecretsDelete(params *SecretsSecretsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsDeleteNoContent, error) + + SecretsSecretsList(params *SecretsSecretsListParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsListOK, error) + + SecretsSecretsPartialUpdate(params *SecretsSecretsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsPartialUpdateOK, error) + + SecretsSecretsRead(params *SecretsSecretsReadParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsReadOK, error) + + SecretsSecretsUpdate(params *SecretsSecretsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -SecretsGenerateRsaKeyPairList this endpoint can be used to generate a new r s a key pair the keys are returned in p e m format + SecretsGenerateRsaKeyPairList this endpoint can be used to generate a new r s a key pair the keys are returned in p e m format -{ + { "public_key": "", "private_key": "" } @@ -152,7 +114,7 @@ func (a *Client) SecretsGenerateRsaKeyPairList(params *SecretsGenerateRsaKeyPair } /* -SecretsGetSessionKeyCreate Retrieve a temporary session key to use for encrypting and decrypting secrets via the API. The user's private RSA + SecretsGetSessionKeyCreate Retrieve a temporary session key to use for encrypting and decrypting secrets via the API. The user's private RSA key is POSTed with the name `private_key`. An example: curl -v -X POST -H "Authorization: Token " -H "Accept: application/json; indent=4" \ @@ -200,7 +162,7 @@ func (a *Client) SecretsGetSessionKeyCreate(params *SecretsGetSessionKeyCreatePa } /* -SecretsSecretRolesCreate secrets secret roles create API + SecretsSecretRolesCreate secrets secret roles create API */ func (a *Client) SecretsSecretRolesCreate(params *SecretsSecretRolesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesCreateCreated, error) { // TODO: Validate the params before sending @@ -235,7 +197,7 @@ func (a *Client) SecretsSecretRolesCreate(params *SecretsSecretRolesCreateParams } /* -SecretsSecretRolesDelete secrets secret roles delete API + SecretsSecretRolesDelete secrets secret roles delete API */ func (a *Client) SecretsSecretRolesDelete(params *SecretsSecretRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -270,7 +232,7 @@ func (a *Client) SecretsSecretRolesDelete(params *SecretsSecretRolesDeleteParams } /* -SecretsSecretRolesList Call to super to allow for caching + SecretsSecretRolesList Call to super to allow for caching */ func (a *Client) SecretsSecretRolesList(params *SecretsSecretRolesListParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesListOK, error) { // TODO: Validate the params before sending @@ -305,7 +267,7 @@ func (a *Client) SecretsSecretRolesList(params *SecretsSecretRolesListParams, au } /* -SecretsSecretRolesPartialUpdate secrets secret roles partial update API + SecretsSecretRolesPartialUpdate secrets secret roles partial update API */ func (a *Client) SecretsSecretRolesPartialUpdate(params *SecretsSecretRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -340,7 +302,7 @@ func (a *Client) SecretsSecretRolesPartialUpdate(params *SecretsSecretRolesParti } /* -SecretsSecretRolesRead Call to super to allow for caching + SecretsSecretRolesRead Call to super to allow for caching */ func (a *Client) SecretsSecretRolesRead(params *SecretsSecretRolesReadParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesReadOK, error) { // TODO: Validate the params before sending @@ -375,7 +337,7 @@ func (a *Client) SecretsSecretRolesRead(params *SecretsSecretRolesReadParams, au } /* -SecretsSecretRolesUpdate secrets secret roles update API + SecretsSecretRolesUpdate secrets secret roles update API */ func (a *Client) SecretsSecretRolesUpdate(params *SecretsSecretRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretRolesUpdateOK, error) { // TODO: Validate the params before sending @@ -410,7 +372,7 @@ func (a *Client) SecretsSecretRolesUpdate(params *SecretsSecretRolesUpdateParams } /* -SecretsSecretsCreate secrets secrets create API + SecretsSecretsCreate secrets secrets create API */ func (a *Client) SecretsSecretsCreate(params *SecretsSecretsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsCreateCreated, error) { // TODO: Validate the params before sending @@ -445,7 +407,7 @@ func (a *Client) SecretsSecretsCreate(params *SecretsSecretsCreateParams, authIn } /* -SecretsSecretsDelete secrets secrets delete API + SecretsSecretsDelete secrets secrets delete API */ func (a *Client) SecretsSecretsDelete(params *SecretsSecretsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -480,7 +442,7 @@ func (a *Client) SecretsSecretsDelete(params *SecretsSecretsDeleteParams, authIn } /* -SecretsSecretsList secrets secrets list API + SecretsSecretsList secrets secrets list API */ func (a *Client) SecretsSecretsList(params *SecretsSecretsListParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsListOK, error) { // TODO: Validate the params before sending @@ -515,7 +477,7 @@ func (a *Client) SecretsSecretsList(params *SecretsSecretsListParams, authInfo r } /* -SecretsSecretsPartialUpdate secrets secrets partial update API + SecretsSecretsPartialUpdate secrets secrets partial update API */ func (a *Client) SecretsSecretsPartialUpdate(params *SecretsSecretsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -550,7 +512,7 @@ func (a *Client) SecretsSecretsPartialUpdate(params *SecretsSecretsPartialUpdate } /* -SecretsSecretsRead secrets secrets read API + SecretsSecretsRead secrets secrets read API */ func (a *Client) SecretsSecretsRead(params *SecretsSecretsReadParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsReadOK, error) { // TODO: Validate the params before sending @@ -585,7 +547,7 @@ func (a *Client) SecretsSecretsRead(params *SecretsSecretsReadParams, authInfo r } /* -SecretsSecretsUpdate secrets secrets update API + SecretsSecretsUpdate secrets secrets update API */ func (a *Client) SecretsSecretsUpdate(params *SecretsSecretsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*SecretsSecretsUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_parameters.go index 1ed79a71a..e88656d77 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewSecretsGenerateRsaKeyPairListParams creates a new SecretsGenerateRsaKeyPairListParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_responses.go index cdefcaa5b..ff6c0532e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_generate_rsa_key_pair_list_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // SecretsGenerateRsaKeyPairListReader is a Reader for the SecretsGenerateRsaKeyPairList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_parameters.go index 483603cff..d65cd66fe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_parameters.go @@ -28,8 +28,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewSecretsGetSessionKeyCreateParams creates a new SecretsGetSessionKeyCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_responses.go index da21d47a4..db85628ca 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_get_session_key_create_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // SecretsGetSessionKeyCreateReader is a Reader for the SecretsGetSessionKeyCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_parameters.go index 517d5313a..e9ae8c8bf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewSecretsSecretRolesCreateParams creates a new SecretsSecretRolesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_responses.go index 0a86bc3ea..910e9d3c7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretRolesCreateReader is a Reader for the SecretsSecretRolesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_parameters.go index 8a4510728..f45a9ed19 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewSecretsSecretRolesDeleteParams creates a new SecretsSecretRolesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_responses.go index 5ef8cb395..23e999d4c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // SecretsSecretRolesDeleteReader is a Reader for the SecretsSecretRolesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_parameters.go index 19bfbe123..0fd09202c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewSecretsSecretRolesListParams creates a new SecretsSecretRolesListParams object @@ -79,6 +78,16 @@ type SecretsSecretRolesListParams struct { /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +95,24 @@ type SecretsSecretRolesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,6 +122,24 @@ type SecretsSecretRolesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -145,6 +190,61 @@ func (o *SecretsSecretRolesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithIDGt(iDGt *string) *SecretsSecretRolesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithIDGte(iDGte *string) *SecretsSecretRolesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithIDLt(iDLt *string) *SecretsSecretRolesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithIDLte(iDLte *string) *SecretsSecretRolesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithIDn(iDn *string) *SecretsSecretRolesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the secrets secret roles list params func (o *SecretsSecretRolesListParams) WithLimit(limit *int64) *SecretsSecretRolesListParams { o.SetLimit(limit) @@ -167,6 +267,105 @@ func (o *SecretsSecretRolesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameIc(nameIc *string) *SecretsSecretRolesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameIe(nameIe *string) *SecretsSecretRolesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameIew(nameIew *string) *SecretsSecretRolesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameIsw(nameIsw *string) *SecretsSecretRolesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNamen(namen *string) *SecretsSecretRolesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameNic(nameNic *string) *SecretsSecretRolesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameNie(nameNie *string) *SecretsSecretRolesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameNiew(nameNiew *string) *SecretsSecretRolesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithNameNisw(nameNisw *string) *SecretsSecretRolesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the secrets secret roles list params func (o *SecretsSecretRolesListParams) WithOffset(offset *int64) *SecretsSecretRolesListParams { o.SetOffset(offset) @@ -200,6 +399,105 @@ func (o *SecretsSecretRolesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugIc(slugIc *string) *SecretsSecretRolesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugIe(slugIe *string) *SecretsSecretRolesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugIew(slugIew *string) *SecretsSecretRolesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugIsw(slugIsw *string) *SecretsSecretRolesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugn(slugn *string) *SecretsSecretRolesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugNic(slugNic *string) *SecretsSecretRolesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugNie(slugNie *string) *SecretsSecretRolesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugNiew(slugNiew *string) *SecretsSecretRolesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) WithSlugNisw(slugNisw *string) *SecretsSecretRolesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the secrets secret roles list params +func (o *SecretsSecretRolesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *SecretsSecretRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -224,6 +522,86 @@ func (o *SecretsSecretRolesListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +634,150 @@ func (o *SecretsSecretRolesListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -304,6 +826,150 @@ func (o *SecretsSecretRolesListParams) WriteToRequest(r runtime.ClientRequest, r } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_responses.go index 9c7abdfa4..d0d4be436 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretRolesListReader is a Reader for the SecretsSecretRolesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_parameters.go index 27c3473b2..e04d0736e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewSecretsSecretRolesPartialUpdateParams creates a new SecretsSecretRolesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_responses.go index f1108a4b9..a080b70dd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretRolesPartialUpdateReader is a Reader for the SecretsSecretRolesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_parameters.go index 6ed260877..1ccd8797c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewSecretsSecretRolesReadParams creates a new SecretsSecretRolesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_responses.go index 8b9af35a9..be20ade98 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretRolesReadReader is a Reader for the SecretsSecretRolesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_parameters.go index 0716aa76b..78309cb90 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewSecretsSecretRolesUpdateParams creates a new SecretsSecretRolesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_responses.go index faa657da5..233620646 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secret_roles_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretRolesUpdateReader is a Reader for the SecretsSecretRolesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_parameters.go index 6bd2fd240..e45f80b37 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewSecretsSecretsCreateParams creates a new SecretsSecretsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_responses.go index 24b6ab056..c0f824206 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretsCreateReader is a Reader for the SecretsSecretsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_parameters.go index 32cd7789f..e890afdee 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewSecretsSecretsDeleteParams creates a new SecretsSecretsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_responses.go index 60f796725..5e2b0726e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // SecretsSecretsDeleteReader is a Reader for the SecretsSecretsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_parameters.go index d6ec3fa55..b071bb973 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewSecretsSecretsListParams creates a new SecretsSecretsListParams object @@ -85,13 +84,24 @@ type SecretsSecretsListParams struct { CreatedLte *string /*Device*/ Device *string + /*Devicen*/ + Devicen *string /*DeviceID*/ DeviceID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*DeviceIDn*/ + DeviceIDn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -105,6 +115,24 @@ type SecretsSecretsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -114,10 +142,16 @@ type SecretsSecretsListParams struct { Q *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string timeout time.Duration Context context.Context @@ -201,6 +235,17 @@ func (o *SecretsSecretsListParams) SetDevice(device *string) { o.Device = device } +// WithDevicen adds the devicen to the secrets secrets list params +func (o *SecretsSecretsListParams) WithDevicen(devicen *string) *SecretsSecretsListParams { + o.SetDevicen(devicen) + return o +} + +// SetDevicen adds the deviceN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetDevicen(devicen *string) { + o.Devicen = devicen +} + // WithDeviceID adds the deviceID to the secrets secrets list params func (o *SecretsSecretsListParams) WithDeviceID(deviceID *string) *SecretsSecretsListParams { o.SetDeviceID(deviceID) @@ -212,15 +257,81 @@ func (o *SecretsSecretsListParams) SetDeviceID(deviceID *string) { o.DeviceID = deviceID } -// WithIDIn adds the iDIn to the secrets secrets list params -func (o *SecretsSecretsListParams) WithIDIn(iDIn *string) *SecretsSecretsListParams { - o.SetIDIn(iDIn) +// WithDeviceIDn adds the deviceIDn to the secrets secrets list params +func (o *SecretsSecretsListParams) WithDeviceIDn(deviceIDn *string) *SecretsSecretsListParams { + o.SetDeviceIDn(deviceIDn) + return o +} + +// SetDeviceIDn adds the deviceIdN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetDeviceIDn(deviceIDn *string) { + o.DeviceIDn = deviceIDn +} + +// WithID adds the id to the secrets secrets list params +func (o *SecretsSecretsListParams) WithID(id *string) *SecretsSecretsListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the secrets secrets list params +func (o *SecretsSecretsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the secrets secrets list params +func (o *SecretsSecretsListParams) WithIDGt(iDGt *string) *SecretsSecretsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the secrets secrets list params +func (o *SecretsSecretsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the secrets secrets list params +func (o *SecretsSecretsListParams) WithIDGte(iDGte *string) *SecretsSecretsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the secrets secrets list params +func (o *SecretsSecretsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the secrets secrets list params +func (o *SecretsSecretsListParams) WithIDLt(iDLt *string) *SecretsSecretsListParams { + o.SetIDLt(iDLt) return o } -// SetIDIn adds the idIn to the secrets secrets list params -func (o *SecretsSecretsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDLt adds the idLt to the secrets secrets list params +func (o *SecretsSecretsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the secrets secrets list params +func (o *SecretsSecretsListParams) WithIDLte(iDLte *string) *SecretsSecretsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the secrets secrets list params +func (o *SecretsSecretsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the secrets secrets list params +func (o *SecretsSecretsListParams) WithIDn(iDn *string) *SecretsSecretsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the secrets secrets list params @@ -278,6 +389,105 @@ func (o *SecretsSecretsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameIc(nameIc *string) *SecretsSecretsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameIe(nameIe *string) *SecretsSecretsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameIew(nameIew *string) *SecretsSecretsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameIsw(nameIsw *string) *SecretsSecretsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNamen(namen *string) *SecretsSecretsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameNic(nameNic *string) *SecretsSecretsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameNie(nameNie *string) *SecretsSecretsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameNiew(nameNiew *string) *SecretsSecretsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the secrets secrets list params +func (o *SecretsSecretsListParams) WithNameNisw(nameNisw *string) *SecretsSecretsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the secrets secrets list params +func (o *SecretsSecretsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the secrets secrets list params func (o *SecretsSecretsListParams) WithOffset(offset *int64) *SecretsSecretsListParams { o.SetOffset(offset) @@ -311,6 +521,17 @@ func (o *SecretsSecretsListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the secrets secrets list params +func (o *SecretsSecretsListParams) WithRolen(rolen *string) *SecretsSecretsListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the secrets secrets list params func (o *SecretsSecretsListParams) WithRoleID(roleID *string) *SecretsSecretsListParams { o.SetRoleID(roleID) @@ -322,6 +543,17 @@ func (o *SecretsSecretsListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the secrets secrets list params +func (o *SecretsSecretsListParams) WithRoleIDn(roleIDn *string) *SecretsSecretsListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithTag adds the tag to the secrets secrets list params func (o *SecretsSecretsListParams) WithTag(tag *string) *SecretsSecretsListParams { o.SetTag(tag) @@ -333,6 +565,17 @@ func (o *SecretsSecretsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the secrets secrets list params +func (o *SecretsSecretsListParams) WithTagn(tagn *string) *SecretsSecretsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the secrets secrets list params +func (o *SecretsSecretsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -405,6 +648,22 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Devicen != nil { + + // query param device__n + var qrDevicen string + if o.Devicen != nil { + qrDevicen = *o.Devicen + } + qDevicen := qrDevicen + if qDevicen != "" { + if err := r.SetQueryParam("device__n", qDevicen); err != nil { + return err + } + } + + } + if o.DeviceID != nil { // query param device_id @@ -421,16 +680,112 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s } - if o.IDIn != nil { + if o.DeviceIDn != nil { + + // query param device_id__n + var qrDeviceIDn string + if o.DeviceIDn != nil { + qrDeviceIDn = *o.DeviceIDn + } + qDeviceIDn := qrDeviceIDn + if qDeviceIDn != "" { + if err := r.SetQueryParam("device_id__n", qDeviceIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -517,6 +872,150 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -565,6 +1064,22 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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 @@ -581,6 +1096,22 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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.Tag != nil { // query param tag @@ -597,6 +1128,22 @@ func (o *SecretsSecretsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_responses.go index 58eb0ad79..200f7af5e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretsListReader is a Reader for the SecretsSecretsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_parameters.go index 558a612ef..ff6c3c078 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewSecretsSecretsPartialUpdateParams creates a new SecretsSecretsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_responses.go index dde504417..dd3917ec9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretsPartialUpdateReader is a Reader for the SecretsSecretsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_parameters.go index 8e0a328d2..3da51f726 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewSecretsSecretsReadParams creates a new SecretsSecretsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_responses.go index 890b2946e..ce31cefbc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretsReadReader is a Reader for the SecretsSecretsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_parameters.go index 1cbeaea9e..f414542d4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewSecretsSecretsUpdateParams creates a new SecretsSecretsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_responses.go index 1384d89bd..8ba16d7d0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/secrets/secrets_secrets_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // SecretsSecretsUpdateReader is a Reader for the SecretsSecretsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_client.go index 9ba580ce6..06b628a0c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new tenancy API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,78 +40,37 @@ type Client struct { formats strfmt.Registry } -/* -TenancyChoicesList tenancy choices list API -*/ -func (a *Client) TenancyChoicesList(params *TenancyChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTenancyChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + TenancyTenantGroupsCreate(params *TenancyTenantGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "tenancy__choices_list", - Method: "GET", - PathPattern: "/tenancy/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TenancyChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TenancyChoicesListOK) - 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 tenancy__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + TenancyTenantGroupsDelete(params *TenancyTenantGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsDeleteNoContent, error) -/* -TenancyChoicesRead tenancy choices read API -*/ -func (a *Client) TenancyChoicesRead(params *TenancyChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTenancyChoicesReadParams() - } + TenancyTenantGroupsList(params *TenancyTenantGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "tenancy__choices_read", - Method: "GET", - PathPattern: "/tenancy/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TenancyChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TenancyChoicesReadOK) - 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 tenancy__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + TenancyTenantGroupsPartialUpdate(params *TenancyTenantGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsPartialUpdateOK, error) + + TenancyTenantGroupsRead(params *TenancyTenantGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsReadOK, error) + + TenancyTenantGroupsUpdate(params *TenancyTenantGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsUpdateOK, error) + + TenancyTenantsCreate(params *TenancyTenantsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsCreateCreated, error) + + TenancyTenantsDelete(params *TenancyTenantsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsDeleteNoContent, error) + + TenancyTenantsList(params *TenancyTenantsListParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsListOK, error) + + TenancyTenantsPartialUpdate(params *TenancyTenantsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsPartialUpdateOK, error) + + TenancyTenantsRead(params *TenancyTenantsReadParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsReadOK, error) + + TenancyTenantsUpdate(params *TenancyTenantsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -TenancyTenantGroupsCreate tenancy tenant groups create API + TenancyTenantGroupsCreate tenancy tenant groups create API */ func (a *Client) TenancyTenantGroupsCreate(params *TenancyTenantGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsCreateCreated, error) { // TODO: Validate the params before sending @@ -147,7 +105,7 @@ func (a *Client) TenancyTenantGroupsCreate(params *TenancyTenantGroupsCreatePara } /* -TenancyTenantGroupsDelete tenancy tenant groups delete API + TenancyTenantGroupsDelete tenancy tenant groups delete API */ func (a *Client) TenancyTenantGroupsDelete(params *TenancyTenantGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -182,7 +140,7 @@ func (a *Client) TenancyTenantGroupsDelete(params *TenancyTenantGroupsDeletePara } /* -TenancyTenantGroupsList Call to super to allow for caching + TenancyTenantGroupsList Call to super to allow for caching */ func (a *Client) TenancyTenantGroupsList(params *TenancyTenantGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsListOK, error) { // TODO: Validate the params before sending @@ -217,7 +175,7 @@ func (a *Client) TenancyTenantGroupsList(params *TenancyTenantGroupsListParams, } /* -TenancyTenantGroupsPartialUpdate tenancy tenant groups partial update API + TenancyTenantGroupsPartialUpdate tenancy tenant groups partial update API */ func (a *Client) TenancyTenantGroupsPartialUpdate(params *TenancyTenantGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -252,7 +210,7 @@ func (a *Client) TenancyTenantGroupsPartialUpdate(params *TenancyTenantGroupsPar } /* -TenancyTenantGroupsRead Call to super to allow for caching + TenancyTenantGroupsRead Call to super to allow for caching */ func (a *Client) TenancyTenantGroupsRead(params *TenancyTenantGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsReadOK, error) { // TODO: Validate the params before sending @@ -287,7 +245,7 @@ func (a *Client) TenancyTenantGroupsRead(params *TenancyTenantGroupsReadParams, } /* -TenancyTenantGroupsUpdate tenancy tenant groups update API + TenancyTenantGroupsUpdate tenancy tenant groups update API */ func (a *Client) TenancyTenantGroupsUpdate(params *TenancyTenantGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantGroupsUpdateOK, error) { // TODO: Validate the params before sending @@ -322,7 +280,7 @@ func (a *Client) TenancyTenantGroupsUpdate(params *TenancyTenantGroupsUpdatePara } /* -TenancyTenantsCreate tenancy tenants create API + TenancyTenantsCreate tenancy tenants create API */ func (a *Client) TenancyTenantsCreate(params *TenancyTenantsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsCreateCreated, error) { // TODO: Validate the params before sending @@ -357,7 +315,7 @@ func (a *Client) TenancyTenantsCreate(params *TenancyTenantsCreateParams, authIn } /* -TenancyTenantsDelete tenancy tenants delete API + TenancyTenantsDelete tenancy tenants delete API */ func (a *Client) TenancyTenantsDelete(params *TenancyTenantsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -392,7 +350,7 @@ func (a *Client) TenancyTenantsDelete(params *TenancyTenantsDeleteParams, authIn } /* -TenancyTenantsList Call to super to allow for caching + TenancyTenantsList Call to super to allow for caching */ func (a *Client) TenancyTenantsList(params *TenancyTenantsListParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsListOK, error) { // TODO: Validate the params before sending @@ -427,7 +385,7 @@ func (a *Client) TenancyTenantsList(params *TenancyTenantsListParams, authInfo r } /* -TenancyTenantsPartialUpdate tenancy tenants partial update API + TenancyTenantsPartialUpdate tenancy tenants partial update API */ func (a *Client) TenancyTenantsPartialUpdate(params *TenancyTenantsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -462,7 +420,7 @@ func (a *Client) TenancyTenantsPartialUpdate(params *TenancyTenantsPartialUpdate } /* -TenancyTenantsRead Call to super to allow for caching + TenancyTenantsRead Call to super to allow for caching */ func (a *Client) TenancyTenantsRead(params *TenancyTenantsReadParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsReadOK, error) { // TODO: Validate the params before sending @@ -497,7 +455,7 @@ func (a *Client) TenancyTenantsRead(params *TenancyTenantsReadParams, authInfo r } /* -TenancyTenantsUpdate tenancy tenants update API + TenancyTenantsUpdate tenancy tenants update API */ func (a *Client) TenancyTenantsUpdate(params *TenancyTenantsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*TenancyTenantsUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_parameters.go index 487cd4fa0..c966dcc80 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewTenancyTenantGroupsCreateParams creates a new TenancyTenantGroupsCreateParams object @@ -79,7 +78,7 @@ for the tenancy tenant groups create operation typically these are written to a type TenancyTenantGroupsCreateParams struct { /*Data*/ - Data *models.TenantGroup + Data *models.WritableTenantGroup timeout time.Duration Context context.Context @@ -120,13 +119,13 @@ func (o *TenancyTenantGroupsCreateParams) SetHTTPClient(client *http.Client) { } // WithData adds the data to the tenancy tenant groups create params -func (o *TenancyTenantGroupsCreateParams) WithData(data *models.TenantGroup) *TenancyTenantGroupsCreateParams { +func (o *TenancyTenantGroupsCreateParams) WithData(data *models.WritableTenantGroup) *TenancyTenantGroupsCreateParams { o.SetData(data) return o } // SetData adds the data to the tenancy tenant groups create params -func (o *TenancyTenantGroupsCreateParams) SetData(data *models.TenantGroup) { +func (o *TenancyTenantGroupsCreateParams) SetData(data *models.WritableTenantGroup) { o.Data = data } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_responses.go index 8bd24cb86..228abbc3a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantGroupsCreateReader is a Reader for the TenancyTenantGroupsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_parameters.go index e3dc2efcf..c3d0a7d16 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewTenancyTenantGroupsDeleteParams creates a new TenancyTenantGroupsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_responses.go index b97a17c0f..24adac0c7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // TenancyTenantGroupsDeleteReader is a Reader for the TenancyTenantGroupsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go index 8955ce5f5..6cdf0254d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewTenancyTenantGroupsListParams creates a new TenancyTenantGroupsListParams object @@ -77,8 +76,38 @@ for the tenancy tenant groups list operation typically these are written to a ht */ type TenancyTenantGroupsListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,15 +115,59 @@ type TenancyTenantGroupsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. */ Offset *int64 + /*Parent*/ + Parent *string + /*Parentn*/ + Parentn *string + /*ParentID*/ + ParentID *string + /*ParentIDn*/ + ParentIDn *string /*Q*/ Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -134,6 +207,116 @@ func (o *TenancyTenantGroupsListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithDescription adds the description to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescription(description *string) *TenancyTenantGroupsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionIc(descriptionIc *string) *TenancyTenantGroupsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionIe(descriptionIe *string) *TenancyTenantGroupsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionIew(descriptionIew *string) *TenancyTenantGroupsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionIsw(descriptionIsw *string) *TenancyTenantGroupsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionn(descriptionn *string) *TenancyTenantGroupsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionNic(descriptionNic *string) *TenancyTenantGroupsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionNie(descriptionNie *string) *TenancyTenantGroupsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionNiew(descriptionNiew *string) *TenancyTenantGroupsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithDescriptionNisw(descriptionNisw *string) *TenancyTenantGroupsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithID(id *string) *TenancyTenantGroupsListParams { o.SetID(id) @@ -145,6 +328,61 @@ func (o *TenancyTenantGroupsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithIDGt(iDGt *string) *TenancyTenantGroupsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithIDGte(iDGte *string) *TenancyTenantGroupsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithIDLt(iDLt *string) *TenancyTenantGroupsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithIDLte(iDLte *string) *TenancyTenantGroupsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithIDn(iDn *string) *TenancyTenantGroupsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithLimit(limit *int64) *TenancyTenantGroupsListParams { o.SetLimit(limit) @@ -167,6 +405,105 @@ func (o *TenancyTenantGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameIc(nameIc *string) *TenancyTenantGroupsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameIe(nameIe *string) *TenancyTenantGroupsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameIew(nameIew *string) *TenancyTenantGroupsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameIsw(nameIsw *string) *TenancyTenantGroupsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNamen(namen *string) *TenancyTenantGroupsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameNic(nameNic *string) *TenancyTenantGroupsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameNie(nameNie *string) *TenancyTenantGroupsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameNiew(nameNiew *string) *TenancyTenantGroupsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithNameNisw(nameNisw *string) *TenancyTenantGroupsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithOffset(offset *int64) *TenancyTenantGroupsListParams { o.SetOffset(offset) @@ -178,6 +515,50 @@ func (o *TenancyTenantGroupsListParams) SetOffset(offset *int64) { o.Offset = offset } +// WithParent adds the parent to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithParent(parent *string) *TenancyTenantGroupsListParams { + o.SetParent(parent) + return o +} + +// SetParent adds the parent to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetParent(parent *string) { + o.Parent = parent +} + +// WithParentn adds the parentn to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithParentn(parentn *string) *TenancyTenantGroupsListParams { + o.SetParentn(parentn) + return o +} + +// SetParentn adds the parentN to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetParentn(parentn *string) { + o.Parentn = parentn +} + +// WithParentID adds the parentID to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithParentID(parentID *string) *TenancyTenantGroupsListParams { + o.SetParentID(parentID) + return o +} + +// SetParentID adds the parentId to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetParentID(parentID *string) { + o.ParentID = parentID +} + +// WithParentIDn adds the parentIDn to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithParentIDn(parentIDn *string) *TenancyTenantGroupsListParams { + o.SetParentIDn(parentIDn) + return o +} + +// SetParentIDn adds the parentIdN to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetParentIDn(parentIDn *string) { + o.ParentIDn = parentIDn +} + // WithQ adds the q to the tenancy tenant groups list params func (o *TenancyTenantGroupsListParams) WithQ(q *string) *TenancyTenantGroupsListParams { o.SetQ(q) @@ -200,6 +581,105 @@ func (o *TenancyTenantGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugIc(slugIc *string) *TenancyTenantGroupsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugIe(slugIe *string) *TenancyTenantGroupsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugIew(slugIew *string) *TenancyTenantGroupsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugIsw(slugIsw *string) *TenancyTenantGroupsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugn(slugn *string) *TenancyTenantGroupsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugNic(slugNic *string) *TenancyTenantGroupsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugNie(slugNie *string) *TenancyTenantGroupsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugNiew(slugNiew *string) *TenancyTenantGroupsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) WithSlugNisw(slugNisw *string) *TenancyTenantGroupsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the tenancy tenant groups list params +func (o *TenancyTenantGroupsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -208,6 +688,166 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } var res []error + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -224,6 +864,86 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +976,150 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -272,6 +1136,70 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.Parent != nil { + + // query param parent + var qrParent string + if o.Parent != nil { + qrParent = *o.Parent + } + qParent := qrParent + if qParent != "" { + if err := r.SetQueryParam("parent", qParent); err != nil { + return err + } + } + + } + + if o.Parentn != nil { + + // query param parent__n + var qrParentn string + if o.Parentn != nil { + qrParentn = *o.Parentn + } + qParentn := qrParentn + if qParentn != "" { + if err := r.SetQueryParam("parent__n", qParentn); err != nil { + return err + } + } + + } + + if o.ParentID != nil { + + // query param parent_id + var qrParentID string + if o.ParentID != nil { + qrParentID = *o.ParentID + } + qParentID := qrParentID + if qParentID != "" { + if err := r.SetQueryParam("parent_id", qParentID); err != nil { + return err + } + } + + } + + if o.ParentIDn != nil { + + // query param parent_id__n + var qrParentIDn string + if o.ParentIDn != nil { + qrParentIDn = *o.ParentIDn + } + qParentIDn := qrParentIDn + if qParentIDn != "" { + if err := r.SetQueryParam("parent_id__n", qParentIDn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -304,6 +1232,150 @@ func (o *TenancyTenantGroupsListParams) WriteToRequest(r runtime.ClientRequest, } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_responses.go index 69b83f67c..e2f679b9c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantGroupsListReader is a Reader for the TenancyTenantGroupsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_parameters.go index 0f7b69061..47a9565de 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewTenancyTenantGroupsPartialUpdateParams creates a new TenancyTenantGroupsPartialUpdateParams object @@ -80,7 +79,7 @@ for the tenancy tenant groups partial update operation typically these are writt type TenancyTenantGroupsPartialUpdateParams struct { /*Data*/ - Data *models.TenantGroup + Data *models.WritableTenantGroup /*ID A unique integer value identifying this tenant group. @@ -126,13 +125,13 @@ func (o *TenancyTenantGroupsPartialUpdateParams) SetHTTPClient(client *http.Clie } // WithData adds the data to the tenancy tenant groups partial update params -func (o *TenancyTenantGroupsPartialUpdateParams) WithData(data *models.TenantGroup) *TenancyTenantGroupsPartialUpdateParams { +func (o *TenancyTenantGroupsPartialUpdateParams) WithData(data *models.WritableTenantGroup) *TenancyTenantGroupsPartialUpdateParams { o.SetData(data) return o } // SetData adds the data to the tenancy tenant groups partial update params -func (o *TenancyTenantGroupsPartialUpdateParams) SetData(data *models.TenantGroup) { +func (o *TenancyTenantGroupsPartialUpdateParams) SetData(data *models.WritableTenantGroup) { o.Data = data } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_responses.go index 687b64bc9..d8308db45 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantGroupsPartialUpdateReader is a Reader for the TenancyTenantGroupsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_parameters.go index 76db52eb3..e65fc6cb7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewTenancyTenantGroupsReadParams creates a new TenancyTenantGroupsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_responses.go index de4acf31d..cae912608 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantGroupsReadReader is a Reader for the TenancyTenantGroupsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_parameters.go index 5122127f5..b3744e458 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewTenancyTenantGroupsUpdateParams creates a new TenancyTenantGroupsUpdateParams object @@ -80,7 +79,7 @@ for the tenancy tenant groups update operation typically these are written to a type TenancyTenantGroupsUpdateParams struct { /*Data*/ - Data *models.TenantGroup + Data *models.WritableTenantGroup /*ID A unique integer value identifying this tenant group. @@ -126,13 +125,13 @@ func (o *TenancyTenantGroupsUpdateParams) SetHTTPClient(client *http.Client) { } // WithData adds the data to the tenancy tenant groups update params -func (o *TenancyTenantGroupsUpdateParams) WithData(data *models.TenantGroup) *TenancyTenantGroupsUpdateParams { +func (o *TenancyTenantGroupsUpdateParams) WithData(data *models.WritableTenantGroup) *TenancyTenantGroupsUpdateParams { o.SetData(data) return o } // SetData adds the data to the tenancy tenant groups update params -func (o *TenancyTenantGroupsUpdateParams) SetData(data *models.TenantGroup) { +func (o *TenancyTenantGroupsUpdateParams) SetData(data *models.WritableTenantGroup) { o.Data = data } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_responses.go index e3746bf3c..89615d84a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenant_groups_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantGroupsUpdateReader is a Reader for the TenancyTenantGroupsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_parameters.go index e6a3c163a..4acf4e7ca 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewTenancyTenantsCreateParams creates a new TenancyTenantsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_responses.go index f4b4534fa..48d5cd1b6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantsCreateReader is a Reader for the TenancyTenantsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_parameters.go index de30410af..bb7f09ded 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewTenancyTenantsDeleteParams creates a new TenancyTenantsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_responses.go index bb61beb54..d0f9d9b35 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // TenancyTenantsDeleteReader is a Reader for the TenancyTenantsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go index 25c046a75..1380f9b26 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewTenancyTenantsListParams creates a new TenancyTenantsListParams object @@ -85,13 +84,24 @@ type TenancyTenantsListParams struct { CreatedLte *string /*Group*/ Group *string + /*Groupn*/ + Groupn *string /*GroupID*/ GroupID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*GroupIDn*/ + GroupIDn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -105,6 +115,24 @@ type TenancyTenantsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -114,8 +142,28 @@ type TenancyTenantsListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string timeout time.Duration Context context.Context @@ -199,6 +247,17 @@ func (o *TenancyTenantsListParams) SetGroup(group *string) { o.Group = group } +// WithGroupn adds the groupn to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithGroupn(groupn *string) *TenancyTenantsListParams { + o.SetGroupn(groupn) + return o +} + +// SetGroupn adds the groupN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetGroupn(groupn *string) { + o.Groupn = groupn +} + // WithGroupID adds the groupID to the tenancy tenants list params func (o *TenancyTenantsListParams) WithGroupID(groupID *string) *TenancyTenantsListParams { o.SetGroupID(groupID) @@ -210,15 +269,81 @@ func (o *TenancyTenantsListParams) SetGroupID(groupID *string) { o.GroupID = groupID } -// WithIDIn adds the iDIn to the tenancy tenants list params -func (o *TenancyTenantsListParams) WithIDIn(iDIn *string) *TenancyTenantsListParams { - o.SetIDIn(iDIn) +// WithGroupIDn adds the groupIDn to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithGroupIDn(groupIDn *string) *TenancyTenantsListParams { + o.SetGroupIDn(groupIDn) + return o +} + +// SetGroupIDn adds the groupIdN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetGroupIDn(groupIDn *string) { + o.GroupIDn = groupIDn +} + +// WithID adds the id to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithID(id *string) *TenancyTenantsListParams { + o.SetID(id) return o } -// SetIDIn adds the idIn to the tenancy tenants list params -func (o *TenancyTenantsListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetID adds the id to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithIDGt(iDGt *string) *TenancyTenantsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithIDGte(iDGte *string) *TenancyTenantsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithIDLt(iDLt *string) *TenancyTenantsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithIDLte(iDLte *string) *TenancyTenantsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithIDn(iDn *string) *TenancyTenantsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the tenancy tenants list params @@ -276,6 +401,105 @@ func (o *TenancyTenantsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameIc(nameIc *string) *TenancyTenantsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameIe(nameIe *string) *TenancyTenantsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameIew(nameIew *string) *TenancyTenantsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameIsw(nameIsw *string) *TenancyTenantsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNamen(namen *string) *TenancyTenantsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameNic(nameNic *string) *TenancyTenantsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameNie(nameNie *string) *TenancyTenantsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameNiew(nameNiew *string) *TenancyTenantsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithNameNisw(nameNisw *string) *TenancyTenantsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the tenancy tenants list params func (o *TenancyTenantsListParams) WithOffset(offset *int64) *TenancyTenantsListParams { o.SetOffset(offset) @@ -309,6 +533,105 @@ func (o *TenancyTenantsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugIc(slugIc *string) *TenancyTenantsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugIe(slugIe *string) *TenancyTenantsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugIew(slugIew *string) *TenancyTenantsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugIsw(slugIsw *string) *TenancyTenantsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugn(slugn *string) *TenancyTenantsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugNic(slugNic *string) *TenancyTenantsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugNie(slugNie *string) *TenancyTenantsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugNiew(slugNiew *string) *TenancyTenantsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithSlugNisw(slugNisw *string) *TenancyTenantsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WithTag adds the tag to the tenancy tenants list params func (o *TenancyTenantsListParams) WithTag(tag *string) *TenancyTenantsListParams { o.SetTag(tag) @@ -320,6 +643,17 @@ func (o *TenancyTenantsListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the tenancy tenants list params +func (o *TenancyTenantsListParams) WithTagn(tagn *string) *TenancyTenantsListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the tenancy tenants list params +func (o *TenancyTenantsListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WriteToRequest writes these params to a swagger request func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -392,6 +726,22 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.Groupn != nil { + + // query param group__n + var qrGroupn string + if o.Groupn != nil { + qrGroupn = *o.Groupn + } + qGroupn := qrGroupn + if qGroupn != "" { + if err := r.SetQueryParam("group__n", qGroupn); err != nil { + return err + } + } + + } + if o.GroupID != nil { // query param group_id @@ -408,16 +758,112 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } - if o.IDIn != nil { + if o.GroupIDn != nil { + + // query param group_id__n + var qrGroupIDn string + if o.GroupIDn != nil { + qrGroupIDn = *o.GroupIDn + } + qGroupIDn := qrGroupIDn + if qGroupIDn != "" { + if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -504,6 +950,150 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -552,6 +1142,150 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -568,6 +1302,22 @@ func (o *TenancyTenantsListParams) WriteToRequest(r runtime.ClientRequest, reg s } + 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/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_responses.go index eb9582739..f8a6a206d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantsListReader is a Reader for the TenancyTenantsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_parameters.go index fb9db2153..2c67df122 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewTenancyTenantsPartialUpdateParams creates a new TenancyTenantsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_responses.go index 8f387f76c..ebacb720e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantsPartialUpdateReader is a Reader for the TenancyTenantsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_parameters.go index f1827206e..ec816e7c3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewTenancyTenantsReadParams creates a new TenancyTenantsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_responses.go index bf8d28e9c..6a0256443 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantsReadReader is a Reader for the TenancyTenantsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_parameters.go index e83c6d55c..f6e7e9b4b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewTenancyTenantsUpdateParams creates a new TenancyTenantsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_responses.go index 52d185ee3..a61aabfd2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/tenancy/tenancy_tenants_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // TenancyTenantsUpdateReader is a Reader for the TenancyTenantsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_client.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_client.go index 9b1481915..910d3dcd2 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_client.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_client.go @@ -24,12 +24,11 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // New creates a new virtualization API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } @@ -41,78 +40,73 @@ type Client struct { formats strfmt.Registry } -/* -VirtualizationChoicesList virtualization choices list API -*/ -func (a *Client) VirtualizationChoicesList(params *VirtualizationChoicesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationChoicesListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewVirtualizationChoicesListParams() - } +// ClientService is the interface for Client methods +type ClientService interface { + VirtualizationClusterGroupsCreate(params *VirtualizationClusterGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsCreateCreated, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "virtualization__choices_list", - Method: "GET", - PathPattern: "/virtualization/_choices/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &VirtualizationChoicesListReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*VirtualizationChoicesListOK) - 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 virtualization__choices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} + VirtualizationClusterGroupsDelete(params *VirtualizationClusterGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsDeleteNoContent, error) -/* -VirtualizationChoicesRead virtualization choices read API -*/ -func (a *Client) VirtualizationChoicesRead(params *VirtualizationChoicesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationChoicesReadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewVirtualizationChoicesReadParams() - } + VirtualizationClusterGroupsList(params *VirtualizationClusterGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsListOK, error) - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "virtualization__choices_read", - Method: "GET", - PathPattern: "/virtualization/_choices/{id}/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &VirtualizationChoicesReadReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*VirtualizationChoicesReadOK) - 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 virtualization__choices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + VirtualizationClusterGroupsPartialUpdate(params *VirtualizationClusterGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsPartialUpdateOK, error) + + VirtualizationClusterGroupsRead(params *VirtualizationClusterGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsReadOK, error) + + VirtualizationClusterGroupsUpdate(params *VirtualizationClusterGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsUpdateOK, error) + + VirtualizationClusterTypesCreate(params *VirtualizationClusterTypesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesCreateCreated, error) + + VirtualizationClusterTypesDelete(params *VirtualizationClusterTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesDeleteNoContent, error) + + VirtualizationClusterTypesList(params *VirtualizationClusterTypesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesListOK, error) + + VirtualizationClusterTypesPartialUpdate(params *VirtualizationClusterTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesPartialUpdateOK, error) + + VirtualizationClusterTypesRead(params *VirtualizationClusterTypesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesReadOK, error) + + VirtualizationClusterTypesUpdate(params *VirtualizationClusterTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesUpdateOK, error) + + VirtualizationClustersCreate(params *VirtualizationClustersCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersCreateCreated, error) + + VirtualizationClustersDelete(params *VirtualizationClustersDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersDeleteNoContent, error) + + VirtualizationClustersList(params *VirtualizationClustersListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersListOK, error) + + VirtualizationClustersPartialUpdate(params *VirtualizationClustersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersPartialUpdateOK, error) + + VirtualizationClustersRead(params *VirtualizationClustersReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersReadOK, error) + + VirtualizationClustersUpdate(params *VirtualizationClustersUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersUpdateOK, error) + + VirtualizationInterfacesCreate(params *VirtualizationInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesCreateCreated, error) + + VirtualizationInterfacesDelete(params *VirtualizationInterfacesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesDeleteNoContent, error) + + VirtualizationInterfacesList(params *VirtualizationInterfacesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesListOK, error) + + VirtualizationInterfacesPartialUpdate(params *VirtualizationInterfacesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesPartialUpdateOK, error) + + VirtualizationInterfacesRead(params *VirtualizationInterfacesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesReadOK, error) + + VirtualizationInterfacesUpdate(params *VirtualizationInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesUpdateOK, error) + + VirtualizationVirtualMachinesCreate(params *VirtualizationVirtualMachinesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesCreateCreated, error) + + VirtualizationVirtualMachinesDelete(params *VirtualizationVirtualMachinesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesDeleteNoContent, error) + + VirtualizationVirtualMachinesList(params *VirtualizationVirtualMachinesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesListOK, error) + + VirtualizationVirtualMachinesPartialUpdate(params *VirtualizationVirtualMachinesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesPartialUpdateOK, error) + + VirtualizationVirtualMachinesRead(params *VirtualizationVirtualMachinesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesReadOK, error) + + VirtualizationVirtualMachinesUpdate(params *VirtualizationVirtualMachinesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesUpdateOK, error) + + SetTransport(transport runtime.ClientTransport) } /* -VirtualizationClusterGroupsCreate virtualization cluster groups create API + VirtualizationClusterGroupsCreate virtualization cluster groups create API */ func (a *Client) VirtualizationClusterGroupsCreate(params *VirtualizationClusterGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsCreateCreated, error) { // TODO: Validate the params before sending @@ -147,7 +141,7 @@ func (a *Client) VirtualizationClusterGroupsCreate(params *VirtualizationCluster } /* -VirtualizationClusterGroupsDelete virtualization cluster groups delete API + VirtualizationClusterGroupsDelete virtualization cluster groups delete API */ func (a *Client) VirtualizationClusterGroupsDelete(params *VirtualizationClusterGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsDeleteNoContent, error) { // TODO: Validate the params before sending @@ -182,7 +176,7 @@ func (a *Client) VirtualizationClusterGroupsDelete(params *VirtualizationCluster } /* -VirtualizationClusterGroupsList Call to super to allow for caching + VirtualizationClusterGroupsList Call to super to allow for caching */ func (a *Client) VirtualizationClusterGroupsList(params *VirtualizationClusterGroupsListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsListOK, error) { // TODO: Validate the params before sending @@ -217,7 +211,7 @@ func (a *Client) VirtualizationClusterGroupsList(params *VirtualizationClusterGr } /* -VirtualizationClusterGroupsPartialUpdate virtualization cluster groups partial update API + VirtualizationClusterGroupsPartialUpdate virtualization cluster groups partial update API */ func (a *Client) VirtualizationClusterGroupsPartialUpdate(params *VirtualizationClusterGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -252,7 +246,7 @@ func (a *Client) VirtualizationClusterGroupsPartialUpdate(params *Virtualization } /* -VirtualizationClusterGroupsRead Call to super to allow for caching + VirtualizationClusterGroupsRead Call to super to allow for caching */ func (a *Client) VirtualizationClusterGroupsRead(params *VirtualizationClusterGroupsReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsReadOK, error) { // TODO: Validate the params before sending @@ -287,7 +281,7 @@ func (a *Client) VirtualizationClusterGroupsRead(params *VirtualizationClusterGr } /* -VirtualizationClusterGroupsUpdate virtualization cluster groups update API + VirtualizationClusterGroupsUpdate virtualization cluster groups update API */ func (a *Client) VirtualizationClusterGroupsUpdate(params *VirtualizationClusterGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterGroupsUpdateOK, error) { // TODO: Validate the params before sending @@ -322,7 +316,7 @@ func (a *Client) VirtualizationClusterGroupsUpdate(params *VirtualizationCluster } /* -VirtualizationClusterTypesCreate virtualization cluster types create API + VirtualizationClusterTypesCreate virtualization cluster types create API */ func (a *Client) VirtualizationClusterTypesCreate(params *VirtualizationClusterTypesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesCreateCreated, error) { // TODO: Validate the params before sending @@ -357,7 +351,7 @@ func (a *Client) VirtualizationClusterTypesCreate(params *VirtualizationClusterT } /* -VirtualizationClusterTypesDelete virtualization cluster types delete API + VirtualizationClusterTypesDelete virtualization cluster types delete API */ func (a *Client) VirtualizationClusterTypesDelete(params *VirtualizationClusterTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -392,7 +386,7 @@ func (a *Client) VirtualizationClusterTypesDelete(params *VirtualizationClusterT } /* -VirtualizationClusterTypesList Call to super to allow for caching + VirtualizationClusterTypesList Call to super to allow for caching */ func (a *Client) VirtualizationClusterTypesList(params *VirtualizationClusterTypesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesListOK, error) { // TODO: Validate the params before sending @@ -427,7 +421,7 @@ func (a *Client) VirtualizationClusterTypesList(params *VirtualizationClusterTyp } /* -VirtualizationClusterTypesPartialUpdate virtualization cluster types partial update API + VirtualizationClusterTypesPartialUpdate virtualization cluster types partial update API */ func (a *Client) VirtualizationClusterTypesPartialUpdate(params *VirtualizationClusterTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -462,7 +456,7 @@ func (a *Client) VirtualizationClusterTypesPartialUpdate(params *VirtualizationC } /* -VirtualizationClusterTypesRead Call to super to allow for caching + VirtualizationClusterTypesRead Call to super to allow for caching */ func (a *Client) VirtualizationClusterTypesRead(params *VirtualizationClusterTypesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesReadOK, error) { // TODO: Validate the params before sending @@ -497,7 +491,7 @@ func (a *Client) VirtualizationClusterTypesRead(params *VirtualizationClusterTyp } /* -VirtualizationClusterTypesUpdate virtualization cluster types update API + VirtualizationClusterTypesUpdate virtualization cluster types update API */ func (a *Client) VirtualizationClusterTypesUpdate(params *VirtualizationClusterTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClusterTypesUpdateOK, error) { // TODO: Validate the params before sending @@ -532,7 +526,7 @@ func (a *Client) VirtualizationClusterTypesUpdate(params *VirtualizationClusterT } /* -VirtualizationClustersCreate virtualization clusters create API + VirtualizationClustersCreate virtualization clusters create API */ func (a *Client) VirtualizationClustersCreate(params *VirtualizationClustersCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersCreateCreated, error) { // TODO: Validate the params before sending @@ -567,7 +561,7 @@ func (a *Client) VirtualizationClustersCreate(params *VirtualizationClustersCrea } /* -VirtualizationClustersDelete virtualization clusters delete API + VirtualizationClustersDelete virtualization clusters delete API */ func (a *Client) VirtualizationClustersDelete(params *VirtualizationClustersDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersDeleteNoContent, error) { // TODO: Validate the params before sending @@ -602,7 +596,7 @@ func (a *Client) VirtualizationClustersDelete(params *VirtualizationClustersDele } /* -VirtualizationClustersList Call to super to allow for caching + VirtualizationClustersList Call to super to allow for caching */ func (a *Client) VirtualizationClustersList(params *VirtualizationClustersListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersListOK, error) { // TODO: Validate the params before sending @@ -637,7 +631,7 @@ func (a *Client) VirtualizationClustersList(params *VirtualizationClustersListPa } /* -VirtualizationClustersPartialUpdate virtualization clusters partial update API + VirtualizationClustersPartialUpdate virtualization clusters partial update API */ func (a *Client) VirtualizationClustersPartialUpdate(params *VirtualizationClustersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -672,7 +666,7 @@ func (a *Client) VirtualizationClustersPartialUpdate(params *VirtualizationClust } /* -VirtualizationClustersRead Call to super to allow for caching + VirtualizationClustersRead Call to super to allow for caching */ func (a *Client) VirtualizationClustersRead(params *VirtualizationClustersReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersReadOK, error) { // TODO: Validate the params before sending @@ -707,7 +701,7 @@ func (a *Client) VirtualizationClustersRead(params *VirtualizationClustersReadPa } /* -VirtualizationClustersUpdate virtualization clusters update API + VirtualizationClustersUpdate virtualization clusters update API */ func (a *Client) VirtualizationClustersUpdate(params *VirtualizationClustersUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationClustersUpdateOK, error) { // TODO: Validate the params before sending @@ -742,7 +736,7 @@ func (a *Client) VirtualizationClustersUpdate(params *VirtualizationClustersUpda } /* -VirtualizationInterfacesCreate virtualization interfaces create API + VirtualizationInterfacesCreate virtualization interfaces create API */ func (a *Client) VirtualizationInterfacesCreate(params *VirtualizationInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesCreateCreated, error) { // TODO: Validate the params before sending @@ -777,7 +771,7 @@ func (a *Client) VirtualizationInterfacesCreate(params *VirtualizationInterfaces } /* -VirtualizationInterfacesDelete virtualization interfaces delete API + VirtualizationInterfacesDelete virtualization interfaces delete API */ func (a *Client) VirtualizationInterfacesDelete(params *VirtualizationInterfacesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -812,7 +806,7 @@ func (a *Client) VirtualizationInterfacesDelete(params *VirtualizationInterfaces } /* -VirtualizationInterfacesList Call to super to allow for caching + VirtualizationInterfacesList Call to super to allow for caching */ func (a *Client) VirtualizationInterfacesList(params *VirtualizationInterfacesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesListOK, error) { // TODO: Validate the params before sending @@ -847,7 +841,7 @@ func (a *Client) VirtualizationInterfacesList(params *VirtualizationInterfacesLi } /* -VirtualizationInterfacesPartialUpdate virtualization interfaces partial update API + VirtualizationInterfacesPartialUpdate virtualization interfaces partial update API */ func (a *Client) VirtualizationInterfacesPartialUpdate(params *VirtualizationInterfacesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -882,7 +876,7 @@ func (a *Client) VirtualizationInterfacesPartialUpdate(params *VirtualizationInt } /* -VirtualizationInterfacesRead Call to super to allow for caching + VirtualizationInterfacesRead Call to super to allow for caching */ func (a *Client) VirtualizationInterfacesRead(params *VirtualizationInterfacesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesReadOK, error) { // TODO: Validate the params before sending @@ -917,7 +911,7 @@ func (a *Client) VirtualizationInterfacesRead(params *VirtualizationInterfacesRe } /* -VirtualizationInterfacesUpdate virtualization interfaces update API + VirtualizationInterfacesUpdate virtualization interfaces update API */ func (a *Client) VirtualizationInterfacesUpdate(params *VirtualizationInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationInterfacesUpdateOK, error) { // TODO: Validate the params before sending @@ -952,7 +946,7 @@ func (a *Client) VirtualizationInterfacesUpdate(params *VirtualizationInterfaces } /* -VirtualizationVirtualMachinesCreate virtualization virtual machines create API + VirtualizationVirtualMachinesCreate virtualization virtual machines create API */ func (a *Client) VirtualizationVirtualMachinesCreate(params *VirtualizationVirtualMachinesCreateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesCreateCreated, error) { // TODO: Validate the params before sending @@ -987,7 +981,7 @@ func (a *Client) VirtualizationVirtualMachinesCreate(params *VirtualizationVirtu } /* -VirtualizationVirtualMachinesDelete virtualization virtual machines delete API + VirtualizationVirtualMachinesDelete virtualization virtual machines delete API */ func (a *Client) VirtualizationVirtualMachinesDelete(params *VirtualizationVirtualMachinesDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesDeleteNoContent, error) { // TODO: Validate the params before sending @@ -1022,7 +1016,7 @@ func (a *Client) VirtualizationVirtualMachinesDelete(params *VirtualizationVirtu } /* -VirtualizationVirtualMachinesList Call to super to allow for caching + VirtualizationVirtualMachinesList Call to super to allow for caching */ func (a *Client) VirtualizationVirtualMachinesList(params *VirtualizationVirtualMachinesListParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesListOK, error) { // TODO: Validate the params before sending @@ -1057,7 +1051,7 @@ func (a *Client) VirtualizationVirtualMachinesList(params *VirtualizationVirtual } /* -VirtualizationVirtualMachinesPartialUpdate virtualization virtual machines partial update API + VirtualizationVirtualMachinesPartialUpdate virtualization virtual machines partial update API */ func (a *Client) VirtualizationVirtualMachinesPartialUpdate(params *VirtualizationVirtualMachinesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesPartialUpdateOK, error) { // TODO: Validate the params before sending @@ -1092,7 +1086,7 @@ func (a *Client) VirtualizationVirtualMachinesPartialUpdate(params *Virtualizati } /* -VirtualizationVirtualMachinesRead Call to super to allow for caching + VirtualizationVirtualMachinesRead Call to super to allow for caching */ func (a *Client) VirtualizationVirtualMachinesRead(params *VirtualizationVirtualMachinesReadParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesReadOK, error) { // TODO: Validate the params before sending @@ -1127,7 +1121,7 @@ func (a *Client) VirtualizationVirtualMachinesRead(params *VirtualizationVirtual } /* -VirtualizationVirtualMachinesUpdate virtualization virtual machines update API + VirtualizationVirtualMachinesUpdate virtualization virtual machines update API */ func (a *Client) VirtualizationVirtualMachinesUpdate(params *VirtualizationVirtualMachinesUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*VirtualizationVirtualMachinesUpdateOK, error) { // TODO: Validate the params before sending diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_parameters.go index 81ff03ea1..41c911657 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClusterGroupsCreateParams creates a new VirtualizationClusterGroupsCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_responses.go index fe3d7bc67..337fd820c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterGroupsCreateReader is a Reader for the VirtualizationClusterGroupsCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_parameters.go index 2153c69b5..deaef5a6c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClusterGroupsDeleteParams creates a new VirtualizationClusterGroupsDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_responses.go index 3bb55a2dc..1880d46c8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // VirtualizationClusterGroupsDeleteReader is a Reader for the VirtualizationClusterGroupsDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go index 0cb366503..f2fae3c58 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClusterGroupsListParams creates a new VirtualizationClusterGroupsListParams object @@ -77,8 +76,38 @@ for the virtualization cluster groups list operation typically these are written */ type VirtualizationClusterGroupsListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +115,24 @@ type VirtualizationClusterGroupsListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,6 +142,24 @@ type VirtualizationClusterGroupsListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -134,6 +199,116 @@ func (o *VirtualizationClusterGroupsListParams) SetHTTPClient(client *http.Clien o.HTTPClient = client } +// WithDescription adds the description to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescription(description *string) *VirtualizationClusterGroupsListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionIe(descriptionIe *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionIew(descriptionIew *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionIsw(descriptionIsw *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionn(descriptionn *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionNic(descriptionNic *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionNie(descriptionNie *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionNiew(descriptionNiew *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithDescriptionNisw(descriptionNisw *string) *VirtualizationClusterGroupsListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithID(id *string) *VirtualizationClusterGroupsListParams { o.SetID(id) @@ -145,6 +320,61 @@ func (o *VirtualizationClusterGroupsListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithIDGt(iDGt *string) *VirtualizationClusterGroupsListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithIDGte(iDGte *string) *VirtualizationClusterGroupsListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithIDLt(iDLt *string) *VirtualizationClusterGroupsListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithIDLte(iDLte *string) *VirtualizationClusterGroupsListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithIDn(iDn *string) *VirtualizationClusterGroupsListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithLimit(limit *int64) *VirtualizationClusterGroupsListParams { o.SetLimit(limit) @@ -167,6 +397,105 @@ func (o *VirtualizationClusterGroupsListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameIc(nameIc *string) *VirtualizationClusterGroupsListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameIe(nameIe *string) *VirtualizationClusterGroupsListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameIew(nameIew *string) *VirtualizationClusterGroupsListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameIsw(nameIsw *string) *VirtualizationClusterGroupsListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNamen(namen *string) *VirtualizationClusterGroupsListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameNic(nameNic *string) *VirtualizationClusterGroupsListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameNie(nameNie *string) *VirtualizationClusterGroupsListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameNiew(nameNiew *string) *VirtualizationClusterGroupsListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithNameNisw(nameNisw *string) *VirtualizationClusterGroupsListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the virtualization cluster groups list params func (o *VirtualizationClusterGroupsListParams) WithOffset(offset *int64) *VirtualizationClusterGroupsListParams { o.SetOffset(offset) @@ -200,6 +529,105 @@ func (o *VirtualizationClusterGroupsListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugIc(slugIc *string) *VirtualizationClusterGroupsListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugIe(slugIe *string) *VirtualizationClusterGroupsListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugIew(slugIew *string) *VirtualizationClusterGroupsListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugIsw(slugIsw *string) *VirtualizationClusterGroupsListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugn(slugn *string) *VirtualizationClusterGroupsListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugNic(slugNic *string) *VirtualizationClusterGroupsListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugNie(slugNie *string) *VirtualizationClusterGroupsListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugNiew(slugNiew *string) *VirtualizationClusterGroupsListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) WithSlugNisw(slugNisw *string) *VirtualizationClusterGroupsListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the virtualization cluster groups list params +func (o *VirtualizationClusterGroupsListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -208,6 +636,166 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } var res []error + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -224,6 +812,86 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +924,150 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -304,6 +1116,150 @@ func (o *VirtualizationClusterGroupsListParams) WriteToRequest(r runtime.ClientR } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_responses.go index fda012037..7ee901d2a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterGroupsListReader is a Reader for the VirtualizationClusterGroupsList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_parameters.go index 9cd7e9cc9..c4bb228be 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClusterGroupsPartialUpdateParams creates a new VirtualizationClusterGroupsPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_responses.go index f43a221aa..fa6fe5381 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterGroupsPartialUpdateReader is a Reader for the VirtualizationClusterGroupsPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_parameters.go index 395e7ff74..fbc31d002 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClusterGroupsReadParams creates a new VirtualizationClusterGroupsReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_responses.go index 0ad4a49eb..e61a73b81 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterGroupsReadReader is a Reader for the VirtualizationClusterGroupsRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_parameters.go index 7654bf749..31822785a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClusterGroupsUpdateParams creates a new VirtualizationClusterGroupsUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_responses.go index 7d95a110b..39eb178b1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_groups_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterGroupsUpdateReader is a Reader for the VirtualizationClusterGroupsUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_parameters.go index 62caedd96..f23d40a40 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClusterTypesCreateParams creates a new VirtualizationClusterTypesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_responses.go index 9c9178535..a07bb6a77 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterTypesCreateReader is a Reader for the VirtualizationClusterTypesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_parameters.go index e6b467bc4..ff55d9dc3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClusterTypesDeleteParams creates a new VirtualizationClusterTypesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_responses.go index 4bfc52572..d5a5920c1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // VirtualizationClusterTypesDeleteReader is a Reader for the VirtualizationClusterTypesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go index 222b36abd..3fef1a8d5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClusterTypesListParams creates a new VirtualizationClusterTypesListParams object @@ -77,8 +76,38 @@ for the virtualization cluster types list operation typically these are written */ type VirtualizationClusterTypesListParams struct { + /*Description*/ + Description *string + /*DescriptionIc*/ + DescriptionIc *string + /*DescriptionIe*/ + DescriptionIe *string + /*DescriptionIew*/ + DescriptionIew *string + /*DescriptionIsw*/ + DescriptionIsw *string + /*Descriptionn*/ + Descriptionn *string + /*DescriptionNic*/ + DescriptionNic *string + /*DescriptionNie*/ + DescriptionNie *string + /*DescriptionNiew*/ + DescriptionNiew *string + /*DescriptionNisw*/ + DescriptionNisw *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -86,6 +115,24 @@ type VirtualizationClusterTypesListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -95,6 +142,24 @@ type VirtualizationClusterTypesListParams struct { Q *string /*Slug*/ Slug *string + /*SlugIc*/ + SlugIc *string + /*SlugIe*/ + SlugIe *string + /*SlugIew*/ + SlugIew *string + /*SlugIsw*/ + SlugIsw *string + /*Slugn*/ + Slugn *string + /*SlugNic*/ + SlugNic *string + /*SlugNie*/ + SlugNie *string + /*SlugNiew*/ + SlugNiew *string + /*SlugNisw*/ + SlugNisw *string timeout time.Duration Context context.Context @@ -134,6 +199,116 @@ func (o *VirtualizationClusterTypesListParams) SetHTTPClient(client *http.Client o.HTTPClient = client } +// WithDescription adds the description to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescription(description *string) *VirtualizationClusterTypesListParams { + o.SetDescription(description) + return o +} + +// SetDescription adds the description to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescription(description *string) { + o.Description = description +} + +// WithDescriptionIc adds the descriptionIc to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionIc(descriptionIc *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionIc(descriptionIc) + return o +} + +// SetDescriptionIc adds the descriptionIc to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionIc(descriptionIc *string) { + o.DescriptionIc = descriptionIc +} + +// WithDescriptionIe adds the descriptionIe to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionIe(descriptionIe *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionIe(descriptionIe) + return o +} + +// SetDescriptionIe adds the descriptionIe to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionIe(descriptionIe *string) { + o.DescriptionIe = descriptionIe +} + +// WithDescriptionIew adds the descriptionIew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionIew(descriptionIew *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionIew(descriptionIew) + return o +} + +// SetDescriptionIew adds the descriptionIew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionIew(descriptionIew *string) { + o.DescriptionIew = descriptionIew +} + +// WithDescriptionIsw adds the descriptionIsw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionIsw(descriptionIsw *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionIsw(descriptionIsw) + return o +} + +// SetDescriptionIsw adds the descriptionIsw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionIsw(descriptionIsw *string) { + o.DescriptionIsw = descriptionIsw +} + +// WithDescriptionn adds the descriptionn to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionn(descriptionn *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionn(descriptionn) + return o +} + +// SetDescriptionn adds the descriptionN to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionn(descriptionn *string) { + o.Descriptionn = descriptionn +} + +// WithDescriptionNic adds the descriptionNic to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionNic(descriptionNic *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionNic(descriptionNic) + return o +} + +// SetDescriptionNic adds the descriptionNic to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionNic(descriptionNic *string) { + o.DescriptionNic = descriptionNic +} + +// WithDescriptionNie adds the descriptionNie to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionNie(descriptionNie *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionNie(descriptionNie) + return o +} + +// SetDescriptionNie adds the descriptionNie to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionNie(descriptionNie *string) { + o.DescriptionNie = descriptionNie +} + +// WithDescriptionNiew adds the descriptionNiew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionNiew(descriptionNiew *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionNiew(descriptionNiew) + return o +} + +// SetDescriptionNiew adds the descriptionNiew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionNiew(descriptionNiew *string) { + o.DescriptionNiew = descriptionNiew +} + +// WithDescriptionNisw adds the descriptionNisw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithDescriptionNisw(descriptionNisw *string) *VirtualizationClusterTypesListParams { + o.SetDescriptionNisw(descriptionNisw) + return o +} + +// SetDescriptionNisw adds the descriptionNisw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetDescriptionNisw(descriptionNisw *string) { + o.DescriptionNisw = descriptionNisw +} + // WithID adds the id to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithID(id *string) *VirtualizationClusterTypesListParams { o.SetID(id) @@ -145,6 +320,61 @@ func (o *VirtualizationClusterTypesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithIDGt(iDGt *string) *VirtualizationClusterTypesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithIDGte(iDGte *string) *VirtualizationClusterTypesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithIDLt(iDLt *string) *VirtualizationClusterTypesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithIDLte(iDLte *string) *VirtualizationClusterTypesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithIDn(iDn *string) *VirtualizationClusterTypesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithLimit(limit *int64) *VirtualizationClusterTypesListParams { o.SetLimit(limit) @@ -167,6 +397,105 @@ func (o *VirtualizationClusterTypesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameIc(nameIc *string) *VirtualizationClusterTypesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameIe(nameIe *string) *VirtualizationClusterTypesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameIew(nameIew *string) *VirtualizationClusterTypesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameIsw(nameIsw *string) *VirtualizationClusterTypesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNamen(namen *string) *VirtualizationClusterTypesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameNic(nameNic *string) *VirtualizationClusterTypesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameNie(nameNie *string) *VirtualizationClusterTypesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameNiew(nameNiew *string) *VirtualizationClusterTypesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithNameNisw(nameNisw *string) *VirtualizationClusterTypesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the virtualization cluster types list params func (o *VirtualizationClusterTypesListParams) WithOffset(offset *int64) *VirtualizationClusterTypesListParams { o.SetOffset(offset) @@ -200,6 +529,105 @@ func (o *VirtualizationClusterTypesListParams) SetSlug(slug *string) { o.Slug = slug } +// WithSlugIc adds the slugIc to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugIc(slugIc *string) *VirtualizationClusterTypesListParams { + o.SetSlugIc(slugIc) + return o +} + +// SetSlugIc adds the slugIc to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugIc(slugIc *string) { + o.SlugIc = slugIc +} + +// WithSlugIe adds the slugIe to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugIe(slugIe *string) *VirtualizationClusterTypesListParams { + o.SetSlugIe(slugIe) + return o +} + +// SetSlugIe adds the slugIe to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugIe(slugIe *string) { + o.SlugIe = slugIe +} + +// WithSlugIew adds the slugIew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugIew(slugIew *string) *VirtualizationClusterTypesListParams { + o.SetSlugIew(slugIew) + return o +} + +// SetSlugIew adds the slugIew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugIew(slugIew *string) { + o.SlugIew = slugIew +} + +// WithSlugIsw adds the slugIsw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugIsw(slugIsw *string) *VirtualizationClusterTypesListParams { + o.SetSlugIsw(slugIsw) + return o +} + +// SetSlugIsw adds the slugIsw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugIsw(slugIsw *string) { + o.SlugIsw = slugIsw +} + +// WithSlugn adds the slugn to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugn(slugn *string) *VirtualizationClusterTypesListParams { + o.SetSlugn(slugn) + return o +} + +// SetSlugn adds the slugN to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugn(slugn *string) { + o.Slugn = slugn +} + +// WithSlugNic adds the slugNic to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugNic(slugNic *string) *VirtualizationClusterTypesListParams { + o.SetSlugNic(slugNic) + return o +} + +// SetSlugNic adds the slugNic to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugNic(slugNic *string) { + o.SlugNic = slugNic +} + +// WithSlugNie adds the slugNie to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugNie(slugNie *string) *VirtualizationClusterTypesListParams { + o.SetSlugNie(slugNie) + return o +} + +// SetSlugNie adds the slugNie to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugNie(slugNie *string) { + o.SlugNie = slugNie +} + +// WithSlugNiew adds the slugNiew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugNiew(slugNiew *string) *VirtualizationClusterTypesListParams { + o.SetSlugNiew(slugNiew) + return o +} + +// SetSlugNiew adds the slugNiew to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugNiew(slugNiew *string) { + o.SlugNiew = slugNiew +} + +// WithSlugNisw adds the slugNisw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) WithSlugNisw(slugNisw *string) *VirtualizationClusterTypesListParams { + o.SetSlugNisw(slugNisw) + return o +} + +// SetSlugNisw adds the slugNisw to the virtualization cluster types list params +func (o *VirtualizationClusterTypesListParams) SetSlugNisw(slugNisw *string) { + o.SlugNisw = slugNisw +} + // WriteToRequest writes these params to a swagger request func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -208,6 +636,166 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } var res []error + if o.Description != nil { + + // query param description + var qrDescription string + if o.Description != nil { + qrDescription = *o.Description + } + qDescription := qrDescription + if qDescription != "" { + if err := r.SetQueryParam("description", qDescription); err != nil { + return err + } + } + + } + + if o.DescriptionIc != nil { + + // query param description__ic + var qrDescriptionIc string + if o.DescriptionIc != nil { + qrDescriptionIc = *o.DescriptionIc + } + qDescriptionIc := qrDescriptionIc + if qDescriptionIc != "" { + if err := r.SetQueryParam("description__ic", qDescriptionIc); err != nil { + return err + } + } + + } + + if o.DescriptionIe != nil { + + // query param description__ie + var qrDescriptionIe string + if o.DescriptionIe != nil { + qrDescriptionIe = *o.DescriptionIe + } + qDescriptionIe := qrDescriptionIe + if qDescriptionIe != "" { + if err := r.SetQueryParam("description__ie", qDescriptionIe); err != nil { + return err + } + } + + } + + if o.DescriptionIew != nil { + + // query param description__iew + var qrDescriptionIew string + if o.DescriptionIew != nil { + qrDescriptionIew = *o.DescriptionIew + } + qDescriptionIew := qrDescriptionIew + if qDescriptionIew != "" { + if err := r.SetQueryParam("description__iew", qDescriptionIew); err != nil { + return err + } + } + + } + + if o.DescriptionIsw != nil { + + // query param description__isw + var qrDescriptionIsw string + if o.DescriptionIsw != nil { + qrDescriptionIsw = *o.DescriptionIsw + } + qDescriptionIsw := qrDescriptionIsw + if qDescriptionIsw != "" { + if err := r.SetQueryParam("description__isw", qDescriptionIsw); err != nil { + return err + } + } + + } + + if o.Descriptionn != nil { + + // query param description__n + var qrDescriptionn string + if o.Descriptionn != nil { + qrDescriptionn = *o.Descriptionn + } + qDescriptionn := qrDescriptionn + if qDescriptionn != "" { + if err := r.SetQueryParam("description__n", qDescriptionn); err != nil { + return err + } + } + + } + + if o.DescriptionNic != nil { + + // query param description__nic + var qrDescriptionNic string + if o.DescriptionNic != nil { + qrDescriptionNic = *o.DescriptionNic + } + qDescriptionNic := qrDescriptionNic + if qDescriptionNic != "" { + if err := r.SetQueryParam("description__nic", qDescriptionNic); err != nil { + return err + } + } + + } + + if o.DescriptionNie != nil { + + // query param description__nie + var qrDescriptionNie string + if o.DescriptionNie != nil { + qrDescriptionNie = *o.DescriptionNie + } + qDescriptionNie := qrDescriptionNie + if qDescriptionNie != "" { + if err := r.SetQueryParam("description__nie", qDescriptionNie); err != nil { + return err + } + } + + } + + if o.DescriptionNiew != nil { + + // query param description__niew + var qrDescriptionNiew string + if o.DescriptionNiew != nil { + qrDescriptionNiew = *o.DescriptionNiew + } + qDescriptionNiew := qrDescriptionNiew + if qDescriptionNiew != "" { + if err := r.SetQueryParam("description__niew", qDescriptionNiew); err != nil { + return err + } + } + + } + + if o.DescriptionNisw != nil { + + // query param description__nisw + var qrDescriptionNisw string + if o.DescriptionNisw != nil { + qrDescriptionNisw = *o.DescriptionNisw + } + qDescriptionNisw := qrDescriptionNisw + if qDescriptionNisw != "" { + if err := r.SetQueryParam("description__nisw", qDescriptionNisw); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -224,6 +812,86 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -256,6 +924,150 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -304,6 +1116,150 @@ func (o *VirtualizationClusterTypesListParams) WriteToRequest(r runtime.ClientRe } + if o.SlugIc != nil { + + // query param slug__ic + var qrSlugIc string + if o.SlugIc != nil { + qrSlugIc = *o.SlugIc + } + qSlugIc := qrSlugIc + if qSlugIc != "" { + if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil { + return err + } + } + + } + + if o.SlugIe != nil { + + // query param slug__ie + var qrSlugIe string + if o.SlugIe != nil { + qrSlugIe = *o.SlugIe + } + qSlugIe := qrSlugIe + if qSlugIe != "" { + if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil { + return err + } + } + + } + + if o.SlugIew != nil { + + // query param slug__iew + var qrSlugIew string + if o.SlugIew != nil { + qrSlugIew = *o.SlugIew + } + qSlugIew := qrSlugIew + if qSlugIew != "" { + if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil { + return err + } + } + + } + + if o.SlugIsw != nil { + + // query param slug__isw + var qrSlugIsw string + if o.SlugIsw != nil { + qrSlugIsw = *o.SlugIsw + } + qSlugIsw := qrSlugIsw + if qSlugIsw != "" { + if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil { + return err + } + } + + } + + if o.Slugn != nil { + + // query param slug__n + var qrSlugn string + if o.Slugn != nil { + qrSlugn = *o.Slugn + } + qSlugn := qrSlugn + if qSlugn != "" { + if err := r.SetQueryParam("slug__n", qSlugn); err != nil { + return err + } + } + + } + + if o.SlugNic != nil { + + // query param slug__nic + var qrSlugNic string + if o.SlugNic != nil { + qrSlugNic = *o.SlugNic + } + qSlugNic := qrSlugNic + if qSlugNic != "" { + if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil { + return err + } + } + + } + + if o.SlugNie != nil { + + // query param slug__nie + var qrSlugNie string + if o.SlugNie != nil { + qrSlugNie = *o.SlugNie + } + qSlugNie := qrSlugNie + if qSlugNie != "" { + if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil { + return err + } + } + + } + + if o.SlugNiew != nil { + + // query param slug__niew + var qrSlugNiew string + if o.SlugNiew != nil { + qrSlugNiew = *o.SlugNiew + } + qSlugNiew := qrSlugNiew + if qSlugNiew != "" { + if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil { + return err + } + } + + } + + if o.SlugNisw != nil { + + // query param slug__nisw + var qrSlugNisw string + if o.SlugNisw != nil { + qrSlugNisw = *o.SlugNisw + } + qSlugNisw := qrSlugNisw + if qSlugNisw != "" { + if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_responses.go index 4b7c947ee..9741b9e80 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterTypesListReader is a Reader for the VirtualizationClusterTypesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_parameters.go index 87c493824..8fbd0d27d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClusterTypesPartialUpdateParams creates a new VirtualizationClusterTypesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_responses.go index 6aff40c55..24a6238da 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterTypesPartialUpdateReader is a Reader for the VirtualizationClusterTypesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_parameters.go index 2202634f0..f9d362cd1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClusterTypesReadParams creates a new VirtualizationClusterTypesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_responses.go index 1afb83e33..1efb7b4bd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterTypesReadReader is a Reader for the VirtualizationClusterTypesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_parameters.go index 2cb9d548e..8410fd1dd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClusterTypesUpdateParams creates a new VirtualizationClusterTypesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_responses.go index c3636a59f..b95d3e3d9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_cluster_types_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClusterTypesUpdateReader is a Reader for the VirtualizationClusterTypesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_parameters.go index da0769556..d108cacb7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClustersCreateParams creates a new VirtualizationClustersCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_responses.go index a1dbeac95..1db3495ff 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClustersCreateReader is a Reader for the VirtualizationClustersCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_parameters.go index 33293382a..070406eed 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClustersDeleteParams creates a new VirtualizationClustersDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_responses.go index 8c3cea8e8..9da66b9bb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // VirtualizationClustersDeleteReader is a Reader for the VirtualizationClustersDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go index fd57dba66..58faad4db 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClustersListParams creates a new VirtualizationClustersListParams object @@ -85,13 +84,24 @@ type VirtualizationClustersListParams struct { CreatedLte *string /*Group*/ Group *string + /*Groupn*/ + Groupn *string /*GroupID*/ GroupID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*GroupIDn*/ + GroupIDn *string + /*ID*/ + ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -105,6 +115,24 @@ type VirtualizationClustersListParams struct { Limit *int64 /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -114,20 +142,48 @@ type VirtualizationClustersListParams struct { Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string + /*TenantGroup*/ + TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string + /*TenantGroupID*/ + TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string + /*TenantID*/ + TenantID *string + /*TenantIDn*/ + TenantIDn *string /*Type*/ Type *string + /*Typen*/ + Typen *string /*TypeID*/ TypeID *string + /*TypeIDn*/ + TypeIDn *string timeout time.Duration Context context.Context @@ -211,6 +267,17 @@ func (o *VirtualizationClustersListParams) SetGroup(group *string) { o.Group = group } +// WithGroupn adds the groupn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithGroupn(groupn *string) *VirtualizationClustersListParams { + o.SetGroupn(groupn) + return o +} + +// SetGroupn adds the groupN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetGroupn(groupn *string) { + o.Groupn = groupn +} + // WithGroupID adds the groupID to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithGroupID(groupID *string) *VirtualizationClustersListParams { o.SetGroupID(groupID) @@ -222,15 +289,81 @@ func (o *VirtualizationClustersListParams) SetGroupID(groupID *string) { o.GroupID = groupID } -// WithIDIn adds the iDIn to the virtualization clusters list params -func (o *VirtualizationClustersListParams) WithIDIn(iDIn *string) *VirtualizationClustersListParams { - o.SetIDIn(iDIn) +// WithGroupIDn adds the groupIDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithGroupIDn(groupIDn *string) *VirtualizationClustersListParams { + o.SetGroupIDn(groupIDn) + return o +} + +// SetGroupIDn adds the groupIdN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetGroupIDn(groupIDn *string) { + o.GroupIDn = groupIDn +} + +// WithID adds the id to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithID(id *string) *VirtualizationClustersListParams { + o.SetID(id) + return o +} + +// SetID adds the id to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetID(id *string) { + o.ID = id +} + +// WithIDGt adds the iDGt to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithIDGt(iDGt *string) *VirtualizationClustersListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithIDGte(iDGte *string) *VirtualizationClustersListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithIDLt(iDLt *string) *VirtualizationClustersListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithIDLte(iDLte *string) *VirtualizationClustersListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithIDn(iDn *string) *VirtualizationClustersListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the virtualization clusters list params -func (o *VirtualizationClustersListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the virtualization clusters list params @@ -288,6 +421,105 @@ func (o *VirtualizationClustersListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameIc(nameIc *string) *VirtualizationClustersListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameIe(nameIe *string) *VirtualizationClustersListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameIew(nameIew *string) *VirtualizationClustersListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameIsw(nameIsw *string) *VirtualizationClustersListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNamen(namen *string) *VirtualizationClustersListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameNic(nameNic *string) *VirtualizationClustersListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameNie(nameNie *string) *VirtualizationClustersListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameNiew(nameNiew *string) *VirtualizationClustersListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithNameNisw(nameNisw *string) *VirtualizationClustersListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithOffset(offset *int64) *VirtualizationClustersListParams { o.SetOffset(offset) @@ -321,6 +553,17 @@ func (o *VirtualizationClustersListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithRegionn(regionn *string) *VirtualizationClustersListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithRegionID(regionID *string) *VirtualizationClustersListParams { o.SetRegionID(regionID) @@ -332,6 +575,17 @@ func (o *VirtualizationClustersListParams) SetRegionID(regionID *string) { o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithRegionIDn(regionIDn *string) *VirtualizationClustersListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithSite adds the site to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithSite(site *string) *VirtualizationClustersListParams { o.SetSite(site) @@ -343,6 +597,17 @@ func (o *VirtualizationClustersListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithSiten(siten *string) *VirtualizationClustersListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithSiteID(siteID *string) *VirtualizationClustersListParams { o.SetSiteID(siteID) @@ -354,6 +619,17 @@ func (o *VirtualizationClustersListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithSiteIDn(siteIDn *string) *VirtualizationClustersListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithTag adds the tag to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithTag(tag *string) *VirtualizationClustersListParams { o.SetTag(tag) @@ -365,6 +641,17 @@ func (o *VirtualizationClustersListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTagn(tagn *string) *VirtualizationClustersListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithTenant(tenant *string) *VirtualizationClustersListParams { o.SetTenant(tenant) @@ -376,6 +663,83 @@ func (o *VirtualizationClustersListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantn(tenantn *string) *VirtualizationClustersListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + +// WithTenantGroup adds the tenantGroup to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantGroup(tenantGroup *string) *VirtualizationClustersListParams { + o.SetTenantGroup(tenantGroup) + return o +} + +// SetTenantGroup adds the tenantGroup to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantGroup(tenantGroup *string) { + o.TenantGroup = tenantGroup +} + +// WithTenantGroupn adds the tenantGroupn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantGroupn(tenantGroupn *string) *VirtualizationClustersListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + +// WithTenantGroupID adds the tenantGroupID to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantGroupID(tenantGroupID *string) *VirtualizationClustersListParams { + o.SetTenantGroupID(tenantGroupID) + return o +} + +// SetTenantGroupID adds the tenantGroupId to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantGroupID(tenantGroupID *string) { + o.TenantGroupID = tenantGroupID +} + +// WithTenantGroupIDn adds the tenantGroupIDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantGroupIDn(tenantGroupIDn *string) *VirtualizationClustersListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + +// WithTenantID adds the tenantID to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantID(tenantID *string) *VirtualizationClustersListParams { + o.SetTenantID(tenantID) + return o +} + +// SetTenantID adds the tenantId to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantID(tenantID *string) { + o.TenantID = tenantID +} + +// WithTenantIDn adds the tenantIDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTenantIDn(tenantIDn *string) *VirtualizationClustersListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithType adds the typeVar to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithType(typeVar *string) *VirtualizationClustersListParams { o.SetType(typeVar) @@ -387,6 +751,17 @@ func (o *VirtualizationClustersListParams) SetType(typeVar *string) { o.Type = typeVar } +// WithTypen adds the typen to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTypen(typen *string) *VirtualizationClustersListParams { + o.SetTypen(typen) + return o +} + +// SetTypen adds the typeN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTypen(typen *string) { + o.Typen = typen +} + // WithTypeID adds the typeID to the virtualization clusters list params func (o *VirtualizationClustersListParams) WithTypeID(typeID *string) *VirtualizationClustersListParams { o.SetTypeID(typeID) @@ -398,6 +773,17 @@ func (o *VirtualizationClustersListParams) SetTypeID(typeID *string) { o.TypeID = typeID } +// WithTypeIDn adds the typeIDn to the virtualization clusters list params +func (o *VirtualizationClustersListParams) WithTypeIDn(typeIDn *string) *VirtualizationClustersListParams { + o.SetTypeIDn(typeIDn) + return o +} + +// SetTypeIDn adds the typeIdN to the virtualization clusters list params +func (o *VirtualizationClustersListParams) SetTypeIDn(typeIDn *string) { + o.TypeIDn = typeIDn +} + // WriteToRequest writes these params to a swagger request func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -470,6 +856,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + if o.Groupn != nil { + + // query param group__n + var qrGroupn string + if o.Groupn != nil { + qrGroupn = *o.Groupn + } + qGroupn := qrGroupn + if qGroupn != "" { + if err := r.SetQueryParam("group__n", qGroupn); err != nil { + return err + } + } + + } + if o.GroupID != nil { // query param group_id @@ -486,16 +888,112 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } - if o.IDIn != nil { + if o.GroupIDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param group_id__n + var qrGroupIDn string + if o.GroupIDn != nil { + qrGroupIDn = *o.GroupIDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qGroupIDn := qrGroupIDn + if qGroupIDn != "" { + if err := r.SetQueryParam("group_id__n", qGroupIDn); err != nil { + return err + } + } + + } + + if o.ID != nil { + + // query param id + var qrID string + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + + } + + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -582,6 +1080,150 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -630,6 +1272,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + 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 @@ -646,6 +1304,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + 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 @@ -662,6 +1336,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -678,6 +1368,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -694,6 +1400,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + 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 @@ -710,6 +1432,118 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + + if o.TenantGroup != nil { + + // query param tenant_group + var qrTenantGroup string + if o.TenantGroup != nil { + qrTenantGroup = *o.TenantGroup + } + qTenantGroup := qrTenantGroup + if qTenantGroup != "" { + if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil { + return err + } + } + + } + + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + + if o.TenantGroupID != nil { + + // query param tenant_group_id + var qrTenantGroupID string + if o.TenantGroupID != nil { + qrTenantGroupID = *o.TenantGroupID + } + qTenantGroupID := qrTenantGroupID + if qTenantGroupID != "" { + if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil { + return err + } + } + + } + + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + + if o.TenantID != nil { + + // query param tenant_id + var qrTenantID string + if o.TenantID != nil { + qrTenantID = *o.TenantID + } + qTenantID := qrTenantID + if qTenantID != "" { + if err := r.SetQueryParam("tenant_id", qTenantID); err != nil { + return err + } + } + + } + + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.Type != nil { // query param type @@ -726,6 +1560,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + 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.TypeID != nil { // query param type_id @@ -742,6 +1592,22 @@ func (o *VirtualizationClustersListParams) WriteToRequest(r runtime.ClientReques } + if o.TypeIDn != nil { + + // query param type_id__n + var qrTypeIDn string + if o.TypeIDn != nil { + qrTypeIDn = *o.TypeIDn + } + qTypeIDn := qrTypeIDn + if qTypeIDn != "" { + if err := r.SetQueryParam("type_id__n", qTypeIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_responses.go index e7529403a..bd4123e2b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClustersListReader is a Reader for the VirtualizationClustersList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_parameters.go index b85bec033..725b2b458 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClustersPartialUpdateParams creates a new VirtualizationClustersPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_responses.go index 18cf9c8d7..25892a6a8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClustersPartialUpdateReader is a Reader for the VirtualizationClustersPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_parameters.go index 661b77585..65c389ef9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationClustersReadParams creates a new VirtualizationClustersReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_responses.go index c57fec8b2..e2fc746dd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClustersReadReader is a Reader for the VirtualizationClustersRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_parameters.go index 10de1b1b9..9560990c9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationClustersUpdateParams creates a new VirtualizationClustersUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_responses.go index 6c5520ed0..d320b38b6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_clusters_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationClustersUpdateReader is a Reader for the VirtualizationClustersUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_parameters.go index 4ed5c067d..341d59433 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationInterfacesCreateParams creates a new VirtualizationInterfacesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_responses.go index 98adae2de..330372b40 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationInterfacesCreateReader is a Reader for the VirtualizationInterfacesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_parameters.go index 3b52d8ebf..e270f9d13 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationInterfacesDeleteParams creates a new VirtualizationInterfacesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_responses.go index 2f1a048c2..0b4cebc6a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // VirtualizationInterfacesDeleteReader is a Reader for the VirtualizationInterfacesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go index 401e7f6e2..17310da98 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationInterfacesListParams creates a new VirtualizationInterfacesListParams object @@ -81,6 +80,16 @@ type VirtualizationInterfacesListParams struct { Enabled *string /*ID*/ ID *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*Limit Number of results to return per page. @@ -88,10 +97,56 @@ type VirtualizationInterfacesListParams struct { Limit *int64 /*MacAddress*/ MacAddress *string + /*MacAddressIc*/ + MacAddressIc *string + /*MacAddressIe*/ + MacAddressIe *string + /*MacAddressIew*/ + MacAddressIew *string + /*MacAddressIsw*/ + MacAddressIsw *string + /*MacAddressn*/ + MacAddressn *string + /*MacAddressNic*/ + MacAddressNic *string + /*MacAddressNie*/ + MacAddressNie *string + /*MacAddressNiew*/ + MacAddressNiew *string + /*MacAddressNisw*/ + MacAddressNisw *string /*Mtu*/ Mtu *string + /*MtuGt*/ + MtuGt *string + /*MtuGte*/ + MtuGte *string + /*MtuLt*/ + MtuLt *string + /*MtuLte*/ + MtuLte *string + /*Mtun*/ + Mtun *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -101,8 +156,12 @@ type VirtualizationInterfacesListParams struct { Q *string /*VirtualMachine*/ VirtualMachine *string + /*VirtualMachinen*/ + VirtualMachinen *string /*VirtualMachineID*/ VirtualMachineID *string + /*VirtualMachineIDn*/ + VirtualMachineIDn *string timeout time.Duration Context context.Context @@ -164,6 +223,61 @@ func (o *VirtualizationInterfacesListParams) SetID(id *string) { o.ID = id } +// WithIDGt adds the iDGt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithIDGt(iDGt *string) *VirtualizationInterfacesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithIDGte(iDGte *string) *VirtualizationInterfacesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithIDLt(iDLt *string) *VirtualizationInterfacesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithIDLte(iDLte *string) *VirtualizationInterfacesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithIDn(iDn *string) *VirtualizationInterfacesListParams { + o.SetIDn(iDn) + return o +} + +// SetIDn adds the idN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetIDn(iDn *string) { + o.IDn = iDn +} + // WithLimit adds the limit to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithLimit(limit *int64) *VirtualizationInterfacesListParams { o.SetLimit(limit) @@ -186,6 +300,105 @@ func (o *VirtualizationInterfacesListParams) SetMacAddress(macAddress *string) { o.MacAddress = macAddress } +// WithMacAddressIc adds the macAddressIc to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressIc(macAddressIc *string) *VirtualizationInterfacesListParams { + o.SetMacAddressIc(macAddressIc) + return o +} + +// SetMacAddressIc adds the macAddressIc to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressIc(macAddressIc *string) { + o.MacAddressIc = macAddressIc +} + +// WithMacAddressIe adds the macAddressIe to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressIe(macAddressIe *string) *VirtualizationInterfacesListParams { + o.SetMacAddressIe(macAddressIe) + return o +} + +// SetMacAddressIe adds the macAddressIe to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressIe(macAddressIe *string) { + o.MacAddressIe = macAddressIe +} + +// WithMacAddressIew adds the macAddressIew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressIew(macAddressIew *string) *VirtualizationInterfacesListParams { + o.SetMacAddressIew(macAddressIew) + return o +} + +// SetMacAddressIew adds the macAddressIew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressIew(macAddressIew *string) { + o.MacAddressIew = macAddressIew +} + +// WithMacAddressIsw adds the macAddressIsw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressIsw(macAddressIsw *string) *VirtualizationInterfacesListParams { + o.SetMacAddressIsw(macAddressIsw) + return o +} + +// SetMacAddressIsw adds the macAddressIsw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressIsw(macAddressIsw *string) { + o.MacAddressIsw = macAddressIsw +} + +// WithMacAddressn adds the macAddressn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressn(macAddressn *string) *VirtualizationInterfacesListParams { + o.SetMacAddressn(macAddressn) + return o +} + +// SetMacAddressn adds the macAddressN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressn(macAddressn *string) { + o.MacAddressn = macAddressn +} + +// WithMacAddressNic adds the macAddressNic to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressNic(macAddressNic *string) *VirtualizationInterfacesListParams { + o.SetMacAddressNic(macAddressNic) + return o +} + +// SetMacAddressNic adds the macAddressNic to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressNic(macAddressNic *string) { + o.MacAddressNic = macAddressNic +} + +// WithMacAddressNie adds the macAddressNie to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressNie(macAddressNie *string) *VirtualizationInterfacesListParams { + o.SetMacAddressNie(macAddressNie) + return o +} + +// SetMacAddressNie adds the macAddressNie to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressNie(macAddressNie *string) { + o.MacAddressNie = macAddressNie +} + +// WithMacAddressNiew adds the macAddressNiew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressNiew(macAddressNiew *string) *VirtualizationInterfacesListParams { + o.SetMacAddressNiew(macAddressNiew) + return o +} + +// SetMacAddressNiew adds the macAddressNiew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressNiew(macAddressNiew *string) { + o.MacAddressNiew = macAddressNiew +} + +// WithMacAddressNisw adds the macAddressNisw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMacAddressNisw(macAddressNisw *string) *VirtualizationInterfacesListParams { + o.SetMacAddressNisw(macAddressNisw) + return o +} + +// SetMacAddressNisw adds the macAddressNisw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMacAddressNisw(macAddressNisw *string) { + o.MacAddressNisw = macAddressNisw +} + // WithMtu adds the mtu to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithMtu(mtu *string) *VirtualizationInterfacesListParams { o.SetMtu(mtu) @@ -197,6 +410,61 @@ func (o *VirtualizationInterfacesListParams) SetMtu(mtu *string) { o.Mtu = mtu } +// WithMtuGt adds the mtuGt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMtuGt(mtuGt *string) *VirtualizationInterfacesListParams { + o.SetMtuGt(mtuGt) + return o +} + +// SetMtuGt adds the mtuGt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMtuGt(mtuGt *string) { + o.MtuGt = mtuGt +} + +// WithMtuGte adds the mtuGte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMtuGte(mtuGte *string) *VirtualizationInterfacesListParams { + o.SetMtuGte(mtuGte) + return o +} + +// SetMtuGte adds the mtuGte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMtuGte(mtuGte *string) { + o.MtuGte = mtuGte +} + +// WithMtuLt adds the mtuLt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMtuLt(mtuLt *string) *VirtualizationInterfacesListParams { + o.SetMtuLt(mtuLt) + return o +} + +// SetMtuLt adds the mtuLt to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMtuLt(mtuLt *string) { + o.MtuLt = mtuLt +} + +// WithMtuLte adds the mtuLte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMtuLte(mtuLte *string) *VirtualizationInterfacesListParams { + o.SetMtuLte(mtuLte) + return o +} + +// SetMtuLte adds the mtuLte to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMtuLte(mtuLte *string) { + o.MtuLte = mtuLte +} + +// WithMtun adds the mtun to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithMtun(mtun *string) *VirtualizationInterfacesListParams { + o.SetMtun(mtun) + return o +} + +// SetMtun adds the mtuN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetMtun(mtun *string) { + o.Mtun = mtun +} + // WithName adds the name to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithName(name *string) *VirtualizationInterfacesListParams { o.SetName(name) @@ -208,6 +476,105 @@ func (o *VirtualizationInterfacesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameIc(nameIc *string) *VirtualizationInterfacesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameIe(nameIe *string) *VirtualizationInterfacesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameIew(nameIew *string) *VirtualizationInterfacesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameIsw(nameIsw *string) *VirtualizationInterfacesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNamen(namen *string) *VirtualizationInterfacesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameNic(nameNic *string) *VirtualizationInterfacesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameNie(nameNie *string) *VirtualizationInterfacesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameNiew(nameNiew *string) *VirtualizationInterfacesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithNameNisw(nameNisw *string) *VirtualizationInterfacesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithOffset(offset *int64) *VirtualizationInterfacesListParams { o.SetOffset(offset) @@ -241,6 +608,17 @@ func (o *VirtualizationInterfacesListParams) SetVirtualMachine(virtualMachine *s o.VirtualMachine = virtualMachine } +// WithVirtualMachinen adds the virtualMachinen to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVirtualMachinen(virtualMachinen *string) *VirtualizationInterfacesListParams { + o.SetVirtualMachinen(virtualMachinen) + return o +} + +// SetVirtualMachinen adds the virtualMachineN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVirtualMachinen(virtualMachinen *string) { + o.VirtualMachinen = virtualMachinen +} + // WithVirtualMachineID adds the virtualMachineID to the virtualization interfaces list params func (o *VirtualizationInterfacesListParams) WithVirtualMachineID(virtualMachineID *string) *VirtualizationInterfacesListParams { o.SetVirtualMachineID(virtualMachineID) @@ -252,6 +630,17 @@ func (o *VirtualizationInterfacesListParams) SetVirtualMachineID(virtualMachineI o.VirtualMachineID = virtualMachineID } +// WithVirtualMachineIDn adds the virtualMachineIDn to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) WithVirtualMachineIDn(virtualMachineIDn *string) *VirtualizationInterfacesListParams { + o.SetVirtualMachineIDn(virtualMachineIDn) + return o +} + +// SetVirtualMachineIDn adds the virtualMachineIdN to the virtualization interfaces list params +func (o *VirtualizationInterfacesListParams) SetVirtualMachineIDn(virtualMachineIDn *string) { + o.VirtualMachineIDn = virtualMachineIDn +} + // WriteToRequest writes these params to a swagger request func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -292,6 +681,86 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { + + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn + } + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { + return err + } + } + + } + if o.Limit != nil { // query param limit @@ -324,6 +793,150 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } + if o.MacAddressIc != nil { + + // query param mac_address__ic + var qrMacAddressIc string + if o.MacAddressIc != nil { + qrMacAddressIc = *o.MacAddressIc + } + qMacAddressIc := qrMacAddressIc + if qMacAddressIc != "" { + if err := r.SetQueryParam("mac_address__ic", qMacAddressIc); err != nil { + return err + } + } + + } + + if o.MacAddressIe != nil { + + // query param mac_address__ie + var qrMacAddressIe string + if o.MacAddressIe != nil { + qrMacAddressIe = *o.MacAddressIe + } + qMacAddressIe := qrMacAddressIe + if qMacAddressIe != "" { + if err := r.SetQueryParam("mac_address__ie", qMacAddressIe); err != nil { + return err + } + } + + } + + if o.MacAddressIew != nil { + + // query param mac_address__iew + var qrMacAddressIew string + if o.MacAddressIew != nil { + qrMacAddressIew = *o.MacAddressIew + } + qMacAddressIew := qrMacAddressIew + if qMacAddressIew != "" { + if err := r.SetQueryParam("mac_address__iew", qMacAddressIew); err != nil { + return err + } + } + + } + + if o.MacAddressIsw != nil { + + // query param mac_address__isw + var qrMacAddressIsw string + if o.MacAddressIsw != nil { + qrMacAddressIsw = *o.MacAddressIsw + } + qMacAddressIsw := qrMacAddressIsw + if qMacAddressIsw != "" { + if err := r.SetQueryParam("mac_address__isw", qMacAddressIsw); err != nil { + return err + } + } + + } + + if o.MacAddressn != nil { + + // query param mac_address__n + var qrMacAddressn string + if o.MacAddressn != nil { + qrMacAddressn = *o.MacAddressn + } + qMacAddressn := qrMacAddressn + if qMacAddressn != "" { + if err := r.SetQueryParam("mac_address__n", qMacAddressn); err != nil { + return err + } + } + + } + + if o.MacAddressNic != nil { + + // query param mac_address__nic + var qrMacAddressNic string + if o.MacAddressNic != nil { + qrMacAddressNic = *o.MacAddressNic + } + qMacAddressNic := qrMacAddressNic + if qMacAddressNic != "" { + if err := r.SetQueryParam("mac_address__nic", qMacAddressNic); err != nil { + return err + } + } + + } + + if o.MacAddressNie != nil { + + // query param mac_address__nie + var qrMacAddressNie string + if o.MacAddressNie != nil { + qrMacAddressNie = *o.MacAddressNie + } + qMacAddressNie := qrMacAddressNie + if qMacAddressNie != "" { + if err := r.SetQueryParam("mac_address__nie", qMacAddressNie); err != nil { + return err + } + } + + } + + if o.MacAddressNiew != nil { + + // query param mac_address__niew + var qrMacAddressNiew string + if o.MacAddressNiew != nil { + qrMacAddressNiew = *o.MacAddressNiew + } + qMacAddressNiew := qrMacAddressNiew + if qMacAddressNiew != "" { + if err := r.SetQueryParam("mac_address__niew", qMacAddressNiew); err != nil { + return err + } + } + + } + + if o.MacAddressNisw != nil { + + // query param mac_address__nisw + var qrMacAddressNisw string + if o.MacAddressNisw != nil { + qrMacAddressNisw = *o.MacAddressNisw + } + qMacAddressNisw := qrMacAddressNisw + if qMacAddressNisw != "" { + if err := r.SetQueryParam("mac_address__nisw", qMacAddressNisw); err != nil { + return err + } + } + + } + if o.Mtu != nil { // query param mtu @@ -340,6 +953,86 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } + if o.MtuGt != nil { + + // query param mtu__gt + var qrMtuGt string + if o.MtuGt != nil { + qrMtuGt = *o.MtuGt + } + qMtuGt := qrMtuGt + if qMtuGt != "" { + if err := r.SetQueryParam("mtu__gt", qMtuGt); err != nil { + return err + } + } + + } + + if o.MtuGte != nil { + + // query param mtu__gte + var qrMtuGte string + if o.MtuGte != nil { + qrMtuGte = *o.MtuGte + } + qMtuGte := qrMtuGte + if qMtuGte != "" { + if err := r.SetQueryParam("mtu__gte", qMtuGte); err != nil { + return err + } + } + + } + + if o.MtuLt != nil { + + // query param mtu__lt + var qrMtuLt string + if o.MtuLt != nil { + qrMtuLt = *o.MtuLt + } + qMtuLt := qrMtuLt + if qMtuLt != "" { + if err := r.SetQueryParam("mtu__lt", qMtuLt); err != nil { + return err + } + } + + } + + if o.MtuLte != nil { + + // query param mtu__lte + var qrMtuLte string + if o.MtuLte != nil { + qrMtuLte = *o.MtuLte + } + qMtuLte := qrMtuLte + if qMtuLte != "" { + if err := r.SetQueryParam("mtu__lte", qMtuLte); err != nil { + return err + } + } + + } + + if o.Mtun != nil { + + // query param mtu__n + var qrMtun string + if o.Mtun != nil { + qrMtun = *o.Mtun + } + qMtun := qrMtun + if qMtun != "" { + if err := r.SetQueryParam("mtu__n", qMtun); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -356,6 +1049,150 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -404,6 +1241,22 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } + if o.VirtualMachinen != nil { + + // query param virtual_machine__n + var qrVirtualMachinen string + if o.VirtualMachinen != nil { + qrVirtualMachinen = *o.VirtualMachinen + } + qVirtualMachinen := qrVirtualMachinen + if qVirtualMachinen != "" { + if err := r.SetQueryParam("virtual_machine__n", qVirtualMachinen); err != nil { + return err + } + } + + } + if o.VirtualMachineID != nil { // query param virtual_machine_id @@ -420,6 +1273,22 @@ func (o *VirtualizationInterfacesListParams) WriteToRequest(r runtime.ClientRequ } + if o.VirtualMachineIDn != nil { + + // query param virtual_machine_id__n + var qrVirtualMachineIDn string + if o.VirtualMachineIDn != nil { + qrVirtualMachineIDn = *o.VirtualMachineIDn + } + qVirtualMachineIDn := qrVirtualMachineIDn + if qVirtualMachineIDn != "" { + if err := r.SetQueryParam("virtual_machine_id__n", qVirtualMachineIDn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_responses.go index 872e133bd..940a6a4e6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationInterfacesListReader is a Reader for the VirtualizationInterfacesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_parameters.go index 195cd2421..ba80d146d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationInterfacesPartialUpdateParams creates a new VirtualizationInterfacesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_responses.go index 068421079..150fe749f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationInterfacesPartialUpdateReader is a Reader for the VirtualizationInterfacesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_parameters.go index 3f1fdff2f..31150f505 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationInterfacesReadParams creates a new VirtualizationInterfacesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_responses.go index 53cf4575e..ff8328099 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationInterfacesReadReader is a Reader for the VirtualizationInterfacesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_parameters.go index 573367ad6..2ce24146b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationInterfacesUpdateParams creates a new VirtualizationInterfacesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_responses.go index 02c1d977d..9907c465f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_interfaces_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationInterfacesUpdateReader is a Reader for the VirtualizationInterfacesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_parameters.go index efd41be5c..edfb809f3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_parameters.go @@ -28,10 +28,9 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationVirtualMachinesCreateParams creates a new VirtualizationVirtualMachinesCreateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_responses.go index 29c42d810..77d9c2439 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_create_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationVirtualMachinesCreateReader is a Reader for the VirtualizationVirtualMachinesCreate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_parameters.go index 039b78442..6cf47ccf3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationVirtualMachinesDeleteParams creates a new VirtualizationVirtualMachinesDeleteParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_responses.go index cb75a1df2..881557915 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_delete_responses.go @@ -24,8 +24,7 @@ import ( "fmt" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // VirtualizationVirtualMachinesDeleteReader is a Reader for the VirtualizationVirtualMachinesDelete structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go index 0b329b683..cc3f4e08e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationVirtualMachinesListParams creates a new VirtualizationVirtualMachinesListParams object @@ -79,16 +78,28 @@ type VirtualizationVirtualMachinesListParams struct { /*Cluster*/ Cluster *string + /*Clustern*/ + Clustern *string /*ClusterGroup*/ ClusterGroup *string + /*ClusterGroupn*/ + ClusterGroupn *string /*ClusterGroupID*/ ClusterGroupID *string + /*ClusterGroupIDn*/ + ClusterGroupIDn *string /*ClusterID*/ ClusterID *string + /*ClusterIDn*/ + ClusterIDn *string /*ClusterType*/ ClusterType *string + /*ClusterTypen*/ + ClusterTypen *string /*ClusterTypeID*/ ClusterTypeID *string + /*ClusterTypeIDn*/ + ClusterTypeIDn *string /*Created*/ Created *string /*CreatedGte*/ @@ -97,13 +108,28 @@ type VirtualizationVirtualMachinesListParams struct { CreatedLte *string /*Disk*/ Disk *string + /*DiskGt*/ + DiskGt *string + /*DiskGte*/ + DiskGte *string + /*DiskLt*/ + DiskLt *string + /*DiskLte*/ + DiskLte *string + /*Diskn*/ + Diskn *string /*ID*/ ID *string - /*IDIn - Multiple values may be separated by commas. - - */ - IDIn *string + /*IDGt*/ + IDGt *string + /*IDGte*/ + IDGte *string + /*IDLt*/ + IDLt *string + /*IDLte*/ + IDLte *string + /*IDn*/ + IDn *string /*LastUpdated*/ LastUpdated *string /*LastUpdatedGte*/ @@ -119,10 +145,56 @@ type VirtualizationVirtualMachinesListParams struct { LocalContextData *string /*MacAddress*/ MacAddress *string + /*MacAddressIc*/ + MacAddressIc *string + /*MacAddressIe*/ + MacAddressIe *string + /*MacAddressIew*/ + MacAddressIew *string + /*MacAddressIsw*/ + MacAddressIsw *string + /*MacAddressn*/ + MacAddressn *string + /*MacAddressNic*/ + MacAddressNic *string + /*MacAddressNie*/ + MacAddressNie *string + /*MacAddressNiew*/ + MacAddressNiew *string + /*MacAddressNisw*/ + MacAddressNisw *string /*Memory*/ Memory *string + /*MemoryGt*/ + MemoryGt *string + /*MemoryGte*/ + MemoryGte *string + /*MemoryLt*/ + MemoryLt *string + /*MemoryLte*/ + MemoryLte *string + /*Memoryn*/ + Memoryn *string /*Name*/ Name *string + /*NameIc*/ + NameIc *string + /*NameIe*/ + NameIe *string + /*NameIew*/ + NameIew *string + /*NameIsw*/ + NameIsw *string + /*Namen*/ + Namen *string + /*NameNic*/ + NameNic *string + /*NameNie*/ + NameNie *string + /*NameNiew*/ + NameNiew *string + /*NameNisw*/ + NameNisw *string /*Offset The initial index from which to return the results. @@ -130,36 +202,74 @@ type VirtualizationVirtualMachinesListParams struct { Offset *int64 /*Platform*/ Platform *string + /*Platformn*/ + Platformn *string /*PlatformID*/ PlatformID *string + /*PlatformIDn*/ + PlatformIDn *string /*Q*/ Q *string /*Region*/ Region *string + /*Regionn*/ + Regionn *string /*RegionID*/ RegionID *string + /*RegionIDn*/ + RegionIDn *string /*Role*/ Role *string + /*Rolen*/ + Rolen *string /*RoleID*/ RoleID *string + /*RoleIDn*/ + RoleIDn *string /*Site*/ Site *string + /*Siten*/ + Siten *string /*SiteID*/ SiteID *string + /*SiteIDn*/ + SiteIDn *string /*Status*/ Status *string + /*Statusn*/ + Statusn *string /*Tag*/ Tag *string + /*Tagn*/ + Tagn *string /*Tenant*/ Tenant *string + /*Tenantn*/ + Tenantn *string /*TenantGroup*/ TenantGroup *string + /*TenantGroupn*/ + TenantGroupn *string /*TenantGroupID*/ TenantGroupID *string + /*TenantGroupIDn*/ + TenantGroupIDn *string /*TenantID*/ TenantID *string + /*TenantIDn*/ + TenantIDn *string /*Vcpus*/ Vcpus *string + /*VcpusGt*/ + VcpusGt *string + /*VcpusGte*/ + VcpusGte *string + /*VcpusLt*/ + VcpusLt *string + /*VcpusLte*/ + VcpusLte *string + /*Vcpusn*/ + Vcpusn *string timeout time.Duration Context context.Context @@ -210,6 +320,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetCluster(cluster *string) { o.Cluster = cluster } +// WithClustern adds the clustern to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithClustern(clustern *string) *VirtualizationVirtualMachinesListParams { + o.SetClustern(clustern) + return o +} + +// SetClustern adds the clusterN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetClustern(clustern *string) { + o.Clustern = clustern +} + // WithClusterGroup adds the clusterGroup to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithClusterGroup(clusterGroup *string) *VirtualizationVirtualMachinesListParams { o.SetClusterGroup(clusterGroup) @@ -221,6 +342,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetClusterGroup(clusterGroup * o.ClusterGroup = clusterGroup } +// WithClusterGroupn adds the clusterGroupn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithClusterGroupn(clusterGroupn *string) *VirtualizationVirtualMachinesListParams { + o.SetClusterGroupn(clusterGroupn) + return o +} + +// SetClusterGroupn adds the clusterGroupN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetClusterGroupn(clusterGroupn *string) { + o.ClusterGroupn = clusterGroupn +} + // WithClusterGroupID adds the clusterGroupID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithClusterGroupID(clusterGroupID *string) *VirtualizationVirtualMachinesListParams { o.SetClusterGroupID(clusterGroupID) @@ -232,6 +364,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetClusterGroupID(clusterGroup o.ClusterGroupID = clusterGroupID } +// WithClusterGroupIDn adds the clusterGroupIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithClusterGroupIDn(clusterGroupIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetClusterGroupIDn(clusterGroupIDn) + return o +} + +// SetClusterGroupIDn adds the clusterGroupIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetClusterGroupIDn(clusterGroupIDn *string) { + o.ClusterGroupIDn = clusterGroupIDn +} + // WithClusterID adds the clusterID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithClusterID(clusterID *string) *VirtualizationVirtualMachinesListParams { o.SetClusterID(clusterID) @@ -243,6 +386,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetClusterID(clusterID *string o.ClusterID = clusterID } +// WithClusterIDn adds the clusterIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithClusterIDn(clusterIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetClusterIDn(clusterIDn) + return o +} + +// SetClusterIDn adds the clusterIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetClusterIDn(clusterIDn *string) { + o.ClusterIDn = clusterIDn +} + // WithClusterType adds the clusterType to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithClusterType(clusterType *string) *VirtualizationVirtualMachinesListParams { o.SetClusterType(clusterType) @@ -254,6 +408,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetClusterType(clusterType *st o.ClusterType = clusterType } +// WithClusterTypen adds the clusterTypen to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithClusterTypen(clusterTypen *string) *VirtualizationVirtualMachinesListParams { + o.SetClusterTypen(clusterTypen) + return o +} + +// SetClusterTypen adds the clusterTypeN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetClusterTypen(clusterTypen *string) { + o.ClusterTypen = clusterTypen +} + // WithClusterTypeID adds the clusterTypeID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithClusterTypeID(clusterTypeID *string) *VirtualizationVirtualMachinesListParams { o.SetClusterTypeID(clusterTypeID) @@ -265,6 +430,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetClusterTypeID(clusterTypeID o.ClusterTypeID = clusterTypeID } +// WithClusterTypeIDn adds the clusterTypeIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithClusterTypeIDn(clusterTypeIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetClusterTypeIDn(clusterTypeIDn) + return o +} + +// SetClusterTypeIDn adds the clusterTypeIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetClusterTypeIDn(clusterTypeIDn *string) { + o.ClusterTypeIDn = clusterTypeIDn +} + // WithCreated adds the created to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithCreated(created *string) *VirtualizationVirtualMachinesListParams { o.SetCreated(created) @@ -309,6 +485,61 @@ func (o *VirtualizationVirtualMachinesListParams) SetDisk(disk *string) { o.Disk = disk } +// WithDiskGt adds the diskGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithDiskGt(diskGt *string) *VirtualizationVirtualMachinesListParams { + o.SetDiskGt(diskGt) + return o +} + +// SetDiskGt adds the diskGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetDiskGt(diskGt *string) { + o.DiskGt = diskGt +} + +// WithDiskGte adds the diskGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithDiskGte(diskGte *string) *VirtualizationVirtualMachinesListParams { + o.SetDiskGte(diskGte) + return o +} + +// SetDiskGte adds the diskGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetDiskGte(diskGte *string) { + o.DiskGte = diskGte +} + +// WithDiskLt adds the diskLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithDiskLt(diskLt *string) *VirtualizationVirtualMachinesListParams { + o.SetDiskLt(diskLt) + return o +} + +// SetDiskLt adds the diskLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetDiskLt(diskLt *string) { + o.DiskLt = diskLt +} + +// WithDiskLte adds the diskLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithDiskLte(diskLte *string) *VirtualizationVirtualMachinesListParams { + o.SetDiskLte(diskLte) + return o +} + +// SetDiskLte adds the diskLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetDiskLte(diskLte *string) { + o.DiskLte = diskLte +} + +// WithDiskn adds the diskn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithDiskn(diskn *string) *VirtualizationVirtualMachinesListParams { + o.SetDiskn(diskn) + return o +} + +// SetDiskn adds the diskN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetDiskn(diskn *string) { + o.Diskn = diskn +} + // WithID adds the id to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithID(id *string) *VirtualizationVirtualMachinesListParams { o.SetID(id) @@ -320,15 +551,59 @@ func (o *VirtualizationVirtualMachinesListParams) SetID(id *string) { o.ID = id } -// WithIDIn adds the iDIn to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) WithIDIn(iDIn *string) *VirtualizationVirtualMachinesListParams { - o.SetIDIn(iDIn) +// WithIDGt adds the iDGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithIDGt(iDGt *string) *VirtualizationVirtualMachinesListParams { + o.SetIDGt(iDGt) + return o +} + +// SetIDGt adds the idGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetIDGt(iDGt *string) { + o.IDGt = iDGt +} + +// WithIDGte adds the iDGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithIDGte(iDGte *string) *VirtualizationVirtualMachinesListParams { + o.SetIDGte(iDGte) + return o +} + +// SetIDGte adds the idGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetIDGte(iDGte *string) { + o.IDGte = iDGte +} + +// WithIDLt adds the iDLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithIDLt(iDLt *string) *VirtualizationVirtualMachinesListParams { + o.SetIDLt(iDLt) + return o +} + +// SetIDLt adds the idLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetIDLt(iDLt *string) { + o.IDLt = iDLt +} + +// WithIDLte adds the iDLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithIDLte(iDLte *string) *VirtualizationVirtualMachinesListParams { + o.SetIDLte(iDLte) + return o +} + +// SetIDLte adds the idLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetIDLte(iDLte *string) { + o.IDLte = iDLte +} + +// WithIDn adds the iDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithIDn(iDn *string) *VirtualizationVirtualMachinesListParams { + o.SetIDn(iDn) return o } -// SetIDIn adds the idIn to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) SetIDIn(iDIn *string) { - o.IDIn = iDIn +// SetIDn adds the idN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetIDn(iDn *string) { + o.IDn = iDn } // WithLastUpdated adds the lastUpdated to the virtualization virtual machines list params @@ -397,6 +672,105 @@ func (o *VirtualizationVirtualMachinesListParams) SetMacAddress(macAddress *stri o.MacAddress = macAddress } +// WithMacAddressIc adds the macAddressIc to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIc(macAddressIc *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressIc(macAddressIc) + return o +} + +// SetMacAddressIc adds the macAddressIc to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIc(macAddressIc *string) { + o.MacAddressIc = macAddressIc +} + +// WithMacAddressIe adds the macAddressIe to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIe(macAddressIe *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressIe(macAddressIe) + return o +} + +// SetMacAddressIe adds the macAddressIe to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIe(macAddressIe *string) { + o.MacAddressIe = macAddressIe +} + +// WithMacAddressIew adds the macAddressIew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIew(macAddressIew *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressIew(macAddressIew) + return o +} + +// SetMacAddressIew adds the macAddressIew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIew(macAddressIew *string) { + o.MacAddressIew = macAddressIew +} + +// WithMacAddressIsw adds the macAddressIsw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressIsw(macAddressIsw *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressIsw(macAddressIsw) + return o +} + +// SetMacAddressIsw adds the macAddressIsw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressIsw(macAddressIsw *string) { + o.MacAddressIsw = macAddressIsw +} + +// WithMacAddressn adds the macAddressn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressn(macAddressn *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressn(macAddressn) + return o +} + +// SetMacAddressn adds the macAddressN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressn(macAddressn *string) { + o.MacAddressn = macAddressn +} + +// WithMacAddressNic adds the macAddressNic to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNic(macAddressNic *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressNic(macAddressNic) + return o +} + +// SetMacAddressNic adds the macAddressNic to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNic(macAddressNic *string) { + o.MacAddressNic = macAddressNic +} + +// WithMacAddressNie adds the macAddressNie to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNie(macAddressNie *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressNie(macAddressNie) + return o +} + +// SetMacAddressNie adds the macAddressNie to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNie(macAddressNie *string) { + o.MacAddressNie = macAddressNie +} + +// WithMacAddressNiew adds the macAddressNiew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNiew(macAddressNiew *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressNiew(macAddressNiew) + return o +} + +// SetMacAddressNiew adds the macAddressNiew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNiew(macAddressNiew *string) { + o.MacAddressNiew = macAddressNiew +} + +// WithMacAddressNisw adds the macAddressNisw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMacAddressNisw(macAddressNisw *string) *VirtualizationVirtualMachinesListParams { + o.SetMacAddressNisw(macAddressNisw) + return o +} + +// SetMacAddressNisw adds the macAddressNisw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMacAddressNisw(macAddressNisw *string) { + o.MacAddressNisw = macAddressNisw +} + // WithMemory adds the memory to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithMemory(memory *string) *VirtualizationVirtualMachinesListParams { o.SetMemory(memory) @@ -408,6 +782,61 @@ func (o *VirtualizationVirtualMachinesListParams) SetMemory(memory *string) { o.Memory = memory } +// WithMemoryGt adds the memoryGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMemoryGt(memoryGt *string) *VirtualizationVirtualMachinesListParams { + o.SetMemoryGt(memoryGt) + return o +} + +// SetMemoryGt adds the memoryGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMemoryGt(memoryGt *string) { + o.MemoryGt = memoryGt +} + +// WithMemoryGte adds the memoryGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMemoryGte(memoryGte *string) *VirtualizationVirtualMachinesListParams { + o.SetMemoryGte(memoryGte) + return o +} + +// SetMemoryGte adds the memoryGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMemoryGte(memoryGte *string) { + o.MemoryGte = memoryGte +} + +// WithMemoryLt adds the memoryLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMemoryLt(memoryLt *string) *VirtualizationVirtualMachinesListParams { + o.SetMemoryLt(memoryLt) + return o +} + +// SetMemoryLt adds the memoryLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMemoryLt(memoryLt *string) { + o.MemoryLt = memoryLt +} + +// WithMemoryLte adds the memoryLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMemoryLte(memoryLte *string) *VirtualizationVirtualMachinesListParams { + o.SetMemoryLte(memoryLte) + return o +} + +// SetMemoryLte adds the memoryLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMemoryLte(memoryLte *string) { + o.MemoryLte = memoryLte +} + +// WithMemoryn adds the memoryn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithMemoryn(memoryn *string) *VirtualizationVirtualMachinesListParams { + o.SetMemoryn(memoryn) + return o +} + +// SetMemoryn adds the memoryN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetMemoryn(memoryn *string) { + o.Memoryn = memoryn +} + // WithName adds the name to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithName(name *string) *VirtualizationVirtualMachinesListParams { o.SetName(name) @@ -419,6 +848,105 @@ func (o *VirtualizationVirtualMachinesListParams) SetName(name *string) { o.Name = name } +// WithNameIc adds the nameIc to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameIc(nameIc *string) *VirtualizationVirtualMachinesListParams { + o.SetNameIc(nameIc) + return o +} + +// SetNameIc adds the nameIc to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameIc(nameIc *string) { + o.NameIc = nameIc +} + +// WithNameIe adds the nameIe to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameIe(nameIe *string) *VirtualizationVirtualMachinesListParams { + o.SetNameIe(nameIe) + return o +} + +// SetNameIe adds the nameIe to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameIe(nameIe *string) { + o.NameIe = nameIe +} + +// WithNameIew adds the nameIew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameIew(nameIew *string) *VirtualizationVirtualMachinesListParams { + o.SetNameIew(nameIew) + return o +} + +// SetNameIew adds the nameIew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameIew(nameIew *string) { + o.NameIew = nameIew +} + +// WithNameIsw adds the nameIsw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameIsw(nameIsw *string) *VirtualizationVirtualMachinesListParams { + o.SetNameIsw(nameIsw) + return o +} + +// SetNameIsw adds the nameIsw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameIsw(nameIsw *string) { + o.NameIsw = nameIsw +} + +// WithNamen adds the namen to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNamen(namen *string) *VirtualizationVirtualMachinesListParams { + o.SetNamen(namen) + return o +} + +// SetNamen adds the nameN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNamen(namen *string) { + o.Namen = namen +} + +// WithNameNic adds the nameNic to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameNic(nameNic *string) *VirtualizationVirtualMachinesListParams { + o.SetNameNic(nameNic) + return o +} + +// SetNameNic adds the nameNic to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameNic(nameNic *string) { + o.NameNic = nameNic +} + +// WithNameNie adds the nameNie to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameNie(nameNie *string) *VirtualizationVirtualMachinesListParams { + o.SetNameNie(nameNie) + return o +} + +// SetNameNie adds the nameNie to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameNie(nameNie *string) { + o.NameNie = nameNie +} + +// WithNameNiew adds the nameNiew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameNiew(nameNiew *string) *VirtualizationVirtualMachinesListParams { + o.SetNameNiew(nameNiew) + return o +} + +// SetNameNiew adds the nameNiew to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameNiew(nameNiew *string) { + o.NameNiew = nameNiew +} + +// WithNameNisw adds the nameNisw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithNameNisw(nameNisw *string) *VirtualizationVirtualMachinesListParams { + o.SetNameNisw(nameNisw) + return o +} + +// SetNameNisw adds the nameNisw to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetNameNisw(nameNisw *string) { + o.NameNisw = nameNisw +} + // WithOffset adds the offset to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithOffset(offset *int64) *VirtualizationVirtualMachinesListParams { o.SetOffset(offset) @@ -441,6 +969,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetPlatform(platform *string) o.Platform = platform } +// WithPlatformn adds the platformn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithPlatformn(platformn *string) *VirtualizationVirtualMachinesListParams { + o.SetPlatformn(platformn) + return o +} + +// SetPlatformn adds the platformN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetPlatformn(platformn *string) { + o.Platformn = platformn +} + // WithPlatformID adds the platformID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithPlatformID(platformID *string) *VirtualizationVirtualMachinesListParams { o.SetPlatformID(platformID) @@ -452,6 +991,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetPlatformID(platformID *stri o.PlatformID = platformID } +// WithPlatformIDn adds the platformIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithPlatformIDn(platformIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetPlatformIDn(platformIDn) + return o +} + +// SetPlatformIDn adds the platformIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetPlatformIDn(platformIDn *string) { + o.PlatformIDn = platformIDn +} + // WithQ adds the q to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithQ(q *string) *VirtualizationVirtualMachinesListParams { o.SetQ(q) @@ -474,6 +1024,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetRegion(region *string) { o.Region = region } +// WithRegionn adds the regionn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithRegionn(regionn *string) *VirtualizationVirtualMachinesListParams { + o.SetRegionn(regionn) + return o +} + +// SetRegionn adds the regionN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetRegionn(regionn *string) { + o.Regionn = regionn +} + // WithRegionID adds the regionID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithRegionID(regionID *string) *VirtualizationVirtualMachinesListParams { o.SetRegionID(regionID) @@ -485,6 +1046,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetRegionID(regionID *string) o.RegionID = regionID } +// WithRegionIDn adds the regionIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithRegionIDn(regionIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetRegionIDn(regionIDn) + return o +} + +// SetRegionIDn adds the regionIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetRegionIDn(regionIDn *string) { + o.RegionIDn = regionIDn +} + // WithRole adds the role to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithRole(role *string) *VirtualizationVirtualMachinesListParams { o.SetRole(role) @@ -496,6 +1068,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetRole(role *string) { o.Role = role } +// WithRolen adds the rolen to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithRolen(rolen *string) *VirtualizationVirtualMachinesListParams { + o.SetRolen(rolen) + return o +} + +// SetRolen adds the roleN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetRolen(rolen *string) { + o.Rolen = rolen +} + // WithRoleID adds the roleID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithRoleID(roleID *string) *VirtualizationVirtualMachinesListParams { o.SetRoleID(roleID) @@ -507,6 +1090,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetRoleID(roleID *string) { o.RoleID = roleID } +// WithRoleIDn adds the roleIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithRoleIDn(roleIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetRoleIDn(roleIDn) + return o +} + +// SetRoleIDn adds the roleIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetRoleIDn(roleIDn *string) { + o.RoleIDn = roleIDn +} + // WithSite adds the site to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithSite(site *string) *VirtualizationVirtualMachinesListParams { o.SetSite(site) @@ -518,6 +1112,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetSite(site *string) { o.Site = site } +// WithSiten adds the siten to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithSiten(siten *string) *VirtualizationVirtualMachinesListParams { + o.SetSiten(siten) + return o +} + +// SetSiten adds the siteN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetSiten(siten *string) { + o.Siten = siten +} + // WithSiteID adds the siteID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithSiteID(siteID *string) *VirtualizationVirtualMachinesListParams { o.SetSiteID(siteID) @@ -529,6 +1134,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetSiteID(siteID *string) { o.SiteID = siteID } +// WithSiteIDn adds the siteIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithSiteIDn(siteIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetSiteIDn(siteIDn) + return o +} + +// SetSiteIDn adds the siteIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetSiteIDn(siteIDn *string) { + o.SiteIDn = siteIDn +} + // WithStatus adds the status to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithStatus(status *string) *VirtualizationVirtualMachinesListParams { o.SetStatus(status) @@ -540,6 +1156,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetStatus(status *string) { o.Status = status } +// WithStatusn adds the statusn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithStatusn(statusn *string) *VirtualizationVirtualMachinesListParams { + o.SetStatusn(statusn) + return o +} + +// SetStatusn adds the statusN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetStatusn(statusn *string) { + o.Statusn = statusn +} + // WithTag adds the tag to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithTag(tag *string) *VirtualizationVirtualMachinesListParams { o.SetTag(tag) @@ -551,6 +1178,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetTag(tag *string) { o.Tag = tag } +// WithTagn adds the tagn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithTagn(tagn *string) *VirtualizationVirtualMachinesListParams { + o.SetTagn(tagn) + return o +} + +// SetTagn adds the tagN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetTagn(tagn *string) { + o.Tagn = tagn +} + // WithTenant adds the tenant to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithTenant(tenant *string) *VirtualizationVirtualMachinesListParams { o.SetTenant(tenant) @@ -562,6 +1200,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetTenant(tenant *string) { o.Tenant = tenant } +// WithTenantn adds the tenantn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithTenantn(tenantn *string) *VirtualizationVirtualMachinesListParams { + o.SetTenantn(tenantn) + return o +} + +// SetTenantn adds the tenantN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetTenantn(tenantn *string) { + o.Tenantn = tenantn +} + // WithTenantGroup adds the tenantGroup to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithTenantGroup(tenantGroup *string) *VirtualizationVirtualMachinesListParams { o.SetTenantGroup(tenantGroup) @@ -573,6 +1222,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetTenantGroup(tenantGroup *st o.TenantGroup = tenantGroup } +// WithTenantGroupn adds the tenantGroupn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithTenantGroupn(tenantGroupn *string) *VirtualizationVirtualMachinesListParams { + o.SetTenantGroupn(tenantGroupn) + return o +} + +// SetTenantGroupn adds the tenantGroupN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetTenantGroupn(tenantGroupn *string) { + o.TenantGroupn = tenantGroupn +} + // WithTenantGroupID adds the tenantGroupID to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithTenantGroupID(tenantGroupID *string) *VirtualizationVirtualMachinesListParams { o.SetTenantGroupID(tenantGroupID) @@ -584,9 +1244,20 @@ func (o *VirtualizationVirtualMachinesListParams) SetTenantGroupID(tenantGroupID o.TenantGroupID = tenantGroupID } -// WithTenantID adds the tenantID to the virtualization virtual machines list params -func (o *VirtualizationVirtualMachinesListParams) WithTenantID(tenantID *string) *VirtualizationVirtualMachinesListParams { - o.SetTenantID(tenantID) +// WithTenantGroupIDn adds the tenantGroupIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetTenantGroupIDn(tenantGroupIDn) + return o +} + +// SetTenantGroupIDn adds the tenantGroupIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetTenantGroupIDn(tenantGroupIDn *string) { + o.TenantGroupIDn = tenantGroupIDn +} + +// WithTenantID adds the tenantID to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithTenantID(tenantID *string) *VirtualizationVirtualMachinesListParams { + o.SetTenantID(tenantID) return o } @@ -595,6 +1266,17 @@ func (o *VirtualizationVirtualMachinesListParams) SetTenantID(tenantID *string) o.TenantID = tenantID } +// WithTenantIDn adds the tenantIDn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithTenantIDn(tenantIDn *string) *VirtualizationVirtualMachinesListParams { + o.SetTenantIDn(tenantIDn) + return o +} + +// SetTenantIDn adds the tenantIdN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetTenantIDn(tenantIDn *string) { + o.TenantIDn = tenantIDn +} + // WithVcpus adds the vcpus to the virtualization virtual machines list params func (o *VirtualizationVirtualMachinesListParams) WithVcpus(vcpus *string) *VirtualizationVirtualMachinesListParams { o.SetVcpus(vcpus) @@ -606,6 +1288,61 @@ func (o *VirtualizationVirtualMachinesListParams) SetVcpus(vcpus *string) { o.Vcpus = vcpus } +// WithVcpusGt adds the vcpusGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithVcpusGt(vcpusGt *string) *VirtualizationVirtualMachinesListParams { + o.SetVcpusGt(vcpusGt) + return o +} + +// SetVcpusGt adds the vcpusGt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetVcpusGt(vcpusGt *string) { + o.VcpusGt = vcpusGt +} + +// WithVcpusGte adds the vcpusGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithVcpusGte(vcpusGte *string) *VirtualizationVirtualMachinesListParams { + o.SetVcpusGte(vcpusGte) + return o +} + +// SetVcpusGte adds the vcpusGte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetVcpusGte(vcpusGte *string) { + o.VcpusGte = vcpusGte +} + +// WithVcpusLt adds the vcpusLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithVcpusLt(vcpusLt *string) *VirtualizationVirtualMachinesListParams { + o.SetVcpusLt(vcpusLt) + return o +} + +// SetVcpusLt adds the vcpusLt to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetVcpusLt(vcpusLt *string) { + o.VcpusLt = vcpusLt +} + +// WithVcpusLte adds the vcpusLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithVcpusLte(vcpusLte *string) *VirtualizationVirtualMachinesListParams { + o.SetVcpusLte(vcpusLte) + return o +} + +// SetVcpusLte adds the vcpusLte to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetVcpusLte(vcpusLte *string) { + o.VcpusLte = vcpusLte +} + +// WithVcpusn adds the vcpusn to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) WithVcpusn(vcpusn *string) *VirtualizationVirtualMachinesListParams { + o.SetVcpusn(vcpusn) + return o +} + +// SetVcpusn adds the vcpusN to the virtualization virtual machines list params +func (o *VirtualizationVirtualMachinesListParams) SetVcpusn(vcpusn *string) { + o.Vcpusn = vcpusn +} + // WriteToRequest writes these params to a swagger request func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -630,6 +1367,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.Clustern != nil { + + // query param cluster__n + var qrClustern string + if o.Clustern != nil { + qrClustern = *o.Clustern + } + qClustern := qrClustern + if qClustern != "" { + if err := r.SetQueryParam("cluster__n", qClustern); err != nil { + return err + } + } + + } + if o.ClusterGroup != nil { // query param cluster_group @@ -646,6 +1399,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.ClusterGroupn != nil { + + // query param cluster_group__n + var qrClusterGroupn string + if o.ClusterGroupn != nil { + qrClusterGroupn = *o.ClusterGroupn + } + qClusterGroupn := qrClusterGroupn + if qClusterGroupn != "" { + if err := r.SetQueryParam("cluster_group__n", qClusterGroupn); err != nil { + return err + } + } + + } + if o.ClusterGroupID != nil { // query param cluster_group_id @@ -662,6 +1431,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.ClusterGroupIDn != nil { + + // query param cluster_group_id__n + var qrClusterGroupIDn string + if o.ClusterGroupIDn != nil { + qrClusterGroupIDn = *o.ClusterGroupIDn + } + qClusterGroupIDn := qrClusterGroupIDn + if qClusterGroupIDn != "" { + if err := r.SetQueryParam("cluster_group_id__n", qClusterGroupIDn); err != nil { + return err + } + } + + } + if o.ClusterID != nil { // query param cluster_id @@ -678,6 +1463,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.ClusterIDn != nil { + + // query param cluster_id__n + var qrClusterIDn string + if o.ClusterIDn != nil { + qrClusterIDn = *o.ClusterIDn + } + qClusterIDn := qrClusterIDn + if qClusterIDn != "" { + if err := r.SetQueryParam("cluster_id__n", qClusterIDn); err != nil { + return err + } + } + + } + if o.ClusterType != nil { // query param cluster_type @@ -694,6 +1495,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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 @@ -710,6 +1527,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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 @@ -774,6 +1607,86 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.DiskGt != nil { + + // query param disk__gt + var qrDiskGt string + if o.DiskGt != nil { + qrDiskGt = *o.DiskGt + } + qDiskGt := qrDiskGt + if qDiskGt != "" { + if err := r.SetQueryParam("disk__gt", qDiskGt); err != nil { + return err + } + } + + } + + if o.DiskGte != nil { + + // query param disk__gte + var qrDiskGte string + if o.DiskGte != nil { + qrDiskGte = *o.DiskGte + } + qDiskGte := qrDiskGte + if qDiskGte != "" { + if err := r.SetQueryParam("disk__gte", qDiskGte); err != nil { + return err + } + } + + } + + if o.DiskLt != nil { + + // query param disk__lt + var qrDiskLt string + if o.DiskLt != nil { + qrDiskLt = *o.DiskLt + } + qDiskLt := qrDiskLt + if qDiskLt != "" { + if err := r.SetQueryParam("disk__lt", qDiskLt); err != nil { + return err + } + } + + } + + if o.DiskLte != nil { + + // query param disk__lte + var qrDiskLte string + if o.DiskLte != nil { + qrDiskLte = *o.DiskLte + } + qDiskLte := qrDiskLte + if qDiskLte != "" { + if err := r.SetQueryParam("disk__lte", qDiskLte); err != nil { + return err + } + } + + } + + if o.Diskn != nil { + + // query param disk__n + var qrDiskn string + if o.Diskn != nil { + qrDiskn = *o.Diskn + } + qDiskn := qrDiskn + if qDiskn != "" { + if err := r.SetQueryParam("disk__n", qDiskn); err != nil { + return err + } + } + + } + if o.ID != nil { // query param id @@ -790,16 +1703,80 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } - if o.IDIn != nil { + if o.IDGt != nil { + + // query param id__gt + var qrIDGt string + if o.IDGt != nil { + qrIDGt = *o.IDGt + } + qIDGt := qrIDGt + if qIDGt != "" { + if err := r.SetQueryParam("id__gt", qIDGt); err != nil { + return err + } + } + + } + + if o.IDGte != nil { + + // query param id__gte + var qrIDGte string + if o.IDGte != nil { + qrIDGte = *o.IDGte + } + qIDGte := qrIDGte + if qIDGte != "" { + if err := r.SetQueryParam("id__gte", qIDGte); err != nil { + return err + } + } + + } + + if o.IDLt != nil { + + // query param id__lt + var qrIDLt string + if o.IDLt != nil { + qrIDLt = *o.IDLt + } + qIDLt := qrIDLt + if qIDLt != "" { + if err := r.SetQueryParam("id__lt", qIDLt); err != nil { + return err + } + } + + } + + if o.IDLte != nil { + + // query param id__lte + var qrIDLte string + if o.IDLte != nil { + qrIDLte = *o.IDLte + } + qIDLte := qrIDLte + if qIDLte != "" { + if err := r.SetQueryParam("id__lte", qIDLte); err != nil { + return err + } + } + + } + + if o.IDn != nil { - // query param id__in - var qrIDIn string - if o.IDIn != nil { - qrIDIn = *o.IDIn + // query param id__n + var qrIDn string + if o.IDn != nil { + qrIDn = *o.IDn } - qIDIn := qrIDIn - if qIDIn != "" { - if err := r.SetQueryParam("id__in", qIDIn); err != nil { + qIDn := qrIDn + if qIDn != "" { + if err := r.SetQueryParam("id__n", qIDn); err != nil { return err } } @@ -902,6 +1879,150 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.MacAddressIc != nil { + + // query param mac_address__ic + var qrMacAddressIc string + if o.MacAddressIc != nil { + qrMacAddressIc = *o.MacAddressIc + } + qMacAddressIc := qrMacAddressIc + if qMacAddressIc != "" { + if err := r.SetQueryParam("mac_address__ic", qMacAddressIc); err != nil { + return err + } + } + + } + + if o.MacAddressIe != nil { + + // query param mac_address__ie + var qrMacAddressIe string + if o.MacAddressIe != nil { + qrMacAddressIe = *o.MacAddressIe + } + qMacAddressIe := qrMacAddressIe + if qMacAddressIe != "" { + if err := r.SetQueryParam("mac_address__ie", qMacAddressIe); err != nil { + return err + } + } + + } + + if o.MacAddressIew != nil { + + // query param mac_address__iew + var qrMacAddressIew string + if o.MacAddressIew != nil { + qrMacAddressIew = *o.MacAddressIew + } + qMacAddressIew := qrMacAddressIew + if qMacAddressIew != "" { + if err := r.SetQueryParam("mac_address__iew", qMacAddressIew); err != nil { + return err + } + } + + } + + if o.MacAddressIsw != nil { + + // query param mac_address__isw + var qrMacAddressIsw string + if o.MacAddressIsw != nil { + qrMacAddressIsw = *o.MacAddressIsw + } + qMacAddressIsw := qrMacAddressIsw + if qMacAddressIsw != "" { + if err := r.SetQueryParam("mac_address__isw", qMacAddressIsw); err != nil { + return err + } + } + + } + + if o.MacAddressn != nil { + + // query param mac_address__n + var qrMacAddressn string + if o.MacAddressn != nil { + qrMacAddressn = *o.MacAddressn + } + qMacAddressn := qrMacAddressn + if qMacAddressn != "" { + if err := r.SetQueryParam("mac_address__n", qMacAddressn); err != nil { + return err + } + } + + } + + if o.MacAddressNic != nil { + + // query param mac_address__nic + var qrMacAddressNic string + if o.MacAddressNic != nil { + qrMacAddressNic = *o.MacAddressNic + } + qMacAddressNic := qrMacAddressNic + if qMacAddressNic != "" { + if err := r.SetQueryParam("mac_address__nic", qMacAddressNic); err != nil { + return err + } + } + + } + + if o.MacAddressNie != nil { + + // query param mac_address__nie + var qrMacAddressNie string + if o.MacAddressNie != nil { + qrMacAddressNie = *o.MacAddressNie + } + qMacAddressNie := qrMacAddressNie + if qMacAddressNie != "" { + if err := r.SetQueryParam("mac_address__nie", qMacAddressNie); err != nil { + return err + } + } + + } + + if o.MacAddressNiew != nil { + + // query param mac_address__niew + var qrMacAddressNiew string + if o.MacAddressNiew != nil { + qrMacAddressNiew = *o.MacAddressNiew + } + qMacAddressNiew := qrMacAddressNiew + if qMacAddressNiew != "" { + if err := r.SetQueryParam("mac_address__niew", qMacAddressNiew); err != nil { + return err + } + } + + } + + if o.MacAddressNisw != nil { + + // query param mac_address__nisw + var qrMacAddressNisw string + if o.MacAddressNisw != nil { + qrMacAddressNisw = *o.MacAddressNisw + } + qMacAddressNisw := qrMacAddressNisw + if qMacAddressNisw != "" { + if err := r.SetQueryParam("mac_address__nisw", qMacAddressNisw); err != nil { + return err + } + } + + } + if o.Memory != nil { // query param memory @@ -918,6 +2039,86 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.MemoryGt != nil { + + // query param memory__gt + var qrMemoryGt string + if o.MemoryGt != nil { + qrMemoryGt = *o.MemoryGt + } + qMemoryGt := qrMemoryGt + if qMemoryGt != "" { + if err := r.SetQueryParam("memory__gt", qMemoryGt); err != nil { + return err + } + } + + } + + if o.MemoryGte != nil { + + // query param memory__gte + var qrMemoryGte string + if o.MemoryGte != nil { + qrMemoryGte = *o.MemoryGte + } + qMemoryGte := qrMemoryGte + if qMemoryGte != "" { + if err := r.SetQueryParam("memory__gte", qMemoryGte); err != nil { + return err + } + } + + } + + if o.MemoryLt != nil { + + // query param memory__lt + var qrMemoryLt string + if o.MemoryLt != nil { + qrMemoryLt = *o.MemoryLt + } + qMemoryLt := qrMemoryLt + if qMemoryLt != "" { + if err := r.SetQueryParam("memory__lt", qMemoryLt); err != nil { + return err + } + } + + } + + if o.MemoryLte != nil { + + // query param memory__lte + var qrMemoryLte string + if o.MemoryLte != nil { + qrMemoryLte = *o.MemoryLte + } + qMemoryLte := qrMemoryLte + if qMemoryLte != "" { + if err := r.SetQueryParam("memory__lte", qMemoryLte); err != nil { + return err + } + } + + } + + if o.Memoryn != nil { + + // query param memory__n + var qrMemoryn string + if o.Memoryn != nil { + qrMemoryn = *o.Memoryn + } + qMemoryn := qrMemoryn + if qMemoryn != "" { + if err := r.SetQueryParam("memory__n", qMemoryn); err != nil { + return err + } + } + + } + if o.Name != nil { // query param name @@ -934,6 +2135,150 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.NameIc != nil { + + // query param name__ic + var qrNameIc string + if o.NameIc != nil { + qrNameIc = *o.NameIc + } + qNameIc := qrNameIc + if qNameIc != "" { + if err := r.SetQueryParam("name__ic", qNameIc); err != nil { + return err + } + } + + } + + if o.NameIe != nil { + + // query param name__ie + var qrNameIe string + if o.NameIe != nil { + qrNameIe = *o.NameIe + } + qNameIe := qrNameIe + if qNameIe != "" { + if err := r.SetQueryParam("name__ie", qNameIe); err != nil { + return err + } + } + + } + + if o.NameIew != nil { + + // query param name__iew + var qrNameIew string + if o.NameIew != nil { + qrNameIew = *o.NameIew + } + qNameIew := qrNameIew + if qNameIew != "" { + if err := r.SetQueryParam("name__iew", qNameIew); err != nil { + return err + } + } + + } + + if o.NameIsw != nil { + + // query param name__isw + var qrNameIsw string + if o.NameIsw != nil { + qrNameIsw = *o.NameIsw + } + qNameIsw := qrNameIsw + if qNameIsw != "" { + if err := r.SetQueryParam("name__isw", qNameIsw); err != nil { + return err + } + } + + } + + if o.Namen != nil { + + // query param name__n + var qrNamen string + if o.Namen != nil { + qrNamen = *o.Namen + } + qNamen := qrNamen + if qNamen != "" { + if err := r.SetQueryParam("name__n", qNamen); err != nil { + return err + } + } + + } + + if o.NameNic != nil { + + // query param name__nic + var qrNameNic string + if o.NameNic != nil { + qrNameNic = *o.NameNic + } + qNameNic := qrNameNic + if qNameNic != "" { + if err := r.SetQueryParam("name__nic", qNameNic); err != nil { + return err + } + } + + } + + if o.NameNie != nil { + + // query param name__nie + var qrNameNie string + if o.NameNie != nil { + qrNameNie = *o.NameNie + } + qNameNie := qrNameNie + if qNameNie != "" { + if err := r.SetQueryParam("name__nie", qNameNie); err != nil { + return err + } + } + + } + + if o.NameNiew != nil { + + // query param name__niew + var qrNameNiew string + if o.NameNiew != nil { + qrNameNiew = *o.NameNiew + } + qNameNiew := qrNameNiew + if qNameNiew != "" { + if err := r.SetQueryParam("name__niew", qNameNiew); err != nil { + return err + } + } + + } + + if o.NameNisw != nil { + + // query param name__nisw + var qrNameNisw string + if o.NameNisw != nil { + qrNameNisw = *o.NameNisw + } + qNameNisw := qrNameNisw + if qNameNisw != "" { + if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil { + return err + } + } + + } + if o.Offset != nil { // query param offset @@ -966,6 +2311,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.Platformn != nil { + + // query param platform__n + var qrPlatformn string + if o.Platformn != nil { + qrPlatformn = *o.Platformn + } + qPlatformn := qrPlatformn + if qPlatformn != "" { + if err := r.SetQueryParam("platform__n", qPlatformn); err != nil { + return err + } + } + + } + if o.PlatformID != nil { // query param platform_id @@ -982,6 +2343,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.PlatformIDn != nil { + + // query param platform_id__n + var qrPlatformIDn string + if o.PlatformIDn != nil { + qrPlatformIDn = *o.PlatformIDn + } + qPlatformIDn := qrPlatformIDn + if qPlatformIDn != "" { + if err := r.SetQueryParam("platform_id__n", qPlatformIDn); err != nil { + return err + } + } + + } + if o.Q != nil { // query param q @@ -1014,6 +2391,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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 @@ -1030,6 +2423,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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.Role != nil { // query param role @@ -1046,6 +2455,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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 @@ -1062,6 +2487,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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.Site != nil { // query param site @@ -1078,6 +2519,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.Siten != nil { + + // query param site__n + var qrSiten string + if o.Siten != nil { + qrSiten = *o.Siten + } + qSiten := qrSiten + if qSiten != "" { + if err := r.SetQueryParam("site__n", qSiten); err != nil { + return err + } + } + + } + if o.SiteID != nil { // query param site_id @@ -1094,6 +2551,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.SiteIDn != nil { + + // query param site_id__n + var qrSiteIDn string + if o.SiteIDn != nil { + qrSiteIDn = *o.SiteIDn + } + qSiteIDn := qrSiteIDn + if qSiteIDn != "" { + if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil { + return err + } + } + + } + if o.Status != nil { // query param status @@ -1110,6 +2583,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.Statusn != nil { + + // query param status__n + var qrStatusn string + if o.Statusn != nil { + qrStatusn = *o.Statusn + } + qStatusn := qrStatusn + if qStatusn != "" { + if err := r.SetQueryParam("status__n", qStatusn); err != nil { + return err + } + } + + } + if o.Tag != nil { // query param tag @@ -1126,6 +2615,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + 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 @@ -1142,6 +2647,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.Tenantn != nil { + + // query param tenant__n + var qrTenantn string + if o.Tenantn != nil { + qrTenantn = *o.Tenantn + } + qTenantn := qrTenantn + if qTenantn != "" { + if err := r.SetQueryParam("tenant__n", qTenantn); err != nil { + return err + } + } + + } + if o.TenantGroup != nil { // query param tenant_group @@ -1158,6 +2679,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.TenantGroupn != nil { + + // query param tenant_group__n + var qrTenantGroupn string + if o.TenantGroupn != nil { + qrTenantGroupn = *o.TenantGroupn + } + qTenantGroupn := qrTenantGroupn + if qTenantGroupn != "" { + if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil { + return err + } + } + + } + if o.TenantGroupID != nil { // query param tenant_group_id @@ -1174,6 +2711,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.TenantGroupIDn != nil { + + // query param tenant_group_id__n + var qrTenantGroupIDn string + if o.TenantGroupIDn != nil { + qrTenantGroupIDn = *o.TenantGroupIDn + } + qTenantGroupIDn := qrTenantGroupIDn + if qTenantGroupIDn != "" { + if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil { + return err + } + } + + } + if o.TenantID != nil { // query param tenant_id @@ -1190,6 +2743,22 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.TenantIDn != nil { + + // query param tenant_id__n + var qrTenantIDn string + if o.TenantIDn != nil { + qrTenantIDn = *o.TenantIDn + } + qTenantIDn := qrTenantIDn + if qTenantIDn != "" { + if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil { + return err + } + } + + } + if o.Vcpus != nil { // query param vcpus @@ -1206,6 +2775,86 @@ func (o *VirtualizationVirtualMachinesListParams) WriteToRequest(r runtime.Clien } + if o.VcpusGt != nil { + + // query param vcpus__gt + var qrVcpusGt string + if o.VcpusGt != nil { + qrVcpusGt = *o.VcpusGt + } + qVcpusGt := qrVcpusGt + if qVcpusGt != "" { + if err := r.SetQueryParam("vcpus__gt", qVcpusGt); err != nil { + return err + } + } + + } + + if o.VcpusGte != nil { + + // query param vcpus__gte + var qrVcpusGte string + if o.VcpusGte != nil { + qrVcpusGte = *o.VcpusGte + } + qVcpusGte := qrVcpusGte + if qVcpusGte != "" { + if err := r.SetQueryParam("vcpus__gte", qVcpusGte); err != nil { + return err + } + } + + } + + if o.VcpusLt != nil { + + // query param vcpus__lt + var qrVcpusLt string + if o.VcpusLt != nil { + qrVcpusLt = *o.VcpusLt + } + qVcpusLt := qrVcpusLt + if qVcpusLt != "" { + if err := r.SetQueryParam("vcpus__lt", qVcpusLt); err != nil { + return err + } + } + + } + + if o.VcpusLte != nil { + + // query param vcpus__lte + var qrVcpusLte string + if o.VcpusLte != nil { + qrVcpusLte = *o.VcpusLte + } + qVcpusLte := qrVcpusLte + if qVcpusLte != "" { + if err := r.SetQueryParam("vcpus__lte", qVcpusLte); err != nil { + return err + } + } + + } + + if o.Vcpusn != nil { + + // query param vcpus__n + var qrVcpusn string + if o.Vcpusn != nil { + qrVcpusn = *o.Vcpusn + } + qVcpusn := qrVcpusn + if qVcpusn != "" { + if err := r.SetQueryParam("vcpus__n", qVcpusn); err != nil { + return err + } + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_responses.go index 4b0162bc8..00552a488 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_list_responses.go @@ -27,12 +27,11 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationVirtualMachinesListReader is a Reader for the VirtualizationVirtualMachinesList structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_parameters.go index 037ca90c6..7641dac1c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationVirtualMachinesPartialUpdateParams creates a new VirtualizationVirtualMachinesPartialUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_responses.go index 81d10cc2f..201a589c3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_partial_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationVirtualMachinesPartialUpdateReader is a Reader for the VirtualizationVirtualMachinesPartialUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_parameters.go index 3452e13ce..98d685715 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_parameters.go @@ -28,9 +28,8 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - - strfmt "github.com/go-openapi/strfmt" ) // NewVirtualizationVirtualMachinesReadParams creates a new VirtualizationVirtualMachinesReadParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_responses.go index fcd367a1a..4bd3ebd43 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_read_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationVirtualMachinesReadReader is a Reader for the VirtualizationVirtualMachinesRead structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_parameters.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_parameters.go index f183a5000..124af3c86 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_parameters.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_parameters.go @@ -28,11 +28,10 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // NewVirtualizationVirtualMachinesUpdateParams creates a new VirtualizationVirtualMachinesUpdateParams object diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_responses.go b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_responses.go index 6112f3185..d26446dfe 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_responses.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/client/virtualization/virtualization_virtual_machines_update_responses.go @@ -25,10 +25,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - models "github.com/netbox-community/go-netbox/netbox/models" + "github.com/netbox-community/go-netbox/netbox/models" ) // VirtualizationVirtualMachinesUpdateReader is a Reader for the VirtualizationVirtualMachinesUpdate structure. diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/aggregate.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/aggregate.go index 053bd6b7e..ed279dcb7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/aggregate.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/aggregate.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Aggregate aggregate +// // swagger:model Aggregate type Aggregate struct { @@ -47,7 +48,7 @@ type Aggregate struct { DateAdded *strfmt.Date `json:"date_added,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // family @@ -148,7 +149,7 @@ func (m *Aggregate) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -249,16 +250,19 @@ func (m *Aggregate) UnmarshalBinary(b []byte) error { } // AggregateFamily Family +// // swagger:model AggregateFamily type AggregateFamily struct { // label // Required: true + // Enum: [IPv4 IPv6] Label *string `json:"label"` // value // Required: true - Value *string `json:"value"` + // Enum: [4 6] + Value *int64 `json:"value"` } // Validate validates this aggregate family @@ -279,12 +283,66 @@ func (m *AggregateFamily) Validate(formats strfmt.Registry) error { return nil } +var aggregateFamilyTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["IPv4","IPv6"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + aggregateFamilyTypeLabelPropEnum = append(aggregateFamilyTypeLabelPropEnum, v) + } +} + +const ( + + // AggregateFamilyLabelIPV4 captures enum value "IPv4" + AggregateFamilyLabelIPV4 string = "IPv4" + + // AggregateFamilyLabelIPV6 captures enum value "IPv6" + AggregateFamilyLabelIPV6 string = "IPv6" +) + +// prop value enum +func (m *AggregateFamily) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, aggregateFamilyTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *AggregateFamily) validateLabel(formats strfmt.Registry) error { if err := validate.Required("family"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("family"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var aggregateFamilyTypeValuePropEnum []interface{} + +func init() { + var res []int64 + if err := json.Unmarshal([]byte(`[4,6]`), &res); err != nil { + panic(err) + } + for _, v := range res { + aggregateFamilyTypeValuePropEnum = append(aggregateFamilyTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *AggregateFamily) validateValueEnum(path, location string, value int64) error { + if err := validate.Enum(path, location, value, aggregateFamilyTypeValuePropEnum); err != nil { + return err + } return nil } @@ -294,6 +352,11 @@ func (m *AggregateFamily) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("family"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/available_ip.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/available_ip.go new file mode 100644 index 000000000..d267efb45 --- /dev/null +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/available_ip.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright 2020 The go-netbox Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// AvailableIP available IP +// +// swagger:model AvailableIP +type AvailableIP struct { + + // Address + // Read Only: true + // Min Length: 1 + Address string `json:"address,omitempty"` + + // Family + // Read Only: true + Family int64 `json:"family,omitempty"` + + // vrf + Vrf *NestedVRF `json:"vrf,omitempty"` +} + +// Validate validates this available IP +func (m *AvailableIP) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateAddress(formats); err != nil { + res = append(res, err) + } + + if err := m.validateVrf(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *AvailableIP) validateAddress(formats strfmt.Registry) error { + + if swag.IsZero(m.Address) { // not required + return nil + } + + if err := validate.MinLength("address", "body", string(m.Address), 1); err != nil { + return err + } + + return nil +} + +func (m *AvailableIP) 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") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *AvailableIP) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *AvailableIP) UnmarshalBinary(b []byte) error { + var res AvailableIP + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/available_prefix.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/available_prefix.go new file mode 100644 index 000000000..ebebaf0e1 --- /dev/null +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/available_prefix.go @@ -0,0 +1,113 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright 2020 The go-netbox Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// AvailablePrefix available prefix +// +// swagger:model AvailablePrefix +type AvailablePrefix struct { + + // Family + // Read Only: true + Family int64 `json:"family,omitempty"` + + // Prefix + // Read Only: true + // Min Length: 1 + Prefix string `json:"prefix,omitempty"` + + // vrf + Vrf *NestedVRF `json:"vrf,omitempty"` +} + +// Validate validates this available prefix +func (m *AvailablePrefix) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validatePrefix(formats); err != nil { + res = append(res, err) + } + + if err := m.validateVrf(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *AvailablePrefix) validatePrefix(formats strfmt.Registry) error { + + if swag.IsZero(m.Prefix) { // not required + return nil + } + + if err := validate.MinLength("prefix", "body", string(m.Prefix), 1); err != nil { + return err + } + + return nil +} + +func (m *AvailablePrefix) 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") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *AvailablePrefix) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *AvailablePrefix) UnmarshalBinary(b []byte) error { + var res AvailablePrefix + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/cable.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/cable.go index eb4e721b3..9ae382595 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/cable.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/cable.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Cable cable +// // swagger:model Cable type Cable struct { @@ -87,7 +87,7 @@ type Cable struct { TerminationbType *string `json:"termination_b_type"` // Type - // Enum: [cat3 cat5 cat5e cat6 cat6a cat7 dac-active dac-passive coaxial mmf mmf-om1 mmf-om2 mmf-om3 mmf-om4 smf smf-os1 smf-os2 aoc power] + // Enum: [cat3 cat5 cat5e cat6 cat6a cat7 dac-active dac-passive mrj21-trunk coaxial mmf mmf-om1 mmf-om2 mmf-om3 mmf-om4 smf smf-os1 smf-os2 aoc power] Type string `json:"type,omitempty"` } @@ -280,7 +280,7 @@ var cableTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["cat3","cat5","cat5e","cat6","cat6a","cat7","dac-active","dac-passive","coaxial","mmf","mmf-om1","mmf-om2","mmf-om3","mmf-om4","smf","smf-os1","smf-os2","aoc","power"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["cat3","cat5","cat5e","cat6","cat6a","cat7","dac-active","dac-passive","mrj21-trunk","coaxial","mmf","mmf-om1","mmf-om2","mmf-om3","mmf-om4","smf","smf-os1","smf-os2","aoc","power"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -314,6 +314,9 @@ const ( // CableTypeDacPassive captures enum value "dac-passive" CableTypeDacPassive string = "dac-passive" + // CableTypeMrj21Trunk captures enum value "mrj21-trunk" + CableTypeMrj21Trunk string = "mrj21-trunk" + // CableTypeCoaxial captures enum value "coaxial" CableTypeCoaxial string = "coaxial" @@ -389,15 +392,18 @@ func (m *Cable) UnmarshalBinary(b []byte) error { } // CableLengthUnit Length unit +// // swagger:model CableLengthUnit type CableLengthUnit struct { // label // Required: true + // Enum: [Meters Centimeters Feet Inches] Label *string `json:"label"` // value // Required: true + // Enum: [m cm ft in] Value *string `json:"value"` } @@ -419,12 +425,87 @@ func (m *CableLengthUnit) Validate(formats strfmt.Registry) error { return nil } +var cableLengthUnitTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Meters","Centimeters","Feet","Inches"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + cableLengthUnitTypeLabelPropEnum = append(cableLengthUnitTypeLabelPropEnum, v) + } +} + +const ( + + // CableLengthUnitLabelMeters captures enum value "Meters" + CableLengthUnitLabelMeters string = "Meters" + + // CableLengthUnitLabelCentimeters captures enum value "Centimeters" + CableLengthUnitLabelCentimeters string = "Centimeters" + + // CableLengthUnitLabelFeet captures enum value "Feet" + CableLengthUnitLabelFeet string = "Feet" + + // CableLengthUnitLabelInches captures enum value "Inches" + CableLengthUnitLabelInches string = "Inches" +) + +// prop value enum +func (m *CableLengthUnit) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, cableLengthUnitTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *CableLengthUnit) validateLabel(formats strfmt.Registry) error { if err := validate.Required("length_unit"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("length_unit"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var cableLengthUnitTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["m","cm","ft","in"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + cableLengthUnitTypeValuePropEnum = append(cableLengthUnitTypeValuePropEnum, v) + } +} + +const ( + + // CableLengthUnitValueM captures enum value "m" + CableLengthUnitValueM string = "m" + + // CableLengthUnitValueCm captures enum value "cm" + CableLengthUnitValueCm string = "cm" + + // CableLengthUnitValueFt captures enum value "ft" + CableLengthUnitValueFt string = "ft" + + // CableLengthUnitValueIn captures enum value "in" + CableLengthUnitValueIn string = "in" +) + +// prop value enum +func (m *CableLengthUnit) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, cableLengthUnitTypeValuePropEnum); err != nil { + return err + } return nil } @@ -434,6 +515,11 @@ func (m *CableLengthUnit) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("length_unit"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -456,15 +542,18 @@ func (m *CableLengthUnit) UnmarshalBinary(b []byte) error { } // CableStatus Status +// // swagger:model CableStatus type CableStatus struct { // label // Required: true + // Enum: [Connected Planned Decommissioning] Label *string `json:"label"` // value // Required: true + // Enum: [connected planned decommissioning] Value *string `json:"value"` } @@ -486,12 +575,81 @@ func (m *CableStatus) Validate(formats strfmt.Registry) error { return nil } +var cableStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Connected","Planned","Decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + cableStatusTypeLabelPropEnum = append(cableStatusTypeLabelPropEnum, v) + } +} + +const ( + + // CableStatusLabelConnected captures enum value "Connected" + CableStatusLabelConnected string = "Connected" + + // CableStatusLabelPlanned captures enum value "Planned" + CableStatusLabelPlanned string = "Planned" + + // CableStatusLabelDecommissioning captures enum value "Decommissioning" + CableStatusLabelDecommissioning string = "Decommissioning" +) + +// prop value enum +func (m *CableStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, cableStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *CableStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var cableStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["connected","planned","decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + cableStatusTypeValuePropEnum = append(cableStatusTypeValuePropEnum, v) + } +} + +const ( + + // CableStatusValueConnected captures enum value "connected" + CableStatusValueConnected string = "connected" + + // CableStatusValuePlanned captures enum value "planned" + CableStatusValuePlanned string = "planned" + + // CableStatusValueDecommissioning captures enum value "decommissioning" + CableStatusValueDecommissioning string = "decommissioning" +) + +// prop value enum +func (m *CableStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, cableStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -501,6 +659,11 @@ func (m *CableStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit.go index 74628b41b..1e0e55713 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Circuit circuit +// // swagger:model Circuit type Circuit struct { @@ -57,7 +58,7 @@ type Circuit struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -212,7 +213,7 @@ func (m *Circuit) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -389,15 +390,18 @@ func (m *Circuit) UnmarshalBinary(b []byte) error { } // CircuitStatus Status +// // swagger:model CircuitStatus type CircuitStatus struct { // label // Required: true + // Enum: [Planned Provisioning Active Offline Deprovisioning Decommissioned] Label *string `json:"label"` // value // Required: true + // Enum: [planned provisioning active offline deprovisioning decommissioned] Value *string `json:"value"` } @@ -419,12 +423,99 @@ func (m *CircuitStatus) Validate(formats strfmt.Registry) error { return nil } +var circuitStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Planned","Provisioning","Active","Offline","Deprovisioning","Decommissioned"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + circuitStatusTypeLabelPropEnum = append(circuitStatusTypeLabelPropEnum, v) + } +} + +const ( + + // CircuitStatusLabelPlanned captures enum value "Planned" + CircuitStatusLabelPlanned string = "Planned" + + // CircuitStatusLabelProvisioning captures enum value "Provisioning" + CircuitStatusLabelProvisioning string = "Provisioning" + + // CircuitStatusLabelActive captures enum value "Active" + CircuitStatusLabelActive string = "Active" + + // CircuitStatusLabelOffline captures enum value "Offline" + CircuitStatusLabelOffline string = "Offline" + + // CircuitStatusLabelDeprovisioning captures enum value "Deprovisioning" + CircuitStatusLabelDeprovisioning string = "Deprovisioning" + + // CircuitStatusLabelDecommissioned captures enum value "Decommissioned" + CircuitStatusLabelDecommissioned string = "Decommissioned" +) + +// prop value enum +func (m *CircuitStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, circuitStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *CircuitStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var circuitStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["planned","provisioning","active","offline","deprovisioning","decommissioned"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + circuitStatusTypeValuePropEnum = append(circuitStatusTypeValuePropEnum, v) + } +} + +const ( + + // CircuitStatusValuePlanned captures enum value "planned" + CircuitStatusValuePlanned string = "planned" + + // CircuitStatusValueProvisioning captures enum value "provisioning" + CircuitStatusValueProvisioning string = "provisioning" + + // CircuitStatusValueActive captures enum value "active" + CircuitStatusValueActive string = "active" + + // CircuitStatusValueOffline captures enum value "offline" + CircuitStatusValueOffline string = "offline" + + // CircuitStatusValueDeprovisioning captures enum value "deprovisioning" + CircuitStatusValueDeprovisioning string = "deprovisioning" + + // CircuitStatusValueDecommissioned captures enum value "decommissioned" + CircuitStatusValueDecommissioned string = "decommissioned" +) + +// prop value enum +func (m *CircuitStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, circuitStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -434,6 +525,11 @@ func (m *CircuitStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_circuit_termination.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_circuit_termination.go index 530b28207..4ac31bc56 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_circuit_termination.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_circuit_termination.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // CircuitCircuitTermination Termination a +// // swagger:model CircuitCircuitTermination type CircuitCircuitTermination struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_termination.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_termination.go index 9df11e05d..50ab67663 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_termination.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_termination.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // CircuitTermination circuit termination +// // swagger:model CircuitTermination type CircuitTermination struct { @@ -44,7 +44,7 @@ type CircuitTermination struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -57,7 +57,7 @@ type CircuitTermination struct { ConnectionStatus *CircuitTerminationConnectionStatus `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -205,7 +205,7 @@ func (m *CircuitTermination) validateDescription(formats strfmt.Registry) error return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -352,15 +352,18 @@ func (m *CircuitTermination) UnmarshalBinary(b []byte) error { } // CircuitTerminationConnectionStatus Connection status +// // swagger:model CircuitTerminationConnectionStatus type CircuitTerminationConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -382,12 +385,66 @@ func (m *CircuitTerminationConnectionStatus) Validate(formats strfmt.Registry) e return nil } +var circuitTerminationConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + circuitTerminationConnectionStatusTypeLabelPropEnum = append(circuitTerminationConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // CircuitTerminationConnectionStatusLabelNotConnected captures enum value "Not Connected" + CircuitTerminationConnectionStatusLabelNotConnected string = "Not Connected" + + // CircuitTerminationConnectionStatusLabelConnected captures enum value "Connected" + CircuitTerminationConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *CircuitTerminationConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, circuitTerminationConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *CircuitTerminationConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var circuitTerminationConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + circuitTerminationConnectionStatusTypeValuePropEnum = append(circuitTerminationConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *CircuitTerminationConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, circuitTerminationConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -397,6 +454,11 @@ func (m *CircuitTerminationConnectionStatus) validateValue(formats strfmt.Regist return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_type.go index 6da4793e2..98870bf03 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/circuit_type.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // CircuitType circuit type +// // swagger:model CircuitType type CircuitType struct { @@ -37,7 +37,7 @@ type CircuitType struct { CircuitCount int64 `json:"circuit_count,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -86,7 +86,7 @@ func (m *CircuitType) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster.go index ddfe4354d..339e2cd6d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Cluster cluster +// // swagger:model Cluster type Cluster struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_group.go index d964475ab..f5a6a00b7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_group.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ClusterGroup cluster group +// // swagger:model ClusterGroup type ClusterGroup struct { @@ -36,6 +36,10 @@ type ClusterGroup struct { // Read Only: true ClusterCount int64 `json:"cluster_count,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -58,6 +62,10 @@ type ClusterGroup struct { func (m *ClusterGroup) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -72,6 +80,19 @@ func (m *ClusterGroup) Validate(formats strfmt.Registry) error { return nil } +func (m *ClusterGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *ClusterGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_type.go index fa371191d..fe965a7f3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/cluster_type.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ClusterType cluster type +// // swagger:model ClusterType type ClusterType struct { @@ -36,6 +36,10 @@ type ClusterType struct { // Read Only: true ClusterCount int64 `json:"cluster_count,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -58,6 +62,10 @@ type ClusterType struct { func (m *ClusterType) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -72,6 +80,19 @@ func (m *ClusterType) Validate(formats strfmt.Registry) error { return nil } +func (m *ClusterType) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *ClusterType) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/config_context.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/config_context.go index 58a5da47d..f0ef8154f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/config_context.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/config_context.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ConfigContext config context +// // swagger:model ConfigContext type ConfigContext struct { @@ -47,7 +47,7 @@ type ConfigContext struct { Data *string `json:"data"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -232,7 +232,7 @@ func (m *ConfigContext) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port.go index 3ce61cd3d..8611e2e7b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ConsolePort console port +// // swagger:model ConsolePort type ConsolePort struct { @@ -40,7 +41,7 @@ type ConsolePort struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -53,7 +54,7 @@ type ConsolePort struct { ConnectionStatus *ConsolePortConnectionStatus `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -157,7 +158,7 @@ func (m *ConsolePort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -253,15 +254,18 @@ func (m *ConsolePort) UnmarshalBinary(b []byte) error { } // ConsolePortConnectionStatus Connection status +// // swagger:model ConsolePortConnectionStatus type ConsolePortConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -283,12 +287,66 @@ func (m *ConsolePortConnectionStatus) Validate(formats strfmt.Registry) error { return nil } +var consolePortConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consolePortConnectionStatusTypeLabelPropEnum = append(consolePortConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // ConsolePortConnectionStatusLabelNotConnected captures enum value "Not Connected" + ConsolePortConnectionStatusLabelNotConnected string = "Not Connected" + + // ConsolePortConnectionStatusLabelConnected captures enum value "Connected" + ConsolePortConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *ConsolePortConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consolePortConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ConsolePortConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var consolePortConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consolePortConnectionStatusTypeValuePropEnum = append(consolePortConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *ConsolePortConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, consolePortConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -298,6 +356,11 @@ func (m *ConsolePortConnectionStatus) validateValue(formats strfmt.Registry) err return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -320,15 +383,18 @@ func (m *ConsolePortConnectionStatus) UnmarshalBinary(b []byte) error { } // ConsolePortType Type +// // swagger:model ConsolePortType type ConsolePortType struct { // label // Required: true + // Enum: [DE-9 DB-25 RJ-11 RJ-12 RJ-45 USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B Other] Label *string `json:"label"` // value // Required: true + // Enum: [de-9 db-25 rj-11 rj-12 rj-45 usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b other] Value *string `json:"value"` } @@ -350,12 +416,141 @@ func (m *ConsolePortType) Validate(formats strfmt.Registry) error { return nil } +var consolePortTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["DE-9","DB-25","RJ-11","RJ-12","RJ-45","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","Other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consolePortTypeTypeLabelPropEnum = append(consolePortTypeTypeLabelPropEnum, v) + } +} + +const ( + + // ConsolePortTypeLabelDE9 captures enum value "DE-9" + ConsolePortTypeLabelDE9 string = "DE-9" + + // ConsolePortTypeLabelDB25 captures enum value "DB-25" + ConsolePortTypeLabelDB25 string = "DB-25" + + // ConsolePortTypeLabelRJ11 captures enum value "RJ-11" + ConsolePortTypeLabelRJ11 string = "RJ-11" + + // ConsolePortTypeLabelRJ12 captures enum value "RJ-12" + ConsolePortTypeLabelRJ12 string = "RJ-12" + + // ConsolePortTypeLabelRJ45 captures enum value "RJ-45" + ConsolePortTypeLabelRJ45 string = "RJ-45" + + // ConsolePortTypeLabelUSBTypeA captures enum value "USB Type A" + ConsolePortTypeLabelUSBTypeA string = "USB Type A" + + // ConsolePortTypeLabelUSBTypeB captures enum value "USB Type B" + ConsolePortTypeLabelUSBTypeB string = "USB Type B" + + // ConsolePortTypeLabelUSBTypeC captures enum value "USB Type C" + ConsolePortTypeLabelUSBTypeC string = "USB Type C" + + // ConsolePortTypeLabelUSBMiniA captures enum value "USB Mini A" + ConsolePortTypeLabelUSBMiniA string = "USB Mini A" + + // ConsolePortTypeLabelUSBMiniB captures enum value "USB Mini B" + ConsolePortTypeLabelUSBMiniB string = "USB Mini B" + + // ConsolePortTypeLabelUSBMicroA captures enum value "USB Micro A" + ConsolePortTypeLabelUSBMicroA string = "USB Micro A" + + // ConsolePortTypeLabelUSBMicroB captures enum value "USB Micro B" + ConsolePortTypeLabelUSBMicroB string = "USB Micro B" + + // ConsolePortTypeLabelOther captures enum value "Other" + ConsolePortTypeLabelOther string = "Other" +) + +// prop value enum +func (m *ConsolePortType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consolePortTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ConsolePortType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var consolePortTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["de-9","db-25","rj-11","rj-12","rj-45","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consolePortTypeTypeValuePropEnum = append(consolePortTypeTypeValuePropEnum, v) + } +} + +const ( + + // ConsolePortTypeValueDe9 captures enum value "de-9" + ConsolePortTypeValueDe9 string = "de-9" + + // ConsolePortTypeValueDb25 captures enum value "db-25" + ConsolePortTypeValueDb25 string = "db-25" + + // ConsolePortTypeValueRj11 captures enum value "rj-11" + ConsolePortTypeValueRj11 string = "rj-11" + + // ConsolePortTypeValueRj12 captures enum value "rj-12" + ConsolePortTypeValueRj12 string = "rj-12" + + // ConsolePortTypeValueRj45 captures enum value "rj-45" + ConsolePortTypeValueRj45 string = "rj-45" + + // ConsolePortTypeValueUsba captures enum value "usb-a" + ConsolePortTypeValueUsba string = "usb-a" + + // ConsolePortTypeValueUsbb captures enum value "usb-b" + ConsolePortTypeValueUsbb string = "usb-b" + + // ConsolePortTypeValueUsbc captures enum value "usb-c" + ConsolePortTypeValueUsbc string = "usb-c" + + // ConsolePortTypeValueUsbMinia captures enum value "usb-mini-a" + ConsolePortTypeValueUsbMinia string = "usb-mini-a" + + // ConsolePortTypeValueUsbMinib captures enum value "usb-mini-b" + ConsolePortTypeValueUsbMinib string = "usb-mini-b" + + // ConsolePortTypeValueUsbMicroa captures enum value "usb-micro-a" + ConsolePortTypeValueUsbMicroa string = "usb-micro-a" + + // ConsolePortTypeValueUsbMicrob captures enum value "usb-micro-b" + ConsolePortTypeValueUsbMicrob string = "usb-micro-b" + + // ConsolePortTypeValueOther captures enum value "other" + ConsolePortTypeValueOther string = "other" +) + +// prop value enum +func (m *ConsolePortType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consolePortTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -365,6 +560,11 @@ func (m *ConsolePortType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port_template.go index a262cfd25..6397b8181 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_port_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ConsolePortTemplate console port template +// // swagger:model ConsolePortTemplate type ConsolePortTemplate struct { @@ -144,15 +146,18 @@ func (m *ConsolePortTemplate) UnmarshalBinary(b []byte) error { } // ConsolePortTemplateType Type +// // swagger:model ConsolePortTemplateType type ConsolePortTemplateType struct { // label // Required: true + // Enum: [DE-9 DB-25 RJ-11 RJ-12 RJ-45 USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B Other] Label *string `json:"label"` // value // Required: true + // Enum: [de-9 db-25 rj-11 rj-12 rj-45 usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b other] Value *string `json:"value"` } @@ -174,12 +179,141 @@ func (m *ConsolePortTemplateType) Validate(formats strfmt.Registry) error { return nil } +var consolePortTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["DE-9","DB-25","RJ-11","RJ-12","RJ-45","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","Other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consolePortTemplateTypeTypeLabelPropEnum = append(consolePortTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // ConsolePortTemplateTypeLabelDE9 captures enum value "DE-9" + ConsolePortTemplateTypeLabelDE9 string = "DE-9" + + // ConsolePortTemplateTypeLabelDB25 captures enum value "DB-25" + ConsolePortTemplateTypeLabelDB25 string = "DB-25" + + // ConsolePortTemplateTypeLabelRJ11 captures enum value "RJ-11" + ConsolePortTemplateTypeLabelRJ11 string = "RJ-11" + + // ConsolePortTemplateTypeLabelRJ12 captures enum value "RJ-12" + ConsolePortTemplateTypeLabelRJ12 string = "RJ-12" + + // ConsolePortTemplateTypeLabelRJ45 captures enum value "RJ-45" + ConsolePortTemplateTypeLabelRJ45 string = "RJ-45" + + // ConsolePortTemplateTypeLabelUSBTypeA captures enum value "USB Type A" + ConsolePortTemplateTypeLabelUSBTypeA string = "USB Type A" + + // ConsolePortTemplateTypeLabelUSBTypeB captures enum value "USB Type B" + ConsolePortTemplateTypeLabelUSBTypeB string = "USB Type B" + + // ConsolePortTemplateTypeLabelUSBTypeC captures enum value "USB Type C" + ConsolePortTemplateTypeLabelUSBTypeC string = "USB Type C" + + // ConsolePortTemplateTypeLabelUSBMiniA captures enum value "USB Mini A" + ConsolePortTemplateTypeLabelUSBMiniA string = "USB Mini A" + + // ConsolePortTemplateTypeLabelUSBMiniB captures enum value "USB Mini B" + ConsolePortTemplateTypeLabelUSBMiniB string = "USB Mini B" + + // ConsolePortTemplateTypeLabelUSBMicroA captures enum value "USB Micro A" + ConsolePortTemplateTypeLabelUSBMicroA string = "USB Micro A" + + // ConsolePortTemplateTypeLabelUSBMicroB captures enum value "USB Micro B" + ConsolePortTemplateTypeLabelUSBMicroB string = "USB Micro B" + + // ConsolePortTemplateTypeLabelOther captures enum value "Other" + ConsolePortTemplateTypeLabelOther string = "Other" +) + +// prop value enum +func (m *ConsolePortTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consolePortTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ConsolePortTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var consolePortTemplateTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["de-9","db-25","rj-11","rj-12","rj-45","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consolePortTemplateTypeTypeValuePropEnum = append(consolePortTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // ConsolePortTemplateTypeValueDe9 captures enum value "de-9" + ConsolePortTemplateTypeValueDe9 string = "de-9" + + // ConsolePortTemplateTypeValueDb25 captures enum value "db-25" + ConsolePortTemplateTypeValueDb25 string = "db-25" + + // ConsolePortTemplateTypeValueRj11 captures enum value "rj-11" + ConsolePortTemplateTypeValueRj11 string = "rj-11" + + // ConsolePortTemplateTypeValueRj12 captures enum value "rj-12" + ConsolePortTemplateTypeValueRj12 string = "rj-12" + + // ConsolePortTemplateTypeValueRj45 captures enum value "rj-45" + ConsolePortTemplateTypeValueRj45 string = "rj-45" + + // ConsolePortTemplateTypeValueUsba captures enum value "usb-a" + ConsolePortTemplateTypeValueUsba string = "usb-a" + + // ConsolePortTemplateTypeValueUsbb captures enum value "usb-b" + ConsolePortTemplateTypeValueUsbb string = "usb-b" + + // ConsolePortTemplateTypeValueUsbc captures enum value "usb-c" + ConsolePortTemplateTypeValueUsbc string = "usb-c" + + // ConsolePortTemplateTypeValueUsbMinia captures enum value "usb-mini-a" + ConsolePortTemplateTypeValueUsbMinia string = "usb-mini-a" + + // ConsolePortTemplateTypeValueUsbMinib captures enum value "usb-mini-b" + ConsolePortTemplateTypeValueUsbMinib string = "usb-mini-b" + + // ConsolePortTemplateTypeValueUsbMicroa captures enum value "usb-micro-a" + ConsolePortTemplateTypeValueUsbMicroa string = "usb-micro-a" + + // ConsolePortTemplateTypeValueUsbMicrob captures enum value "usb-micro-b" + ConsolePortTemplateTypeValueUsbMicrob string = "usb-micro-b" + + // ConsolePortTemplateTypeValueOther captures enum value "other" + ConsolePortTemplateTypeValueOther string = "other" +) + +// prop value enum +func (m *ConsolePortTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consolePortTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -189,6 +323,11 @@ func (m *ConsolePortTemplateType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port.go index 61b7a7e8c..8b6b47bdb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ConsoleServerPort console server port +// // swagger:model ConsoleServerPort type ConsoleServerPort struct { @@ -40,7 +41,7 @@ type ConsoleServerPort struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -53,7 +54,7 @@ type ConsoleServerPort struct { ConnectionStatus *ConsoleServerPortConnectionStatus `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -157,7 +158,7 @@ func (m *ConsoleServerPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -253,15 +254,18 @@ func (m *ConsoleServerPort) UnmarshalBinary(b []byte) error { } // ConsoleServerPortConnectionStatus Connection status +// // swagger:model ConsoleServerPortConnectionStatus type ConsoleServerPortConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -283,12 +287,66 @@ func (m *ConsoleServerPortConnectionStatus) Validate(formats strfmt.Registry) er return nil } +var consoleServerPortConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consoleServerPortConnectionStatusTypeLabelPropEnum = append(consoleServerPortConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // ConsoleServerPortConnectionStatusLabelNotConnected captures enum value "Not Connected" + ConsoleServerPortConnectionStatusLabelNotConnected string = "Not Connected" + + // ConsoleServerPortConnectionStatusLabelConnected captures enum value "Connected" + ConsoleServerPortConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *ConsoleServerPortConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consoleServerPortConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ConsoleServerPortConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var consoleServerPortConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consoleServerPortConnectionStatusTypeValuePropEnum = append(consoleServerPortConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *ConsoleServerPortConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, consoleServerPortConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -298,6 +356,11 @@ func (m *ConsoleServerPortConnectionStatus) validateValue(formats strfmt.Registr return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -320,15 +383,18 @@ func (m *ConsoleServerPortConnectionStatus) UnmarshalBinary(b []byte) error { } // ConsoleServerPortType Type +// // swagger:model ConsoleServerPortType type ConsoleServerPortType struct { // label // Required: true + // Enum: [DE-9 DB-25 RJ-11 RJ-12 RJ-45 USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B Other] Label *string `json:"label"` // value // Required: true + // Enum: [de-9 db-25 rj-11 rj-12 rj-45 usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b other] Value *string `json:"value"` } @@ -350,12 +416,141 @@ func (m *ConsoleServerPortType) Validate(formats strfmt.Registry) error { return nil } +var consoleServerPortTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["DE-9","DB-25","RJ-11","RJ-12","RJ-45","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","Other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consoleServerPortTypeTypeLabelPropEnum = append(consoleServerPortTypeTypeLabelPropEnum, v) + } +} + +const ( + + // ConsoleServerPortTypeLabelDE9 captures enum value "DE-9" + ConsoleServerPortTypeLabelDE9 string = "DE-9" + + // ConsoleServerPortTypeLabelDB25 captures enum value "DB-25" + ConsoleServerPortTypeLabelDB25 string = "DB-25" + + // ConsoleServerPortTypeLabelRJ11 captures enum value "RJ-11" + ConsoleServerPortTypeLabelRJ11 string = "RJ-11" + + // ConsoleServerPortTypeLabelRJ12 captures enum value "RJ-12" + ConsoleServerPortTypeLabelRJ12 string = "RJ-12" + + // ConsoleServerPortTypeLabelRJ45 captures enum value "RJ-45" + ConsoleServerPortTypeLabelRJ45 string = "RJ-45" + + // ConsoleServerPortTypeLabelUSBTypeA captures enum value "USB Type A" + ConsoleServerPortTypeLabelUSBTypeA string = "USB Type A" + + // ConsoleServerPortTypeLabelUSBTypeB captures enum value "USB Type B" + ConsoleServerPortTypeLabelUSBTypeB string = "USB Type B" + + // ConsoleServerPortTypeLabelUSBTypeC captures enum value "USB Type C" + ConsoleServerPortTypeLabelUSBTypeC string = "USB Type C" + + // ConsoleServerPortTypeLabelUSBMiniA captures enum value "USB Mini A" + ConsoleServerPortTypeLabelUSBMiniA string = "USB Mini A" + + // ConsoleServerPortTypeLabelUSBMiniB captures enum value "USB Mini B" + ConsoleServerPortTypeLabelUSBMiniB string = "USB Mini B" + + // ConsoleServerPortTypeLabelUSBMicroA captures enum value "USB Micro A" + ConsoleServerPortTypeLabelUSBMicroA string = "USB Micro A" + + // ConsoleServerPortTypeLabelUSBMicroB captures enum value "USB Micro B" + ConsoleServerPortTypeLabelUSBMicroB string = "USB Micro B" + + // ConsoleServerPortTypeLabelOther captures enum value "Other" + ConsoleServerPortTypeLabelOther string = "Other" +) + +// prop value enum +func (m *ConsoleServerPortType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consoleServerPortTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ConsoleServerPortType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var consoleServerPortTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["de-9","db-25","rj-11","rj-12","rj-45","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consoleServerPortTypeTypeValuePropEnum = append(consoleServerPortTypeTypeValuePropEnum, v) + } +} + +const ( + + // ConsoleServerPortTypeValueDe9 captures enum value "de-9" + ConsoleServerPortTypeValueDe9 string = "de-9" + + // ConsoleServerPortTypeValueDb25 captures enum value "db-25" + ConsoleServerPortTypeValueDb25 string = "db-25" + + // ConsoleServerPortTypeValueRj11 captures enum value "rj-11" + ConsoleServerPortTypeValueRj11 string = "rj-11" + + // ConsoleServerPortTypeValueRj12 captures enum value "rj-12" + ConsoleServerPortTypeValueRj12 string = "rj-12" + + // ConsoleServerPortTypeValueRj45 captures enum value "rj-45" + ConsoleServerPortTypeValueRj45 string = "rj-45" + + // ConsoleServerPortTypeValueUsba captures enum value "usb-a" + ConsoleServerPortTypeValueUsba string = "usb-a" + + // ConsoleServerPortTypeValueUsbb captures enum value "usb-b" + ConsoleServerPortTypeValueUsbb string = "usb-b" + + // ConsoleServerPortTypeValueUsbc captures enum value "usb-c" + ConsoleServerPortTypeValueUsbc string = "usb-c" + + // ConsoleServerPortTypeValueUsbMinia captures enum value "usb-mini-a" + ConsoleServerPortTypeValueUsbMinia string = "usb-mini-a" + + // ConsoleServerPortTypeValueUsbMinib captures enum value "usb-mini-b" + ConsoleServerPortTypeValueUsbMinib string = "usb-mini-b" + + // ConsoleServerPortTypeValueUsbMicroa captures enum value "usb-micro-a" + ConsoleServerPortTypeValueUsbMicroa string = "usb-micro-a" + + // ConsoleServerPortTypeValueUsbMicrob captures enum value "usb-micro-b" + ConsoleServerPortTypeValueUsbMicrob string = "usb-micro-b" + + // ConsoleServerPortTypeValueOther captures enum value "other" + ConsoleServerPortTypeValueOther string = "other" +) + +// prop value enum +func (m *ConsoleServerPortType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consoleServerPortTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -365,6 +560,11 @@ func (m *ConsoleServerPortType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port_template.go index d23368d57..156bd6581 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/console_server_port_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ConsoleServerPortTemplate console server port template +// // swagger:model ConsoleServerPortTemplate type ConsoleServerPortTemplate struct { @@ -144,15 +146,18 @@ func (m *ConsoleServerPortTemplate) UnmarshalBinary(b []byte) error { } // ConsoleServerPortTemplateType Type +// // swagger:model ConsoleServerPortTemplateType type ConsoleServerPortTemplateType struct { // label // Required: true + // Enum: [DE-9 DB-25 RJ-11 RJ-12 RJ-45 USB Type A USB Type B USB Type C USB Mini A USB Mini B USB Micro A USB Micro B Other] Label *string `json:"label"` // value // Required: true + // Enum: [de-9 db-25 rj-11 rj-12 rj-45 usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b other] Value *string `json:"value"` } @@ -174,12 +179,141 @@ func (m *ConsoleServerPortTemplateType) Validate(formats strfmt.Registry) error return nil } +var consoleServerPortTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["DE-9","DB-25","RJ-11","RJ-12","RJ-45","USB Type A","USB Type B","USB Type C","USB Mini A","USB Mini B","USB Micro A","USB Micro B","Other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consoleServerPortTemplateTypeTypeLabelPropEnum = append(consoleServerPortTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // ConsoleServerPortTemplateTypeLabelDE9 captures enum value "DE-9" + ConsoleServerPortTemplateTypeLabelDE9 string = "DE-9" + + // ConsoleServerPortTemplateTypeLabelDB25 captures enum value "DB-25" + ConsoleServerPortTemplateTypeLabelDB25 string = "DB-25" + + // ConsoleServerPortTemplateTypeLabelRJ11 captures enum value "RJ-11" + ConsoleServerPortTemplateTypeLabelRJ11 string = "RJ-11" + + // ConsoleServerPortTemplateTypeLabelRJ12 captures enum value "RJ-12" + ConsoleServerPortTemplateTypeLabelRJ12 string = "RJ-12" + + // ConsoleServerPortTemplateTypeLabelRJ45 captures enum value "RJ-45" + ConsoleServerPortTemplateTypeLabelRJ45 string = "RJ-45" + + // ConsoleServerPortTemplateTypeLabelUSBTypeA captures enum value "USB Type A" + ConsoleServerPortTemplateTypeLabelUSBTypeA string = "USB Type A" + + // ConsoleServerPortTemplateTypeLabelUSBTypeB captures enum value "USB Type B" + ConsoleServerPortTemplateTypeLabelUSBTypeB string = "USB Type B" + + // ConsoleServerPortTemplateTypeLabelUSBTypeC captures enum value "USB Type C" + ConsoleServerPortTemplateTypeLabelUSBTypeC string = "USB Type C" + + // ConsoleServerPortTemplateTypeLabelUSBMiniA captures enum value "USB Mini A" + ConsoleServerPortTemplateTypeLabelUSBMiniA string = "USB Mini A" + + // ConsoleServerPortTemplateTypeLabelUSBMiniB captures enum value "USB Mini B" + ConsoleServerPortTemplateTypeLabelUSBMiniB string = "USB Mini B" + + // ConsoleServerPortTemplateTypeLabelUSBMicroA captures enum value "USB Micro A" + ConsoleServerPortTemplateTypeLabelUSBMicroA string = "USB Micro A" + + // ConsoleServerPortTemplateTypeLabelUSBMicroB captures enum value "USB Micro B" + ConsoleServerPortTemplateTypeLabelUSBMicroB string = "USB Micro B" + + // ConsoleServerPortTemplateTypeLabelOther captures enum value "Other" + ConsoleServerPortTemplateTypeLabelOther string = "Other" +) + +// prop value enum +func (m *ConsoleServerPortTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consoleServerPortTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ConsoleServerPortTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var consoleServerPortTemplateTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["de-9","db-25","rj-11","rj-12","rj-45","usb-a","usb-b","usb-c","usb-mini-a","usb-mini-b","usb-micro-a","usb-micro-b","other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + consoleServerPortTemplateTypeTypeValuePropEnum = append(consoleServerPortTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // ConsoleServerPortTemplateTypeValueDe9 captures enum value "de-9" + ConsoleServerPortTemplateTypeValueDe9 string = "de-9" + + // ConsoleServerPortTemplateTypeValueDb25 captures enum value "db-25" + ConsoleServerPortTemplateTypeValueDb25 string = "db-25" + + // ConsoleServerPortTemplateTypeValueRj11 captures enum value "rj-11" + ConsoleServerPortTemplateTypeValueRj11 string = "rj-11" + + // ConsoleServerPortTemplateTypeValueRj12 captures enum value "rj-12" + ConsoleServerPortTemplateTypeValueRj12 string = "rj-12" + + // ConsoleServerPortTemplateTypeValueRj45 captures enum value "rj-45" + ConsoleServerPortTemplateTypeValueRj45 string = "rj-45" + + // ConsoleServerPortTemplateTypeValueUsba captures enum value "usb-a" + ConsoleServerPortTemplateTypeValueUsba string = "usb-a" + + // ConsoleServerPortTemplateTypeValueUsbb captures enum value "usb-b" + ConsoleServerPortTemplateTypeValueUsbb string = "usb-b" + + // ConsoleServerPortTemplateTypeValueUsbc captures enum value "usb-c" + ConsoleServerPortTemplateTypeValueUsbc string = "usb-c" + + // ConsoleServerPortTemplateTypeValueUsbMinia captures enum value "usb-mini-a" + ConsoleServerPortTemplateTypeValueUsbMinia string = "usb-mini-a" + + // ConsoleServerPortTemplateTypeValueUsbMinib captures enum value "usb-mini-b" + ConsoleServerPortTemplateTypeValueUsbMinib string = "usb-mini-b" + + // ConsoleServerPortTemplateTypeValueUsbMicroa captures enum value "usb-micro-a" + ConsoleServerPortTemplateTypeValueUsbMicroa string = "usb-micro-a" + + // ConsoleServerPortTemplateTypeValueUsbMicrob captures enum value "usb-micro-b" + ConsoleServerPortTemplateTypeValueUsbMicrob string = "usb-micro-b" + + // ConsoleServerPortTemplateTypeValueOther captures enum value "other" + ConsoleServerPortTemplateTypeValueOther string = "other" +) + +// prop value enum +func (m *ConsoleServerPortTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, consoleServerPortTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -189,6 +323,11 @@ func (m *ConsoleServerPortTemplateType) validateValue(formats strfmt.Registry) e return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device.go index 8a223365e..aeabf669a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Device device +// // swagger:model Device type Device struct { @@ -647,15 +648,18 @@ func (m *Device) UnmarshalBinary(b []byte) error { } // DeviceFace Face +// // swagger:model DeviceFace type DeviceFace struct { // label // Required: true + // Enum: [Front Rear] Label *string `json:"label"` // value // Required: true + // Enum: [front rear] Value *string `json:"value"` } @@ -677,12 +681,75 @@ func (m *DeviceFace) Validate(formats strfmt.Registry) error { return nil } +var deviceFaceTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Front","Rear"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceFaceTypeLabelPropEnum = append(deviceFaceTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceFaceLabelFront captures enum value "Front" + DeviceFaceLabelFront string = "Front" + + // DeviceFaceLabelRear captures enum value "Rear" + DeviceFaceLabelRear string = "Rear" +) + +// prop value enum +func (m *DeviceFace) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceFaceTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceFace) validateLabel(formats strfmt.Registry) error { if err := validate.Required("face"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("face"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceFaceTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["front","rear"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceFaceTypeValuePropEnum = append(deviceFaceTypeValuePropEnum, v) + } +} + +const ( + + // DeviceFaceValueFront captures enum value "front" + DeviceFaceValueFront string = "front" + + // DeviceFaceValueRear captures enum value "rear" + DeviceFaceValueRear string = "rear" +) + +// prop value enum +func (m *DeviceFace) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceFaceTypeValuePropEnum); err != nil { + return err + } return nil } @@ -692,6 +759,11 @@ func (m *DeviceFace) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("face"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -714,15 +786,18 @@ func (m *DeviceFace) UnmarshalBinary(b []byte) error { } // DeviceStatus Status +// // swagger:model DeviceStatus type DeviceStatus struct { // label // Required: true + // Enum: [Offline Active Planned Staged Failed Inventory Decommissioning] Label *string `json:"label"` // value // Required: true + // Enum: [offline active planned staged failed inventory decommissioning] Value *string `json:"value"` } @@ -744,12 +819,105 @@ func (m *DeviceStatus) Validate(formats strfmt.Registry) error { return nil } +var deviceStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Offline","Active","Planned","Staged","Failed","Inventory","Decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceStatusTypeLabelPropEnum = append(deviceStatusTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceStatusLabelOffline captures enum value "Offline" + DeviceStatusLabelOffline string = "Offline" + + // DeviceStatusLabelActive captures enum value "Active" + DeviceStatusLabelActive string = "Active" + + // DeviceStatusLabelPlanned captures enum value "Planned" + DeviceStatusLabelPlanned string = "Planned" + + // DeviceStatusLabelStaged captures enum value "Staged" + DeviceStatusLabelStaged string = "Staged" + + // DeviceStatusLabelFailed captures enum value "Failed" + DeviceStatusLabelFailed string = "Failed" + + // DeviceStatusLabelInventory captures enum value "Inventory" + DeviceStatusLabelInventory string = "Inventory" + + // DeviceStatusLabelDecommissioning captures enum value "Decommissioning" + DeviceStatusLabelDecommissioning string = "Decommissioning" +) + +// prop value enum +func (m *DeviceStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["offline","active","planned","staged","failed","inventory","decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceStatusTypeValuePropEnum = append(deviceStatusTypeValuePropEnum, v) + } +} + +const ( + + // DeviceStatusValueOffline captures enum value "offline" + DeviceStatusValueOffline string = "offline" + + // DeviceStatusValueActive captures enum value "active" + DeviceStatusValueActive string = "active" + + // DeviceStatusValuePlanned captures enum value "planned" + DeviceStatusValuePlanned string = "planned" + + // DeviceStatusValueStaged captures enum value "staged" + DeviceStatusValueStaged string = "staged" + + // DeviceStatusValueFailed captures enum value "failed" + DeviceStatusValueFailed string = "failed" + + // DeviceStatusValueInventory captures enum value "inventory" + DeviceStatusValueInventory string = "inventory" + + // DeviceStatusValueDecommissioning captures enum value "decommissioning" + DeviceStatusValueDecommissioning string = "decommissioning" +) + +// prop value enum +func (m *DeviceStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -759,6 +927,11 @@ func (m *DeviceStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay.go index 906b59c30..ddbc8c6db 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay.go @@ -23,19 +23,19 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // DeviceBay device bay +// // swagger:model DeviceBay type DeviceBay struct { // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -95,7 +95,7 @@ func (m *DeviceBay) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay_template.go index 712b39e99..5290d60b9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_bay_template.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // DeviceBayTemplate device bay template +// // swagger:model DeviceBayTemplate type DeviceBayTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_interface.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_interface.go index aaab82d90..c092ce0ad 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_interface.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_interface.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // DeviceInterface device interface +// // swagger:model DeviceInterface type DeviceInterface struct { @@ -40,7 +41,7 @@ type DeviceInterface struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -54,10 +55,10 @@ type DeviceInterface struct { // Count ipaddresses // Read Only: true - CountIpaddresses string `json:"count_ipaddresses,omitempty"` + CountIpaddresses int64 `json:"count_ipaddresses,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -104,7 +105,8 @@ type DeviceInterface struct { Tags []string `json:"tags"` // type - Type *DeviceInterfaceType `json:"type,omitempty"` + // Required: true + Type *DeviceInterfaceType `json:"type"` // untagged vlan UntaggedVlan *NestedVLAN `json:"untagged_vlan,omitempty"` @@ -210,7 +212,7 @@ func (m *DeviceInterface) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -353,8 +355,8 @@ func (m *DeviceInterface) validateTags(formats strfmt.Registry) error { func (m *DeviceInterface) validateType(formats strfmt.Registry) error { - if swag.IsZero(m.Type) { // not required - return nil + if err := validate.Required("type", "body", m.Type); err != nil { + return err } if m.Type != nil { @@ -406,15 +408,18 @@ func (m *DeviceInterface) UnmarshalBinary(b []byte) error { } // DeviceInterfaceConnectionStatus Connection status +// // swagger:model DeviceInterfaceConnectionStatus type DeviceInterfaceConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -436,12 +441,66 @@ func (m *DeviceInterfaceConnectionStatus) Validate(formats strfmt.Registry) erro return nil } +var deviceInterfaceConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceInterfaceConnectionStatusTypeLabelPropEnum = append(deviceInterfaceConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceInterfaceConnectionStatusLabelNotConnected captures enum value "Not Connected" + DeviceInterfaceConnectionStatusLabelNotConnected string = "Not Connected" + + // DeviceInterfaceConnectionStatusLabelConnected captures enum value "Connected" + DeviceInterfaceConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *DeviceInterfaceConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceInterfaceConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceInterfaceConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceInterfaceConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceInterfaceConnectionStatusTypeValuePropEnum = append(deviceInterfaceConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *DeviceInterfaceConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, deviceInterfaceConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -451,6 +510,11 @@ func (m *DeviceInterfaceConnectionStatus) validateValue(formats strfmt.Registry) return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -473,15 +537,18 @@ func (m *DeviceInterfaceConnectionStatus) UnmarshalBinary(b []byte) error { } // DeviceInterfaceMode Mode +// // swagger:model DeviceInterfaceMode type DeviceInterfaceMode struct { // label // Required: true + // Enum: [Access Tagged Tagged (All)] Label *string `json:"label"` // value // Required: true + // Enum: [access tagged tagged-all] Value *string `json:"value"` } @@ -503,12 +570,81 @@ func (m *DeviceInterfaceMode) Validate(formats strfmt.Registry) error { return nil } +var deviceInterfaceModeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Access","Tagged","Tagged (All)"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceInterfaceModeTypeLabelPropEnum = append(deviceInterfaceModeTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceInterfaceModeLabelAccess captures enum value "Access" + DeviceInterfaceModeLabelAccess string = "Access" + + // DeviceInterfaceModeLabelTagged captures enum value "Tagged" + DeviceInterfaceModeLabelTagged string = "Tagged" + + // DeviceInterfaceModeLabelTaggedAll captures enum value "Tagged (All)" + DeviceInterfaceModeLabelTaggedAll string = "Tagged (All)" +) + +// prop value enum +func (m *DeviceInterfaceMode) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceInterfaceModeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceInterfaceMode) validateLabel(formats strfmt.Registry) error { if err := validate.Required("mode"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("mode"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceInterfaceModeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["access","tagged","tagged-all"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceInterfaceModeTypeValuePropEnum = append(deviceInterfaceModeTypeValuePropEnum, v) + } +} + +const ( + + // DeviceInterfaceModeValueAccess captures enum value "access" + DeviceInterfaceModeValueAccess string = "access" + + // DeviceInterfaceModeValueTagged captures enum value "tagged" + DeviceInterfaceModeValueTagged string = "tagged" + + // DeviceInterfaceModeValueTaggedAll captures enum value "tagged-all" + DeviceInterfaceModeValueTaggedAll string = "tagged-all" +) + +// prop value enum +func (m *DeviceInterfaceMode) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceInterfaceModeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -518,6 +654,11 @@ func (m *DeviceInterfaceMode) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("mode"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -540,15 +681,18 @@ func (m *DeviceInterfaceMode) UnmarshalBinary(b []byte) error { } // DeviceInterfaceType Type +// // swagger:model DeviceInterfaceType type DeviceInterfaceType struct { // label // Required: true + // Enum: [Virtual 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) 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 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) 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) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true + // Enum: [virtual 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 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 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 128gfc-sfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -570,12 +714,495 @@ func (m *DeviceInterfaceType) Validate(formats strfmt.Registry) error { return nil } +var deviceInterfaceTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Virtual","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)","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","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)","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)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceInterfaceTypeTypeLabelPropEnum = append(deviceInterfaceTypeTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceInterfaceTypeLabelVirtual captures enum value "Virtual" + DeviceInterfaceTypeLabelVirtual string = "Virtual" + + // DeviceInterfaceTypeLabelLinkAggregationGroupLAG captures enum value "Link Aggregation Group (LAG)" + DeviceInterfaceTypeLabelLinkAggregationGroupLAG string = "Link Aggregation Group (LAG)" + + // DeviceInterfaceTypeLabelNr100BASETX10100ME captures enum value "100BASE-TX (10/100ME)" + DeviceInterfaceTypeLabelNr100BASETX10100ME string = "100BASE-TX (10/100ME)" + + // DeviceInterfaceTypeLabelNr1000BASET1GE captures enum value "1000BASE-T (1GE)" + DeviceInterfaceTypeLabelNr1000BASET1GE string = "1000BASE-T (1GE)" + + // DeviceInterfaceTypeLabelNr25GBASET25GE captures enum value "2.5GBASE-T (2.5GE)" + DeviceInterfaceTypeLabelNr25GBASET25GE string = "2.5GBASE-T (2.5GE)" + + // DeviceInterfaceTypeLabelNr5GBASET5GE captures enum value "5GBASE-T (5GE)" + DeviceInterfaceTypeLabelNr5GBASET5GE string = "5GBASE-T (5GE)" + + // DeviceInterfaceTypeLabelNr10GBASET10GE captures enum value "10GBASE-T (10GE)" + DeviceInterfaceTypeLabelNr10GBASET10GE string = "10GBASE-T (10GE)" + + // DeviceInterfaceTypeLabelNr10GBASECX410GE captures enum value "10GBASE-CX4 (10GE)" + DeviceInterfaceTypeLabelNr10GBASECX410GE string = "10GBASE-CX4 (10GE)" + + // DeviceInterfaceTypeLabelGBIC1GE captures enum value "GBIC (1GE)" + DeviceInterfaceTypeLabelGBIC1GE string = "GBIC (1GE)" + + // DeviceInterfaceTypeLabelSFP1GE captures enum value "SFP (1GE)" + DeviceInterfaceTypeLabelSFP1GE string = "SFP (1GE)" + + // DeviceInterfaceTypeLabelSFP10GE captures enum value "SFP+ (10GE)" + DeviceInterfaceTypeLabelSFP10GE string = "SFP+ (10GE)" + + // DeviceInterfaceTypeLabelXFP10GE captures enum value "XFP (10GE)" + DeviceInterfaceTypeLabelXFP10GE string = "XFP (10GE)" + + // DeviceInterfaceTypeLabelXENPAK10GE captures enum value "XENPAK (10GE)" + DeviceInterfaceTypeLabelXENPAK10GE string = "XENPAK (10GE)" + + // DeviceInterfaceTypeLabelX210GE captures enum value "X2 (10GE)" + DeviceInterfaceTypeLabelX210GE string = "X2 (10GE)" + + // DeviceInterfaceTypeLabelSFP2825GE captures enum value "SFP28 (25GE)" + DeviceInterfaceTypeLabelSFP2825GE string = "SFP28 (25GE)" + + // DeviceInterfaceTypeLabelQSFP40GE captures enum value "QSFP+ (40GE)" + DeviceInterfaceTypeLabelQSFP40GE string = "QSFP+ (40GE)" + + // DeviceInterfaceTypeLabelQSFP2850GE captures enum value "QSFP28 (50GE)" + DeviceInterfaceTypeLabelQSFP2850GE string = "QSFP28 (50GE)" + + // DeviceInterfaceTypeLabelCFP100GE captures enum value "CFP (100GE)" + DeviceInterfaceTypeLabelCFP100GE string = "CFP (100GE)" + + // DeviceInterfaceTypeLabelCFP2100GE captures enum value "CFP2 (100GE)" + DeviceInterfaceTypeLabelCFP2100GE string = "CFP2 (100GE)" + + // DeviceInterfaceTypeLabelCFP2200GE captures enum value "CFP2 (200GE)" + DeviceInterfaceTypeLabelCFP2200GE string = "CFP2 (200GE)" + + // DeviceInterfaceTypeLabelCFP4100GE captures enum value "CFP4 (100GE)" + DeviceInterfaceTypeLabelCFP4100GE string = "CFP4 (100GE)" + + // DeviceInterfaceTypeLabelCiscoCPAK100GE captures enum value "Cisco CPAK (100GE)" + DeviceInterfaceTypeLabelCiscoCPAK100GE string = "Cisco CPAK (100GE)" + + // DeviceInterfaceTypeLabelQSFP28100GE captures enum value "QSFP28 (100GE)" + DeviceInterfaceTypeLabelQSFP28100GE string = "QSFP28 (100GE)" + + // DeviceInterfaceTypeLabelQSFP56200GE captures enum value "QSFP56 (200GE)" + DeviceInterfaceTypeLabelQSFP56200GE string = "QSFP56 (200GE)" + + // DeviceInterfaceTypeLabelQSFPDD400GE captures enum value "QSFP-DD (400GE)" + DeviceInterfaceTypeLabelQSFPDD400GE string = "QSFP-DD (400GE)" + + // DeviceInterfaceTypeLabelOSFP400GE captures enum value "OSFP (400GE)" + DeviceInterfaceTypeLabelOSFP400GE string = "OSFP (400GE)" + + // DeviceInterfaceTypeLabelIEEE80211a captures enum value "IEEE 802.11a" + DeviceInterfaceTypeLabelIEEE80211a string = "IEEE 802.11a" + + // DeviceInterfaceTypeLabelIEEE80211bg captures enum value "IEEE 802.11b/g" + DeviceInterfaceTypeLabelIEEE80211bg string = "IEEE 802.11b/g" + + // DeviceInterfaceTypeLabelIEEE80211n captures enum value "IEEE 802.11n" + DeviceInterfaceTypeLabelIEEE80211n string = "IEEE 802.11n" + + // DeviceInterfaceTypeLabelIEEE80211ac captures enum value "IEEE 802.11ac" + DeviceInterfaceTypeLabelIEEE80211ac string = "IEEE 802.11ac" + + // DeviceInterfaceTypeLabelIEEE80211ad captures enum value "IEEE 802.11ad" + DeviceInterfaceTypeLabelIEEE80211ad string = "IEEE 802.11ad" + + // DeviceInterfaceTypeLabelIEEE80211ax captures enum value "IEEE 802.11ax" + DeviceInterfaceTypeLabelIEEE80211ax string = "IEEE 802.11ax" + + // DeviceInterfaceTypeLabelGSM captures enum value "GSM" + DeviceInterfaceTypeLabelGSM string = "GSM" + + // DeviceInterfaceTypeLabelCDMA captures enum value "CDMA" + DeviceInterfaceTypeLabelCDMA string = "CDMA" + + // DeviceInterfaceTypeLabelLTE captures enum value "LTE" + DeviceInterfaceTypeLabelLTE string = "LTE" + + // DeviceInterfaceTypeLabelOC3STM1 captures enum value "OC-3/STM-1" + DeviceInterfaceTypeLabelOC3STM1 string = "OC-3/STM-1" + + // DeviceInterfaceTypeLabelOC12STM4 captures enum value "OC-12/STM-4" + DeviceInterfaceTypeLabelOC12STM4 string = "OC-12/STM-4" + + // DeviceInterfaceTypeLabelOC48STM16 captures enum value "OC-48/STM-16" + DeviceInterfaceTypeLabelOC48STM16 string = "OC-48/STM-16" + + // DeviceInterfaceTypeLabelOC192STM64 captures enum value "OC-192/STM-64" + DeviceInterfaceTypeLabelOC192STM64 string = "OC-192/STM-64" + + // DeviceInterfaceTypeLabelOC768STM256 captures enum value "OC-768/STM-256" + DeviceInterfaceTypeLabelOC768STM256 string = "OC-768/STM-256" + + // DeviceInterfaceTypeLabelOC1920STM640 captures enum value "OC-1920/STM-640" + DeviceInterfaceTypeLabelOC1920STM640 string = "OC-1920/STM-640" + + // DeviceInterfaceTypeLabelOC3840STM1234 captures enum value "OC-3840/STM-1234" + DeviceInterfaceTypeLabelOC3840STM1234 string = "OC-3840/STM-1234" + + // DeviceInterfaceTypeLabelSFP1GFC captures enum value "SFP (1GFC)" + DeviceInterfaceTypeLabelSFP1GFC string = "SFP (1GFC)" + + // DeviceInterfaceTypeLabelSFP2GFC captures enum value "SFP (2GFC)" + DeviceInterfaceTypeLabelSFP2GFC string = "SFP (2GFC)" + + // DeviceInterfaceTypeLabelSFP4GFC captures enum value "SFP (4GFC)" + DeviceInterfaceTypeLabelSFP4GFC string = "SFP (4GFC)" + + // DeviceInterfaceTypeLabelSFP8GFC captures enum value "SFP+ (8GFC)" + DeviceInterfaceTypeLabelSFP8GFC string = "SFP+ (8GFC)" + + // DeviceInterfaceTypeLabelSFP16GFC captures enum value "SFP+ (16GFC)" + DeviceInterfaceTypeLabelSFP16GFC string = "SFP+ (16GFC)" + + // DeviceInterfaceTypeLabelSFP2832GFC captures enum value "SFP28 (32GFC)" + DeviceInterfaceTypeLabelSFP2832GFC string = "SFP28 (32GFC)" + + // DeviceInterfaceTypeLabelQSFP28128GFC captures enum value "QSFP28 (128GFC)" + DeviceInterfaceTypeLabelQSFP28128GFC string = "QSFP28 (128GFC)" + + // DeviceInterfaceTypeLabelSDR2Gbps captures enum value "SDR (2 Gbps)" + DeviceInterfaceTypeLabelSDR2Gbps string = "SDR (2 Gbps)" + + // DeviceInterfaceTypeLabelDDR4Gbps captures enum value "DDR (4 Gbps)" + DeviceInterfaceTypeLabelDDR4Gbps string = "DDR (4 Gbps)" + + // DeviceInterfaceTypeLabelQDR8Gbps captures enum value "QDR (8 Gbps)" + DeviceInterfaceTypeLabelQDR8Gbps string = "QDR (8 Gbps)" + + // DeviceInterfaceTypeLabelFDR1010Gbps captures enum value "FDR10 (10 Gbps)" + DeviceInterfaceTypeLabelFDR1010Gbps string = "FDR10 (10 Gbps)" + + // DeviceInterfaceTypeLabelFDR135Gbps captures enum value "FDR (13.5 Gbps)" + DeviceInterfaceTypeLabelFDR135Gbps string = "FDR (13.5 Gbps)" + + // DeviceInterfaceTypeLabelEDR25Gbps captures enum value "EDR (25 Gbps)" + DeviceInterfaceTypeLabelEDR25Gbps string = "EDR (25 Gbps)" + + // DeviceInterfaceTypeLabelHDR50Gbps captures enum value "HDR (50 Gbps)" + DeviceInterfaceTypeLabelHDR50Gbps string = "HDR (50 Gbps)" + + // DeviceInterfaceTypeLabelNDR100Gbps captures enum value "NDR (100 Gbps)" + DeviceInterfaceTypeLabelNDR100Gbps string = "NDR (100 Gbps)" + + // DeviceInterfaceTypeLabelXDR250Gbps captures enum value "XDR (250 Gbps)" + DeviceInterfaceTypeLabelXDR250Gbps string = "XDR (250 Gbps)" + + // DeviceInterfaceTypeLabelT11544Mbps captures enum value "T1 (1.544 Mbps)" + DeviceInterfaceTypeLabelT11544Mbps string = "T1 (1.544 Mbps)" + + // DeviceInterfaceTypeLabelE12048Mbps captures enum value "E1 (2.048 Mbps)" + DeviceInterfaceTypeLabelE12048Mbps string = "E1 (2.048 Mbps)" + + // DeviceInterfaceTypeLabelT345Mbps captures enum value "T3 (45 Mbps)" + DeviceInterfaceTypeLabelT345Mbps string = "T3 (45 Mbps)" + + // DeviceInterfaceTypeLabelE334Mbps captures enum value "E3 (34 Mbps)" + DeviceInterfaceTypeLabelE334Mbps string = "E3 (34 Mbps)" + + // DeviceInterfaceTypeLabelCiscoStackWise captures enum value "Cisco StackWise" + DeviceInterfaceTypeLabelCiscoStackWise string = "Cisco StackWise" + + // DeviceInterfaceTypeLabelCiscoStackWisePlus captures enum value "Cisco StackWise Plus" + DeviceInterfaceTypeLabelCiscoStackWisePlus string = "Cisco StackWise Plus" + + // DeviceInterfaceTypeLabelCiscoFlexStack captures enum value "Cisco FlexStack" + DeviceInterfaceTypeLabelCiscoFlexStack string = "Cisco FlexStack" + + // DeviceInterfaceTypeLabelCiscoFlexStackPlus captures enum value "Cisco FlexStack Plus" + DeviceInterfaceTypeLabelCiscoFlexStackPlus string = "Cisco FlexStack Plus" + + // DeviceInterfaceTypeLabelJuniperVCP captures enum value "Juniper VCP" + DeviceInterfaceTypeLabelJuniperVCP string = "Juniper VCP" + + // DeviceInterfaceTypeLabelExtremeSummitStack captures enum value "Extreme SummitStack" + DeviceInterfaceTypeLabelExtremeSummitStack string = "Extreme SummitStack" + + // DeviceInterfaceTypeLabelExtremeSummitStack128 captures enum value "Extreme SummitStack-128" + DeviceInterfaceTypeLabelExtremeSummitStack128 string = "Extreme SummitStack-128" + + // DeviceInterfaceTypeLabelExtremeSummitStack256 captures enum value "Extreme SummitStack-256" + DeviceInterfaceTypeLabelExtremeSummitStack256 string = "Extreme SummitStack-256" + + // DeviceInterfaceTypeLabelExtremeSummitStack512 captures enum value "Extreme SummitStack-512" + DeviceInterfaceTypeLabelExtremeSummitStack512 string = "Extreme SummitStack-512" + + // DeviceInterfaceTypeLabelOther captures enum value "Other" + DeviceInterfaceTypeLabelOther string = "Other" +) + +// prop value enum +func (m *DeviceInterfaceType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceInterfaceTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceInterfaceType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceInterfaceTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceInterfaceTypeTypeValuePropEnum = append(deviceInterfaceTypeTypeValuePropEnum, v) + } +} + +const ( + + // DeviceInterfaceTypeValueVirtual captures enum value "virtual" + DeviceInterfaceTypeValueVirtual string = "virtual" + + // DeviceInterfaceTypeValueLag captures enum value "lag" + DeviceInterfaceTypeValueLag string = "lag" + + // DeviceInterfaceTypeValueNr100baseTx captures enum value "100base-tx" + DeviceInterfaceTypeValueNr100baseTx string = "100base-tx" + + // DeviceInterfaceTypeValueNr1000baset captures enum value "1000base-t" + DeviceInterfaceTypeValueNr1000baset string = "1000base-t" + + // DeviceInterfaceTypeValueNr25gbaset captures enum value "2.5gbase-t" + DeviceInterfaceTypeValueNr25gbaset string = "2.5gbase-t" + + // DeviceInterfaceTypeValueNr5gbaset captures enum value "5gbase-t" + DeviceInterfaceTypeValueNr5gbaset string = "5gbase-t" + + // DeviceInterfaceTypeValueNr10gbaset captures enum value "10gbase-t" + DeviceInterfaceTypeValueNr10gbaset string = "10gbase-t" + + // DeviceInterfaceTypeValueNr10gbaseCx4 captures enum value "10gbase-cx4" + DeviceInterfaceTypeValueNr10gbaseCx4 string = "10gbase-cx4" + + // DeviceInterfaceTypeValueNr1000basexGbic captures enum value "1000base-x-gbic" + DeviceInterfaceTypeValueNr1000basexGbic string = "1000base-x-gbic" + + // DeviceInterfaceTypeValueNr1000basexSfp captures enum value "1000base-x-sfp" + DeviceInterfaceTypeValueNr1000basexSfp string = "1000base-x-sfp" + + // DeviceInterfaceTypeValueNr10gbasexSfpp captures enum value "10gbase-x-sfpp" + DeviceInterfaceTypeValueNr10gbasexSfpp string = "10gbase-x-sfpp" + + // DeviceInterfaceTypeValueNr10gbasexXfp captures enum value "10gbase-x-xfp" + DeviceInterfaceTypeValueNr10gbasexXfp string = "10gbase-x-xfp" + + // DeviceInterfaceTypeValueNr10gbasexXenpak captures enum value "10gbase-x-xenpak" + DeviceInterfaceTypeValueNr10gbasexXenpak string = "10gbase-x-xenpak" + + // DeviceInterfaceTypeValueNr10gbasexX2 captures enum value "10gbase-x-x2" + DeviceInterfaceTypeValueNr10gbasexX2 string = "10gbase-x-x2" + + // DeviceInterfaceTypeValueNr25gbasexSfp28 captures enum value "25gbase-x-sfp28" + DeviceInterfaceTypeValueNr25gbasexSfp28 string = "25gbase-x-sfp28" + + // DeviceInterfaceTypeValueNr40gbasexQsfpp captures enum value "40gbase-x-qsfpp" + DeviceInterfaceTypeValueNr40gbasexQsfpp string = "40gbase-x-qsfpp" + + // DeviceInterfaceTypeValueNr50gbasexSfp28 captures enum value "50gbase-x-sfp28" + DeviceInterfaceTypeValueNr50gbasexSfp28 string = "50gbase-x-sfp28" + + // DeviceInterfaceTypeValueNr100gbasexCfp captures enum value "100gbase-x-cfp" + DeviceInterfaceTypeValueNr100gbasexCfp string = "100gbase-x-cfp" + + // DeviceInterfaceTypeValueNr100gbasexCfp2 captures enum value "100gbase-x-cfp2" + DeviceInterfaceTypeValueNr100gbasexCfp2 string = "100gbase-x-cfp2" + + // DeviceInterfaceTypeValueNr200gbasexCfp2 captures enum value "200gbase-x-cfp2" + DeviceInterfaceTypeValueNr200gbasexCfp2 string = "200gbase-x-cfp2" + + // DeviceInterfaceTypeValueNr100gbasexCfp4 captures enum value "100gbase-x-cfp4" + DeviceInterfaceTypeValueNr100gbasexCfp4 string = "100gbase-x-cfp4" + + // DeviceInterfaceTypeValueNr100gbasexCpak captures enum value "100gbase-x-cpak" + DeviceInterfaceTypeValueNr100gbasexCpak string = "100gbase-x-cpak" + + // DeviceInterfaceTypeValueNr100gbasexQsfp28 captures enum value "100gbase-x-qsfp28" + DeviceInterfaceTypeValueNr100gbasexQsfp28 string = "100gbase-x-qsfp28" + + // DeviceInterfaceTypeValueNr200gbasexQsfp56 captures enum value "200gbase-x-qsfp56" + DeviceInterfaceTypeValueNr200gbasexQsfp56 string = "200gbase-x-qsfp56" + + // DeviceInterfaceTypeValueNr400gbasexQsfpdd captures enum value "400gbase-x-qsfpdd" + DeviceInterfaceTypeValueNr400gbasexQsfpdd string = "400gbase-x-qsfpdd" + + // DeviceInterfaceTypeValueNr400gbasexOsfp captures enum value "400gbase-x-osfp" + DeviceInterfaceTypeValueNr400gbasexOsfp string = "400gbase-x-osfp" + + // DeviceInterfaceTypeValueIeee80211a captures enum value "ieee802.11a" + DeviceInterfaceTypeValueIeee80211a string = "ieee802.11a" + + // DeviceInterfaceTypeValueIeee80211g captures enum value "ieee802.11g" + DeviceInterfaceTypeValueIeee80211g string = "ieee802.11g" + + // DeviceInterfaceTypeValueIeee80211n captures enum value "ieee802.11n" + DeviceInterfaceTypeValueIeee80211n string = "ieee802.11n" + + // DeviceInterfaceTypeValueIeee80211ac captures enum value "ieee802.11ac" + DeviceInterfaceTypeValueIeee80211ac string = "ieee802.11ac" + + // DeviceInterfaceTypeValueIeee80211ad captures enum value "ieee802.11ad" + DeviceInterfaceTypeValueIeee80211ad string = "ieee802.11ad" + + // DeviceInterfaceTypeValueIeee80211ax captures enum value "ieee802.11ax" + DeviceInterfaceTypeValueIeee80211ax string = "ieee802.11ax" + + // DeviceInterfaceTypeValueGsm captures enum value "gsm" + DeviceInterfaceTypeValueGsm string = "gsm" + + // DeviceInterfaceTypeValueCdma captures enum value "cdma" + DeviceInterfaceTypeValueCdma string = "cdma" + + // DeviceInterfaceTypeValueLte captures enum value "lte" + DeviceInterfaceTypeValueLte string = "lte" + + // DeviceInterfaceTypeValueSonetOc3 captures enum value "sonet-oc3" + DeviceInterfaceTypeValueSonetOc3 string = "sonet-oc3" + + // DeviceInterfaceTypeValueSonetOc12 captures enum value "sonet-oc12" + DeviceInterfaceTypeValueSonetOc12 string = "sonet-oc12" + + // DeviceInterfaceTypeValueSonetOc48 captures enum value "sonet-oc48" + DeviceInterfaceTypeValueSonetOc48 string = "sonet-oc48" + + // DeviceInterfaceTypeValueSonetOc192 captures enum value "sonet-oc192" + DeviceInterfaceTypeValueSonetOc192 string = "sonet-oc192" + + // DeviceInterfaceTypeValueSonetOc768 captures enum value "sonet-oc768" + DeviceInterfaceTypeValueSonetOc768 string = "sonet-oc768" + + // DeviceInterfaceTypeValueSonetOc1920 captures enum value "sonet-oc1920" + DeviceInterfaceTypeValueSonetOc1920 string = "sonet-oc1920" + + // DeviceInterfaceTypeValueSonetOc3840 captures enum value "sonet-oc3840" + DeviceInterfaceTypeValueSonetOc3840 string = "sonet-oc3840" + + // DeviceInterfaceTypeValueNr1gfcSfp captures enum value "1gfc-sfp" + DeviceInterfaceTypeValueNr1gfcSfp string = "1gfc-sfp" + + // DeviceInterfaceTypeValueNr2gfcSfp captures enum value "2gfc-sfp" + DeviceInterfaceTypeValueNr2gfcSfp string = "2gfc-sfp" + + // DeviceInterfaceTypeValueNr4gfcSfp captures enum value "4gfc-sfp" + DeviceInterfaceTypeValueNr4gfcSfp string = "4gfc-sfp" + + // DeviceInterfaceTypeValueNr8gfcSfpp captures enum value "8gfc-sfpp" + DeviceInterfaceTypeValueNr8gfcSfpp string = "8gfc-sfpp" + + // DeviceInterfaceTypeValueNr16gfcSfpp captures enum value "16gfc-sfpp" + DeviceInterfaceTypeValueNr16gfcSfpp string = "16gfc-sfpp" + + // DeviceInterfaceTypeValueNr32gfcSfp28 captures enum value "32gfc-sfp28" + DeviceInterfaceTypeValueNr32gfcSfp28 string = "32gfc-sfp28" + + // DeviceInterfaceTypeValueNr128gfcSfp28 captures enum value "128gfc-sfp28" + DeviceInterfaceTypeValueNr128gfcSfp28 string = "128gfc-sfp28" + + // DeviceInterfaceTypeValueInfinibandSdr captures enum value "infiniband-sdr" + DeviceInterfaceTypeValueInfinibandSdr string = "infiniband-sdr" + + // DeviceInterfaceTypeValueInfinibandDdr captures enum value "infiniband-ddr" + DeviceInterfaceTypeValueInfinibandDdr string = "infiniband-ddr" + + // DeviceInterfaceTypeValueInfinibandQdr captures enum value "infiniband-qdr" + DeviceInterfaceTypeValueInfinibandQdr string = "infiniband-qdr" + + // DeviceInterfaceTypeValueInfinibandFdr10 captures enum value "infiniband-fdr10" + DeviceInterfaceTypeValueInfinibandFdr10 string = "infiniband-fdr10" + + // DeviceInterfaceTypeValueInfinibandFdr captures enum value "infiniband-fdr" + DeviceInterfaceTypeValueInfinibandFdr string = "infiniband-fdr" + + // DeviceInterfaceTypeValueInfinibandEdr captures enum value "infiniband-edr" + DeviceInterfaceTypeValueInfinibandEdr string = "infiniband-edr" + + // DeviceInterfaceTypeValueInfinibandHdr captures enum value "infiniband-hdr" + DeviceInterfaceTypeValueInfinibandHdr string = "infiniband-hdr" + + // DeviceInterfaceTypeValueInfinibandNdr captures enum value "infiniband-ndr" + DeviceInterfaceTypeValueInfinibandNdr string = "infiniband-ndr" + + // DeviceInterfaceTypeValueInfinibandXdr captures enum value "infiniband-xdr" + DeviceInterfaceTypeValueInfinibandXdr string = "infiniband-xdr" + + // DeviceInterfaceTypeValueT1 captures enum value "t1" + DeviceInterfaceTypeValueT1 string = "t1" + + // DeviceInterfaceTypeValueE1 captures enum value "e1" + DeviceInterfaceTypeValueE1 string = "e1" + + // DeviceInterfaceTypeValueT3 captures enum value "t3" + DeviceInterfaceTypeValueT3 string = "t3" + + // DeviceInterfaceTypeValueE3 captures enum value "e3" + DeviceInterfaceTypeValueE3 string = "e3" + + // DeviceInterfaceTypeValueCiscoStackwise captures enum value "cisco-stackwise" + DeviceInterfaceTypeValueCiscoStackwise string = "cisco-stackwise" + + // DeviceInterfaceTypeValueCiscoStackwisePlus captures enum value "cisco-stackwise-plus" + DeviceInterfaceTypeValueCiscoStackwisePlus string = "cisco-stackwise-plus" + + // DeviceInterfaceTypeValueCiscoFlexstack captures enum value "cisco-flexstack" + DeviceInterfaceTypeValueCiscoFlexstack string = "cisco-flexstack" + + // DeviceInterfaceTypeValueCiscoFlexstackPlus captures enum value "cisco-flexstack-plus" + DeviceInterfaceTypeValueCiscoFlexstackPlus string = "cisco-flexstack-plus" + + // DeviceInterfaceTypeValueJuniperVcp captures enum value "juniper-vcp" + DeviceInterfaceTypeValueJuniperVcp string = "juniper-vcp" + + // DeviceInterfaceTypeValueExtremeSummitstack captures enum value "extreme-summitstack" + DeviceInterfaceTypeValueExtremeSummitstack string = "extreme-summitstack" + + // DeviceInterfaceTypeValueExtremeSummitstack128 captures enum value "extreme-summitstack-128" + DeviceInterfaceTypeValueExtremeSummitstack128 string = "extreme-summitstack-128" + + // DeviceInterfaceTypeValueExtremeSummitstack256 captures enum value "extreme-summitstack-256" + DeviceInterfaceTypeValueExtremeSummitstack256 string = "extreme-summitstack-256" + + // DeviceInterfaceTypeValueExtremeSummitstack512 captures enum value "extreme-summitstack-512" + DeviceInterfaceTypeValueExtremeSummitstack512 string = "extreme-summitstack-512" + + // DeviceInterfaceTypeValueOther captures enum value "other" + DeviceInterfaceTypeValueOther string = "other" +) + +// prop value enum +func (m *DeviceInterfaceType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceInterfaceTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -585,6 +1212,11 @@ func (m *DeviceInterfaceType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_n_a_p_a_l_m.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_n_a_p_a_l_m.go index 9a29aa10e..211f923b7 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_n_a_p_a_l_m.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_n_a_p_a_l_m.go @@ -21,13 +21,13 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // DeviceNAPALM device n a p a l m +// // swagger:model DeviceNAPALM type DeviceNAPALM struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_role.go index ab4db5a76..8d741e76e 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_role.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // DeviceRole device role +// // swagger:model DeviceRole type DeviceRole struct { @@ -40,7 +40,7 @@ type DeviceRole struct { Color *string `json:"color"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device count @@ -127,7 +127,7 @@ func (m *DeviceRole) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_type.go index 74363c178..7d06808c4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_type.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // DeviceType device type +// // swagger:model DeviceType type DeviceType struct { @@ -358,15 +359,18 @@ func (m *DeviceType) UnmarshalBinary(b []byte) error { } // DeviceTypeSubdeviceRole Subdevice role +// // swagger:model DeviceTypeSubdeviceRole type DeviceTypeSubdeviceRole struct { // label // Required: true + // Enum: [Parent Child] Label *string `json:"label"` // value // Required: true + // Enum: [parent child] Value *string `json:"value"` } @@ -388,12 +392,75 @@ func (m *DeviceTypeSubdeviceRole) Validate(formats strfmt.Registry) error { return nil } +var deviceTypeSubdeviceRoleTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Parent","Child"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceTypeSubdeviceRoleTypeLabelPropEnum = append(deviceTypeSubdeviceRoleTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceTypeSubdeviceRoleLabelParent captures enum value "Parent" + DeviceTypeSubdeviceRoleLabelParent string = "Parent" + + // DeviceTypeSubdeviceRoleLabelChild captures enum value "Child" + DeviceTypeSubdeviceRoleLabelChild string = "Child" +) + +// prop value enum +func (m *DeviceTypeSubdeviceRole) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceTypeSubdeviceRoleTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceTypeSubdeviceRole) validateLabel(formats strfmt.Registry) error { if err := validate.Required("subdevice_role"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("subdevice_role"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceTypeSubdeviceRoleTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["parent","child"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceTypeSubdeviceRoleTypeValuePropEnum = append(deviceTypeSubdeviceRoleTypeValuePropEnum, v) + } +} + +const ( + + // DeviceTypeSubdeviceRoleValueParent captures enum value "parent" + DeviceTypeSubdeviceRoleValueParent string = "parent" + + // DeviceTypeSubdeviceRoleValueChild captures enum value "child" + DeviceTypeSubdeviceRoleValueChild string = "child" +) + +// prop value enum +func (m *DeviceTypeSubdeviceRole) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceTypeSubdeviceRoleTypeValuePropEnum); err != nil { + return err + } return nil } @@ -403,6 +470,11 @@ func (m *DeviceTypeSubdeviceRole) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("subdevice_role"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_with_config_context.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_with_config_context.go index 41085a006..11c5f28d3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/device_with_config_context.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/device_with_config_context.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // DeviceWithConfigContext device with config context +// // swagger:model DeviceWithConfigContext type DeviceWithConfigContext struct { @@ -651,15 +652,18 @@ func (m *DeviceWithConfigContext) UnmarshalBinary(b []byte) error { } // DeviceWithConfigContextFace Face +// // swagger:model DeviceWithConfigContextFace type DeviceWithConfigContextFace struct { // label // Required: true + // Enum: [Front Rear] Label *string `json:"label"` // value // Required: true + // Enum: [front rear] Value *string `json:"value"` } @@ -681,12 +685,75 @@ func (m *DeviceWithConfigContextFace) Validate(formats strfmt.Registry) error { return nil } +var deviceWithConfigContextFaceTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Front","Rear"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceWithConfigContextFaceTypeLabelPropEnum = append(deviceWithConfigContextFaceTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceWithConfigContextFaceLabelFront captures enum value "Front" + DeviceWithConfigContextFaceLabelFront string = "Front" + + // DeviceWithConfigContextFaceLabelRear captures enum value "Rear" + DeviceWithConfigContextFaceLabelRear string = "Rear" +) + +// prop value enum +func (m *DeviceWithConfigContextFace) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceWithConfigContextFaceTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceWithConfigContextFace) validateLabel(formats strfmt.Registry) error { if err := validate.Required("face"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("face"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceWithConfigContextFaceTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["front","rear"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceWithConfigContextFaceTypeValuePropEnum = append(deviceWithConfigContextFaceTypeValuePropEnum, v) + } +} + +const ( + + // DeviceWithConfigContextFaceValueFront captures enum value "front" + DeviceWithConfigContextFaceValueFront string = "front" + + // DeviceWithConfigContextFaceValueRear captures enum value "rear" + DeviceWithConfigContextFaceValueRear string = "rear" +) + +// prop value enum +func (m *DeviceWithConfigContextFace) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceWithConfigContextFaceTypeValuePropEnum); err != nil { + return err + } return nil } @@ -696,6 +763,11 @@ func (m *DeviceWithConfigContextFace) validateValue(formats strfmt.Registry) err return err } + // value enum + if err := m.validateValueEnum("face"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -718,15 +790,18 @@ func (m *DeviceWithConfigContextFace) UnmarshalBinary(b []byte) error { } // DeviceWithConfigContextStatus Status +// // swagger:model DeviceWithConfigContextStatus type DeviceWithConfigContextStatus struct { // label // Required: true + // Enum: [Offline Active Planned Staged Failed Inventory Decommissioning] Label *string `json:"label"` // value // Required: true + // Enum: [offline active planned staged failed inventory decommissioning] Value *string `json:"value"` } @@ -748,12 +823,105 @@ func (m *DeviceWithConfigContextStatus) Validate(formats strfmt.Registry) error return nil } +var deviceWithConfigContextStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Offline","Active","Planned","Staged","Failed","Inventory","Decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceWithConfigContextStatusTypeLabelPropEnum = append(deviceWithConfigContextStatusTypeLabelPropEnum, v) + } +} + +const ( + + // DeviceWithConfigContextStatusLabelOffline captures enum value "Offline" + DeviceWithConfigContextStatusLabelOffline string = "Offline" + + // DeviceWithConfigContextStatusLabelActive captures enum value "Active" + DeviceWithConfigContextStatusLabelActive string = "Active" + + // DeviceWithConfigContextStatusLabelPlanned captures enum value "Planned" + DeviceWithConfigContextStatusLabelPlanned string = "Planned" + + // DeviceWithConfigContextStatusLabelStaged captures enum value "Staged" + DeviceWithConfigContextStatusLabelStaged string = "Staged" + + // DeviceWithConfigContextStatusLabelFailed captures enum value "Failed" + DeviceWithConfigContextStatusLabelFailed string = "Failed" + + // DeviceWithConfigContextStatusLabelInventory captures enum value "Inventory" + DeviceWithConfigContextStatusLabelInventory string = "Inventory" + + // DeviceWithConfigContextStatusLabelDecommissioning captures enum value "Decommissioning" + DeviceWithConfigContextStatusLabelDecommissioning string = "Decommissioning" +) + +// prop value enum +func (m *DeviceWithConfigContextStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceWithConfigContextStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *DeviceWithConfigContextStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var deviceWithConfigContextStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["offline","active","planned","staged","failed","inventory","decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + deviceWithConfigContextStatusTypeValuePropEnum = append(deviceWithConfigContextStatusTypeValuePropEnum, v) + } +} + +const ( + + // DeviceWithConfigContextStatusValueOffline captures enum value "offline" + DeviceWithConfigContextStatusValueOffline string = "offline" + + // DeviceWithConfigContextStatusValueActive captures enum value "active" + DeviceWithConfigContextStatusValueActive string = "active" + + // DeviceWithConfigContextStatusValuePlanned captures enum value "planned" + DeviceWithConfigContextStatusValuePlanned string = "planned" + + // DeviceWithConfigContextStatusValueStaged captures enum value "staged" + DeviceWithConfigContextStatusValueStaged string = "staged" + + // DeviceWithConfigContextStatusValueFailed captures enum value "failed" + DeviceWithConfigContextStatusValueFailed string = "failed" + + // DeviceWithConfigContextStatusValueInventory captures enum value "inventory" + DeviceWithConfigContextStatusValueInventory string = "inventory" + + // DeviceWithConfigContextStatusValueDecommissioning captures enum value "decommissioning" + DeviceWithConfigContextStatusValueDecommissioning string = "decommissioning" +) + +// prop value enum +func (m *DeviceWithConfigContextStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, deviceWithConfigContextStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -763,6 +931,11 @@ func (m *DeviceWithConfigContextStatus) validateValue(formats strfmt.Registry) e return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/export_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/export_template.go index 2719a8ad7..340511c79 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/export_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/export_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ExportTemplate export template +// // swagger:model ExportTemplate type ExportTemplate struct { @@ -228,15 +228,18 @@ func (m *ExportTemplate) UnmarshalBinary(b []byte) error { } // ExportTemplateTemplateLanguage Template language +// // swagger:model ExportTemplateTemplateLanguage type ExportTemplateTemplateLanguage struct { // label // Required: true + // Enum: [Django Jinja2] Label *string `json:"label"` // value // Required: true + // Enum: [django jinja2] Value *string `json:"value"` } @@ -271,12 +274,75 @@ func (m *ExportTemplateTemplateLanguage) Validate(formats strfmt.Registry) error return nil } +var exportTemplateTemplateLanguageTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Django","Jinja2"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + exportTemplateTemplateLanguageTypeLabelPropEnum = append(exportTemplateTemplateLanguageTypeLabelPropEnum, v) + } +} + +const ( + + // ExportTemplateTemplateLanguageLabelDjango captures enum value "Django" + ExportTemplateTemplateLanguageLabelDjango string = "Django" + + // ExportTemplateTemplateLanguageLabelJinja2 captures enum value "Jinja2" + ExportTemplateTemplateLanguageLabelJinja2 string = "Jinja2" +) + +// prop value enum +func (m *ExportTemplateTemplateLanguage) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, exportTemplateTemplateLanguageTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ExportTemplateTemplateLanguage) validateLabel(formats strfmt.Registry) error { if err := validate.Required("template_language"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("template_language"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var exportTemplateTemplateLanguageTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["django","jinja2"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + exportTemplateTemplateLanguageTypeValuePropEnum = append(exportTemplateTemplateLanguageTypeValuePropEnum, v) + } +} + +const ( + + // ExportTemplateTemplateLanguageValueDjango captures enum value "django" + ExportTemplateTemplateLanguageValueDjango string = "django" + + // ExportTemplateTemplateLanguageValueJinja2 captures enum value "jinja2" + ExportTemplateTemplateLanguageValueJinja2 string = "jinja2" +) + +// prop value enum +func (m *ExportTemplateTemplateLanguage) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, exportTemplateTemplateLanguageTypeValuePropEnum); err != nil { + return err + } return nil } @@ -286,6 +352,11 @@ func (m *ExportTemplateTemplateLanguage) validateValue(formats strfmt.Registry) return err } + // value enum + if err := m.validateValueEnum("template_language"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port.go index 0c2efe84d..618434f78 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // FrontPort front port +// // swagger:model FrontPort type FrontPort struct { @@ -38,7 +39,7 @@ type FrontPort struct { Cable *NestedCable `json:"cable,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -138,7 +139,7 @@ func (m *FrontPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -269,15 +270,18 @@ func (m *FrontPort) UnmarshalBinary(b []byte) error { } // FrontPortType Type +// // swagger:model FrontPortType type FrontPortType struct { // label // Required: true + // Enum: [8P8C 110 Punch BNC MRJ21 FC LC LC/APC LSH LSH/APC MPO MTRJ SC SC/APC ST] Label *string `json:"label"` // value // Required: true + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Value *string `json:"value"` } @@ -299,12 +303,147 @@ func (m *FrontPortType) Validate(formats strfmt.Registry) error { return nil } +var frontPortTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8P8C","110 Punch","BNC","MRJ21","FC","LC","LC/APC","LSH","LSH/APC","MPO","MTRJ","SC","SC/APC","ST"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + frontPortTypeTypeLabelPropEnum = append(frontPortTypeTypeLabelPropEnum, v) + } +} + +const ( + + // FrontPortTypeLabelNr8P8C captures enum value "8P8C" + FrontPortTypeLabelNr8P8C string = "8P8C" + + // FrontPortTypeLabelNr110Punch captures enum value "110 Punch" + FrontPortTypeLabelNr110Punch string = "110 Punch" + + // FrontPortTypeLabelBNC captures enum value "BNC" + FrontPortTypeLabelBNC string = "BNC" + + // FrontPortTypeLabelMRJ21 captures enum value "MRJ21" + FrontPortTypeLabelMRJ21 string = "MRJ21" + + // FrontPortTypeLabelFC captures enum value "FC" + FrontPortTypeLabelFC string = "FC" + + // FrontPortTypeLabelLC captures enum value "LC" + FrontPortTypeLabelLC string = "LC" + + // FrontPortTypeLabelLCAPC captures enum value "LC/APC" + FrontPortTypeLabelLCAPC string = "LC/APC" + + // FrontPortTypeLabelLSH captures enum value "LSH" + FrontPortTypeLabelLSH string = "LSH" + + // FrontPortTypeLabelLSHAPC captures enum value "LSH/APC" + FrontPortTypeLabelLSHAPC string = "LSH/APC" + + // FrontPortTypeLabelMPO captures enum value "MPO" + FrontPortTypeLabelMPO string = "MPO" + + // FrontPortTypeLabelMTRJ captures enum value "MTRJ" + FrontPortTypeLabelMTRJ string = "MTRJ" + + // FrontPortTypeLabelSC captures enum value "SC" + FrontPortTypeLabelSC string = "SC" + + // FrontPortTypeLabelSCAPC captures enum value "SC/APC" + FrontPortTypeLabelSCAPC string = "SC/APC" + + // FrontPortTypeLabelST captures enum value "ST" + FrontPortTypeLabelST string = "ST" +) + +// prop value enum +func (m *FrontPortType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, frontPortTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *FrontPortType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var frontPortTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + frontPortTypeTypeValuePropEnum = append(frontPortTypeTypeValuePropEnum, v) + } +} + +const ( + + // FrontPortTypeValueNr8p8c captures enum value "8p8c" + FrontPortTypeValueNr8p8c string = "8p8c" + + // FrontPortTypeValueNr110Punch captures enum value "110-punch" + FrontPortTypeValueNr110Punch string = "110-punch" + + // FrontPortTypeValueBnc captures enum value "bnc" + FrontPortTypeValueBnc string = "bnc" + + // FrontPortTypeValueMrj21 captures enum value "mrj21" + FrontPortTypeValueMrj21 string = "mrj21" + + // FrontPortTypeValueFc captures enum value "fc" + FrontPortTypeValueFc string = "fc" + + // FrontPortTypeValueLc captures enum value "lc" + FrontPortTypeValueLc string = "lc" + + // FrontPortTypeValueLcApc captures enum value "lc-apc" + FrontPortTypeValueLcApc string = "lc-apc" + + // FrontPortTypeValueLsh captures enum value "lsh" + FrontPortTypeValueLsh string = "lsh" + + // FrontPortTypeValueLshApc captures enum value "lsh-apc" + FrontPortTypeValueLshApc string = "lsh-apc" + + // FrontPortTypeValueMpo captures enum value "mpo" + FrontPortTypeValueMpo string = "mpo" + + // FrontPortTypeValueMtrj captures enum value "mtrj" + FrontPortTypeValueMtrj string = "mtrj" + + // FrontPortTypeValueSc captures enum value "sc" + FrontPortTypeValueSc string = "sc" + + // FrontPortTypeValueScApc captures enum value "sc-apc" + FrontPortTypeValueScApc string = "sc-apc" + + // FrontPortTypeValueSt captures enum value "st" + FrontPortTypeValueSt string = "st" +) + +// prop value enum +func (m *FrontPortType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, frontPortTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -314,6 +453,11 @@ func (m *FrontPortType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_rear_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_rear_port.go index 79d10e319..ef1b2d54d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_rear_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_rear_port.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // FrontPortRearPort Rear port +// // swagger:model FrontPortRearPort type FrontPortRearPort struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_template.go index 2696708bf..8da2f8a1c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/front_port_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // FrontPortTemplate front port template +// // swagger:model FrontPortTemplate type FrontPortTemplate struct { @@ -197,15 +199,18 @@ func (m *FrontPortTemplate) UnmarshalBinary(b []byte) error { } // FrontPortTemplateType Type +// // swagger:model FrontPortTemplateType type FrontPortTemplateType struct { // label // Required: true + // Enum: [8P8C 110 Punch BNC MRJ21 FC LC LC/APC LSH LSH/APC MPO MTRJ SC SC/APC ST] Label *string `json:"label"` // value // Required: true + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Value *string `json:"value"` } @@ -227,12 +232,147 @@ func (m *FrontPortTemplateType) Validate(formats strfmt.Registry) error { return nil } +var frontPortTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8P8C","110 Punch","BNC","MRJ21","FC","LC","LC/APC","LSH","LSH/APC","MPO","MTRJ","SC","SC/APC","ST"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + frontPortTemplateTypeTypeLabelPropEnum = append(frontPortTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // FrontPortTemplateTypeLabelNr8P8C captures enum value "8P8C" + FrontPortTemplateTypeLabelNr8P8C string = "8P8C" + + // FrontPortTemplateTypeLabelNr110Punch captures enum value "110 Punch" + FrontPortTemplateTypeLabelNr110Punch string = "110 Punch" + + // FrontPortTemplateTypeLabelBNC captures enum value "BNC" + FrontPortTemplateTypeLabelBNC string = "BNC" + + // FrontPortTemplateTypeLabelMRJ21 captures enum value "MRJ21" + FrontPortTemplateTypeLabelMRJ21 string = "MRJ21" + + // FrontPortTemplateTypeLabelFC captures enum value "FC" + FrontPortTemplateTypeLabelFC string = "FC" + + // FrontPortTemplateTypeLabelLC captures enum value "LC" + FrontPortTemplateTypeLabelLC string = "LC" + + // FrontPortTemplateTypeLabelLCAPC captures enum value "LC/APC" + FrontPortTemplateTypeLabelLCAPC string = "LC/APC" + + // FrontPortTemplateTypeLabelLSH captures enum value "LSH" + FrontPortTemplateTypeLabelLSH string = "LSH" + + // FrontPortTemplateTypeLabelLSHAPC captures enum value "LSH/APC" + FrontPortTemplateTypeLabelLSHAPC string = "LSH/APC" + + // FrontPortTemplateTypeLabelMPO captures enum value "MPO" + FrontPortTemplateTypeLabelMPO string = "MPO" + + // FrontPortTemplateTypeLabelMTRJ captures enum value "MTRJ" + FrontPortTemplateTypeLabelMTRJ string = "MTRJ" + + // FrontPortTemplateTypeLabelSC captures enum value "SC" + FrontPortTemplateTypeLabelSC string = "SC" + + // FrontPortTemplateTypeLabelSCAPC captures enum value "SC/APC" + FrontPortTemplateTypeLabelSCAPC string = "SC/APC" + + // FrontPortTemplateTypeLabelST captures enum value "ST" + FrontPortTemplateTypeLabelST string = "ST" +) + +// prop value enum +func (m *FrontPortTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, frontPortTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *FrontPortTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var frontPortTemplateTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + frontPortTemplateTypeTypeValuePropEnum = append(frontPortTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // FrontPortTemplateTypeValueNr8p8c captures enum value "8p8c" + FrontPortTemplateTypeValueNr8p8c string = "8p8c" + + // FrontPortTemplateTypeValueNr110Punch captures enum value "110-punch" + FrontPortTemplateTypeValueNr110Punch string = "110-punch" + + // FrontPortTemplateTypeValueBnc captures enum value "bnc" + FrontPortTemplateTypeValueBnc string = "bnc" + + // FrontPortTemplateTypeValueMrj21 captures enum value "mrj21" + FrontPortTemplateTypeValueMrj21 string = "mrj21" + + // FrontPortTemplateTypeValueFc captures enum value "fc" + FrontPortTemplateTypeValueFc string = "fc" + + // FrontPortTemplateTypeValueLc captures enum value "lc" + FrontPortTemplateTypeValueLc string = "lc" + + // FrontPortTemplateTypeValueLcApc captures enum value "lc-apc" + FrontPortTemplateTypeValueLcApc string = "lc-apc" + + // FrontPortTemplateTypeValueLsh captures enum value "lsh" + FrontPortTemplateTypeValueLsh string = "lsh" + + // FrontPortTemplateTypeValueLshApc captures enum value "lsh-apc" + FrontPortTemplateTypeValueLshApc string = "lsh-apc" + + // FrontPortTemplateTypeValueMpo captures enum value "mpo" + FrontPortTemplateTypeValueMpo string = "mpo" + + // FrontPortTemplateTypeValueMtrj captures enum value "mtrj" + FrontPortTemplateTypeValueMtrj string = "mtrj" + + // FrontPortTemplateTypeValueSc captures enum value "sc" + FrontPortTemplateTypeValueSc string = "sc" + + // FrontPortTemplateTypeValueScApc captures enum value "sc-apc" + FrontPortTemplateTypeValueScApc string = "sc-apc" + + // FrontPortTemplateTypeValueSt captures enum value "st" + FrontPortTemplateTypeValueSt string = "st" +) + +// prop value enum +func (m *FrontPortTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, frontPortTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -242,6 +382,11 @@ func (m *FrontPortTemplateType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/graph.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/graph.go index 05abac984..97a0151f4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/graph.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/graph.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Graph graph +// // swagger:model Graph type Graph struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/image_attachment.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/image_attachment.go index 630727e47..fddd73038 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/image_attachment.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/image_attachment.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ImageAttachment image attachment +// // swagger:model ImageAttachment type ImageAttachment struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_connection.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_connection.go index 055b96d86..c5a3a204f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_connection.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_connection.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // InterfaceConnection interface connection +// // swagger:model InterfaceConnection type InterfaceConnection struct { @@ -138,15 +140,18 @@ func (m *InterfaceConnection) UnmarshalBinary(b []byte) error { } // InterfaceConnectionConnectionStatus Connection status +// // swagger:model InterfaceConnectionConnectionStatus type InterfaceConnectionConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -168,12 +173,66 @@ func (m *InterfaceConnectionConnectionStatus) Validate(formats strfmt.Registry) return nil } +var interfaceConnectionConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + interfaceConnectionConnectionStatusTypeLabelPropEnum = append(interfaceConnectionConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // InterfaceConnectionConnectionStatusLabelNotConnected captures enum value "Not Connected" + InterfaceConnectionConnectionStatusLabelNotConnected string = "Not Connected" + + // InterfaceConnectionConnectionStatusLabelConnected captures enum value "Connected" + InterfaceConnectionConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *InterfaceConnectionConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, interfaceConnectionConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *InterfaceConnectionConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var interfaceConnectionConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + interfaceConnectionConnectionStatusTypeValuePropEnum = append(interfaceConnectionConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *InterfaceConnectionConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, interfaceConnectionConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -183,6 +242,11 @@ func (m *InterfaceConnectionConnectionStatus) validateValue(formats strfmt.Regis return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_template.go index f4ed50829..79d5db0bd 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/interface_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // InterfaceTemplate interface template +// // swagger:model InterfaceTemplate type InterfaceTemplate struct { @@ -50,7 +52,8 @@ type InterfaceTemplate struct { Name *string `json:"name"` // type - Type *InterfaceTemplateType `json:"type,omitempty"` + // Required: true + Type *InterfaceTemplateType `json:"type"` } // Validate validates this interface template @@ -112,8 +115,8 @@ func (m *InterfaceTemplate) validateName(formats strfmt.Registry) error { func (m *InterfaceTemplate) validateType(formats strfmt.Registry) error { - if swag.IsZero(m.Type) { // not required - return nil + if err := validate.Required("type", "body", m.Type); err != nil { + return err } if m.Type != nil { @@ -147,15 +150,18 @@ func (m *InterfaceTemplate) UnmarshalBinary(b []byte) error { } // InterfaceTemplateType Type +// // swagger:model InterfaceTemplateType type InterfaceTemplateType struct { // label // Required: true + // Enum: [Virtual 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) 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 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) 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) Cisco StackWise Cisco StackWise Plus Cisco FlexStack Cisco FlexStack Plus Juniper VCP Extreme SummitStack Extreme SummitStack-128 Extreme SummitStack-256 Extreme SummitStack-512 Other] Label *string `json:"label"` // value // Required: true + // Enum: [virtual 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 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 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 128gfc-sfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Value *string `json:"value"` } @@ -177,12 +183,495 @@ func (m *InterfaceTemplateType) Validate(formats strfmt.Registry) error { return nil } +var interfaceTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Virtual","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)","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","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)","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)","Cisco StackWise","Cisco StackWise Plus","Cisco FlexStack","Cisco FlexStack Plus","Juniper VCP","Extreme SummitStack","Extreme SummitStack-128","Extreme SummitStack-256","Extreme SummitStack-512","Other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + interfaceTemplateTypeTypeLabelPropEnum = append(interfaceTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // InterfaceTemplateTypeLabelVirtual captures enum value "Virtual" + InterfaceTemplateTypeLabelVirtual string = "Virtual" + + // InterfaceTemplateTypeLabelLinkAggregationGroupLAG captures enum value "Link Aggregation Group (LAG)" + InterfaceTemplateTypeLabelLinkAggregationGroupLAG string = "Link Aggregation Group (LAG)" + + // InterfaceTemplateTypeLabelNr100BASETX10100ME captures enum value "100BASE-TX (10/100ME)" + InterfaceTemplateTypeLabelNr100BASETX10100ME string = "100BASE-TX (10/100ME)" + + // InterfaceTemplateTypeLabelNr1000BASET1GE captures enum value "1000BASE-T (1GE)" + InterfaceTemplateTypeLabelNr1000BASET1GE string = "1000BASE-T (1GE)" + + // InterfaceTemplateTypeLabelNr25GBASET25GE captures enum value "2.5GBASE-T (2.5GE)" + InterfaceTemplateTypeLabelNr25GBASET25GE string = "2.5GBASE-T (2.5GE)" + + // InterfaceTemplateTypeLabelNr5GBASET5GE captures enum value "5GBASE-T (5GE)" + InterfaceTemplateTypeLabelNr5GBASET5GE string = "5GBASE-T (5GE)" + + // InterfaceTemplateTypeLabelNr10GBASET10GE captures enum value "10GBASE-T (10GE)" + InterfaceTemplateTypeLabelNr10GBASET10GE string = "10GBASE-T (10GE)" + + // InterfaceTemplateTypeLabelNr10GBASECX410GE captures enum value "10GBASE-CX4 (10GE)" + InterfaceTemplateTypeLabelNr10GBASECX410GE string = "10GBASE-CX4 (10GE)" + + // InterfaceTemplateTypeLabelGBIC1GE captures enum value "GBIC (1GE)" + InterfaceTemplateTypeLabelGBIC1GE string = "GBIC (1GE)" + + // InterfaceTemplateTypeLabelSFP1GE captures enum value "SFP (1GE)" + InterfaceTemplateTypeLabelSFP1GE string = "SFP (1GE)" + + // InterfaceTemplateTypeLabelSFP10GE captures enum value "SFP+ (10GE)" + InterfaceTemplateTypeLabelSFP10GE string = "SFP+ (10GE)" + + // InterfaceTemplateTypeLabelXFP10GE captures enum value "XFP (10GE)" + InterfaceTemplateTypeLabelXFP10GE string = "XFP (10GE)" + + // InterfaceTemplateTypeLabelXENPAK10GE captures enum value "XENPAK (10GE)" + InterfaceTemplateTypeLabelXENPAK10GE string = "XENPAK (10GE)" + + // InterfaceTemplateTypeLabelX210GE captures enum value "X2 (10GE)" + InterfaceTemplateTypeLabelX210GE string = "X2 (10GE)" + + // InterfaceTemplateTypeLabelSFP2825GE captures enum value "SFP28 (25GE)" + InterfaceTemplateTypeLabelSFP2825GE string = "SFP28 (25GE)" + + // InterfaceTemplateTypeLabelQSFP40GE captures enum value "QSFP+ (40GE)" + InterfaceTemplateTypeLabelQSFP40GE string = "QSFP+ (40GE)" + + // InterfaceTemplateTypeLabelQSFP2850GE captures enum value "QSFP28 (50GE)" + InterfaceTemplateTypeLabelQSFP2850GE string = "QSFP28 (50GE)" + + // InterfaceTemplateTypeLabelCFP100GE captures enum value "CFP (100GE)" + InterfaceTemplateTypeLabelCFP100GE string = "CFP (100GE)" + + // InterfaceTemplateTypeLabelCFP2100GE captures enum value "CFP2 (100GE)" + InterfaceTemplateTypeLabelCFP2100GE string = "CFP2 (100GE)" + + // InterfaceTemplateTypeLabelCFP2200GE captures enum value "CFP2 (200GE)" + InterfaceTemplateTypeLabelCFP2200GE string = "CFP2 (200GE)" + + // InterfaceTemplateTypeLabelCFP4100GE captures enum value "CFP4 (100GE)" + InterfaceTemplateTypeLabelCFP4100GE string = "CFP4 (100GE)" + + // InterfaceTemplateTypeLabelCiscoCPAK100GE captures enum value "Cisco CPAK (100GE)" + InterfaceTemplateTypeLabelCiscoCPAK100GE string = "Cisco CPAK (100GE)" + + // InterfaceTemplateTypeLabelQSFP28100GE captures enum value "QSFP28 (100GE)" + InterfaceTemplateTypeLabelQSFP28100GE string = "QSFP28 (100GE)" + + // InterfaceTemplateTypeLabelQSFP56200GE captures enum value "QSFP56 (200GE)" + InterfaceTemplateTypeLabelQSFP56200GE string = "QSFP56 (200GE)" + + // InterfaceTemplateTypeLabelQSFPDD400GE captures enum value "QSFP-DD (400GE)" + InterfaceTemplateTypeLabelQSFPDD400GE string = "QSFP-DD (400GE)" + + // InterfaceTemplateTypeLabelOSFP400GE captures enum value "OSFP (400GE)" + InterfaceTemplateTypeLabelOSFP400GE string = "OSFP (400GE)" + + // InterfaceTemplateTypeLabelIEEE80211a captures enum value "IEEE 802.11a" + InterfaceTemplateTypeLabelIEEE80211a string = "IEEE 802.11a" + + // InterfaceTemplateTypeLabelIEEE80211bg captures enum value "IEEE 802.11b/g" + InterfaceTemplateTypeLabelIEEE80211bg string = "IEEE 802.11b/g" + + // InterfaceTemplateTypeLabelIEEE80211n captures enum value "IEEE 802.11n" + InterfaceTemplateTypeLabelIEEE80211n string = "IEEE 802.11n" + + // InterfaceTemplateTypeLabelIEEE80211ac captures enum value "IEEE 802.11ac" + InterfaceTemplateTypeLabelIEEE80211ac string = "IEEE 802.11ac" + + // InterfaceTemplateTypeLabelIEEE80211ad captures enum value "IEEE 802.11ad" + InterfaceTemplateTypeLabelIEEE80211ad string = "IEEE 802.11ad" + + // InterfaceTemplateTypeLabelIEEE80211ax captures enum value "IEEE 802.11ax" + InterfaceTemplateTypeLabelIEEE80211ax string = "IEEE 802.11ax" + + // InterfaceTemplateTypeLabelGSM captures enum value "GSM" + InterfaceTemplateTypeLabelGSM string = "GSM" + + // InterfaceTemplateTypeLabelCDMA captures enum value "CDMA" + InterfaceTemplateTypeLabelCDMA string = "CDMA" + + // InterfaceTemplateTypeLabelLTE captures enum value "LTE" + InterfaceTemplateTypeLabelLTE string = "LTE" + + // InterfaceTemplateTypeLabelOC3STM1 captures enum value "OC-3/STM-1" + InterfaceTemplateTypeLabelOC3STM1 string = "OC-3/STM-1" + + // InterfaceTemplateTypeLabelOC12STM4 captures enum value "OC-12/STM-4" + InterfaceTemplateTypeLabelOC12STM4 string = "OC-12/STM-4" + + // InterfaceTemplateTypeLabelOC48STM16 captures enum value "OC-48/STM-16" + InterfaceTemplateTypeLabelOC48STM16 string = "OC-48/STM-16" + + // InterfaceTemplateTypeLabelOC192STM64 captures enum value "OC-192/STM-64" + InterfaceTemplateTypeLabelOC192STM64 string = "OC-192/STM-64" + + // InterfaceTemplateTypeLabelOC768STM256 captures enum value "OC-768/STM-256" + InterfaceTemplateTypeLabelOC768STM256 string = "OC-768/STM-256" + + // InterfaceTemplateTypeLabelOC1920STM640 captures enum value "OC-1920/STM-640" + InterfaceTemplateTypeLabelOC1920STM640 string = "OC-1920/STM-640" + + // InterfaceTemplateTypeLabelOC3840STM1234 captures enum value "OC-3840/STM-1234" + InterfaceTemplateTypeLabelOC3840STM1234 string = "OC-3840/STM-1234" + + // InterfaceTemplateTypeLabelSFP1GFC captures enum value "SFP (1GFC)" + InterfaceTemplateTypeLabelSFP1GFC string = "SFP (1GFC)" + + // InterfaceTemplateTypeLabelSFP2GFC captures enum value "SFP (2GFC)" + InterfaceTemplateTypeLabelSFP2GFC string = "SFP (2GFC)" + + // InterfaceTemplateTypeLabelSFP4GFC captures enum value "SFP (4GFC)" + InterfaceTemplateTypeLabelSFP4GFC string = "SFP (4GFC)" + + // InterfaceTemplateTypeLabelSFP8GFC captures enum value "SFP+ (8GFC)" + InterfaceTemplateTypeLabelSFP8GFC string = "SFP+ (8GFC)" + + // InterfaceTemplateTypeLabelSFP16GFC captures enum value "SFP+ (16GFC)" + InterfaceTemplateTypeLabelSFP16GFC string = "SFP+ (16GFC)" + + // InterfaceTemplateTypeLabelSFP2832GFC captures enum value "SFP28 (32GFC)" + InterfaceTemplateTypeLabelSFP2832GFC string = "SFP28 (32GFC)" + + // InterfaceTemplateTypeLabelQSFP28128GFC captures enum value "QSFP28 (128GFC)" + InterfaceTemplateTypeLabelQSFP28128GFC string = "QSFP28 (128GFC)" + + // InterfaceTemplateTypeLabelSDR2Gbps captures enum value "SDR (2 Gbps)" + InterfaceTemplateTypeLabelSDR2Gbps string = "SDR (2 Gbps)" + + // InterfaceTemplateTypeLabelDDR4Gbps captures enum value "DDR (4 Gbps)" + InterfaceTemplateTypeLabelDDR4Gbps string = "DDR (4 Gbps)" + + // InterfaceTemplateTypeLabelQDR8Gbps captures enum value "QDR (8 Gbps)" + InterfaceTemplateTypeLabelQDR8Gbps string = "QDR (8 Gbps)" + + // InterfaceTemplateTypeLabelFDR1010Gbps captures enum value "FDR10 (10 Gbps)" + InterfaceTemplateTypeLabelFDR1010Gbps string = "FDR10 (10 Gbps)" + + // InterfaceTemplateTypeLabelFDR135Gbps captures enum value "FDR (13.5 Gbps)" + InterfaceTemplateTypeLabelFDR135Gbps string = "FDR (13.5 Gbps)" + + // InterfaceTemplateTypeLabelEDR25Gbps captures enum value "EDR (25 Gbps)" + InterfaceTemplateTypeLabelEDR25Gbps string = "EDR (25 Gbps)" + + // InterfaceTemplateTypeLabelHDR50Gbps captures enum value "HDR (50 Gbps)" + InterfaceTemplateTypeLabelHDR50Gbps string = "HDR (50 Gbps)" + + // InterfaceTemplateTypeLabelNDR100Gbps captures enum value "NDR (100 Gbps)" + InterfaceTemplateTypeLabelNDR100Gbps string = "NDR (100 Gbps)" + + // InterfaceTemplateTypeLabelXDR250Gbps captures enum value "XDR (250 Gbps)" + InterfaceTemplateTypeLabelXDR250Gbps string = "XDR (250 Gbps)" + + // InterfaceTemplateTypeLabelT11544Mbps captures enum value "T1 (1.544 Mbps)" + InterfaceTemplateTypeLabelT11544Mbps string = "T1 (1.544 Mbps)" + + // InterfaceTemplateTypeLabelE12048Mbps captures enum value "E1 (2.048 Mbps)" + InterfaceTemplateTypeLabelE12048Mbps string = "E1 (2.048 Mbps)" + + // InterfaceTemplateTypeLabelT345Mbps captures enum value "T3 (45 Mbps)" + InterfaceTemplateTypeLabelT345Mbps string = "T3 (45 Mbps)" + + // InterfaceTemplateTypeLabelE334Mbps captures enum value "E3 (34 Mbps)" + InterfaceTemplateTypeLabelE334Mbps string = "E3 (34 Mbps)" + + // InterfaceTemplateTypeLabelCiscoStackWise captures enum value "Cisco StackWise" + InterfaceTemplateTypeLabelCiscoStackWise string = "Cisco StackWise" + + // InterfaceTemplateTypeLabelCiscoStackWisePlus captures enum value "Cisco StackWise Plus" + InterfaceTemplateTypeLabelCiscoStackWisePlus string = "Cisco StackWise Plus" + + // InterfaceTemplateTypeLabelCiscoFlexStack captures enum value "Cisco FlexStack" + InterfaceTemplateTypeLabelCiscoFlexStack string = "Cisco FlexStack" + + // InterfaceTemplateTypeLabelCiscoFlexStackPlus captures enum value "Cisco FlexStack Plus" + InterfaceTemplateTypeLabelCiscoFlexStackPlus string = "Cisco FlexStack Plus" + + // InterfaceTemplateTypeLabelJuniperVCP captures enum value "Juniper VCP" + InterfaceTemplateTypeLabelJuniperVCP string = "Juniper VCP" + + // InterfaceTemplateTypeLabelExtremeSummitStack captures enum value "Extreme SummitStack" + InterfaceTemplateTypeLabelExtremeSummitStack string = "Extreme SummitStack" + + // InterfaceTemplateTypeLabelExtremeSummitStack128 captures enum value "Extreme SummitStack-128" + InterfaceTemplateTypeLabelExtremeSummitStack128 string = "Extreme SummitStack-128" + + // InterfaceTemplateTypeLabelExtremeSummitStack256 captures enum value "Extreme SummitStack-256" + InterfaceTemplateTypeLabelExtremeSummitStack256 string = "Extreme SummitStack-256" + + // InterfaceTemplateTypeLabelExtremeSummitStack512 captures enum value "Extreme SummitStack-512" + InterfaceTemplateTypeLabelExtremeSummitStack512 string = "Extreme SummitStack-512" + + // InterfaceTemplateTypeLabelOther captures enum value "Other" + InterfaceTemplateTypeLabelOther string = "Other" +) + +// prop value enum +func (m *InterfaceTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, interfaceTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *InterfaceTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var interfaceTemplateTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + interfaceTemplateTypeTypeValuePropEnum = append(interfaceTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // InterfaceTemplateTypeValueVirtual captures enum value "virtual" + InterfaceTemplateTypeValueVirtual string = "virtual" + + // InterfaceTemplateTypeValueLag captures enum value "lag" + InterfaceTemplateTypeValueLag string = "lag" + + // InterfaceTemplateTypeValueNr100baseTx captures enum value "100base-tx" + InterfaceTemplateTypeValueNr100baseTx string = "100base-tx" + + // InterfaceTemplateTypeValueNr1000baset captures enum value "1000base-t" + InterfaceTemplateTypeValueNr1000baset string = "1000base-t" + + // InterfaceTemplateTypeValueNr25gbaset captures enum value "2.5gbase-t" + InterfaceTemplateTypeValueNr25gbaset string = "2.5gbase-t" + + // InterfaceTemplateTypeValueNr5gbaset captures enum value "5gbase-t" + InterfaceTemplateTypeValueNr5gbaset string = "5gbase-t" + + // InterfaceTemplateTypeValueNr10gbaset captures enum value "10gbase-t" + InterfaceTemplateTypeValueNr10gbaset string = "10gbase-t" + + // InterfaceTemplateTypeValueNr10gbaseCx4 captures enum value "10gbase-cx4" + InterfaceTemplateTypeValueNr10gbaseCx4 string = "10gbase-cx4" + + // InterfaceTemplateTypeValueNr1000basexGbic captures enum value "1000base-x-gbic" + InterfaceTemplateTypeValueNr1000basexGbic string = "1000base-x-gbic" + + // InterfaceTemplateTypeValueNr1000basexSfp captures enum value "1000base-x-sfp" + InterfaceTemplateTypeValueNr1000basexSfp string = "1000base-x-sfp" + + // InterfaceTemplateTypeValueNr10gbasexSfpp captures enum value "10gbase-x-sfpp" + InterfaceTemplateTypeValueNr10gbasexSfpp string = "10gbase-x-sfpp" + + // InterfaceTemplateTypeValueNr10gbasexXfp captures enum value "10gbase-x-xfp" + InterfaceTemplateTypeValueNr10gbasexXfp string = "10gbase-x-xfp" + + // InterfaceTemplateTypeValueNr10gbasexXenpak captures enum value "10gbase-x-xenpak" + InterfaceTemplateTypeValueNr10gbasexXenpak string = "10gbase-x-xenpak" + + // InterfaceTemplateTypeValueNr10gbasexX2 captures enum value "10gbase-x-x2" + InterfaceTemplateTypeValueNr10gbasexX2 string = "10gbase-x-x2" + + // InterfaceTemplateTypeValueNr25gbasexSfp28 captures enum value "25gbase-x-sfp28" + InterfaceTemplateTypeValueNr25gbasexSfp28 string = "25gbase-x-sfp28" + + // InterfaceTemplateTypeValueNr40gbasexQsfpp captures enum value "40gbase-x-qsfpp" + InterfaceTemplateTypeValueNr40gbasexQsfpp string = "40gbase-x-qsfpp" + + // InterfaceTemplateTypeValueNr50gbasexSfp28 captures enum value "50gbase-x-sfp28" + InterfaceTemplateTypeValueNr50gbasexSfp28 string = "50gbase-x-sfp28" + + // InterfaceTemplateTypeValueNr100gbasexCfp captures enum value "100gbase-x-cfp" + InterfaceTemplateTypeValueNr100gbasexCfp string = "100gbase-x-cfp" + + // InterfaceTemplateTypeValueNr100gbasexCfp2 captures enum value "100gbase-x-cfp2" + InterfaceTemplateTypeValueNr100gbasexCfp2 string = "100gbase-x-cfp2" + + // InterfaceTemplateTypeValueNr200gbasexCfp2 captures enum value "200gbase-x-cfp2" + InterfaceTemplateTypeValueNr200gbasexCfp2 string = "200gbase-x-cfp2" + + // InterfaceTemplateTypeValueNr100gbasexCfp4 captures enum value "100gbase-x-cfp4" + InterfaceTemplateTypeValueNr100gbasexCfp4 string = "100gbase-x-cfp4" + + // InterfaceTemplateTypeValueNr100gbasexCpak captures enum value "100gbase-x-cpak" + InterfaceTemplateTypeValueNr100gbasexCpak string = "100gbase-x-cpak" + + // InterfaceTemplateTypeValueNr100gbasexQsfp28 captures enum value "100gbase-x-qsfp28" + InterfaceTemplateTypeValueNr100gbasexQsfp28 string = "100gbase-x-qsfp28" + + // InterfaceTemplateTypeValueNr200gbasexQsfp56 captures enum value "200gbase-x-qsfp56" + InterfaceTemplateTypeValueNr200gbasexQsfp56 string = "200gbase-x-qsfp56" + + // InterfaceTemplateTypeValueNr400gbasexQsfpdd captures enum value "400gbase-x-qsfpdd" + InterfaceTemplateTypeValueNr400gbasexQsfpdd string = "400gbase-x-qsfpdd" + + // InterfaceTemplateTypeValueNr400gbasexOsfp captures enum value "400gbase-x-osfp" + InterfaceTemplateTypeValueNr400gbasexOsfp string = "400gbase-x-osfp" + + // InterfaceTemplateTypeValueIeee80211a captures enum value "ieee802.11a" + InterfaceTemplateTypeValueIeee80211a string = "ieee802.11a" + + // InterfaceTemplateTypeValueIeee80211g captures enum value "ieee802.11g" + InterfaceTemplateTypeValueIeee80211g string = "ieee802.11g" + + // InterfaceTemplateTypeValueIeee80211n captures enum value "ieee802.11n" + InterfaceTemplateTypeValueIeee80211n string = "ieee802.11n" + + // InterfaceTemplateTypeValueIeee80211ac captures enum value "ieee802.11ac" + InterfaceTemplateTypeValueIeee80211ac string = "ieee802.11ac" + + // InterfaceTemplateTypeValueIeee80211ad captures enum value "ieee802.11ad" + InterfaceTemplateTypeValueIeee80211ad string = "ieee802.11ad" + + // InterfaceTemplateTypeValueIeee80211ax captures enum value "ieee802.11ax" + InterfaceTemplateTypeValueIeee80211ax string = "ieee802.11ax" + + // InterfaceTemplateTypeValueGsm captures enum value "gsm" + InterfaceTemplateTypeValueGsm string = "gsm" + + // InterfaceTemplateTypeValueCdma captures enum value "cdma" + InterfaceTemplateTypeValueCdma string = "cdma" + + // InterfaceTemplateTypeValueLte captures enum value "lte" + InterfaceTemplateTypeValueLte string = "lte" + + // InterfaceTemplateTypeValueSonetOc3 captures enum value "sonet-oc3" + InterfaceTemplateTypeValueSonetOc3 string = "sonet-oc3" + + // InterfaceTemplateTypeValueSonetOc12 captures enum value "sonet-oc12" + InterfaceTemplateTypeValueSonetOc12 string = "sonet-oc12" + + // InterfaceTemplateTypeValueSonetOc48 captures enum value "sonet-oc48" + InterfaceTemplateTypeValueSonetOc48 string = "sonet-oc48" + + // InterfaceTemplateTypeValueSonetOc192 captures enum value "sonet-oc192" + InterfaceTemplateTypeValueSonetOc192 string = "sonet-oc192" + + // InterfaceTemplateTypeValueSonetOc768 captures enum value "sonet-oc768" + InterfaceTemplateTypeValueSonetOc768 string = "sonet-oc768" + + // InterfaceTemplateTypeValueSonetOc1920 captures enum value "sonet-oc1920" + InterfaceTemplateTypeValueSonetOc1920 string = "sonet-oc1920" + + // InterfaceTemplateTypeValueSonetOc3840 captures enum value "sonet-oc3840" + InterfaceTemplateTypeValueSonetOc3840 string = "sonet-oc3840" + + // InterfaceTemplateTypeValueNr1gfcSfp captures enum value "1gfc-sfp" + InterfaceTemplateTypeValueNr1gfcSfp string = "1gfc-sfp" + + // InterfaceTemplateTypeValueNr2gfcSfp captures enum value "2gfc-sfp" + InterfaceTemplateTypeValueNr2gfcSfp string = "2gfc-sfp" + + // InterfaceTemplateTypeValueNr4gfcSfp captures enum value "4gfc-sfp" + InterfaceTemplateTypeValueNr4gfcSfp string = "4gfc-sfp" + + // InterfaceTemplateTypeValueNr8gfcSfpp captures enum value "8gfc-sfpp" + InterfaceTemplateTypeValueNr8gfcSfpp string = "8gfc-sfpp" + + // InterfaceTemplateTypeValueNr16gfcSfpp captures enum value "16gfc-sfpp" + InterfaceTemplateTypeValueNr16gfcSfpp string = "16gfc-sfpp" + + // InterfaceTemplateTypeValueNr32gfcSfp28 captures enum value "32gfc-sfp28" + InterfaceTemplateTypeValueNr32gfcSfp28 string = "32gfc-sfp28" + + // InterfaceTemplateTypeValueNr128gfcSfp28 captures enum value "128gfc-sfp28" + InterfaceTemplateTypeValueNr128gfcSfp28 string = "128gfc-sfp28" + + // InterfaceTemplateTypeValueInfinibandSdr captures enum value "infiniband-sdr" + InterfaceTemplateTypeValueInfinibandSdr string = "infiniband-sdr" + + // InterfaceTemplateTypeValueInfinibandDdr captures enum value "infiniband-ddr" + InterfaceTemplateTypeValueInfinibandDdr string = "infiniband-ddr" + + // InterfaceTemplateTypeValueInfinibandQdr captures enum value "infiniband-qdr" + InterfaceTemplateTypeValueInfinibandQdr string = "infiniband-qdr" + + // InterfaceTemplateTypeValueInfinibandFdr10 captures enum value "infiniband-fdr10" + InterfaceTemplateTypeValueInfinibandFdr10 string = "infiniband-fdr10" + + // InterfaceTemplateTypeValueInfinibandFdr captures enum value "infiniband-fdr" + InterfaceTemplateTypeValueInfinibandFdr string = "infiniband-fdr" + + // InterfaceTemplateTypeValueInfinibandEdr captures enum value "infiniband-edr" + InterfaceTemplateTypeValueInfinibandEdr string = "infiniband-edr" + + // InterfaceTemplateTypeValueInfinibandHdr captures enum value "infiniband-hdr" + InterfaceTemplateTypeValueInfinibandHdr string = "infiniband-hdr" + + // InterfaceTemplateTypeValueInfinibandNdr captures enum value "infiniband-ndr" + InterfaceTemplateTypeValueInfinibandNdr string = "infiniband-ndr" + + // InterfaceTemplateTypeValueInfinibandXdr captures enum value "infiniband-xdr" + InterfaceTemplateTypeValueInfinibandXdr string = "infiniband-xdr" + + // InterfaceTemplateTypeValueT1 captures enum value "t1" + InterfaceTemplateTypeValueT1 string = "t1" + + // InterfaceTemplateTypeValueE1 captures enum value "e1" + InterfaceTemplateTypeValueE1 string = "e1" + + // InterfaceTemplateTypeValueT3 captures enum value "t3" + InterfaceTemplateTypeValueT3 string = "t3" + + // InterfaceTemplateTypeValueE3 captures enum value "e3" + InterfaceTemplateTypeValueE3 string = "e3" + + // InterfaceTemplateTypeValueCiscoStackwise captures enum value "cisco-stackwise" + InterfaceTemplateTypeValueCiscoStackwise string = "cisco-stackwise" + + // InterfaceTemplateTypeValueCiscoStackwisePlus captures enum value "cisco-stackwise-plus" + InterfaceTemplateTypeValueCiscoStackwisePlus string = "cisco-stackwise-plus" + + // InterfaceTemplateTypeValueCiscoFlexstack captures enum value "cisco-flexstack" + InterfaceTemplateTypeValueCiscoFlexstack string = "cisco-flexstack" + + // InterfaceTemplateTypeValueCiscoFlexstackPlus captures enum value "cisco-flexstack-plus" + InterfaceTemplateTypeValueCiscoFlexstackPlus string = "cisco-flexstack-plus" + + // InterfaceTemplateTypeValueJuniperVcp captures enum value "juniper-vcp" + InterfaceTemplateTypeValueJuniperVcp string = "juniper-vcp" + + // InterfaceTemplateTypeValueExtremeSummitstack captures enum value "extreme-summitstack" + InterfaceTemplateTypeValueExtremeSummitstack string = "extreme-summitstack" + + // InterfaceTemplateTypeValueExtremeSummitstack128 captures enum value "extreme-summitstack-128" + InterfaceTemplateTypeValueExtremeSummitstack128 string = "extreme-summitstack-128" + + // InterfaceTemplateTypeValueExtremeSummitstack256 captures enum value "extreme-summitstack-256" + InterfaceTemplateTypeValueExtremeSummitstack256 string = "extreme-summitstack-256" + + // InterfaceTemplateTypeValueExtremeSummitstack512 captures enum value "extreme-summitstack-512" + InterfaceTemplateTypeValueExtremeSummitstack512 string = "extreme-summitstack-512" + + // InterfaceTemplateTypeValueOther captures enum value "other" + InterfaceTemplateTypeValueOther string = "other" +) + +// prop value enum +func (m *InterfaceTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, interfaceTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -192,6 +681,11 @@ func (m *InterfaceTemplateType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/inventory_item.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/inventory_item.go index 68919d413..0fd1fd636 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/inventory_item.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/inventory_item.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // InventoryItem inventory item +// // swagger:model InventoryItem type InventoryItem struct { @@ -41,7 +41,7 @@ type InventoryItem struct { AssetTag *string `json:"asset_tag,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -49,6 +49,8 @@ type InventoryItem struct { Device *NestedDevice `json:"device"` // Discovered + // + // This item was automatically discovered Discovered bool `json:"discovered,omitempty"` // ID @@ -68,6 +70,8 @@ type InventoryItem struct { Parent *int64 `json:"parent,omitempty"` // Part ID + // + // Manufacturer-assigned part identifier // Max Length: 50 PartID string `json:"part_id,omitempty"` @@ -140,7 +144,7 @@ func (m *InventoryItem) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address.go index aa63660bb..224b14b5b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // IPAddress IP address +// // swagger:model IPAddress type IPAddress struct { @@ -49,7 +50,7 @@ type IPAddress struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // DNS Name @@ -190,7 +191,7 @@ func (m *IPAddress) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -407,15 +408,18 @@ func (m *IPAddress) UnmarshalBinary(b []byte) error { } // IPAddressFamily Family +// // swagger:model IPAddressFamily type IPAddressFamily struct { // label // Required: true + // Enum: [IPv4 IPv6] Label *string `json:"label"` // value // Required: true + // Enum: [4 6] Value *int64 `json:"value"` } @@ -437,12 +441,66 @@ func (m *IPAddressFamily) Validate(formats strfmt.Registry) error { return nil } +var ipAddressFamilyTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["IPv4","IPv6"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + ipAddressFamilyTypeLabelPropEnum = append(ipAddressFamilyTypeLabelPropEnum, v) + } +} + +const ( + + // IPAddressFamilyLabelIPV4 captures enum value "IPv4" + IPAddressFamilyLabelIPV4 string = "IPv4" + + // IPAddressFamilyLabelIPV6 captures enum value "IPv6" + IPAddressFamilyLabelIPV6 string = "IPv6" +) + +// prop value enum +func (m *IPAddressFamily) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, ipAddressFamilyTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *IPAddressFamily) validateLabel(formats strfmt.Registry) error { if err := validate.Required("family"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("family"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var ipAddressFamilyTypeValuePropEnum []interface{} + +func init() { + var res []int64 + if err := json.Unmarshal([]byte(`[4,6]`), &res); err != nil { + panic(err) + } + for _, v := range res { + ipAddressFamilyTypeValuePropEnum = append(ipAddressFamilyTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *IPAddressFamily) validateValueEnum(path, location string, value int64) error { + if err := validate.Enum(path, location, value, ipAddressFamilyTypeValuePropEnum); err != nil { + return err + } return nil } @@ -452,6 +510,11 @@ func (m *IPAddressFamily) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("family"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -474,15 +537,18 @@ func (m *IPAddressFamily) UnmarshalBinary(b []byte) error { } // IPAddressRole Role +// // swagger:model IPAddressRole type IPAddressRole struct { // label // Required: true + // Enum: [Loopback Secondary Anycast VIP VRRP HSRP GLBP CARP] Label *string `json:"label"` // value // Required: true + // Enum: [loopback secondary anycast vip vrrp hsrp glbp carp] Value *string `json:"value"` } @@ -504,12 +570,111 @@ func (m *IPAddressRole) Validate(formats strfmt.Registry) error { return nil } +var ipAddressRoleTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Loopback","Secondary","Anycast","VIP","VRRP","HSRP","GLBP","CARP"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + ipAddressRoleTypeLabelPropEnum = append(ipAddressRoleTypeLabelPropEnum, v) + } +} + +const ( + + // IPAddressRoleLabelLoopback captures enum value "Loopback" + IPAddressRoleLabelLoopback string = "Loopback" + + // IPAddressRoleLabelSecondary captures enum value "Secondary" + IPAddressRoleLabelSecondary string = "Secondary" + + // IPAddressRoleLabelAnycast captures enum value "Anycast" + IPAddressRoleLabelAnycast string = "Anycast" + + // IPAddressRoleLabelVIP captures enum value "VIP" + IPAddressRoleLabelVIP string = "VIP" + + // IPAddressRoleLabelVRRP captures enum value "VRRP" + IPAddressRoleLabelVRRP string = "VRRP" + + // IPAddressRoleLabelHSRP captures enum value "HSRP" + IPAddressRoleLabelHSRP string = "HSRP" + + // IPAddressRoleLabelGLBP captures enum value "GLBP" + IPAddressRoleLabelGLBP string = "GLBP" + + // IPAddressRoleLabelCARP captures enum value "CARP" + IPAddressRoleLabelCARP string = "CARP" +) + +// prop value enum +func (m *IPAddressRole) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, ipAddressRoleTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *IPAddressRole) validateLabel(formats strfmt.Registry) error { if err := validate.Required("role"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("role"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var ipAddressRoleTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["loopback","secondary","anycast","vip","vrrp","hsrp","glbp","carp"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + ipAddressRoleTypeValuePropEnum = append(ipAddressRoleTypeValuePropEnum, v) + } +} + +const ( + + // IPAddressRoleValueLoopback captures enum value "loopback" + IPAddressRoleValueLoopback string = "loopback" + + // IPAddressRoleValueSecondary captures enum value "secondary" + IPAddressRoleValueSecondary string = "secondary" + + // IPAddressRoleValueAnycast captures enum value "anycast" + IPAddressRoleValueAnycast string = "anycast" + + // IPAddressRoleValueVip captures enum value "vip" + IPAddressRoleValueVip string = "vip" + + // IPAddressRoleValueVrrp captures enum value "vrrp" + IPAddressRoleValueVrrp string = "vrrp" + + // IPAddressRoleValueHsrp captures enum value "hsrp" + IPAddressRoleValueHsrp string = "hsrp" + + // IPAddressRoleValueGlbp captures enum value "glbp" + IPAddressRoleValueGlbp string = "glbp" + + // IPAddressRoleValueCarp captures enum value "carp" + IPAddressRoleValueCarp string = "carp" +) + +// prop value enum +func (m *IPAddressRole) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, ipAddressRoleTypeValuePropEnum); err != nil { + return err + } return nil } @@ -519,6 +684,11 @@ func (m *IPAddressRole) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("role"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -541,15 +711,18 @@ func (m *IPAddressRole) UnmarshalBinary(b []byte) error { } // IPAddressStatus Status +// // swagger:model IPAddressStatus type IPAddressStatus struct { // label // Required: true + // Enum: [Active Reserved Deprecated DHCP] Label *string `json:"label"` // value // Required: true + // Enum: [active reserved deprecated dhcp] Value *string `json:"value"` } @@ -571,12 +744,87 @@ func (m *IPAddressStatus) Validate(formats strfmt.Registry) error { return nil } +var ipAddressStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Active","Reserved","Deprecated","DHCP"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + ipAddressStatusTypeLabelPropEnum = append(ipAddressStatusTypeLabelPropEnum, v) + } +} + +const ( + + // IPAddressStatusLabelActive captures enum value "Active" + IPAddressStatusLabelActive string = "Active" + + // IPAddressStatusLabelReserved captures enum value "Reserved" + IPAddressStatusLabelReserved string = "Reserved" + + // IPAddressStatusLabelDeprecated captures enum value "Deprecated" + IPAddressStatusLabelDeprecated string = "Deprecated" + + // IPAddressStatusLabelDHCP captures enum value "DHCP" + IPAddressStatusLabelDHCP string = "DHCP" +) + +// prop value enum +func (m *IPAddressStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, ipAddressStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *IPAddressStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var ipAddressStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","reserved","deprecated","dhcp"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + ipAddressStatusTypeValuePropEnum = append(ipAddressStatusTypeValuePropEnum, v) + } +} + +const ( + + // IPAddressStatusValueActive captures enum value "active" + IPAddressStatusValueActive string = "active" + + // IPAddressStatusValueReserved captures enum value "reserved" + IPAddressStatusValueReserved string = "reserved" + + // IPAddressStatusValueDeprecated captures enum value "deprecated" + IPAddressStatusValueDeprecated string = "deprecated" + + // IPAddressStatusValueDhcp captures enum value "dhcp" + IPAddressStatusValueDhcp string = "dhcp" +) + +// prop value enum +func (m *IPAddressStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, ipAddressStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -586,6 +834,11 @@ func (m *IPAddressStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address_interface.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address_interface.go index 88d4bef09..8815239b6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address_interface.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/ip_address_interface.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // IPAddressInterface Interface +// // swagger:model IPAddressInterface type IPAddressInterface struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/manufacturer.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/manufacturer.go index 00f5c5ca5..2eeced2a3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/manufacturer.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/manufacturer.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Manufacturer manufacturer +// // swagger:model Manufacturer type Manufacturer struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Devicetype count // Read Only: true DevicetypeCount int64 `json:"devicetype_count,omitempty"` @@ -66,6 +70,10 @@ type Manufacturer struct { func (m *Manufacturer) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -80,6 +88,19 @@ func (m *Manufacturer) Validate(formats strfmt.Registry) error { return nil } +func (m *Manufacturer) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *Manufacturer) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cable.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cable.go index 698429d85..4b21b4d42 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cable.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cable.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedCable Cable +// // swagger:model NestedCable type NestedCable struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit.go index 6b60f5d54..5c01a9dff 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedCircuit Circuit +// // swagger:model NestedCircuit type NestedCircuit struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit_type.go index bae19ef34..1e5ea2140 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_circuit_type.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedCircuitType Type +// // swagger:model NestedCircuitType type NestedCircuitType struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster.go index d16a0b5fe..09a696d04 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedCluster Cluster +// // swagger:model NestedCluster type NestedCluster struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_group.go index 297333647..4733404f4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_group.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedClusterGroup nested cluster group +// // swagger:model NestedClusterGroup type NestedClusterGroup struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_type.go index 66bbce15f..b78639a39 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_cluster_type.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedClusterType Type +// // swagger:model NestedClusterType type NestedClusterType struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device.go index 7276b9dcb..3dbc2ed1c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedDevice Device +// // swagger:model NestedDevice type NestedDevice struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_role.go index d30b48b24..4458c6e61 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_role.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedDeviceRole Device role +// // swagger:model NestedDeviceRole type NestedDeviceRole struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_type.go index 8027ca4ab..ae142add1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_device_type.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedDeviceType Device type +// // swagger:model NestedDeviceType type NestedDeviceType struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_interface.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_interface.go index 453d2d02a..290657e78 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_interface.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_interface.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedInterface Connected endpoint +// // swagger:model NestedInterface type NestedInterface struct { @@ -168,15 +170,18 @@ func (m *NestedInterface) UnmarshalBinary(b []byte) error { } // NestedInterfaceConnectionStatus Connection status +// // swagger:model NestedInterfaceConnectionStatus type NestedInterfaceConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -198,12 +203,66 @@ func (m *NestedInterfaceConnectionStatus) Validate(formats strfmt.Registry) erro return nil } +var nestedInterfaceConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + nestedInterfaceConnectionStatusTypeLabelPropEnum = append(nestedInterfaceConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // NestedInterfaceConnectionStatusLabelNotConnected captures enum value "Not Connected" + NestedInterfaceConnectionStatusLabelNotConnected string = "Not Connected" + + // NestedInterfaceConnectionStatusLabelConnected captures enum value "Connected" + NestedInterfaceConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *NestedInterfaceConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, nestedInterfaceConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *NestedInterfaceConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var nestedInterfaceConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + nestedInterfaceConnectionStatusTypeValuePropEnum = append(nestedInterfaceConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *NestedInterfaceConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, nestedInterfaceConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -213,6 +272,11 @@ func (m *NestedInterfaceConnectionStatus) validateValue(formats strfmt.Registry) return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_ip_address.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_ip_address.go index 32b25a782..c109946de 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_ip_address.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_ip_address.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedIPAddress Primary ip +// // swagger:model NestedIPAddress type NestedIPAddress struct { @@ -40,7 +40,7 @@ type NestedIPAddress struct { // Family // Read Only: true - Family int64 `json:"family,omitempty"` + Family string `json:"family,omitempty"` // ID // Read Only: true diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_manufacturer.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_manufacturer.go index abe9d0b02..5a9860ff6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_manufacturer.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_manufacturer.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedManufacturer Manufacturer +// // swagger:model NestedManufacturer type NestedManufacturer struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_platform.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_platform.go index 3e4b0e5bb..64e68a119 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_platform.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_platform.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedPlatform Platform +// // swagger:model NestedPlatform type NestedPlatform struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_panel.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_panel.go index 1596ab993..1b824686b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_panel.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_panel.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedPowerPanel Power panel +// // swagger:model NestedPowerPanel type NestedPowerPanel struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port.go index 4cca51970..5f70e5aa1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedPowerPort Power port +// // swagger:model NestedPowerPort type NestedPowerPort struct { @@ -168,15 +170,18 @@ func (m *NestedPowerPort) UnmarshalBinary(b []byte) error { } // NestedPowerPortConnectionStatus Connection status +// // swagger:model NestedPowerPortConnectionStatus type NestedPowerPortConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -198,12 +203,66 @@ func (m *NestedPowerPortConnectionStatus) Validate(formats strfmt.Registry) erro return nil } +var nestedPowerPortConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + nestedPowerPortConnectionStatusTypeLabelPropEnum = append(nestedPowerPortConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // NestedPowerPortConnectionStatusLabelNotConnected captures enum value "Not Connected" + NestedPowerPortConnectionStatusLabelNotConnected string = "Not Connected" + + // NestedPowerPortConnectionStatusLabelConnected captures enum value "Connected" + NestedPowerPortConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *NestedPowerPortConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, nestedPowerPortConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *NestedPowerPortConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var nestedPowerPortConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + nestedPowerPortConnectionStatusTypeValuePropEnum = append(nestedPowerPortConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *NestedPowerPortConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, nestedPowerPortConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -213,6 +272,11 @@ func (m *NestedPowerPortConnectionStatus) validateValue(formats strfmt.Registry) return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port_template.go index 1fc7b3d7e..e7f1492a6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_power_port_template.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedPowerPortTemplate Power port +// // swagger:model NestedPowerPortTemplate type NestedPowerPortTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_provider.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_provider.go index 9158ccfc2..d3f7635c1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_provider.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_provider.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedProvider Provider +// // swagger:model NestedProvider type NestedProvider struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_r_i_r.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_r_i_r.go index 017f0f38e..a596719db 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_r_i_r.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_r_i_r.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRIR Rir +// // swagger:model NestedRIR type NestedRIR struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack.go index c1a430293..3146f6d89 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRack Rack +// // swagger:model NestedRack type NestedRack struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_group.go index 60a724f5c..01770c064 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_group.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRackGroup Rack group +// // swagger:model NestedRackGroup type NestedRackGroup struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_role.go index d176cd554..be6057fb4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rack_role.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRackRole Role +// // swagger:model NestedRackRole type NestedRackRole struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rear_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rear_port_template.go index 84f4f348c..10b29bd12 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rear_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_rear_port_template.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRearPortTemplate Rear port +// // swagger:model NestedRearPortTemplate type NestedRearPortTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_region.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_region.go index 3063b2e54..09310edd6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_region.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_region.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRegion Parent +// // swagger:model NestedRegion type NestedRegion struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_role.go index 41a26fdb0..043bfb82b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_role.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedRole Role +// // swagger:model NestedRole type NestedRole struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_secret_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_secret_role.go index 6f4848e06..15f316a8c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_secret_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_secret_role.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedSecretRole Role +// // swagger:model NestedSecretRole type NestedSecretRole struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_site.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_site.go index 41945f95b..e40f163ba 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_site.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_site.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedSite Site +// // swagger:model NestedSite type NestedSite struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant.go index 9718af338..f75814b38 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedTenant Tenant +// // swagger:model NestedTenant type NestedTenant struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant_group.go index f70f3db6d..eaed5845f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_tenant_group.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedTenantGroup nested tenant group +// // swagger:model NestedTenantGroup type NestedTenantGroup struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_user.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_user.go index 03b7fd9e4..fc9976d8f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_user.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_user.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedUser User +// // swagger:model NestedUser type NestedUser struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n.go index c230643ff..5fd6ac3e5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedVLAN Untagged vlan +// // swagger:model NestedVLAN type NestedVLAN struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n_group.go index 7c6f2967e..74ecc704d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_l_a_n_group.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedVLANGroup Group +// // swagger:model NestedVLANGroup type NestedVLANGroup struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_r_f.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_r_f.go index 63e3973e4..cab66f063 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_r_f.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_v_r_f.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedVRF Vrf +// // swagger:model NestedVRF type NestedVRF struct { @@ -47,6 +47,8 @@ type NestedVRF struct { PrefixCount int64 `json:"prefix_count,omitempty"` // Route distinguisher + // + // Unique route distinguisher (as defined in RFC 4364) // Max Length: 21 Rd *string `json:"rd,omitempty"` diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_chassis.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_chassis.go index ecd8d25f3..ad6fe1a84 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_chassis.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_chassis.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedVirtualChassis Virtual chassis +// // swagger:model NestedVirtualChassis type NestedVirtualChassis struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_machine.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_machine.go index 7b443e957..325d31362 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_machine.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/nested_virtual_machine.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // NestedVirtualMachine Virtual machine +// // swagger:model NestedVirtualMachine type NestedVirtualMachine struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/object_change.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/object_change.go index c6ebb092b..64319c314 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/object_change.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/object_change.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // ObjectChange object change +// // swagger:model ObjectChange type ObjectChange struct { @@ -38,7 +40,7 @@ type ObjectChange struct { // Changed object // // - // Serialize a nested representation of the changed object. + // Serialize a nested representation of the changed object. // // Read Only: true ChangedObject map[string]string `json:"changed_object,omitempty"` @@ -225,15 +227,18 @@ func (m *ObjectChange) UnmarshalBinary(b []byte) error { } // ObjectChangeAction Action +// // swagger:model ObjectChangeAction type ObjectChangeAction struct { // label // Required: true + // Enum: [Created Updated Deleted] Label *string `json:"label"` // value // Required: true + // Enum: [create update delete] Value *string `json:"value"` } @@ -255,12 +260,81 @@ func (m *ObjectChangeAction) Validate(formats strfmt.Registry) error { return nil } +var objectChangeActionTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Created","Updated","Deleted"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + objectChangeActionTypeLabelPropEnum = append(objectChangeActionTypeLabelPropEnum, v) + } +} + +const ( + + // ObjectChangeActionLabelCreated captures enum value "Created" + ObjectChangeActionLabelCreated string = "Created" + + // ObjectChangeActionLabelUpdated captures enum value "Updated" + ObjectChangeActionLabelUpdated string = "Updated" + + // ObjectChangeActionLabelDeleted captures enum value "Deleted" + ObjectChangeActionLabelDeleted string = "Deleted" +) + +// prop value enum +func (m *ObjectChangeAction) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, objectChangeActionTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ObjectChangeAction) validateLabel(formats strfmt.Registry) error { if err := validate.Required("action"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("action"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var objectChangeActionTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["create","update","delete"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + objectChangeActionTypeValuePropEnum = append(objectChangeActionTypeValuePropEnum, v) + } +} + +const ( + + // ObjectChangeActionValueCreate captures enum value "create" + ObjectChangeActionValueCreate string = "create" + + // ObjectChangeActionValueUpdate captures enum value "update" + ObjectChangeActionValueUpdate string = "update" + + // ObjectChangeActionValueDelete captures enum value "delete" + ObjectChangeActionValueDelete string = "delete" +) + +// prop value enum +func (m *ObjectChangeAction) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, objectChangeActionTypeValuePropEnum); err != nil { + return err + } return nil } @@ -270,6 +344,11 @@ func (m *ObjectChangeAction) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("action"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/platform.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/platform.go index 81893d48f..0b809fbb8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/platform.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/platform.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Platform platform +// // swagger:model Platform type Platform struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -76,6 +80,10 @@ type Platform struct { func (m *Platform) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateManufacturer(formats); err != nil { res = append(res, err) } @@ -98,6 +106,19 @@ func (m *Platform) Validate(formats strfmt.Registry) error { return nil } +func (m *Platform) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *Platform) validateManufacturer(formats strfmt.Registry) error { if swag.IsZero(m.Manufacturer) { // not required diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_feed.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_feed.go index 2496d529e..9bb8518ca 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_feed.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_feed.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // PowerFeed power feed +// // swagger:model PowerFeed type PowerFeed struct { @@ -97,8 +97,8 @@ type PowerFeed struct { // Voltage // Maximum: 32767 - // Minimum: 1 - Voltage int64 `json:"voltage,omitempty"` + // Minimum: -32768 + Voltage *int64 `json:"voltage,omitempty"` } // Validate validates this power feed @@ -371,11 +371,11 @@ func (m *PowerFeed) validateVoltage(formats strfmt.Registry) error { return nil } - if err := validate.MinimumInt("voltage", "body", int64(m.Voltage), 1, false); err != nil { + if err := validate.MinimumInt("voltage", "body", int64(*m.Voltage), -32768, false); err != nil { return err } - if err := validate.MaximumInt("voltage", "body", int64(m.Voltage), 32767, false); err != nil { + if err := validate.MaximumInt("voltage", "body", int64(*m.Voltage), 32767, false); err != nil { return err } @@ -401,15 +401,18 @@ func (m *PowerFeed) UnmarshalBinary(b []byte) error { } // PowerFeedPhase Phase +// // swagger:model PowerFeedPhase type PowerFeedPhase struct { // label // Required: true + // Enum: [Single phase Three-phase] Label *string `json:"label"` // value // Required: true + // Enum: [single-phase three-phase] Value *string `json:"value"` } @@ -444,12 +447,75 @@ func (m *PowerFeedPhase) Validate(formats strfmt.Registry) error { return nil } +var powerFeedPhaseTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Single phase","Three-phase"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedPhaseTypeLabelPropEnum = append(powerFeedPhaseTypeLabelPropEnum, v) + } +} + +const ( + + // PowerFeedPhaseLabelSinglePhase captures enum value "Single phase" + PowerFeedPhaseLabelSinglePhase string = "Single phase" + + // PowerFeedPhaseLabelThreePhase captures enum value "Three-phase" + PowerFeedPhaseLabelThreePhase string = "Three-phase" +) + +// prop value enum +func (m *PowerFeedPhase) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedPhaseTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerFeedPhase) validateLabel(formats strfmt.Registry) error { if err := validate.Required("phase"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("phase"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerFeedPhaseTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["single-phase","three-phase"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedPhaseTypeValuePropEnum = append(powerFeedPhaseTypeValuePropEnum, v) + } +} + +const ( + + // PowerFeedPhaseValueSinglePhase captures enum value "single-phase" + PowerFeedPhaseValueSinglePhase string = "single-phase" + + // PowerFeedPhaseValueThreePhase captures enum value "three-phase" + PowerFeedPhaseValueThreePhase string = "three-phase" +) + +// prop value enum +func (m *PowerFeedPhase) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedPhaseTypeValuePropEnum); err != nil { + return err + } return nil } @@ -459,6 +525,11 @@ func (m *PowerFeedPhase) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("phase"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -481,15 +552,18 @@ func (m *PowerFeedPhase) UnmarshalBinary(b []byte) error { } // PowerFeedStatus Status +// // swagger:model PowerFeedStatus type PowerFeedStatus struct { // label // Required: true + // Enum: [Offline Active Planned Failed] Label *string `json:"label"` // value // Required: true + // Enum: [offline active planned failed] Value *string `json:"value"` } @@ -524,12 +598,87 @@ func (m *PowerFeedStatus) Validate(formats strfmt.Registry) error { return nil } +var powerFeedStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Offline","Active","Planned","Failed"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedStatusTypeLabelPropEnum = append(powerFeedStatusTypeLabelPropEnum, v) + } +} + +const ( + + // PowerFeedStatusLabelOffline captures enum value "Offline" + PowerFeedStatusLabelOffline string = "Offline" + + // PowerFeedStatusLabelActive captures enum value "Active" + PowerFeedStatusLabelActive string = "Active" + + // PowerFeedStatusLabelPlanned captures enum value "Planned" + PowerFeedStatusLabelPlanned string = "Planned" + + // PowerFeedStatusLabelFailed captures enum value "Failed" + PowerFeedStatusLabelFailed string = "Failed" +) + +// prop value enum +func (m *PowerFeedStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerFeedStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerFeedStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["offline","active","planned","failed"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedStatusTypeValuePropEnum = append(powerFeedStatusTypeValuePropEnum, v) + } +} + +const ( + + // PowerFeedStatusValueOffline captures enum value "offline" + PowerFeedStatusValueOffline string = "offline" + + // PowerFeedStatusValueActive captures enum value "active" + PowerFeedStatusValueActive string = "active" + + // PowerFeedStatusValuePlanned captures enum value "planned" + PowerFeedStatusValuePlanned string = "planned" + + // PowerFeedStatusValueFailed captures enum value "failed" + PowerFeedStatusValueFailed string = "failed" +) + +// prop value enum +func (m *PowerFeedStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -539,6 +688,11 @@ func (m *PowerFeedStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -561,15 +715,18 @@ func (m *PowerFeedStatus) UnmarshalBinary(b []byte) error { } // PowerFeedSupply Supply +// // swagger:model PowerFeedSupply type PowerFeedSupply struct { // label // Required: true + // Enum: [AC DC] Label *string `json:"label"` // value // Required: true + // Enum: [ac dc] Value *string `json:"value"` } @@ -604,12 +761,75 @@ func (m *PowerFeedSupply) Validate(formats strfmt.Registry) error { return nil } +var powerFeedSupplyTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AC","DC"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedSupplyTypeLabelPropEnum = append(powerFeedSupplyTypeLabelPropEnum, v) + } +} + +const ( + + // PowerFeedSupplyLabelAC captures enum value "AC" + PowerFeedSupplyLabelAC string = "AC" + + // PowerFeedSupplyLabelDC captures enum value "DC" + PowerFeedSupplyLabelDC string = "DC" +) + +// prop value enum +func (m *PowerFeedSupply) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedSupplyTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerFeedSupply) validateLabel(formats strfmt.Registry) error { if err := validate.Required("supply"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("supply"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerFeedSupplyTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["ac","dc"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedSupplyTypeValuePropEnum = append(powerFeedSupplyTypeValuePropEnum, v) + } +} + +const ( + + // PowerFeedSupplyValueAc captures enum value "ac" + PowerFeedSupplyValueAc string = "ac" + + // PowerFeedSupplyValueDc captures enum value "dc" + PowerFeedSupplyValueDc string = "dc" +) + +// prop value enum +func (m *PowerFeedSupply) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedSupplyTypeValuePropEnum); err != nil { + return err + } return nil } @@ -619,6 +839,11 @@ func (m *PowerFeedSupply) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("supply"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -641,15 +866,18 @@ func (m *PowerFeedSupply) UnmarshalBinary(b []byte) error { } // PowerFeedType Type +// // swagger:model PowerFeedType type PowerFeedType struct { // label // Required: true + // Enum: [Primary Redundant] Label *string `json:"label"` // value // Required: true + // Enum: [primary redundant] Value *string `json:"value"` } @@ -684,12 +912,75 @@ func (m *PowerFeedType) Validate(formats strfmt.Registry) error { return nil } +var powerFeedTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Primary","Redundant"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedTypeTypeLabelPropEnum = append(powerFeedTypeTypeLabelPropEnum, v) + } +} + +const ( + + // PowerFeedTypeLabelPrimary captures enum value "Primary" + PowerFeedTypeLabelPrimary string = "Primary" + + // PowerFeedTypeLabelRedundant captures enum value "Redundant" + PowerFeedTypeLabelRedundant string = "Redundant" +) + +// prop value enum +func (m *PowerFeedType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerFeedType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerFeedTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["primary","redundant"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerFeedTypeTypeValuePropEnum = append(powerFeedTypeTypeValuePropEnum, v) + } +} + +const ( + + // PowerFeedTypeValuePrimary captures enum value "primary" + PowerFeedTypeValuePrimary string = "primary" + + // PowerFeedTypeValueRedundant captures enum value "redundant" + PowerFeedTypeValueRedundant string = "redundant" +) + +// prop value enum +func (m *PowerFeedType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerFeedTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -699,6 +990,11 @@ func (m *PowerFeedType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet.go index 751a496b4..de3e3f51a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // PowerOutlet power outlet +// // swagger:model PowerOutlet type PowerOutlet struct { @@ -40,7 +41,7 @@ type PowerOutlet struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -53,7 +54,7 @@ type PowerOutlet struct { ConnectionStatus *PowerOutletConnectionStatus `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -171,7 +172,7 @@ func (m *PowerOutlet) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -303,15 +304,18 @@ func (m *PowerOutlet) UnmarshalBinary(b []byte) error { } // PowerOutletConnectionStatus Connection status +// // swagger:model PowerOutletConnectionStatus type PowerOutletConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -333,12 +337,66 @@ func (m *PowerOutletConnectionStatus) Validate(formats strfmt.Registry) error { return nil } +var powerOutletConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletConnectionStatusTypeLabelPropEnum = append(powerOutletConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // PowerOutletConnectionStatusLabelNotConnected captures enum value "Not Connected" + PowerOutletConnectionStatusLabelNotConnected string = "Not Connected" + + // PowerOutletConnectionStatusLabelConnected captures enum value "Connected" + PowerOutletConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *PowerOutletConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerOutletConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerOutletConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletConnectionStatusTypeValuePropEnum = append(powerOutletConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *PowerOutletConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, powerOutletConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -348,6 +406,11 @@ func (m *PowerOutletConnectionStatus) validateValue(formats strfmt.Registry) err return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -370,15 +433,18 @@ func (m *PowerOutletConnectionStatus) UnmarshalBinary(b []byte) error { } // PowerOutletFeedLeg Feed leg +// // swagger:model PowerOutletFeedLeg type PowerOutletFeedLeg struct { // label // Required: true + // Enum: [A B C] Label *string `json:"label"` // value // Required: true + // Enum: [A B C] Value *string `json:"value"` } @@ -400,12 +466,81 @@ func (m *PowerOutletFeedLeg) Validate(formats strfmt.Registry) error { return nil } +var powerOutletFeedLegTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["A","B","C"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletFeedLegTypeLabelPropEnum = append(powerOutletFeedLegTypeLabelPropEnum, v) + } +} + +const ( + + // PowerOutletFeedLegLabelA captures enum value "A" + PowerOutletFeedLegLabelA string = "A" + + // PowerOutletFeedLegLabelB captures enum value "B" + PowerOutletFeedLegLabelB string = "B" + + // PowerOutletFeedLegLabelC captures enum value "C" + PowerOutletFeedLegLabelC string = "C" +) + +// prop value enum +func (m *PowerOutletFeedLeg) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletFeedLegTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerOutletFeedLeg) validateLabel(formats strfmt.Registry) error { if err := validate.Required("feed_leg"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("feed_leg"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerOutletFeedLegTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["A","B","C"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletFeedLegTypeValuePropEnum = append(powerOutletFeedLegTypeValuePropEnum, v) + } +} + +const ( + + // PowerOutletFeedLegValueA captures enum value "A" + PowerOutletFeedLegValueA string = "A" + + // PowerOutletFeedLegValueB captures enum value "B" + PowerOutletFeedLegValueB string = "B" + + // PowerOutletFeedLegValueC captures enum value "C" + PowerOutletFeedLegValueC string = "C" +) + +// prop value enum +func (m *PowerOutletFeedLeg) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletFeedLegTypeValuePropEnum); err != nil { + return err + } return nil } @@ -415,6 +550,11 @@ func (m *PowerOutletFeedLeg) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("feed_leg"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -437,15 +577,18 @@ func (m *PowerOutletFeedLeg) UnmarshalBinary(b []byte) error { } // PowerOutletType Type +// // swagger:model PowerOutletType type PowerOutletType struct { // label // Required: true + // Enum: [C5 C7 C13 C15 C19 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 5-15R NEMA 5-20R NEMA 5-30R NEMA 5-50R NEMA 6-15R NEMA 6-20R NEMA 6-30R NEMA 6-50R NEMA L5-15R NEMA L5-20R NEMA L5-30R NEMA L6-15R NEMA L6-20R NEMA L6-30R NEMA L6-50R CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ITA Type E (CEE7/5) ITA Type F (CEE7/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 HDOT Cx] Label *string `json:"label"` // value // Required: true + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 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-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-20r nema-l6-30r nema-l6-50r 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 hdot-cx] Value *string `json:"value"` } @@ -467,12 +610,363 @@ func (m *PowerOutletType) Validate(formats strfmt.Registry) error { return nil } +var powerOutletTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["C5","C7","C13","C15","C19","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 5-15R","NEMA 5-20R","NEMA 5-30R","NEMA 5-50R","NEMA 6-15R","NEMA 6-20R","NEMA 6-30R","NEMA 6-50R","NEMA L5-15R","NEMA L5-20R","NEMA L5-30R","NEMA L6-15R","NEMA L6-20R","NEMA L6-30R","NEMA L6-50R","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ITA Type E (CEE7/5)","ITA Type F (CEE7/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","HDOT Cx"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletTypeTypeLabelPropEnum = append(powerOutletTypeTypeLabelPropEnum, v) + } +} + +const ( + + // PowerOutletTypeLabelC5 captures enum value "C5" + PowerOutletTypeLabelC5 string = "C5" + + // PowerOutletTypeLabelC7 captures enum value "C7" + PowerOutletTypeLabelC7 string = "C7" + + // PowerOutletTypeLabelC13 captures enum value "C13" + PowerOutletTypeLabelC13 string = "C13" + + // PowerOutletTypeLabelC15 captures enum value "C15" + PowerOutletTypeLabelC15 string = "C15" + + // PowerOutletTypeLabelC19 captures enum value "C19" + PowerOutletTypeLabelC19 string = "C19" + + // PowerOutletTypeLabelPNE4H captures enum value "P+N+E 4H" + PowerOutletTypeLabelPNE4H string = "P+N+E 4H" + + // PowerOutletTypeLabelPNE6H captures enum value "P+N+E 6H" + PowerOutletTypeLabelPNE6H string = "P+N+E 6H" + + // PowerOutletTypeLabelPNE9H captures enum value "P+N+E 9H" + PowerOutletTypeLabelPNE9H string = "P+N+E 9H" + + // PowerOutletTypeLabelNr2PE4H captures enum value "2P+E 4H" + PowerOutletTypeLabelNr2PE4H string = "2P+E 4H" + + // PowerOutletTypeLabelNr2PE6H captures enum value "2P+E 6H" + PowerOutletTypeLabelNr2PE6H string = "2P+E 6H" + + // PowerOutletTypeLabelNr2PE9H captures enum value "2P+E 9H" + PowerOutletTypeLabelNr2PE9H string = "2P+E 9H" + + // PowerOutletTypeLabelNr3PE4H captures enum value "3P+E 4H" + PowerOutletTypeLabelNr3PE4H string = "3P+E 4H" + + // PowerOutletTypeLabelNr3PE6H captures enum value "3P+E 6H" + PowerOutletTypeLabelNr3PE6H string = "3P+E 6H" + + // PowerOutletTypeLabelNr3PE9H captures enum value "3P+E 9H" + PowerOutletTypeLabelNr3PE9H string = "3P+E 9H" + + // PowerOutletTypeLabelNr3PNE4H captures enum value "3P+N+E 4H" + PowerOutletTypeLabelNr3PNE4H string = "3P+N+E 4H" + + // PowerOutletTypeLabelNr3PNE6H captures enum value "3P+N+E 6H" + PowerOutletTypeLabelNr3PNE6H string = "3P+N+E 6H" + + // PowerOutletTypeLabelNr3PNE9H captures enum value "3P+N+E 9H" + PowerOutletTypeLabelNr3PNE9H string = "3P+N+E 9H" + + // PowerOutletTypeLabelNEMA515R captures enum value "NEMA 5-15R" + PowerOutletTypeLabelNEMA515R string = "NEMA 5-15R" + + // PowerOutletTypeLabelNEMA520R captures enum value "NEMA 5-20R" + PowerOutletTypeLabelNEMA520R string = "NEMA 5-20R" + + // PowerOutletTypeLabelNEMA530R captures enum value "NEMA 5-30R" + PowerOutletTypeLabelNEMA530R string = "NEMA 5-30R" + + // PowerOutletTypeLabelNEMA550R captures enum value "NEMA 5-50R" + PowerOutletTypeLabelNEMA550R string = "NEMA 5-50R" + + // PowerOutletTypeLabelNEMA615R captures enum value "NEMA 6-15R" + PowerOutletTypeLabelNEMA615R string = "NEMA 6-15R" + + // PowerOutletTypeLabelNEMA620R captures enum value "NEMA 6-20R" + PowerOutletTypeLabelNEMA620R string = "NEMA 6-20R" + + // PowerOutletTypeLabelNEMA630R captures enum value "NEMA 6-30R" + PowerOutletTypeLabelNEMA630R string = "NEMA 6-30R" + + // PowerOutletTypeLabelNEMA650R captures enum value "NEMA 6-50R" + PowerOutletTypeLabelNEMA650R string = "NEMA 6-50R" + + // PowerOutletTypeLabelNEMAL515R captures enum value "NEMA L5-15R" + PowerOutletTypeLabelNEMAL515R string = "NEMA L5-15R" + + // PowerOutletTypeLabelNEMAL520R captures enum value "NEMA L5-20R" + PowerOutletTypeLabelNEMAL520R string = "NEMA L5-20R" + + // PowerOutletTypeLabelNEMAL530R captures enum value "NEMA L5-30R" + PowerOutletTypeLabelNEMAL530R string = "NEMA L5-30R" + + // PowerOutletTypeLabelNEMAL615R captures enum value "NEMA L6-15R" + PowerOutletTypeLabelNEMAL615R string = "NEMA L6-15R" + + // PowerOutletTypeLabelNEMAL620R captures enum value "NEMA L6-20R" + PowerOutletTypeLabelNEMAL620R string = "NEMA L6-20R" + + // PowerOutletTypeLabelNEMAL630R captures enum value "NEMA L6-30R" + PowerOutletTypeLabelNEMAL630R string = "NEMA L6-30R" + + // PowerOutletTypeLabelNEMAL650R captures enum value "NEMA L6-50R" + PowerOutletTypeLabelNEMAL650R string = "NEMA L6-50R" + + // PowerOutletTypeLabelCS6360C captures enum value "CS6360C" + PowerOutletTypeLabelCS6360C string = "CS6360C" + + // PowerOutletTypeLabelCS6364C captures enum value "CS6364C" + PowerOutletTypeLabelCS6364C string = "CS6364C" + + // PowerOutletTypeLabelCS8164C captures enum value "CS8164C" + PowerOutletTypeLabelCS8164C string = "CS8164C" + + // PowerOutletTypeLabelCS8264C captures enum value "CS8264C" + PowerOutletTypeLabelCS8264C string = "CS8264C" + + // PowerOutletTypeLabelCS8364C captures enum value "CS8364C" + PowerOutletTypeLabelCS8364C string = "CS8364C" + + // PowerOutletTypeLabelCS8464C captures enum value "CS8464C" + PowerOutletTypeLabelCS8464C string = "CS8464C" + + // PowerOutletTypeLabelITATypeECEE75 captures enum value "ITA Type E (CEE7/5)" + PowerOutletTypeLabelITATypeECEE75 string = "ITA Type E (CEE7/5)" + + // PowerOutletTypeLabelITATypeFCEE73 captures enum value "ITA Type F (CEE7/3)" + PowerOutletTypeLabelITATypeFCEE73 string = "ITA Type F (CEE7/3)" + + // PowerOutletTypeLabelITATypeGBS1363 captures enum value "ITA Type G (BS 1363)" + PowerOutletTypeLabelITATypeGBS1363 string = "ITA Type G (BS 1363)" + + // PowerOutletTypeLabelITATypeH captures enum value "ITA Type H" + PowerOutletTypeLabelITATypeH string = "ITA Type H" + + // PowerOutletTypeLabelITATypeI captures enum value "ITA Type I" + PowerOutletTypeLabelITATypeI string = "ITA Type I" + + // PowerOutletTypeLabelITATypeJ captures enum value "ITA Type J" + PowerOutletTypeLabelITATypeJ string = "ITA Type J" + + // PowerOutletTypeLabelITATypeK captures enum value "ITA Type K" + PowerOutletTypeLabelITATypeK string = "ITA Type K" + + // PowerOutletTypeLabelITATypeLCEI2350 captures enum value "ITA Type L (CEI 23-50)" + PowerOutletTypeLabelITATypeLCEI2350 string = "ITA Type L (CEI 23-50)" + + // PowerOutletTypeLabelITATypeMBS546 captures enum value "ITA Type M (BS 546)" + PowerOutletTypeLabelITATypeMBS546 string = "ITA Type M (BS 546)" + + // PowerOutletTypeLabelITATypeN captures enum value "ITA Type N" + PowerOutletTypeLabelITATypeN string = "ITA Type N" + + // PowerOutletTypeLabelITATypeO captures enum value "ITA Type O" + PowerOutletTypeLabelITATypeO string = "ITA Type O" + + // PowerOutletTypeLabelHDOTCx captures enum value "HDOT Cx" + PowerOutletTypeLabelHDOTCx string = "HDOT Cx" +) + +// prop value enum +func (m *PowerOutletType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerOutletType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +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-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-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-20r","nema-l6-30r","nema-l6-50r","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","hdot-cx"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletTypeTypeValuePropEnum = append(powerOutletTypeTypeValuePropEnum, v) + } +} + +const ( + + // PowerOutletTypeValueIec60320C5 captures enum value "iec-60320-c5" + PowerOutletTypeValueIec60320C5 string = "iec-60320-c5" + + // PowerOutletTypeValueIec60320C7 captures enum value "iec-60320-c7" + PowerOutletTypeValueIec60320C7 string = "iec-60320-c7" + + // PowerOutletTypeValueIec60320C13 captures enum value "iec-60320-c13" + PowerOutletTypeValueIec60320C13 string = "iec-60320-c13" + + // PowerOutletTypeValueIec60320C15 captures enum value "iec-60320-c15" + PowerOutletTypeValueIec60320C15 string = "iec-60320-c15" + + // PowerOutletTypeValueIec60320C19 captures enum value "iec-60320-c19" + PowerOutletTypeValueIec60320C19 string = "iec-60320-c19" + + // PowerOutletTypeValueIec60309pne4h captures enum value "iec-60309-p-n-e-4h" + PowerOutletTypeValueIec60309pne4h string = "iec-60309-p-n-e-4h" + + // PowerOutletTypeValueIec60309pne6h captures enum value "iec-60309-p-n-e-6h" + PowerOutletTypeValueIec60309pne6h string = "iec-60309-p-n-e-6h" + + // PowerOutletTypeValueIec60309pne9h captures enum value "iec-60309-p-n-e-9h" + PowerOutletTypeValueIec60309pne9h string = "iec-60309-p-n-e-9h" + + // PowerOutletTypeValueIec603092pe4h captures enum value "iec-60309-2p-e-4h" + PowerOutletTypeValueIec603092pe4h string = "iec-60309-2p-e-4h" + + // PowerOutletTypeValueIec603092pe6h captures enum value "iec-60309-2p-e-6h" + PowerOutletTypeValueIec603092pe6h string = "iec-60309-2p-e-6h" + + // PowerOutletTypeValueIec603092pe9h captures enum value "iec-60309-2p-e-9h" + PowerOutletTypeValueIec603092pe9h string = "iec-60309-2p-e-9h" + + // PowerOutletTypeValueIec603093pe4h captures enum value "iec-60309-3p-e-4h" + PowerOutletTypeValueIec603093pe4h string = "iec-60309-3p-e-4h" + + // PowerOutletTypeValueIec603093pe6h captures enum value "iec-60309-3p-e-6h" + PowerOutletTypeValueIec603093pe6h string = "iec-60309-3p-e-6h" + + // PowerOutletTypeValueIec603093pe9h captures enum value "iec-60309-3p-e-9h" + PowerOutletTypeValueIec603093pe9h string = "iec-60309-3p-e-9h" + + // PowerOutletTypeValueIec603093pne4h captures enum value "iec-60309-3p-n-e-4h" + PowerOutletTypeValueIec603093pne4h string = "iec-60309-3p-n-e-4h" + + // PowerOutletTypeValueIec603093pne6h captures enum value "iec-60309-3p-n-e-6h" + PowerOutletTypeValueIec603093pne6h string = "iec-60309-3p-n-e-6h" + + // PowerOutletTypeValueIec603093pne9h captures enum value "iec-60309-3p-n-e-9h" + PowerOutletTypeValueIec603093pne9h string = "iec-60309-3p-n-e-9h" + + // PowerOutletTypeValueNema515r captures enum value "nema-5-15r" + PowerOutletTypeValueNema515r string = "nema-5-15r" + + // PowerOutletTypeValueNema520r captures enum value "nema-5-20r" + PowerOutletTypeValueNema520r string = "nema-5-20r" + + // PowerOutletTypeValueNema530r captures enum value "nema-5-30r" + PowerOutletTypeValueNema530r string = "nema-5-30r" + + // PowerOutletTypeValueNema550r captures enum value "nema-5-50r" + PowerOutletTypeValueNema550r string = "nema-5-50r" + + // PowerOutletTypeValueNema615r captures enum value "nema-6-15r" + PowerOutletTypeValueNema615r string = "nema-6-15r" + + // PowerOutletTypeValueNema620r captures enum value "nema-6-20r" + PowerOutletTypeValueNema620r string = "nema-6-20r" + + // PowerOutletTypeValueNema630r captures enum value "nema-6-30r" + PowerOutletTypeValueNema630r string = "nema-6-30r" + + // PowerOutletTypeValueNema650r captures enum value "nema-6-50r" + PowerOutletTypeValueNema650r string = "nema-6-50r" + + // PowerOutletTypeValueNemaL515r captures enum value "nema-l5-15r" + PowerOutletTypeValueNemaL515r string = "nema-l5-15r" + + // PowerOutletTypeValueNemaL520r captures enum value "nema-l5-20r" + PowerOutletTypeValueNemaL520r string = "nema-l5-20r" + + // PowerOutletTypeValueNemaL530r captures enum value "nema-l5-30r" + PowerOutletTypeValueNemaL530r string = "nema-l5-30r" + + // PowerOutletTypeValueNemaL550r captures enum value "nema-l5-50r" + PowerOutletTypeValueNemaL550r string = "nema-l5-50r" + + // PowerOutletTypeValueNemaL620r captures enum value "nema-l6-20r" + PowerOutletTypeValueNemaL620r string = "nema-l6-20r" + + // PowerOutletTypeValueNemaL630r captures enum value "nema-l6-30r" + PowerOutletTypeValueNemaL630r string = "nema-l6-30r" + + // PowerOutletTypeValueNemaL650r captures enum value "nema-l6-50r" + PowerOutletTypeValueNemaL650r string = "nema-l6-50r" + + // PowerOutletTypeValueCS6360C captures enum value "CS6360C" + PowerOutletTypeValueCS6360C string = "CS6360C" + + // PowerOutletTypeValueCS6364C captures enum value "CS6364C" + PowerOutletTypeValueCS6364C string = "CS6364C" + + // PowerOutletTypeValueCS8164C captures enum value "CS8164C" + PowerOutletTypeValueCS8164C string = "CS8164C" + + // PowerOutletTypeValueCS8264C captures enum value "CS8264C" + PowerOutletTypeValueCS8264C string = "CS8264C" + + // PowerOutletTypeValueCS8364C captures enum value "CS8364C" + PowerOutletTypeValueCS8364C string = "CS8364C" + + // PowerOutletTypeValueCS8464C captures enum value "CS8464C" + PowerOutletTypeValueCS8464C string = "CS8464C" + + // PowerOutletTypeValueItae captures enum value "ita-e" + PowerOutletTypeValueItae string = "ita-e" + + // PowerOutletTypeValueItaf captures enum value "ita-f" + PowerOutletTypeValueItaf string = "ita-f" + + // PowerOutletTypeValueItag captures enum value "ita-g" + PowerOutletTypeValueItag string = "ita-g" + + // PowerOutletTypeValueItah captures enum value "ita-h" + PowerOutletTypeValueItah string = "ita-h" + + // PowerOutletTypeValueItai captures enum value "ita-i" + PowerOutletTypeValueItai string = "ita-i" + + // PowerOutletTypeValueItaj captures enum value "ita-j" + PowerOutletTypeValueItaj string = "ita-j" + + // PowerOutletTypeValueItak captures enum value "ita-k" + PowerOutletTypeValueItak string = "ita-k" + + // PowerOutletTypeValueItal captures enum value "ita-l" + PowerOutletTypeValueItal string = "ita-l" + + // PowerOutletTypeValueItam captures enum value "ita-m" + PowerOutletTypeValueItam string = "ita-m" + + // PowerOutletTypeValueItan captures enum value "ita-n" + PowerOutletTypeValueItan string = "ita-n" + + // PowerOutletTypeValueItao captures enum value "ita-o" + PowerOutletTypeValueItao string = "ita-o" + + // PowerOutletTypeValueHdotCx captures enum value "hdot-cx" + PowerOutletTypeValueHdotCx string = "hdot-cx" +) + +// prop value enum +func (m *PowerOutletType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -482,6 +976,11 @@ func (m *PowerOutletType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet_template.go index 47d776988..3fef2d6f9 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_outlet_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // PowerOutletTemplate power outlet template +// // swagger:model PowerOutletTemplate type PowerOutletTemplate struct { @@ -194,15 +196,18 @@ func (m *PowerOutletTemplate) UnmarshalBinary(b []byte) error { } // PowerOutletTemplateFeedLeg Feed leg +// // swagger:model PowerOutletTemplateFeedLeg type PowerOutletTemplateFeedLeg struct { // label // Required: true + // Enum: [A B C] Label *string `json:"label"` // value // Required: true + // Enum: [A B C] Value *string `json:"value"` } @@ -224,12 +229,81 @@ func (m *PowerOutletTemplateFeedLeg) Validate(formats strfmt.Registry) error { return nil } +var powerOutletTemplateFeedLegTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["A","B","C"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletTemplateFeedLegTypeLabelPropEnum = append(powerOutletTemplateFeedLegTypeLabelPropEnum, v) + } +} + +const ( + + // PowerOutletTemplateFeedLegLabelA captures enum value "A" + PowerOutletTemplateFeedLegLabelA string = "A" + + // PowerOutletTemplateFeedLegLabelB captures enum value "B" + PowerOutletTemplateFeedLegLabelB string = "B" + + // PowerOutletTemplateFeedLegLabelC captures enum value "C" + PowerOutletTemplateFeedLegLabelC string = "C" +) + +// prop value enum +func (m *PowerOutletTemplateFeedLeg) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletTemplateFeedLegTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerOutletTemplateFeedLeg) validateLabel(formats strfmt.Registry) error { if err := validate.Required("feed_leg"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("feed_leg"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerOutletTemplateFeedLegTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["A","B","C"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletTemplateFeedLegTypeValuePropEnum = append(powerOutletTemplateFeedLegTypeValuePropEnum, v) + } +} + +const ( + + // PowerOutletTemplateFeedLegValueA captures enum value "A" + PowerOutletTemplateFeedLegValueA string = "A" + + // PowerOutletTemplateFeedLegValueB captures enum value "B" + PowerOutletTemplateFeedLegValueB string = "B" + + // PowerOutletTemplateFeedLegValueC captures enum value "C" + PowerOutletTemplateFeedLegValueC string = "C" +) + +// prop value enum +func (m *PowerOutletTemplateFeedLeg) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletTemplateFeedLegTypeValuePropEnum); err != nil { + return err + } return nil } @@ -239,6 +313,11 @@ func (m *PowerOutletTemplateFeedLeg) validateValue(formats strfmt.Registry) erro return err } + // value enum + if err := m.validateValueEnum("feed_leg"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -261,15 +340,18 @@ func (m *PowerOutletTemplateFeedLeg) UnmarshalBinary(b []byte) error { } // PowerOutletTemplateType Type +// // swagger:model PowerOutletTemplateType type PowerOutletTemplateType struct { // label // Required: true + // Enum: [C5 C7 C13 C15 C19 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 5-15R NEMA 5-20R NEMA 5-30R NEMA 5-50R NEMA 6-15R NEMA 6-20R NEMA 6-30R NEMA 6-50R NEMA L5-15R NEMA L5-20R NEMA L5-30R NEMA L6-15R NEMA L6-20R NEMA L6-30R NEMA L6-50R CS6360C CS6364C CS8164C CS8264C CS8364C CS8464C ITA Type E (CEE7/5) ITA Type F (CEE7/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 HDOT Cx] Label *string `json:"label"` // value // Required: true + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 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-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-20r nema-l6-30r nema-l6-50r 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 hdot-cx] Value *string `json:"value"` } @@ -291,12 +373,363 @@ func (m *PowerOutletTemplateType) Validate(formats strfmt.Registry) error { return nil } +var powerOutletTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["C5","C7","C13","C15","C19","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 5-15R","NEMA 5-20R","NEMA 5-30R","NEMA 5-50R","NEMA 6-15R","NEMA 6-20R","NEMA 6-30R","NEMA 6-50R","NEMA L5-15R","NEMA L5-20R","NEMA L5-30R","NEMA L6-15R","NEMA L6-20R","NEMA L6-30R","NEMA L6-50R","CS6360C","CS6364C","CS8164C","CS8264C","CS8364C","CS8464C","ITA Type E (CEE7/5)","ITA Type F (CEE7/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","HDOT Cx"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletTemplateTypeTypeLabelPropEnum = append(powerOutletTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // PowerOutletTemplateTypeLabelC5 captures enum value "C5" + PowerOutletTemplateTypeLabelC5 string = "C5" + + // PowerOutletTemplateTypeLabelC7 captures enum value "C7" + PowerOutletTemplateTypeLabelC7 string = "C7" + + // PowerOutletTemplateTypeLabelC13 captures enum value "C13" + PowerOutletTemplateTypeLabelC13 string = "C13" + + // PowerOutletTemplateTypeLabelC15 captures enum value "C15" + PowerOutletTemplateTypeLabelC15 string = "C15" + + // PowerOutletTemplateTypeLabelC19 captures enum value "C19" + PowerOutletTemplateTypeLabelC19 string = "C19" + + // PowerOutletTemplateTypeLabelPNE4H captures enum value "P+N+E 4H" + PowerOutletTemplateTypeLabelPNE4H string = "P+N+E 4H" + + // PowerOutletTemplateTypeLabelPNE6H captures enum value "P+N+E 6H" + PowerOutletTemplateTypeLabelPNE6H string = "P+N+E 6H" + + // PowerOutletTemplateTypeLabelPNE9H captures enum value "P+N+E 9H" + PowerOutletTemplateTypeLabelPNE9H string = "P+N+E 9H" + + // PowerOutletTemplateTypeLabelNr2PE4H captures enum value "2P+E 4H" + PowerOutletTemplateTypeLabelNr2PE4H string = "2P+E 4H" + + // PowerOutletTemplateTypeLabelNr2PE6H captures enum value "2P+E 6H" + PowerOutletTemplateTypeLabelNr2PE6H string = "2P+E 6H" + + // PowerOutletTemplateTypeLabelNr2PE9H captures enum value "2P+E 9H" + PowerOutletTemplateTypeLabelNr2PE9H string = "2P+E 9H" + + // PowerOutletTemplateTypeLabelNr3PE4H captures enum value "3P+E 4H" + PowerOutletTemplateTypeLabelNr3PE4H string = "3P+E 4H" + + // PowerOutletTemplateTypeLabelNr3PE6H captures enum value "3P+E 6H" + PowerOutletTemplateTypeLabelNr3PE6H string = "3P+E 6H" + + // PowerOutletTemplateTypeLabelNr3PE9H captures enum value "3P+E 9H" + PowerOutletTemplateTypeLabelNr3PE9H string = "3P+E 9H" + + // PowerOutletTemplateTypeLabelNr3PNE4H captures enum value "3P+N+E 4H" + PowerOutletTemplateTypeLabelNr3PNE4H string = "3P+N+E 4H" + + // PowerOutletTemplateTypeLabelNr3PNE6H captures enum value "3P+N+E 6H" + PowerOutletTemplateTypeLabelNr3PNE6H string = "3P+N+E 6H" + + // PowerOutletTemplateTypeLabelNr3PNE9H captures enum value "3P+N+E 9H" + PowerOutletTemplateTypeLabelNr3PNE9H string = "3P+N+E 9H" + + // PowerOutletTemplateTypeLabelNEMA515R captures enum value "NEMA 5-15R" + PowerOutletTemplateTypeLabelNEMA515R string = "NEMA 5-15R" + + // PowerOutletTemplateTypeLabelNEMA520R captures enum value "NEMA 5-20R" + PowerOutletTemplateTypeLabelNEMA520R string = "NEMA 5-20R" + + // PowerOutletTemplateTypeLabelNEMA530R captures enum value "NEMA 5-30R" + PowerOutletTemplateTypeLabelNEMA530R string = "NEMA 5-30R" + + // PowerOutletTemplateTypeLabelNEMA550R captures enum value "NEMA 5-50R" + PowerOutletTemplateTypeLabelNEMA550R string = "NEMA 5-50R" + + // PowerOutletTemplateTypeLabelNEMA615R captures enum value "NEMA 6-15R" + PowerOutletTemplateTypeLabelNEMA615R string = "NEMA 6-15R" + + // PowerOutletTemplateTypeLabelNEMA620R captures enum value "NEMA 6-20R" + PowerOutletTemplateTypeLabelNEMA620R string = "NEMA 6-20R" + + // PowerOutletTemplateTypeLabelNEMA630R captures enum value "NEMA 6-30R" + PowerOutletTemplateTypeLabelNEMA630R string = "NEMA 6-30R" + + // PowerOutletTemplateTypeLabelNEMA650R captures enum value "NEMA 6-50R" + PowerOutletTemplateTypeLabelNEMA650R string = "NEMA 6-50R" + + // PowerOutletTemplateTypeLabelNEMAL515R captures enum value "NEMA L5-15R" + PowerOutletTemplateTypeLabelNEMAL515R string = "NEMA L5-15R" + + // PowerOutletTemplateTypeLabelNEMAL520R captures enum value "NEMA L5-20R" + PowerOutletTemplateTypeLabelNEMAL520R string = "NEMA L5-20R" + + // PowerOutletTemplateTypeLabelNEMAL530R captures enum value "NEMA L5-30R" + PowerOutletTemplateTypeLabelNEMAL530R string = "NEMA L5-30R" + + // PowerOutletTemplateTypeLabelNEMAL615R captures enum value "NEMA L6-15R" + PowerOutletTemplateTypeLabelNEMAL615R string = "NEMA L6-15R" + + // PowerOutletTemplateTypeLabelNEMAL620R captures enum value "NEMA L6-20R" + PowerOutletTemplateTypeLabelNEMAL620R string = "NEMA L6-20R" + + // PowerOutletTemplateTypeLabelNEMAL630R captures enum value "NEMA L6-30R" + PowerOutletTemplateTypeLabelNEMAL630R string = "NEMA L6-30R" + + // PowerOutletTemplateTypeLabelNEMAL650R captures enum value "NEMA L6-50R" + PowerOutletTemplateTypeLabelNEMAL650R string = "NEMA L6-50R" + + // PowerOutletTemplateTypeLabelCS6360C captures enum value "CS6360C" + PowerOutletTemplateTypeLabelCS6360C string = "CS6360C" + + // PowerOutletTemplateTypeLabelCS6364C captures enum value "CS6364C" + PowerOutletTemplateTypeLabelCS6364C string = "CS6364C" + + // PowerOutletTemplateTypeLabelCS8164C captures enum value "CS8164C" + PowerOutletTemplateTypeLabelCS8164C string = "CS8164C" + + // PowerOutletTemplateTypeLabelCS8264C captures enum value "CS8264C" + PowerOutletTemplateTypeLabelCS8264C string = "CS8264C" + + // PowerOutletTemplateTypeLabelCS8364C captures enum value "CS8364C" + PowerOutletTemplateTypeLabelCS8364C string = "CS8364C" + + // PowerOutletTemplateTypeLabelCS8464C captures enum value "CS8464C" + PowerOutletTemplateTypeLabelCS8464C string = "CS8464C" + + // PowerOutletTemplateTypeLabelITATypeECEE75 captures enum value "ITA Type E (CEE7/5)" + PowerOutletTemplateTypeLabelITATypeECEE75 string = "ITA Type E (CEE7/5)" + + // PowerOutletTemplateTypeLabelITATypeFCEE73 captures enum value "ITA Type F (CEE7/3)" + PowerOutletTemplateTypeLabelITATypeFCEE73 string = "ITA Type F (CEE7/3)" + + // PowerOutletTemplateTypeLabelITATypeGBS1363 captures enum value "ITA Type G (BS 1363)" + PowerOutletTemplateTypeLabelITATypeGBS1363 string = "ITA Type G (BS 1363)" + + // PowerOutletTemplateTypeLabelITATypeH captures enum value "ITA Type H" + PowerOutletTemplateTypeLabelITATypeH string = "ITA Type H" + + // PowerOutletTemplateTypeLabelITATypeI captures enum value "ITA Type I" + PowerOutletTemplateTypeLabelITATypeI string = "ITA Type I" + + // PowerOutletTemplateTypeLabelITATypeJ captures enum value "ITA Type J" + PowerOutletTemplateTypeLabelITATypeJ string = "ITA Type J" + + // PowerOutletTemplateTypeLabelITATypeK captures enum value "ITA Type K" + PowerOutletTemplateTypeLabelITATypeK string = "ITA Type K" + + // PowerOutletTemplateTypeLabelITATypeLCEI2350 captures enum value "ITA Type L (CEI 23-50)" + PowerOutletTemplateTypeLabelITATypeLCEI2350 string = "ITA Type L (CEI 23-50)" + + // PowerOutletTemplateTypeLabelITATypeMBS546 captures enum value "ITA Type M (BS 546)" + PowerOutletTemplateTypeLabelITATypeMBS546 string = "ITA Type M (BS 546)" + + // PowerOutletTemplateTypeLabelITATypeN captures enum value "ITA Type N" + PowerOutletTemplateTypeLabelITATypeN string = "ITA Type N" + + // PowerOutletTemplateTypeLabelITATypeO captures enum value "ITA Type O" + PowerOutletTemplateTypeLabelITATypeO string = "ITA Type O" + + // PowerOutletTemplateTypeLabelHDOTCx captures enum value "HDOT Cx" + PowerOutletTemplateTypeLabelHDOTCx string = "HDOT Cx" +) + +// prop value enum +func (m *PowerOutletTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerOutletTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +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-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-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-20r","nema-l6-30r","nema-l6-50r","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","hdot-cx"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerOutletTemplateTypeTypeValuePropEnum = append(powerOutletTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // PowerOutletTemplateTypeValueIec60320C5 captures enum value "iec-60320-c5" + PowerOutletTemplateTypeValueIec60320C5 string = "iec-60320-c5" + + // PowerOutletTemplateTypeValueIec60320C7 captures enum value "iec-60320-c7" + PowerOutletTemplateTypeValueIec60320C7 string = "iec-60320-c7" + + // PowerOutletTemplateTypeValueIec60320C13 captures enum value "iec-60320-c13" + PowerOutletTemplateTypeValueIec60320C13 string = "iec-60320-c13" + + // PowerOutletTemplateTypeValueIec60320C15 captures enum value "iec-60320-c15" + PowerOutletTemplateTypeValueIec60320C15 string = "iec-60320-c15" + + // PowerOutletTemplateTypeValueIec60320C19 captures enum value "iec-60320-c19" + PowerOutletTemplateTypeValueIec60320C19 string = "iec-60320-c19" + + // PowerOutletTemplateTypeValueIec60309pne4h captures enum value "iec-60309-p-n-e-4h" + PowerOutletTemplateTypeValueIec60309pne4h string = "iec-60309-p-n-e-4h" + + // PowerOutletTemplateTypeValueIec60309pne6h captures enum value "iec-60309-p-n-e-6h" + PowerOutletTemplateTypeValueIec60309pne6h string = "iec-60309-p-n-e-6h" + + // PowerOutletTemplateTypeValueIec60309pne9h captures enum value "iec-60309-p-n-e-9h" + PowerOutletTemplateTypeValueIec60309pne9h string = "iec-60309-p-n-e-9h" + + // PowerOutletTemplateTypeValueIec603092pe4h captures enum value "iec-60309-2p-e-4h" + PowerOutletTemplateTypeValueIec603092pe4h string = "iec-60309-2p-e-4h" + + // PowerOutletTemplateTypeValueIec603092pe6h captures enum value "iec-60309-2p-e-6h" + PowerOutletTemplateTypeValueIec603092pe6h string = "iec-60309-2p-e-6h" + + // PowerOutletTemplateTypeValueIec603092pe9h captures enum value "iec-60309-2p-e-9h" + PowerOutletTemplateTypeValueIec603092pe9h string = "iec-60309-2p-e-9h" + + // PowerOutletTemplateTypeValueIec603093pe4h captures enum value "iec-60309-3p-e-4h" + PowerOutletTemplateTypeValueIec603093pe4h string = "iec-60309-3p-e-4h" + + // PowerOutletTemplateTypeValueIec603093pe6h captures enum value "iec-60309-3p-e-6h" + PowerOutletTemplateTypeValueIec603093pe6h string = "iec-60309-3p-e-6h" + + // PowerOutletTemplateTypeValueIec603093pe9h captures enum value "iec-60309-3p-e-9h" + PowerOutletTemplateTypeValueIec603093pe9h string = "iec-60309-3p-e-9h" + + // PowerOutletTemplateTypeValueIec603093pne4h captures enum value "iec-60309-3p-n-e-4h" + PowerOutletTemplateTypeValueIec603093pne4h string = "iec-60309-3p-n-e-4h" + + // PowerOutletTemplateTypeValueIec603093pne6h captures enum value "iec-60309-3p-n-e-6h" + PowerOutletTemplateTypeValueIec603093pne6h string = "iec-60309-3p-n-e-6h" + + // PowerOutletTemplateTypeValueIec603093pne9h captures enum value "iec-60309-3p-n-e-9h" + PowerOutletTemplateTypeValueIec603093pne9h string = "iec-60309-3p-n-e-9h" + + // PowerOutletTemplateTypeValueNema515r captures enum value "nema-5-15r" + PowerOutletTemplateTypeValueNema515r string = "nema-5-15r" + + // PowerOutletTemplateTypeValueNema520r captures enum value "nema-5-20r" + PowerOutletTemplateTypeValueNema520r string = "nema-5-20r" + + // PowerOutletTemplateTypeValueNema530r captures enum value "nema-5-30r" + PowerOutletTemplateTypeValueNema530r string = "nema-5-30r" + + // PowerOutletTemplateTypeValueNema550r captures enum value "nema-5-50r" + PowerOutletTemplateTypeValueNema550r string = "nema-5-50r" + + // PowerOutletTemplateTypeValueNema615r captures enum value "nema-6-15r" + PowerOutletTemplateTypeValueNema615r string = "nema-6-15r" + + // PowerOutletTemplateTypeValueNema620r captures enum value "nema-6-20r" + PowerOutletTemplateTypeValueNema620r string = "nema-6-20r" + + // PowerOutletTemplateTypeValueNema630r captures enum value "nema-6-30r" + PowerOutletTemplateTypeValueNema630r string = "nema-6-30r" + + // PowerOutletTemplateTypeValueNema650r captures enum value "nema-6-50r" + PowerOutletTemplateTypeValueNema650r string = "nema-6-50r" + + // PowerOutletTemplateTypeValueNemaL515r captures enum value "nema-l5-15r" + PowerOutletTemplateTypeValueNemaL515r string = "nema-l5-15r" + + // PowerOutletTemplateTypeValueNemaL520r captures enum value "nema-l5-20r" + PowerOutletTemplateTypeValueNemaL520r string = "nema-l5-20r" + + // PowerOutletTemplateTypeValueNemaL530r captures enum value "nema-l5-30r" + PowerOutletTemplateTypeValueNemaL530r string = "nema-l5-30r" + + // PowerOutletTemplateTypeValueNemaL550r captures enum value "nema-l5-50r" + PowerOutletTemplateTypeValueNemaL550r string = "nema-l5-50r" + + // PowerOutletTemplateTypeValueNemaL620r captures enum value "nema-l6-20r" + PowerOutletTemplateTypeValueNemaL620r string = "nema-l6-20r" + + // PowerOutletTemplateTypeValueNemaL630r captures enum value "nema-l6-30r" + PowerOutletTemplateTypeValueNemaL630r string = "nema-l6-30r" + + // PowerOutletTemplateTypeValueNemaL650r captures enum value "nema-l6-50r" + PowerOutletTemplateTypeValueNemaL650r string = "nema-l6-50r" + + // PowerOutletTemplateTypeValueCS6360C captures enum value "CS6360C" + PowerOutletTemplateTypeValueCS6360C string = "CS6360C" + + // PowerOutletTemplateTypeValueCS6364C captures enum value "CS6364C" + PowerOutletTemplateTypeValueCS6364C string = "CS6364C" + + // PowerOutletTemplateTypeValueCS8164C captures enum value "CS8164C" + PowerOutletTemplateTypeValueCS8164C string = "CS8164C" + + // PowerOutletTemplateTypeValueCS8264C captures enum value "CS8264C" + PowerOutletTemplateTypeValueCS8264C string = "CS8264C" + + // PowerOutletTemplateTypeValueCS8364C captures enum value "CS8364C" + PowerOutletTemplateTypeValueCS8364C string = "CS8364C" + + // PowerOutletTemplateTypeValueCS8464C captures enum value "CS8464C" + PowerOutletTemplateTypeValueCS8464C string = "CS8464C" + + // PowerOutletTemplateTypeValueItae captures enum value "ita-e" + PowerOutletTemplateTypeValueItae string = "ita-e" + + // PowerOutletTemplateTypeValueItaf captures enum value "ita-f" + PowerOutletTemplateTypeValueItaf string = "ita-f" + + // PowerOutletTemplateTypeValueItag captures enum value "ita-g" + PowerOutletTemplateTypeValueItag string = "ita-g" + + // PowerOutletTemplateTypeValueItah captures enum value "ita-h" + PowerOutletTemplateTypeValueItah string = "ita-h" + + // PowerOutletTemplateTypeValueItai captures enum value "ita-i" + PowerOutletTemplateTypeValueItai string = "ita-i" + + // PowerOutletTemplateTypeValueItaj captures enum value "ita-j" + PowerOutletTemplateTypeValueItaj string = "ita-j" + + // PowerOutletTemplateTypeValueItak captures enum value "ita-k" + PowerOutletTemplateTypeValueItak string = "ita-k" + + // PowerOutletTemplateTypeValueItal captures enum value "ita-l" + PowerOutletTemplateTypeValueItal string = "ita-l" + + // PowerOutletTemplateTypeValueItam captures enum value "ita-m" + PowerOutletTemplateTypeValueItam string = "ita-m" + + // PowerOutletTemplateTypeValueItan captures enum value "ita-n" + PowerOutletTemplateTypeValueItan string = "ita-n" + + // PowerOutletTemplateTypeValueItao captures enum value "ita-o" + PowerOutletTemplateTypeValueItao string = "ita-o" + + // PowerOutletTemplateTypeValueHdotCx captures enum value "hdot-cx" + PowerOutletTemplateTypeValueHdotCx string = "hdot-cx" +) + +// prop value enum +func (m *PowerOutletTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerOutletTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -306,6 +739,11 @@ func (m *PowerOutletTemplateType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_panel.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_panel.go index 477c8e533..325d4da01 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_panel.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_panel.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // PowerPanel power panel +// // swagger:model PowerPanel type PowerPanel struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port.go index 546b3806f..b2f590f4c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // PowerPort power port +// // swagger:model PowerPort type PowerPort struct { @@ -47,7 +48,7 @@ type PowerPort struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -60,7 +61,7 @@ type PowerPort struct { ConnectionStatus *PowerPortConnectionStatus `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -196,7 +197,7 @@ func (m *PowerPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -309,15 +310,18 @@ func (m *PowerPort) UnmarshalBinary(b []byte) error { } // PowerPortConnectionStatus Connection status +// // swagger:model PowerPortConnectionStatus type PowerPortConnectionStatus struct { // label // Required: true + // Enum: [Not Connected Connected] Label *string `json:"label"` // value // Required: true + // Enum: [false true] Value *bool `json:"value"` } @@ -339,12 +343,66 @@ func (m *PowerPortConnectionStatus) Validate(formats strfmt.Registry) error { return nil } +var powerPortConnectionStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Not Connected","Connected"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerPortConnectionStatusTypeLabelPropEnum = append(powerPortConnectionStatusTypeLabelPropEnum, v) + } +} + +const ( + + // PowerPortConnectionStatusLabelNotConnected captures enum value "Not Connected" + PowerPortConnectionStatusLabelNotConnected string = "Not Connected" + + // PowerPortConnectionStatusLabelConnected captures enum value "Connected" + PowerPortConnectionStatusLabelConnected string = "Connected" +) + +// prop value enum +func (m *PowerPortConnectionStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerPortConnectionStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerPortConnectionStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("connection_status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("connection_status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var powerPortConnectionStatusTypeValuePropEnum []interface{} + +func init() { + var res []bool + if err := json.Unmarshal([]byte(`[false,true]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerPortConnectionStatusTypeValuePropEnum = append(powerPortConnectionStatusTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *PowerPortConnectionStatus) validateValueEnum(path, location string, value bool) error { + if err := validate.Enum(path, location, value, powerPortConnectionStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -354,6 +412,11 @@ func (m *PowerPortConnectionStatus) validateValue(formats strfmt.Registry) error return err } + // value enum + if err := m.validateValueEnum("connection_status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -376,15 +439,18 @@ func (m *PowerPortConnectionStatus) UnmarshalBinary(b []byte) error { } // PowerPortType Type +// // swagger:model PowerPortType type PowerPortType struct { // label // Required: true + // Enum: [C6 C8 C14 C16 C20 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 5-15P NEMA 5-20P NEMA 5-30P NEMA 5-50P NEMA 6-15P NEMA 6-20P NEMA 6-30P NEMA 6-50P NEMA L5-15P NEMA L5-20P NEMA L5-30P NEMA L6-15P NEMA L6-20P NEMA L6-30P NEMA L6-50P CS6361C CS6365C CS8165C CS8265C CS8365C CS8465C ITA Type E (CEE 7/5) 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] Label *string `json:"label"` // value // Required: true + // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 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-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-20p nema-l6-30p nema-l6-50p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o] Value *string `json:"value"` } @@ -406,12 +472,363 @@ func (m *PowerPortType) Validate(formats strfmt.Registry) error { return nil } +var powerPortTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["C6","C8","C14","C16","C20","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 5-15P","NEMA 5-20P","NEMA 5-30P","NEMA 5-50P","NEMA 6-15P","NEMA 6-20P","NEMA 6-30P","NEMA 6-50P","NEMA L5-15P","NEMA L5-20P","NEMA L5-30P","NEMA L6-15P","NEMA L6-20P","NEMA L6-30P","NEMA L6-50P","CS6361C","CS6365C","CS8165C","CS8265C","CS8365C","CS8465C","ITA Type E (CEE 7/5)","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"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerPortTypeTypeLabelPropEnum = append(powerPortTypeTypeLabelPropEnum, v) + } +} + +const ( + + // PowerPortTypeLabelC6 captures enum value "C6" + PowerPortTypeLabelC6 string = "C6" + + // PowerPortTypeLabelC8 captures enum value "C8" + PowerPortTypeLabelC8 string = "C8" + + // PowerPortTypeLabelC14 captures enum value "C14" + PowerPortTypeLabelC14 string = "C14" + + // PowerPortTypeLabelC16 captures enum value "C16" + PowerPortTypeLabelC16 string = "C16" + + // PowerPortTypeLabelC20 captures enum value "C20" + PowerPortTypeLabelC20 string = "C20" + + // PowerPortTypeLabelPNE4H captures enum value "P+N+E 4H" + PowerPortTypeLabelPNE4H string = "P+N+E 4H" + + // PowerPortTypeLabelPNE6H captures enum value "P+N+E 6H" + PowerPortTypeLabelPNE6H string = "P+N+E 6H" + + // PowerPortTypeLabelPNE9H captures enum value "P+N+E 9H" + PowerPortTypeLabelPNE9H string = "P+N+E 9H" + + // PowerPortTypeLabelNr2PE4H captures enum value "2P+E 4H" + PowerPortTypeLabelNr2PE4H string = "2P+E 4H" + + // PowerPortTypeLabelNr2PE6H captures enum value "2P+E 6H" + PowerPortTypeLabelNr2PE6H string = "2P+E 6H" + + // PowerPortTypeLabelNr2PE9H captures enum value "2P+E 9H" + PowerPortTypeLabelNr2PE9H string = "2P+E 9H" + + // PowerPortTypeLabelNr3PE4H captures enum value "3P+E 4H" + PowerPortTypeLabelNr3PE4H string = "3P+E 4H" + + // PowerPortTypeLabelNr3PE6H captures enum value "3P+E 6H" + PowerPortTypeLabelNr3PE6H string = "3P+E 6H" + + // PowerPortTypeLabelNr3PE9H captures enum value "3P+E 9H" + PowerPortTypeLabelNr3PE9H string = "3P+E 9H" + + // PowerPortTypeLabelNr3PNE4H captures enum value "3P+N+E 4H" + PowerPortTypeLabelNr3PNE4H string = "3P+N+E 4H" + + // PowerPortTypeLabelNr3PNE6H captures enum value "3P+N+E 6H" + PowerPortTypeLabelNr3PNE6H string = "3P+N+E 6H" + + // PowerPortTypeLabelNr3PNE9H captures enum value "3P+N+E 9H" + PowerPortTypeLabelNr3PNE9H string = "3P+N+E 9H" + + // PowerPortTypeLabelNEMA515P captures enum value "NEMA 5-15P" + PowerPortTypeLabelNEMA515P string = "NEMA 5-15P" + + // PowerPortTypeLabelNEMA520P captures enum value "NEMA 5-20P" + PowerPortTypeLabelNEMA520P string = "NEMA 5-20P" + + // PowerPortTypeLabelNEMA530P captures enum value "NEMA 5-30P" + PowerPortTypeLabelNEMA530P string = "NEMA 5-30P" + + // PowerPortTypeLabelNEMA550P captures enum value "NEMA 5-50P" + PowerPortTypeLabelNEMA550P string = "NEMA 5-50P" + + // PowerPortTypeLabelNEMA615P captures enum value "NEMA 6-15P" + PowerPortTypeLabelNEMA615P string = "NEMA 6-15P" + + // PowerPortTypeLabelNEMA620P captures enum value "NEMA 6-20P" + PowerPortTypeLabelNEMA620P string = "NEMA 6-20P" + + // PowerPortTypeLabelNEMA630P captures enum value "NEMA 6-30P" + PowerPortTypeLabelNEMA630P string = "NEMA 6-30P" + + // PowerPortTypeLabelNEMA650P captures enum value "NEMA 6-50P" + PowerPortTypeLabelNEMA650P string = "NEMA 6-50P" + + // PowerPortTypeLabelNEMAL515P captures enum value "NEMA L5-15P" + PowerPortTypeLabelNEMAL515P string = "NEMA L5-15P" + + // PowerPortTypeLabelNEMAL520P captures enum value "NEMA L5-20P" + PowerPortTypeLabelNEMAL520P string = "NEMA L5-20P" + + // PowerPortTypeLabelNEMAL530P captures enum value "NEMA L5-30P" + PowerPortTypeLabelNEMAL530P string = "NEMA L5-30P" + + // PowerPortTypeLabelNEMAL615P captures enum value "NEMA L6-15P" + PowerPortTypeLabelNEMAL615P string = "NEMA L6-15P" + + // PowerPortTypeLabelNEMAL620P captures enum value "NEMA L6-20P" + PowerPortTypeLabelNEMAL620P string = "NEMA L6-20P" + + // PowerPortTypeLabelNEMAL630P captures enum value "NEMA L6-30P" + PowerPortTypeLabelNEMAL630P string = "NEMA L6-30P" + + // PowerPortTypeLabelNEMAL650P captures enum value "NEMA L6-50P" + PowerPortTypeLabelNEMAL650P string = "NEMA L6-50P" + + // PowerPortTypeLabelCS6361C captures enum value "CS6361C" + PowerPortTypeLabelCS6361C string = "CS6361C" + + // PowerPortTypeLabelCS6365C captures enum value "CS6365C" + PowerPortTypeLabelCS6365C string = "CS6365C" + + // PowerPortTypeLabelCS8165C captures enum value "CS8165C" + PowerPortTypeLabelCS8165C string = "CS8165C" + + // PowerPortTypeLabelCS8265C captures enum value "CS8265C" + PowerPortTypeLabelCS8265C string = "CS8265C" + + // PowerPortTypeLabelCS8365C captures enum value "CS8365C" + PowerPortTypeLabelCS8365C string = "CS8365C" + + // PowerPortTypeLabelCS8465C captures enum value "CS8465C" + PowerPortTypeLabelCS8465C string = "CS8465C" + + // PowerPortTypeLabelITATypeECEE75 captures enum value "ITA Type E (CEE 7/5)" + PowerPortTypeLabelITATypeECEE75 string = "ITA Type E (CEE 7/5)" + + // PowerPortTypeLabelITATypeFCEE74 captures enum value "ITA Type F (CEE 7/4)" + PowerPortTypeLabelITATypeFCEE74 string = "ITA Type F (CEE 7/4)" + + // PowerPortTypeLabelITATypeEFCEE77 captures enum value "ITA Type E/F (CEE 7/7)" + PowerPortTypeLabelITATypeEFCEE77 string = "ITA Type E/F (CEE 7/7)" + + // PowerPortTypeLabelITATypeGBS1363 captures enum value "ITA Type G (BS 1363)" + PowerPortTypeLabelITATypeGBS1363 string = "ITA Type G (BS 1363)" + + // PowerPortTypeLabelITATypeH captures enum value "ITA Type H" + PowerPortTypeLabelITATypeH string = "ITA Type H" + + // PowerPortTypeLabelITATypeI captures enum value "ITA Type I" + PowerPortTypeLabelITATypeI string = "ITA Type I" + + // PowerPortTypeLabelITATypeJ captures enum value "ITA Type J" + PowerPortTypeLabelITATypeJ string = "ITA Type J" + + // PowerPortTypeLabelITATypeK captures enum value "ITA Type K" + PowerPortTypeLabelITATypeK string = "ITA Type K" + + // PowerPortTypeLabelITATypeLCEI2350 captures enum value "ITA Type L (CEI 23-50)" + PowerPortTypeLabelITATypeLCEI2350 string = "ITA Type L (CEI 23-50)" + + // PowerPortTypeLabelITATypeMBS546 captures enum value "ITA Type M (BS 546)" + PowerPortTypeLabelITATypeMBS546 string = "ITA Type M (BS 546)" + + // PowerPortTypeLabelITATypeN captures enum value "ITA Type N" + PowerPortTypeLabelITATypeN string = "ITA Type N" + + // PowerPortTypeLabelITATypeO captures enum value "ITA Type O" + PowerPortTypeLabelITATypeO string = "ITA Type O" +) + +// prop value enum +func (m *PowerPortType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerPortTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerPortType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +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-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-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-20p","nema-l6-30p","nema-l6-50p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerPortTypeTypeValuePropEnum = append(powerPortTypeTypeValuePropEnum, v) + } +} + +const ( + + // PowerPortTypeValueIec60320C6 captures enum value "iec-60320-c6" + PowerPortTypeValueIec60320C6 string = "iec-60320-c6" + + // PowerPortTypeValueIec60320C8 captures enum value "iec-60320-c8" + PowerPortTypeValueIec60320C8 string = "iec-60320-c8" + + // PowerPortTypeValueIec60320C14 captures enum value "iec-60320-c14" + PowerPortTypeValueIec60320C14 string = "iec-60320-c14" + + // PowerPortTypeValueIec60320C16 captures enum value "iec-60320-c16" + PowerPortTypeValueIec60320C16 string = "iec-60320-c16" + + // PowerPortTypeValueIec60320C20 captures enum value "iec-60320-c20" + PowerPortTypeValueIec60320C20 string = "iec-60320-c20" + + // PowerPortTypeValueIec60309pne4h captures enum value "iec-60309-p-n-e-4h" + PowerPortTypeValueIec60309pne4h string = "iec-60309-p-n-e-4h" + + // PowerPortTypeValueIec60309pne6h captures enum value "iec-60309-p-n-e-6h" + PowerPortTypeValueIec60309pne6h string = "iec-60309-p-n-e-6h" + + // PowerPortTypeValueIec60309pne9h captures enum value "iec-60309-p-n-e-9h" + PowerPortTypeValueIec60309pne9h string = "iec-60309-p-n-e-9h" + + // PowerPortTypeValueIec603092pe4h captures enum value "iec-60309-2p-e-4h" + PowerPortTypeValueIec603092pe4h string = "iec-60309-2p-e-4h" + + // PowerPortTypeValueIec603092pe6h captures enum value "iec-60309-2p-e-6h" + PowerPortTypeValueIec603092pe6h string = "iec-60309-2p-e-6h" + + // PowerPortTypeValueIec603092pe9h captures enum value "iec-60309-2p-e-9h" + PowerPortTypeValueIec603092pe9h string = "iec-60309-2p-e-9h" + + // PowerPortTypeValueIec603093pe4h captures enum value "iec-60309-3p-e-4h" + PowerPortTypeValueIec603093pe4h string = "iec-60309-3p-e-4h" + + // PowerPortTypeValueIec603093pe6h captures enum value "iec-60309-3p-e-6h" + PowerPortTypeValueIec603093pe6h string = "iec-60309-3p-e-6h" + + // PowerPortTypeValueIec603093pe9h captures enum value "iec-60309-3p-e-9h" + PowerPortTypeValueIec603093pe9h string = "iec-60309-3p-e-9h" + + // PowerPortTypeValueIec603093pne4h captures enum value "iec-60309-3p-n-e-4h" + PowerPortTypeValueIec603093pne4h string = "iec-60309-3p-n-e-4h" + + // PowerPortTypeValueIec603093pne6h captures enum value "iec-60309-3p-n-e-6h" + PowerPortTypeValueIec603093pne6h string = "iec-60309-3p-n-e-6h" + + // PowerPortTypeValueIec603093pne9h captures enum value "iec-60309-3p-n-e-9h" + PowerPortTypeValueIec603093pne9h string = "iec-60309-3p-n-e-9h" + + // PowerPortTypeValueNema515p captures enum value "nema-5-15p" + PowerPortTypeValueNema515p string = "nema-5-15p" + + // PowerPortTypeValueNema520p captures enum value "nema-5-20p" + PowerPortTypeValueNema520p string = "nema-5-20p" + + // PowerPortTypeValueNema530p captures enum value "nema-5-30p" + PowerPortTypeValueNema530p string = "nema-5-30p" + + // PowerPortTypeValueNema550p captures enum value "nema-5-50p" + PowerPortTypeValueNema550p string = "nema-5-50p" + + // PowerPortTypeValueNema615p captures enum value "nema-6-15p" + PowerPortTypeValueNema615p string = "nema-6-15p" + + // PowerPortTypeValueNema620p captures enum value "nema-6-20p" + PowerPortTypeValueNema620p string = "nema-6-20p" + + // PowerPortTypeValueNema630p captures enum value "nema-6-30p" + PowerPortTypeValueNema630p string = "nema-6-30p" + + // PowerPortTypeValueNema650p captures enum value "nema-6-50p" + PowerPortTypeValueNema650p string = "nema-6-50p" + + // PowerPortTypeValueNemaL515p captures enum value "nema-l5-15p" + PowerPortTypeValueNemaL515p string = "nema-l5-15p" + + // PowerPortTypeValueNemaL520p captures enum value "nema-l5-20p" + PowerPortTypeValueNemaL520p string = "nema-l5-20p" + + // PowerPortTypeValueNemaL530p captures enum value "nema-l5-30p" + PowerPortTypeValueNemaL530p string = "nema-l5-30p" + + // PowerPortTypeValueNemaL550p captures enum value "nema-l5-50p" + PowerPortTypeValueNemaL550p string = "nema-l5-50p" + + // PowerPortTypeValueNemaL620p captures enum value "nema-l6-20p" + PowerPortTypeValueNemaL620p string = "nema-l6-20p" + + // PowerPortTypeValueNemaL630p captures enum value "nema-l6-30p" + PowerPortTypeValueNemaL630p string = "nema-l6-30p" + + // PowerPortTypeValueNemaL650p captures enum value "nema-l6-50p" + PowerPortTypeValueNemaL650p string = "nema-l6-50p" + + // PowerPortTypeValueCs6361c captures enum value "cs6361c" + PowerPortTypeValueCs6361c string = "cs6361c" + + // PowerPortTypeValueCs6365c captures enum value "cs6365c" + PowerPortTypeValueCs6365c string = "cs6365c" + + // PowerPortTypeValueCs8165c captures enum value "cs8165c" + PowerPortTypeValueCs8165c string = "cs8165c" + + // PowerPortTypeValueCs8265c captures enum value "cs8265c" + PowerPortTypeValueCs8265c string = "cs8265c" + + // PowerPortTypeValueCs8365c captures enum value "cs8365c" + PowerPortTypeValueCs8365c string = "cs8365c" + + // PowerPortTypeValueCs8465c captures enum value "cs8465c" + PowerPortTypeValueCs8465c string = "cs8465c" + + // PowerPortTypeValueItae captures enum value "ita-e" + PowerPortTypeValueItae string = "ita-e" + + // PowerPortTypeValueItaf captures enum value "ita-f" + PowerPortTypeValueItaf string = "ita-f" + + // PowerPortTypeValueItaEf captures enum value "ita-ef" + PowerPortTypeValueItaEf string = "ita-ef" + + // PowerPortTypeValueItag captures enum value "ita-g" + PowerPortTypeValueItag string = "ita-g" + + // PowerPortTypeValueItah captures enum value "ita-h" + PowerPortTypeValueItah string = "ita-h" + + // PowerPortTypeValueItai captures enum value "ita-i" + PowerPortTypeValueItai string = "ita-i" + + // PowerPortTypeValueItaj captures enum value "ita-j" + PowerPortTypeValueItaj string = "ita-j" + + // PowerPortTypeValueItak captures enum value "ita-k" + PowerPortTypeValueItak string = "ita-k" + + // PowerPortTypeValueItal captures enum value "ita-l" + PowerPortTypeValueItal string = "ita-l" + + // PowerPortTypeValueItam captures enum value "ita-m" + PowerPortTypeValueItam string = "ita-m" + + // PowerPortTypeValueItan captures enum value "ita-n" + PowerPortTypeValueItan string = "ita-n" + + // PowerPortTypeValueItao captures enum value "ita-o" + PowerPortTypeValueItao string = "ita-o" +) + +// prop value enum +func (m *PowerPortType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerPortTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -421,6 +838,11 @@ func (m *PowerPortType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port_template.go index a20813b1c..92d15f6d1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/power_port_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // PowerPortTemplate power port template +// // swagger:model PowerPortTemplate type PowerPortTemplate struct { @@ -200,15 +202,18 @@ func (m *PowerPortTemplate) UnmarshalBinary(b []byte) error { } // PowerPortTemplateType Type +// // swagger:model PowerPortTemplateType type PowerPortTemplateType struct { // label // Required: true + // Enum: [C6 C8 C14 C16 C20 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 5-15P NEMA 5-20P NEMA 5-30P NEMA 5-50P NEMA 6-15P NEMA 6-20P NEMA 6-30P NEMA 6-50P NEMA L5-15P NEMA L5-20P NEMA L5-30P NEMA L6-15P NEMA L6-20P NEMA L6-30P NEMA L6-50P CS6361C CS6365C CS8165C CS8265C CS8365C CS8465C ITA Type E (CEE 7/5) 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] Label *string `json:"label"` // value // Required: true + // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 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-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-20p nema-l6-30p nema-l6-50p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o] Value *string `json:"value"` } @@ -230,12 +235,363 @@ func (m *PowerPortTemplateType) Validate(formats strfmt.Registry) error { return nil } +var powerPortTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["C6","C8","C14","C16","C20","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 5-15P","NEMA 5-20P","NEMA 5-30P","NEMA 5-50P","NEMA 6-15P","NEMA 6-20P","NEMA 6-30P","NEMA 6-50P","NEMA L5-15P","NEMA L5-20P","NEMA L5-30P","NEMA L6-15P","NEMA L6-20P","NEMA L6-30P","NEMA L6-50P","CS6361C","CS6365C","CS8165C","CS8265C","CS8365C","CS8465C","ITA Type E (CEE 7/5)","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"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerPortTemplateTypeTypeLabelPropEnum = append(powerPortTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // PowerPortTemplateTypeLabelC6 captures enum value "C6" + PowerPortTemplateTypeLabelC6 string = "C6" + + // PowerPortTemplateTypeLabelC8 captures enum value "C8" + PowerPortTemplateTypeLabelC8 string = "C8" + + // PowerPortTemplateTypeLabelC14 captures enum value "C14" + PowerPortTemplateTypeLabelC14 string = "C14" + + // PowerPortTemplateTypeLabelC16 captures enum value "C16" + PowerPortTemplateTypeLabelC16 string = "C16" + + // PowerPortTemplateTypeLabelC20 captures enum value "C20" + PowerPortTemplateTypeLabelC20 string = "C20" + + // PowerPortTemplateTypeLabelPNE4H captures enum value "P+N+E 4H" + PowerPortTemplateTypeLabelPNE4H string = "P+N+E 4H" + + // PowerPortTemplateTypeLabelPNE6H captures enum value "P+N+E 6H" + PowerPortTemplateTypeLabelPNE6H string = "P+N+E 6H" + + // PowerPortTemplateTypeLabelPNE9H captures enum value "P+N+E 9H" + PowerPortTemplateTypeLabelPNE9H string = "P+N+E 9H" + + // PowerPortTemplateTypeLabelNr2PE4H captures enum value "2P+E 4H" + PowerPortTemplateTypeLabelNr2PE4H string = "2P+E 4H" + + // PowerPortTemplateTypeLabelNr2PE6H captures enum value "2P+E 6H" + PowerPortTemplateTypeLabelNr2PE6H string = "2P+E 6H" + + // PowerPortTemplateTypeLabelNr2PE9H captures enum value "2P+E 9H" + PowerPortTemplateTypeLabelNr2PE9H string = "2P+E 9H" + + // PowerPortTemplateTypeLabelNr3PE4H captures enum value "3P+E 4H" + PowerPortTemplateTypeLabelNr3PE4H string = "3P+E 4H" + + // PowerPortTemplateTypeLabelNr3PE6H captures enum value "3P+E 6H" + PowerPortTemplateTypeLabelNr3PE6H string = "3P+E 6H" + + // PowerPortTemplateTypeLabelNr3PE9H captures enum value "3P+E 9H" + PowerPortTemplateTypeLabelNr3PE9H string = "3P+E 9H" + + // PowerPortTemplateTypeLabelNr3PNE4H captures enum value "3P+N+E 4H" + PowerPortTemplateTypeLabelNr3PNE4H string = "3P+N+E 4H" + + // PowerPortTemplateTypeLabelNr3PNE6H captures enum value "3P+N+E 6H" + PowerPortTemplateTypeLabelNr3PNE6H string = "3P+N+E 6H" + + // PowerPortTemplateTypeLabelNr3PNE9H captures enum value "3P+N+E 9H" + PowerPortTemplateTypeLabelNr3PNE9H string = "3P+N+E 9H" + + // PowerPortTemplateTypeLabelNEMA515P captures enum value "NEMA 5-15P" + PowerPortTemplateTypeLabelNEMA515P string = "NEMA 5-15P" + + // PowerPortTemplateTypeLabelNEMA520P captures enum value "NEMA 5-20P" + PowerPortTemplateTypeLabelNEMA520P string = "NEMA 5-20P" + + // PowerPortTemplateTypeLabelNEMA530P captures enum value "NEMA 5-30P" + PowerPortTemplateTypeLabelNEMA530P string = "NEMA 5-30P" + + // PowerPortTemplateTypeLabelNEMA550P captures enum value "NEMA 5-50P" + PowerPortTemplateTypeLabelNEMA550P string = "NEMA 5-50P" + + // PowerPortTemplateTypeLabelNEMA615P captures enum value "NEMA 6-15P" + PowerPortTemplateTypeLabelNEMA615P string = "NEMA 6-15P" + + // PowerPortTemplateTypeLabelNEMA620P captures enum value "NEMA 6-20P" + PowerPortTemplateTypeLabelNEMA620P string = "NEMA 6-20P" + + // PowerPortTemplateTypeLabelNEMA630P captures enum value "NEMA 6-30P" + PowerPortTemplateTypeLabelNEMA630P string = "NEMA 6-30P" + + // PowerPortTemplateTypeLabelNEMA650P captures enum value "NEMA 6-50P" + PowerPortTemplateTypeLabelNEMA650P string = "NEMA 6-50P" + + // PowerPortTemplateTypeLabelNEMAL515P captures enum value "NEMA L5-15P" + PowerPortTemplateTypeLabelNEMAL515P string = "NEMA L5-15P" + + // PowerPortTemplateTypeLabelNEMAL520P captures enum value "NEMA L5-20P" + PowerPortTemplateTypeLabelNEMAL520P string = "NEMA L5-20P" + + // PowerPortTemplateTypeLabelNEMAL530P captures enum value "NEMA L5-30P" + PowerPortTemplateTypeLabelNEMAL530P string = "NEMA L5-30P" + + // PowerPortTemplateTypeLabelNEMAL615P captures enum value "NEMA L6-15P" + PowerPortTemplateTypeLabelNEMAL615P string = "NEMA L6-15P" + + // PowerPortTemplateTypeLabelNEMAL620P captures enum value "NEMA L6-20P" + PowerPortTemplateTypeLabelNEMAL620P string = "NEMA L6-20P" + + // PowerPortTemplateTypeLabelNEMAL630P captures enum value "NEMA L6-30P" + PowerPortTemplateTypeLabelNEMAL630P string = "NEMA L6-30P" + + // PowerPortTemplateTypeLabelNEMAL650P captures enum value "NEMA L6-50P" + PowerPortTemplateTypeLabelNEMAL650P string = "NEMA L6-50P" + + // PowerPortTemplateTypeLabelCS6361C captures enum value "CS6361C" + PowerPortTemplateTypeLabelCS6361C string = "CS6361C" + + // PowerPortTemplateTypeLabelCS6365C captures enum value "CS6365C" + PowerPortTemplateTypeLabelCS6365C string = "CS6365C" + + // PowerPortTemplateTypeLabelCS8165C captures enum value "CS8165C" + PowerPortTemplateTypeLabelCS8165C string = "CS8165C" + + // PowerPortTemplateTypeLabelCS8265C captures enum value "CS8265C" + PowerPortTemplateTypeLabelCS8265C string = "CS8265C" + + // PowerPortTemplateTypeLabelCS8365C captures enum value "CS8365C" + PowerPortTemplateTypeLabelCS8365C string = "CS8365C" + + // PowerPortTemplateTypeLabelCS8465C captures enum value "CS8465C" + PowerPortTemplateTypeLabelCS8465C string = "CS8465C" + + // PowerPortTemplateTypeLabelITATypeECEE75 captures enum value "ITA Type E (CEE 7/5)" + PowerPortTemplateTypeLabelITATypeECEE75 string = "ITA Type E (CEE 7/5)" + + // PowerPortTemplateTypeLabelITATypeFCEE74 captures enum value "ITA Type F (CEE 7/4)" + PowerPortTemplateTypeLabelITATypeFCEE74 string = "ITA Type F (CEE 7/4)" + + // PowerPortTemplateTypeLabelITATypeEFCEE77 captures enum value "ITA Type E/F (CEE 7/7)" + PowerPortTemplateTypeLabelITATypeEFCEE77 string = "ITA Type E/F (CEE 7/7)" + + // PowerPortTemplateTypeLabelITATypeGBS1363 captures enum value "ITA Type G (BS 1363)" + PowerPortTemplateTypeLabelITATypeGBS1363 string = "ITA Type G (BS 1363)" + + // PowerPortTemplateTypeLabelITATypeH captures enum value "ITA Type H" + PowerPortTemplateTypeLabelITATypeH string = "ITA Type H" + + // PowerPortTemplateTypeLabelITATypeI captures enum value "ITA Type I" + PowerPortTemplateTypeLabelITATypeI string = "ITA Type I" + + // PowerPortTemplateTypeLabelITATypeJ captures enum value "ITA Type J" + PowerPortTemplateTypeLabelITATypeJ string = "ITA Type J" + + // PowerPortTemplateTypeLabelITATypeK captures enum value "ITA Type K" + PowerPortTemplateTypeLabelITATypeK string = "ITA Type K" + + // PowerPortTemplateTypeLabelITATypeLCEI2350 captures enum value "ITA Type L (CEI 23-50)" + PowerPortTemplateTypeLabelITATypeLCEI2350 string = "ITA Type L (CEI 23-50)" + + // PowerPortTemplateTypeLabelITATypeMBS546 captures enum value "ITA Type M (BS 546)" + PowerPortTemplateTypeLabelITATypeMBS546 string = "ITA Type M (BS 546)" + + // PowerPortTemplateTypeLabelITATypeN captures enum value "ITA Type N" + PowerPortTemplateTypeLabelITATypeN string = "ITA Type N" + + // PowerPortTemplateTypeLabelITATypeO captures enum value "ITA Type O" + PowerPortTemplateTypeLabelITATypeO string = "ITA Type O" +) + +// prop value enum +func (m *PowerPortTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerPortTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PowerPortTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +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-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-5-15p","nema-5-20p","nema-5-30p","nema-5-50p","nema-6-15p","nema-6-20p","nema-6-30p","nema-6-50p","nema-l5-15p","nema-l5-20p","nema-l5-30p","nema-l5-50p","nema-l6-20p","nema-l6-30p","nema-l6-50p","cs6361c","cs6365c","cs8165c","cs8265c","cs8365c","cs8465c","ita-e","ita-f","ita-ef","ita-g","ita-h","ita-i","ita-j","ita-k","ita-l","ita-m","ita-n","ita-o"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + powerPortTemplateTypeTypeValuePropEnum = append(powerPortTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // PowerPortTemplateTypeValueIec60320C6 captures enum value "iec-60320-c6" + PowerPortTemplateTypeValueIec60320C6 string = "iec-60320-c6" + + // PowerPortTemplateTypeValueIec60320C8 captures enum value "iec-60320-c8" + PowerPortTemplateTypeValueIec60320C8 string = "iec-60320-c8" + + // PowerPortTemplateTypeValueIec60320C14 captures enum value "iec-60320-c14" + PowerPortTemplateTypeValueIec60320C14 string = "iec-60320-c14" + + // PowerPortTemplateTypeValueIec60320C16 captures enum value "iec-60320-c16" + PowerPortTemplateTypeValueIec60320C16 string = "iec-60320-c16" + + // PowerPortTemplateTypeValueIec60320C20 captures enum value "iec-60320-c20" + PowerPortTemplateTypeValueIec60320C20 string = "iec-60320-c20" + + // PowerPortTemplateTypeValueIec60309pne4h captures enum value "iec-60309-p-n-e-4h" + PowerPortTemplateTypeValueIec60309pne4h string = "iec-60309-p-n-e-4h" + + // PowerPortTemplateTypeValueIec60309pne6h captures enum value "iec-60309-p-n-e-6h" + PowerPortTemplateTypeValueIec60309pne6h string = "iec-60309-p-n-e-6h" + + // PowerPortTemplateTypeValueIec60309pne9h captures enum value "iec-60309-p-n-e-9h" + PowerPortTemplateTypeValueIec60309pne9h string = "iec-60309-p-n-e-9h" + + // PowerPortTemplateTypeValueIec603092pe4h captures enum value "iec-60309-2p-e-4h" + PowerPortTemplateTypeValueIec603092pe4h string = "iec-60309-2p-e-4h" + + // PowerPortTemplateTypeValueIec603092pe6h captures enum value "iec-60309-2p-e-6h" + PowerPortTemplateTypeValueIec603092pe6h string = "iec-60309-2p-e-6h" + + // PowerPortTemplateTypeValueIec603092pe9h captures enum value "iec-60309-2p-e-9h" + PowerPortTemplateTypeValueIec603092pe9h string = "iec-60309-2p-e-9h" + + // PowerPortTemplateTypeValueIec603093pe4h captures enum value "iec-60309-3p-e-4h" + PowerPortTemplateTypeValueIec603093pe4h string = "iec-60309-3p-e-4h" + + // PowerPortTemplateTypeValueIec603093pe6h captures enum value "iec-60309-3p-e-6h" + PowerPortTemplateTypeValueIec603093pe6h string = "iec-60309-3p-e-6h" + + // PowerPortTemplateTypeValueIec603093pe9h captures enum value "iec-60309-3p-e-9h" + PowerPortTemplateTypeValueIec603093pe9h string = "iec-60309-3p-e-9h" + + // PowerPortTemplateTypeValueIec603093pne4h captures enum value "iec-60309-3p-n-e-4h" + PowerPortTemplateTypeValueIec603093pne4h string = "iec-60309-3p-n-e-4h" + + // PowerPortTemplateTypeValueIec603093pne6h captures enum value "iec-60309-3p-n-e-6h" + PowerPortTemplateTypeValueIec603093pne6h string = "iec-60309-3p-n-e-6h" + + // PowerPortTemplateTypeValueIec603093pne9h captures enum value "iec-60309-3p-n-e-9h" + PowerPortTemplateTypeValueIec603093pne9h string = "iec-60309-3p-n-e-9h" + + // PowerPortTemplateTypeValueNema515p captures enum value "nema-5-15p" + PowerPortTemplateTypeValueNema515p string = "nema-5-15p" + + // PowerPortTemplateTypeValueNema520p captures enum value "nema-5-20p" + PowerPortTemplateTypeValueNema520p string = "nema-5-20p" + + // PowerPortTemplateTypeValueNema530p captures enum value "nema-5-30p" + PowerPortTemplateTypeValueNema530p string = "nema-5-30p" + + // PowerPortTemplateTypeValueNema550p captures enum value "nema-5-50p" + PowerPortTemplateTypeValueNema550p string = "nema-5-50p" + + // PowerPortTemplateTypeValueNema615p captures enum value "nema-6-15p" + PowerPortTemplateTypeValueNema615p string = "nema-6-15p" + + // PowerPortTemplateTypeValueNema620p captures enum value "nema-6-20p" + PowerPortTemplateTypeValueNema620p string = "nema-6-20p" + + // PowerPortTemplateTypeValueNema630p captures enum value "nema-6-30p" + PowerPortTemplateTypeValueNema630p string = "nema-6-30p" + + // PowerPortTemplateTypeValueNema650p captures enum value "nema-6-50p" + PowerPortTemplateTypeValueNema650p string = "nema-6-50p" + + // PowerPortTemplateTypeValueNemaL515p captures enum value "nema-l5-15p" + PowerPortTemplateTypeValueNemaL515p string = "nema-l5-15p" + + // PowerPortTemplateTypeValueNemaL520p captures enum value "nema-l5-20p" + PowerPortTemplateTypeValueNemaL520p string = "nema-l5-20p" + + // PowerPortTemplateTypeValueNemaL530p captures enum value "nema-l5-30p" + PowerPortTemplateTypeValueNemaL530p string = "nema-l5-30p" + + // PowerPortTemplateTypeValueNemaL550p captures enum value "nema-l5-50p" + PowerPortTemplateTypeValueNemaL550p string = "nema-l5-50p" + + // PowerPortTemplateTypeValueNemaL620p captures enum value "nema-l6-20p" + PowerPortTemplateTypeValueNemaL620p string = "nema-l6-20p" + + // PowerPortTemplateTypeValueNemaL630p captures enum value "nema-l6-30p" + PowerPortTemplateTypeValueNemaL630p string = "nema-l6-30p" + + // PowerPortTemplateTypeValueNemaL650p captures enum value "nema-l6-50p" + PowerPortTemplateTypeValueNemaL650p string = "nema-l6-50p" + + // PowerPortTemplateTypeValueCs6361c captures enum value "cs6361c" + PowerPortTemplateTypeValueCs6361c string = "cs6361c" + + // PowerPortTemplateTypeValueCs6365c captures enum value "cs6365c" + PowerPortTemplateTypeValueCs6365c string = "cs6365c" + + // PowerPortTemplateTypeValueCs8165c captures enum value "cs8165c" + PowerPortTemplateTypeValueCs8165c string = "cs8165c" + + // PowerPortTemplateTypeValueCs8265c captures enum value "cs8265c" + PowerPortTemplateTypeValueCs8265c string = "cs8265c" + + // PowerPortTemplateTypeValueCs8365c captures enum value "cs8365c" + PowerPortTemplateTypeValueCs8365c string = "cs8365c" + + // PowerPortTemplateTypeValueCs8465c captures enum value "cs8465c" + PowerPortTemplateTypeValueCs8465c string = "cs8465c" + + // PowerPortTemplateTypeValueItae captures enum value "ita-e" + PowerPortTemplateTypeValueItae string = "ita-e" + + // PowerPortTemplateTypeValueItaf captures enum value "ita-f" + PowerPortTemplateTypeValueItaf string = "ita-f" + + // PowerPortTemplateTypeValueItaEf captures enum value "ita-ef" + PowerPortTemplateTypeValueItaEf string = "ita-ef" + + // PowerPortTemplateTypeValueItag captures enum value "ita-g" + PowerPortTemplateTypeValueItag string = "ita-g" + + // PowerPortTemplateTypeValueItah captures enum value "ita-h" + PowerPortTemplateTypeValueItah string = "ita-h" + + // PowerPortTemplateTypeValueItai captures enum value "ita-i" + PowerPortTemplateTypeValueItai string = "ita-i" + + // PowerPortTemplateTypeValueItaj captures enum value "ita-j" + PowerPortTemplateTypeValueItaj string = "ita-j" + + // PowerPortTemplateTypeValueItak captures enum value "ita-k" + PowerPortTemplateTypeValueItak string = "ita-k" + + // PowerPortTemplateTypeValueItal captures enum value "ita-l" + PowerPortTemplateTypeValueItal string = "ita-l" + + // PowerPortTemplateTypeValueItam captures enum value "ita-m" + PowerPortTemplateTypeValueItam string = "ita-m" + + // PowerPortTemplateTypeValueItan captures enum value "ita-n" + PowerPortTemplateTypeValueItan string = "ita-n" + + // PowerPortTemplateTypeValueItao captures enum value "ita-o" + PowerPortTemplateTypeValueItao string = "ita-o" +) + +// prop value enum +func (m *PowerPortTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, powerPortTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -245,6 +601,11 @@ func (m *PowerPortTemplateType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/prefix.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/prefix.go index 00b9e2e61..275cf5e6a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/prefix.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/prefix.go @@ -21,6 +21,7 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" "github.com/go-openapi/errors" @@ -43,7 +44,7 @@ type Prefix struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // family @@ -168,7 +169,7 @@ func (m *Prefix) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -365,10 +366,12 @@ type PrefixFamily struct { // label // Required: true + // Enum: [IPv4 IPv6] Label *string `json:"label"` // value // Required: true + // Enum: [4 6] Value *int64 `json:"value"` } @@ -390,12 +393,66 @@ func (m *PrefixFamily) Validate(formats strfmt.Registry) error { return nil } +var prefixFamilyTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["IPv4","IPv6"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + prefixFamilyTypeLabelPropEnum = append(prefixFamilyTypeLabelPropEnum, v) + } +} + +const ( + + // PrefixFamilyLabelIPV4 captures enum value "IPv4" + PrefixFamilyLabelIPV4 string = "IPv4" + + // PrefixFamilyLabelIPV6 captures enum value "IPv6" + PrefixFamilyLabelIPV6 string = "IPv6" +) + +// prop value enum +func (m *PrefixFamily) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, prefixFamilyTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PrefixFamily) validateLabel(formats strfmt.Registry) error { if err := validate.Required("family"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("family"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var prefixFamilyTypeValuePropEnum []interface{} + +func init() { + var res []int64 + if err := json.Unmarshal([]byte(`[4,6]`), &res); err != nil { + panic(err) + } + for _, v := range res { + prefixFamilyTypeValuePropEnum = append(prefixFamilyTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *PrefixFamily) validateValueEnum(path, location string, value int64) error { + if err := validate.Enum(path, location, value, prefixFamilyTypeValuePropEnum); err != nil { + return err + } return nil } @@ -405,6 +462,11 @@ func (m *PrefixFamily) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("family"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -433,10 +495,12 @@ type PrefixStatus struct { // label // Required: true + // Enum: [Container Active Reserved Deprecated] Label *string `json:"label"` // value // Required: true + // Enum: [container active reserved deprecated] Value *string `json:"value"` } @@ -458,12 +522,87 @@ func (m *PrefixStatus) Validate(formats strfmt.Registry) error { return nil } +var prefixStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Container","Active","Reserved","Deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + prefixStatusTypeLabelPropEnum = append(prefixStatusTypeLabelPropEnum, v) + } +} + +const ( + + // PrefixStatusLabelContainer captures enum value "Container" + PrefixStatusLabelContainer string = "Container" + + // PrefixStatusLabelActive captures enum value "Active" + PrefixStatusLabelActive string = "Active" + + // PrefixStatusLabelReserved captures enum value "Reserved" + PrefixStatusLabelReserved string = "Reserved" + + // PrefixStatusLabelDeprecated captures enum value "Deprecated" + PrefixStatusLabelDeprecated string = "Deprecated" +) + +// prop value enum +func (m *PrefixStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, prefixStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *PrefixStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var prefixStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["container","active","reserved","deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + prefixStatusTypeValuePropEnum = append(prefixStatusTypeValuePropEnum, v) + } +} + +const ( + + // PrefixStatusValueContainer captures enum value "container" + PrefixStatusValueContainer string = "container" + + // PrefixStatusValueActive captures enum value "active" + PrefixStatusValueActive string = "active" + + // PrefixStatusValueReserved captures enum value "reserved" + PrefixStatusValueReserved string = "reserved" + + // PrefixStatusValueDeprecated captures enum value "deprecated" + PrefixStatusValueDeprecated string = "deprecated" +) + +// prop value enum +func (m *PrefixStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, prefixStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -473,6 +612,11 @@ func (m *PrefixStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/provider.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/provider.go index 29bb7beda..3e7ac1ba1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/provider.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/provider.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Provider provider +// // swagger:model Provider type Provider struct { @@ -42,6 +42,8 @@ type Provider struct { AdminContact string `json:"admin_contact,omitempty"` // ASN + // + // 32-bit autonomous system number // Maximum: 4.294967295e+09 // Minimum: 1 Asn *int64 `json:"asn,omitempty"` @@ -79,7 +81,7 @@ type Provider struct { // NOC contact NocContact string `json:"noc_contact,omitempty"` - // Portal + // Portal URL // Max Length: 200 // Format: uri PortalURL strfmt.URI `json:"portal_url,omitempty"` diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/r_i_r.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/r_i_r.go index 87d9a2432..1aad4dfd0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/r_i_r.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/r_i_r.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RIR r i r +// // swagger:model RIR type RIR struct { @@ -36,6 +36,10 @@ type RIR struct { // Read Only: true AggregateCount int64 `json:"aggregate_count,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -63,6 +67,10 @@ type RIR struct { func (m *RIR) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -77,6 +85,19 @@ func (m *RIR) Validate(formats strfmt.Registry) error { return nil } +func (m *RIR) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *RIR) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack.go index beaccd9e8..0c8a8c040 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Rack rack +// // swagger:model Rack type Rack struct { @@ -65,6 +66,8 @@ type Rack struct { DisplayName string `json:"display_name,omitempty"` // Facility ID + // + // Locally-assigned identifier // Max Length: 50 FacilityID *string `json:"facility_id,omitempty"` @@ -87,6 +90,8 @@ type Rack struct { Name *string `json:"name"` // Outer depth + // + // Outer dimension of rack (depth) // Maximum: 32767 // Minimum: 0 OuterDepth *int64 `json:"outer_depth,omitempty"` @@ -95,6 +100,8 @@ type Rack struct { OuterUnit *RackOuterUnit `json:"outer_unit,omitempty"` // Outer width + // + // Outer dimension of rack (width) // Maximum: 32767 // Minimum: 0 OuterWidth *int64 `json:"outer_width,omitempty"` @@ -127,6 +134,8 @@ type Rack struct { Type *RackType `json:"type,omitempty"` // Height (U) + // + // Height in rack units // Maximum: 100 // Minimum: 1 UHeight int64 `json:"u_height,omitempty"` @@ -530,15 +539,18 @@ func (m *Rack) UnmarshalBinary(b []byte) error { } // RackOuterUnit Outer unit +// // swagger:model RackOuterUnit type RackOuterUnit struct { // label // Required: true + // Enum: [Millimeters Inches] Label *string `json:"label"` // value // Required: true + // Enum: [mm in] Value *string `json:"value"` } @@ -560,12 +572,75 @@ func (m *RackOuterUnit) Validate(formats strfmt.Registry) error { return nil } +var rackOuterUnitTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Millimeters","Inches"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackOuterUnitTypeLabelPropEnum = append(rackOuterUnitTypeLabelPropEnum, v) + } +} + +const ( + + // RackOuterUnitLabelMillimeters captures enum value "Millimeters" + RackOuterUnitLabelMillimeters string = "Millimeters" + + // RackOuterUnitLabelInches captures enum value "Inches" + RackOuterUnitLabelInches string = "Inches" +) + +// prop value enum +func (m *RackOuterUnit) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackOuterUnitTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RackOuterUnit) validateLabel(formats strfmt.Registry) error { if err := validate.Required("outer_unit"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("outer_unit"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rackOuterUnitTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["mm","in"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackOuterUnitTypeValuePropEnum = append(rackOuterUnitTypeValuePropEnum, v) + } +} + +const ( + + // RackOuterUnitValueMm captures enum value "mm" + RackOuterUnitValueMm string = "mm" + + // RackOuterUnitValueIn captures enum value "in" + RackOuterUnitValueIn string = "in" +) + +// prop value enum +func (m *RackOuterUnit) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackOuterUnitTypeValuePropEnum); err != nil { + return err + } return nil } @@ -575,6 +650,11 @@ func (m *RackOuterUnit) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("outer_unit"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -597,15 +677,18 @@ func (m *RackOuterUnit) UnmarshalBinary(b []byte) error { } // RackStatus Status +// // swagger:model RackStatus type RackStatus struct { // label // Required: true + // Enum: [Reserved Available Planned Active Deprecated] Label *string `json:"label"` // value // Required: true + // Enum: [reserved available planned active deprecated] Value *string `json:"value"` } @@ -627,12 +710,93 @@ func (m *RackStatus) Validate(formats strfmt.Registry) error { return nil } +var rackStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Reserved","Available","Planned","Active","Deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackStatusTypeLabelPropEnum = append(rackStatusTypeLabelPropEnum, v) + } +} + +const ( + + // RackStatusLabelReserved captures enum value "Reserved" + RackStatusLabelReserved string = "Reserved" + + // RackStatusLabelAvailable captures enum value "Available" + RackStatusLabelAvailable string = "Available" + + // RackStatusLabelPlanned captures enum value "Planned" + RackStatusLabelPlanned string = "Planned" + + // RackStatusLabelActive captures enum value "Active" + RackStatusLabelActive string = "Active" + + // RackStatusLabelDeprecated captures enum value "Deprecated" + RackStatusLabelDeprecated string = "Deprecated" +) + +// prop value enum +func (m *RackStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RackStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rackStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["reserved","available","planned","active","deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackStatusTypeValuePropEnum = append(rackStatusTypeValuePropEnum, v) + } +} + +const ( + + // RackStatusValueReserved captures enum value "reserved" + RackStatusValueReserved string = "reserved" + + // RackStatusValueAvailable captures enum value "available" + RackStatusValueAvailable string = "available" + + // RackStatusValuePlanned captures enum value "planned" + RackStatusValuePlanned string = "planned" + + // RackStatusValueActive captures enum value "active" + RackStatusValueActive string = "active" + + // RackStatusValueDeprecated captures enum value "deprecated" + RackStatusValueDeprecated string = "deprecated" +) + +// prop value enum +func (m *RackStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -642,6 +806,11 @@ func (m *RackStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -664,15 +833,18 @@ func (m *RackStatus) UnmarshalBinary(b []byte) error { } // RackType Type +// // swagger:model RackType type RackType struct { // label // Required: true + // Enum: [2-post frame 4-post frame 4-post cabinet Wall-mounted frame Wall-mounted cabinet] Label *string `json:"label"` // value // Required: true + // Enum: [2-post-frame 4-post-frame 4-post-cabinet wall-frame wall-cabinet] Value *string `json:"value"` } @@ -694,12 +866,93 @@ func (m *RackType) Validate(formats strfmt.Registry) error { return nil } +var rackTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["2-post frame","4-post frame","4-post cabinet","Wall-mounted frame","Wall-mounted cabinet"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackTypeTypeLabelPropEnum = append(rackTypeTypeLabelPropEnum, v) + } +} + +const ( + + // RackTypeLabelNr2PostFrame captures enum value "2-post frame" + RackTypeLabelNr2PostFrame string = "2-post frame" + + // RackTypeLabelNr4PostFrame captures enum value "4-post frame" + RackTypeLabelNr4PostFrame string = "4-post frame" + + // RackTypeLabelNr4PostCabinet captures enum value "4-post cabinet" + RackTypeLabelNr4PostCabinet string = "4-post cabinet" + + // RackTypeLabelWallMountedFrame captures enum value "Wall-mounted frame" + RackTypeLabelWallMountedFrame string = "Wall-mounted frame" + + // RackTypeLabelWallMountedCabinet captures enum value "Wall-mounted cabinet" + RackTypeLabelWallMountedCabinet string = "Wall-mounted cabinet" +) + +// prop value enum +func (m *RackType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RackType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rackTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["2-post-frame","4-post-frame","4-post-cabinet","wall-frame","wall-cabinet"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackTypeTypeValuePropEnum = append(rackTypeTypeValuePropEnum, v) + } +} + +const ( + + // RackTypeValueNr2PostFrame captures enum value "2-post-frame" + RackTypeValueNr2PostFrame string = "2-post-frame" + + // RackTypeValueNr4PostFrame captures enum value "4-post-frame" + RackTypeValueNr4PostFrame string = "4-post-frame" + + // RackTypeValueNr4PostCabinet captures enum value "4-post-cabinet" + RackTypeValueNr4PostCabinet string = "4-post-cabinet" + + // RackTypeValueWallFrame captures enum value "wall-frame" + RackTypeValueWallFrame string = "wall-frame" + + // RackTypeValueWallCabinet captures enum value "wall-cabinet" + RackTypeValueWallCabinet string = "wall-cabinet" +) + +// prop value enum +func (m *RackType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -709,6 +962,11 @@ func (m *RackType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -731,16 +989,19 @@ func (m *RackType) UnmarshalBinary(b []byte) error { } // RackWidth Width +// // swagger:model RackWidth type RackWidth struct { // label // Required: true + // Enum: [10 inches 19 inches 21 inches 23 inches] Label *string `json:"label"` // value // Required: true - Value *string `json:"value"` + // Enum: [10 19 21 23] + Value *int64 `json:"value"` } // Validate validates this rack width @@ -761,12 +1022,72 @@ func (m *RackWidth) Validate(formats strfmt.Registry) error { return nil } +var rackWidthTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["10 inches","19 inches","21 inches","23 inches"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackWidthTypeLabelPropEnum = append(rackWidthTypeLabelPropEnum, v) + } +} + +const ( + + // RackWidthLabelNr10Inches captures enum value "10 inches" + RackWidthLabelNr10Inches string = "10 inches" + + // RackWidthLabelNr19Inches captures enum value "19 inches" + RackWidthLabelNr19Inches string = "19 inches" + + // RackWidthLabelNr21Inches captures enum value "21 inches" + RackWidthLabelNr21Inches string = "21 inches" + + // RackWidthLabelNr23Inches captures enum value "23 inches" + RackWidthLabelNr23Inches string = "23 inches" +) + +// prop value enum +func (m *RackWidth) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackWidthTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RackWidth) validateLabel(formats strfmt.Registry) error { if err := validate.Required("width"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("width"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rackWidthTypeValuePropEnum []interface{} + +func init() { + var res []int64 + if err := json.Unmarshal([]byte(`[10,19,21,23]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackWidthTypeValuePropEnum = append(rackWidthTypeValuePropEnum, v) + } +} + +// prop value enum +func (m *RackWidth) validateValueEnum(path, location string, value int64) error { + if err := validate.Enum(path, location, value, rackWidthTypeValuePropEnum); err != nil { + return err + } return nil } @@ -776,6 +1097,11 @@ func (m *RackWidth) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("width"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_group.go index f16e574de..551337831 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_group.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RackGroup rack group +// // swagger:model RackGroup type RackGroup struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -42,6 +46,9 @@ type RackGroup struct { // Min Length: 1 Name *string `json:"name"` + // parent + Parent *NestedRackGroup `json:"parent,omitempty"` + // Rack count // Read Only: true RackCount int64 `json:"rack_count,omitempty"` @@ -62,10 +69,18 @@ type RackGroup struct { func (m *RackGroup) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } + if err := m.validateParent(formats); err != nil { + res = append(res, err) + } + if err := m.validateSite(formats); err != nil { res = append(res, err) } @@ -80,6 +95,19 @@ func (m *RackGroup) Validate(formats strfmt.Registry) error { return nil } +func (m *RackGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *RackGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -97,6 +125,24 @@ func (m *RackGroup) validateName(formats strfmt.Registry) error { return nil } +func (m *RackGroup) validateParent(formats strfmt.Registry) error { + + if swag.IsZero(m.Parent) { // not required + return nil + } + + if m.Parent != nil { + if err := m.Parent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("parent") + } + return err + } + } + + return nil +} + func (m *RackGroup) validateSite(formats strfmt.Registry) error { if err := validate.Required("site", "body", m.Site); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_reservation.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_reservation.go index 59bfcda4c..8180072b3 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_reservation.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_reservation.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RackReservation rack reservation +// // swagger:model RackReservation type RackReservation struct { @@ -41,7 +41,7 @@ type RackReservation struct { // Description // Required: true - // Max Length: 100 + // Max Length: 200 // Min Length: 1 Description *string `json:"description"` @@ -122,7 +122,7 @@ func (m *RackReservation) validateDescription(formats strfmt.Registry) error { return err } - if err := validate.MaxLength("description", "body", string(*m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(*m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_role.go index 6bcd75077..9782b5034 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_role.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RackRole rack role +// // swagger:model RackRole type RackRole struct { @@ -40,7 +40,7 @@ type RackRole struct { Color *string `json:"color"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -118,7 +118,7 @@ func (m *RackRole) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_unit.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_unit.go index c0b5b7ff4..0b766d579 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_unit.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rack_unit.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RackUnit rack unit +// // swagger:model RackUnit type RackUnit struct { @@ -138,15 +140,18 @@ func (m *RackUnit) UnmarshalBinary(b []byte) error { } // RackUnitFace Face +// // swagger:model RackUnitFace type RackUnitFace struct { // label // Required: true + // Enum: [Front Rear] Label *string `json:"label"` // value // Required: true + // Enum: [front rear] Value *string `json:"value"` } @@ -168,12 +173,75 @@ func (m *RackUnitFace) Validate(formats strfmt.Registry) error { return nil } +var rackUnitFaceTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Front","Rear"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackUnitFaceTypeLabelPropEnum = append(rackUnitFaceTypeLabelPropEnum, v) + } +} + +const ( + + // RackUnitFaceLabelFront captures enum value "Front" + RackUnitFaceLabelFront string = "Front" + + // RackUnitFaceLabelRear captures enum value "Rear" + RackUnitFaceLabelRear string = "Rear" +) + +// prop value enum +func (m *RackUnitFace) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackUnitFaceTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RackUnitFace) validateLabel(formats strfmt.Registry) error { if err := validate.Required("face"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("face"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rackUnitFaceTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["front","rear"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rackUnitFaceTypeValuePropEnum = append(rackUnitFaceTypeValuePropEnum, v) + } +} + +const ( + + // RackUnitFaceValueFront captures enum value "front" + RackUnitFaceValueFront string = "front" + + // RackUnitFaceValueRear captures enum value "rear" + RackUnitFaceValueRear string = "rear" +) + +// prop value enum +func (m *RackUnitFace) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rackUnitFaceTypeValuePropEnum); err != nil { + return err + } return nil } @@ -183,6 +251,11 @@ func (m *RackUnitFace) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("face"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port.go index 7146c2d9a..2d7bf7537 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RearPort rear port +// // swagger:model RearPort type RearPort struct { @@ -38,7 +39,7 @@ type RearPort struct { Cable *NestedCable `json:"cable,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -130,7 +131,7 @@ func (m *RearPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -243,15 +244,18 @@ func (m *RearPort) UnmarshalBinary(b []byte) error { } // RearPortType Type +// // swagger:model RearPortType type RearPortType struct { // label // Required: true + // Enum: [8P8C 110 Punch BNC MRJ21 FC LC LC/APC LSH LSH/APC MPO MTRJ SC SC/APC ST] Label *string `json:"label"` // value // Required: true + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Value *string `json:"value"` } @@ -273,12 +277,147 @@ func (m *RearPortType) Validate(formats strfmt.Registry) error { return nil } +var rearPortTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8P8C","110 Punch","BNC","MRJ21","FC","LC","LC/APC","LSH","LSH/APC","MPO","MTRJ","SC","SC/APC","ST"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rearPortTypeTypeLabelPropEnum = append(rearPortTypeTypeLabelPropEnum, v) + } +} + +const ( + + // RearPortTypeLabelNr8P8C captures enum value "8P8C" + RearPortTypeLabelNr8P8C string = "8P8C" + + // RearPortTypeLabelNr110Punch captures enum value "110 Punch" + RearPortTypeLabelNr110Punch string = "110 Punch" + + // RearPortTypeLabelBNC captures enum value "BNC" + RearPortTypeLabelBNC string = "BNC" + + // RearPortTypeLabelMRJ21 captures enum value "MRJ21" + RearPortTypeLabelMRJ21 string = "MRJ21" + + // RearPortTypeLabelFC captures enum value "FC" + RearPortTypeLabelFC string = "FC" + + // RearPortTypeLabelLC captures enum value "LC" + RearPortTypeLabelLC string = "LC" + + // RearPortTypeLabelLCAPC captures enum value "LC/APC" + RearPortTypeLabelLCAPC string = "LC/APC" + + // RearPortTypeLabelLSH captures enum value "LSH" + RearPortTypeLabelLSH string = "LSH" + + // RearPortTypeLabelLSHAPC captures enum value "LSH/APC" + RearPortTypeLabelLSHAPC string = "LSH/APC" + + // RearPortTypeLabelMPO captures enum value "MPO" + RearPortTypeLabelMPO string = "MPO" + + // RearPortTypeLabelMTRJ captures enum value "MTRJ" + RearPortTypeLabelMTRJ string = "MTRJ" + + // RearPortTypeLabelSC captures enum value "SC" + RearPortTypeLabelSC string = "SC" + + // RearPortTypeLabelSCAPC captures enum value "SC/APC" + RearPortTypeLabelSCAPC string = "SC/APC" + + // RearPortTypeLabelST captures enum value "ST" + RearPortTypeLabelST string = "ST" +) + +// prop value enum +func (m *RearPortType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rearPortTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RearPortType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rearPortTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rearPortTypeTypeValuePropEnum = append(rearPortTypeTypeValuePropEnum, v) + } +} + +const ( + + // RearPortTypeValueNr8p8c captures enum value "8p8c" + RearPortTypeValueNr8p8c string = "8p8c" + + // RearPortTypeValueNr110Punch captures enum value "110-punch" + RearPortTypeValueNr110Punch string = "110-punch" + + // RearPortTypeValueBnc captures enum value "bnc" + RearPortTypeValueBnc string = "bnc" + + // RearPortTypeValueMrj21 captures enum value "mrj21" + RearPortTypeValueMrj21 string = "mrj21" + + // RearPortTypeValueFc captures enum value "fc" + RearPortTypeValueFc string = "fc" + + // RearPortTypeValueLc captures enum value "lc" + RearPortTypeValueLc string = "lc" + + // RearPortTypeValueLcApc captures enum value "lc-apc" + RearPortTypeValueLcApc string = "lc-apc" + + // RearPortTypeValueLsh captures enum value "lsh" + RearPortTypeValueLsh string = "lsh" + + // RearPortTypeValueLshApc captures enum value "lsh-apc" + RearPortTypeValueLshApc string = "lsh-apc" + + // RearPortTypeValueMpo captures enum value "mpo" + RearPortTypeValueMpo string = "mpo" + + // RearPortTypeValueMtrj captures enum value "mtrj" + RearPortTypeValueMtrj string = "mtrj" + + // RearPortTypeValueSc captures enum value "sc" + RearPortTypeValueSc string = "sc" + + // RearPortTypeValueScApc captures enum value "sc-apc" + RearPortTypeValueScApc string = "sc-apc" + + // RearPortTypeValueSt captures enum value "st" + RearPortTypeValueSt string = "st" +) + +// prop value enum +func (m *RearPortType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rearPortTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -288,6 +427,11 @@ func (m *RearPortType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port_template.go index 55ac7d7a4..03f4ac567 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/rear_port_template.go @@ -21,14 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "encoding/json" "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RearPortTemplate rear port template +// // swagger:model RearPortTemplate type RearPortTemplate struct { @@ -171,15 +173,18 @@ func (m *RearPortTemplate) UnmarshalBinary(b []byte) error { } // RearPortTemplateType Type +// // swagger:model RearPortTemplateType type RearPortTemplateType struct { // label // Required: true + // Enum: [8P8C 110 Punch BNC MRJ21 FC LC LC/APC LSH LSH/APC MPO MTRJ SC SC/APC ST] Label *string `json:"label"` // value // Required: true + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Value *string `json:"value"` } @@ -201,12 +206,147 @@ func (m *RearPortTemplateType) Validate(formats strfmt.Registry) error { return nil } +var rearPortTemplateTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8P8C","110 Punch","BNC","MRJ21","FC","LC","LC/APC","LSH","LSH/APC","MPO","MTRJ","SC","SC/APC","ST"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rearPortTemplateTypeTypeLabelPropEnum = append(rearPortTemplateTypeTypeLabelPropEnum, v) + } +} + +const ( + + // RearPortTemplateTypeLabelNr8P8C captures enum value "8P8C" + RearPortTemplateTypeLabelNr8P8C string = "8P8C" + + // RearPortTemplateTypeLabelNr110Punch captures enum value "110 Punch" + RearPortTemplateTypeLabelNr110Punch string = "110 Punch" + + // RearPortTemplateTypeLabelBNC captures enum value "BNC" + RearPortTemplateTypeLabelBNC string = "BNC" + + // RearPortTemplateTypeLabelMRJ21 captures enum value "MRJ21" + RearPortTemplateTypeLabelMRJ21 string = "MRJ21" + + // RearPortTemplateTypeLabelFC captures enum value "FC" + RearPortTemplateTypeLabelFC string = "FC" + + // RearPortTemplateTypeLabelLC captures enum value "LC" + RearPortTemplateTypeLabelLC string = "LC" + + // RearPortTemplateTypeLabelLCAPC captures enum value "LC/APC" + RearPortTemplateTypeLabelLCAPC string = "LC/APC" + + // RearPortTemplateTypeLabelLSH captures enum value "LSH" + RearPortTemplateTypeLabelLSH string = "LSH" + + // RearPortTemplateTypeLabelLSHAPC captures enum value "LSH/APC" + RearPortTemplateTypeLabelLSHAPC string = "LSH/APC" + + // RearPortTemplateTypeLabelMPO captures enum value "MPO" + RearPortTemplateTypeLabelMPO string = "MPO" + + // RearPortTemplateTypeLabelMTRJ captures enum value "MTRJ" + RearPortTemplateTypeLabelMTRJ string = "MTRJ" + + // RearPortTemplateTypeLabelSC captures enum value "SC" + RearPortTemplateTypeLabelSC string = "SC" + + // RearPortTemplateTypeLabelSCAPC captures enum value "SC/APC" + RearPortTemplateTypeLabelSCAPC string = "SC/APC" + + // RearPortTemplateTypeLabelST captures enum value "ST" + RearPortTemplateTypeLabelST string = "ST" +) + +// prop value enum +func (m *RearPortTemplateType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rearPortTemplateTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *RearPortTemplateType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var rearPortTemplateTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + rearPortTemplateTypeTypeValuePropEnum = append(rearPortTemplateTypeTypeValuePropEnum, v) + } +} + +const ( + + // RearPortTemplateTypeValueNr8p8c captures enum value "8p8c" + RearPortTemplateTypeValueNr8p8c string = "8p8c" + + // RearPortTemplateTypeValueNr110Punch captures enum value "110-punch" + RearPortTemplateTypeValueNr110Punch string = "110-punch" + + // RearPortTemplateTypeValueBnc captures enum value "bnc" + RearPortTemplateTypeValueBnc string = "bnc" + + // RearPortTemplateTypeValueMrj21 captures enum value "mrj21" + RearPortTemplateTypeValueMrj21 string = "mrj21" + + // RearPortTemplateTypeValueFc captures enum value "fc" + RearPortTemplateTypeValueFc string = "fc" + + // RearPortTemplateTypeValueLc captures enum value "lc" + RearPortTemplateTypeValueLc string = "lc" + + // RearPortTemplateTypeValueLcApc captures enum value "lc-apc" + RearPortTemplateTypeValueLcApc string = "lc-apc" + + // RearPortTemplateTypeValueLsh captures enum value "lsh" + RearPortTemplateTypeValueLsh string = "lsh" + + // RearPortTemplateTypeValueLshApc captures enum value "lsh-apc" + RearPortTemplateTypeValueLshApc string = "lsh-apc" + + // RearPortTemplateTypeValueMpo captures enum value "mpo" + RearPortTemplateTypeValueMpo string = "mpo" + + // RearPortTemplateTypeValueMtrj captures enum value "mtrj" + RearPortTemplateTypeValueMtrj string = "mtrj" + + // RearPortTemplateTypeValueSc captures enum value "sc" + RearPortTemplateTypeValueSc string = "sc" + + // RearPortTemplateTypeValueScApc captures enum value "sc-apc" + RearPortTemplateTypeValueScApc string = "sc-apc" + + // RearPortTemplateTypeValueSt captures enum value "st" + RearPortTemplateTypeValueSt string = "st" +) + +// prop value enum +func (m *RearPortTemplateType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, rearPortTemplateTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -216,6 +356,11 @@ func (m *RearPortTemplateType) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/region.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/region.go index 4dd887dc5..dcab89433 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/region.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/region.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Region region +// // swagger:model Region type Region struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -61,6 +65,10 @@ type Region struct { func (m *Region) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -79,6 +87,19 @@ func (m *Region) Validate(formats strfmt.Registry) error { return nil } +func (m *Region) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *Region) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/role.go index 0103b2edd..f5c1e3187 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/role.go @@ -21,19 +21,19 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Role role +// // swagger:model Role type Role struct { // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -99,7 +99,7 @@ func (m *Role) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/secret.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/secret.go index e1cd48d07..7e1ca70b8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/secret.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/secret.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Secret secret +// // swagger:model Secret type Secret struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/secret_role.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/secret_role.go index c9c999c5f..21890a10c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/secret_role.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/secret_role.go @@ -21,19 +21,19 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // SecretRole secret role +// // swagger:model SecretRole type SecretRole struct { // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -86,7 +86,7 @@ func (m *SecretRole) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/service.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/service.go index 977918182..962b9567f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/service.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/service.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Service service +// // swagger:model Service type Service struct { @@ -43,7 +44,7 @@ type Service struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // device @@ -153,7 +154,7 @@ func (m *Service) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -326,15 +327,18 @@ func (m *Service) UnmarshalBinary(b []byte) error { } // ServiceProtocol Protocol +// // swagger:model ServiceProtocol type ServiceProtocol struct { // label // Required: true + // Enum: [TCP UDP] Label *string `json:"label"` // value // Required: true + // Enum: [tcp udp] Value *string `json:"value"` } @@ -356,12 +360,75 @@ func (m *ServiceProtocol) Validate(formats strfmt.Registry) error { return nil } +var serviceProtocolTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["TCP","UDP"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + serviceProtocolTypeLabelPropEnum = append(serviceProtocolTypeLabelPropEnum, v) + } +} + +const ( + + // ServiceProtocolLabelTCP captures enum value "TCP" + ServiceProtocolLabelTCP string = "TCP" + + // ServiceProtocolLabelUDP captures enum value "UDP" + ServiceProtocolLabelUDP string = "UDP" +) + +// prop value enum +func (m *ServiceProtocol) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, serviceProtocolTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *ServiceProtocol) validateLabel(formats strfmt.Registry) error { if err := validate.Required("protocol"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("protocol"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var serviceProtocolTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["tcp","udp"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + serviceProtocolTypeValuePropEnum = append(serviceProtocolTypeValuePropEnum, v) + } +} + +const ( + + // ServiceProtocolValueTCP captures enum value "tcp" + ServiceProtocolValueTCP string = "tcp" + + // ServiceProtocolValueUDP captures enum value "udp" + ServiceProtocolValueUDP string = "udp" +) + +// prop value enum +func (m *ServiceProtocol) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, serviceProtocolTypeValuePropEnum); err != nil { + return err + } return nil } @@ -371,6 +438,11 @@ func (m *ServiceProtocol) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("protocol"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/site.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/site.go index efdf8d5fe..e4c9099de 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/site.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/site.go @@ -21,20 +21,23 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Site site +// // swagger:model Site type Site struct { // ASN + // + // 32-bit autonomous system number // Maximum: 4.294967295e+09 // Minimum: 1 Asn *int64 `json:"asn,omitempty"` @@ -68,7 +71,7 @@ type Site struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device count @@ -76,6 +79,8 @@ type Site struct { DeviceCount int64 `json:"device_count,omitempty"` // Facility + // + // Local facility ID or description // Max Length: 50 Facility string `json:"facility,omitempty"` @@ -89,9 +94,13 @@ type Site struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Latitude + // + // GPS coordinate (latitude) Latitude *string `json:"latitude,omitempty"` // Longitude + // + // GPS coordinate (longitude) Longitude *string `json:"longitude,omitempty"` // Name @@ -300,7 +309,7 @@ func (m *Site) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -487,15 +496,18 @@ func (m *Site) UnmarshalBinary(b []byte) error { } // SiteStatus Status +// // swagger:model SiteStatus type SiteStatus struct { // label // Required: true + // Enum: [Active Planned Retired] Label *string `json:"label"` // value // Required: true + // Enum: [active planned retired] Value *string `json:"value"` } @@ -517,12 +529,81 @@ func (m *SiteStatus) Validate(formats strfmt.Registry) error { return nil } +var siteStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Active","Planned","Retired"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + siteStatusTypeLabelPropEnum = append(siteStatusTypeLabelPropEnum, v) + } +} + +const ( + + // SiteStatusLabelActive captures enum value "Active" + SiteStatusLabelActive string = "Active" + + // SiteStatusLabelPlanned captures enum value "Planned" + SiteStatusLabelPlanned string = "Planned" + + // SiteStatusLabelRetired captures enum value "Retired" + SiteStatusLabelRetired string = "Retired" +) + +// prop value enum +func (m *SiteStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, siteStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *SiteStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var siteStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","planned","retired"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + siteStatusTypeValuePropEnum = append(siteStatusTypeValuePropEnum, v) + } +} + +const ( + + // SiteStatusValueActive captures enum value "active" + SiteStatusValueActive string = "active" + + // SiteStatusValuePlanned captures enum value "planned" + SiteStatusValuePlanned string = "planned" + + // SiteStatusValueRetired captures enum value "retired" + SiteStatusValueRetired string = "retired" +) + +// prop value enum +func (m *SiteStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, siteStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -532,6 +613,11 @@ func (m *SiteStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/tag.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/tag.go index e9be13da4..c58ad0794 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/tag.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/tag.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Tag tag +// // swagger:model Tag type Tag struct { @@ -38,8 +38,9 @@ type Tag struct { // Pattern: ^[0-9a-f]{6}$ Color string `json:"color,omitempty"` - // Comments - Comments string `json:"comments,omitempty"` + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` // ID // Read Only: true @@ -71,6 +72,10 @@ func (m *Tag) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -106,6 +111,19 @@ func (m *Tag) validateColor(formats strfmt.Registry) error { return nil } +func (m *Tag) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *Tag) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant.go index 171d6274d..42f91522f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Tenant tenant +// // swagger:model Tenant type Tenant struct { @@ -54,9 +54,7 @@ type Tenant struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // - // Long-form name (optional) - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device count @@ -177,7 +175,7 @@ func (m *Tenant) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant_group.go index 321bf28fe..f7c6ccd7b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/tenant_group.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // TenantGroup tenant group +// // swagger:model TenantGroup type TenantGroup struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -42,6 +46,9 @@ type TenantGroup struct { // Min Length: 1 Name *string `json:"name"` + // parent + Parent *NestedTenantGroup `json:"parent,omitempty"` + // Slug // Required: true // Max Length: 50 @@ -58,10 +65,18 @@ type TenantGroup struct { func (m *TenantGroup) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } + if err := m.validateParent(formats); err != nil { + res = append(res, err) + } + if err := m.validateSlug(formats); err != nil { res = append(res, err) } @@ -72,6 +87,19 @@ func (m *TenantGroup) Validate(formats strfmt.Registry) error { return nil } +func (m *TenantGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *TenantGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { @@ -89,6 +117,24 @@ func (m *TenantGroup) validateName(formats strfmt.Registry) error { return nil } +func (m *TenantGroup) validateParent(formats strfmt.Registry) error { + + if swag.IsZero(m.Parent) { // not required + return nil + } + + if m.Parent != nil { + if err := m.Parent.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("parent") + } + return err + } + } + + return nil +} + func (m *TenantGroup) validateSlug(formats strfmt.Registry) error { if err := validate.Required("slug", "body", m.Slug); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n.go index 737598b57..2d05f2c00 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VLAN v l a n +// // swagger:model VLAN type VLAN struct { @@ -43,7 +44,7 @@ type VLAN struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Display name @@ -167,7 +168,7 @@ func (m *VLAN) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -347,15 +348,18 @@ func (m *VLAN) UnmarshalBinary(b []byte) error { } // VLANStatus Status +// // swagger:model VLANStatus type VLANStatus struct { // label // Required: true + // Enum: [Active Reserved Deprecated] Label *string `json:"label"` // value // Required: true + // Enum: [active reserved deprecated] Value *string `json:"value"` } @@ -377,12 +381,81 @@ func (m *VLANStatus) Validate(formats strfmt.Registry) error { return nil } +var vLANStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Active","Reserved","Deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + vLANStatusTypeLabelPropEnum = append(vLANStatusTypeLabelPropEnum, v) + } +} + +const ( + + // VLANStatusLabelActive captures enum value "Active" + VLANStatusLabelActive string = "Active" + + // VLANStatusLabelReserved captures enum value "Reserved" + VLANStatusLabelReserved string = "Reserved" + + // VLANStatusLabelDeprecated captures enum value "Deprecated" + VLANStatusLabelDeprecated string = "Deprecated" +) + +// prop value enum +func (m *VLANStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, vLANStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *VLANStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var vLANStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["active","reserved","deprecated"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + vLANStatusTypeValuePropEnum = append(vLANStatusTypeValuePropEnum, v) + } +} + +const ( + + // VLANStatusValueActive captures enum value "active" + VLANStatusValueActive string = "active" + + // VLANStatusValueReserved captures enum value "reserved" + VLANStatusValueReserved string = "reserved" + + // VLANStatusValueDeprecated captures enum value "deprecated" + VLANStatusValueDeprecated string = "deprecated" +) + +// prop value enum +func (m *VLANStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, vLANStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -392,6 +465,11 @@ func (m *VLANStatus) validateValue(formats strfmt.Registry) error { return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n_group.go index 7a65b5060..a619d64d4 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/v_l_a_n_group.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VLANGroup v l a n group +// // swagger:model VLANGroup type VLANGroup struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -61,6 +65,10 @@ type VLANGroup struct { func (m *VLANGroup) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -79,6 +87,19 @@ func (m *VLANGroup) Validate(formats strfmt.Registry) error { return nil } +func (m *VLANGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *VLANGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/v_r_f.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/v_r_f.go index 083b4316a..439fca190 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/v_r_f.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/v_r_f.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VRF v r f +// // swagger:model VRF type VRF struct { @@ -43,7 +43,7 @@ type VRF struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Display name @@ -79,6 +79,8 @@ type VRF struct { PrefixCount int64 `json:"prefix_count,omitempty"` // Route distinguisher + // + // Unique route distinguisher (as defined in RFC 4364) // Max Length: 21 Rd *string `json:"rd,omitempty"` @@ -146,7 +148,7 @@ func (m *VRF) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_chassis.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_chassis.go index c264c96b9..a964a23bb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_chassis.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_chassis.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VirtualChassis virtual chassis +// // swagger:model VirtualChassis type VirtualChassis struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_interface.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_interface.go index c7e8eaf3c..eee9af48d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_interface.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_interface.go @@ -24,19 +24,19 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VirtualMachineInterface virtual machine interface +// // swagger:model VirtualMachineInterface type VirtualMachineInterface struct { // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Enabled @@ -133,7 +133,7 @@ func (m *VirtualMachineInterface) validateDescription(formats strfmt.Registry) e return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -311,15 +311,18 @@ func (m *VirtualMachineInterface) UnmarshalBinary(b []byte) error { } // VirtualMachineInterfaceMode Mode +// // swagger:model VirtualMachineInterfaceMode type VirtualMachineInterfaceMode struct { // label // Required: true + // Enum: [Access Tagged Tagged (All)] Label *string `json:"label"` // value // Required: true + // Enum: [access tagged tagged-all] Value *string `json:"value"` } @@ -341,12 +344,81 @@ func (m *VirtualMachineInterfaceMode) Validate(formats strfmt.Registry) error { return nil } +var virtualMachineInterfaceModeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Access","Tagged","Tagged (All)"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualMachineInterfaceModeTypeLabelPropEnum = append(virtualMachineInterfaceModeTypeLabelPropEnum, v) + } +} + +const ( + + // VirtualMachineInterfaceModeLabelAccess captures enum value "Access" + VirtualMachineInterfaceModeLabelAccess string = "Access" + + // VirtualMachineInterfaceModeLabelTagged captures enum value "Tagged" + VirtualMachineInterfaceModeLabelTagged string = "Tagged" + + // VirtualMachineInterfaceModeLabelTaggedAll captures enum value "Tagged (All)" + VirtualMachineInterfaceModeLabelTaggedAll string = "Tagged (All)" +) + +// prop value enum +func (m *VirtualMachineInterfaceMode) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, virtualMachineInterfaceModeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *VirtualMachineInterfaceMode) validateLabel(formats strfmt.Registry) error { if err := validate.Required("mode"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("mode"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var virtualMachineInterfaceModeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["access","tagged","tagged-all"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualMachineInterfaceModeTypeValuePropEnum = append(virtualMachineInterfaceModeTypeValuePropEnum, v) + } +} + +const ( + + // VirtualMachineInterfaceModeValueAccess captures enum value "access" + VirtualMachineInterfaceModeValueAccess string = "access" + + // VirtualMachineInterfaceModeValueTagged captures enum value "tagged" + VirtualMachineInterfaceModeValueTagged string = "tagged" + + // VirtualMachineInterfaceModeValueTaggedAll captures enum value "tagged-all" + VirtualMachineInterfaceModeValueTaggedAll string = "tagged-all" +) + +// prop value enum +func (m *VirtualMachineInterfaceMode) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, virtualMachineInterfaceModeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -356,6 +428,11 @@ func (m *VirtualMachineInterfaceMode) validateValue(formats strfmt.Registry) err return err } + // value enum + if err := m.validateValueEnum("mode"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } @@ -378,15 +455,18 @@ func (m *VirtualMachineInterfaceMode) UnmarshalBinary(b []byte) error { } // VirtualMachineInterfaceType Type +// // swagger:model VirtualMachineInterfaceType type VirtualMachineInterfaceType struct { // label // Required: true + // Enum: [Virtual] Label *string `json:"label"` // value // Required: true + // Enum: [virtual] Value *string `json:"value"` } @@ -421,12 +501,69 @@ func (m *VirtualMachineInterfaceType) Validate(formats strfmt.Registry) error { return nil } +var virtualMachineInterfaceTypeTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Virtual"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualMachineInterfaceTypeTypeLabelPropEnum = append(virtualMachineInterfaceTypeTypeLabelPropEnum, v) + } +} + +const ( + + // VirtualMachineInterfaceTypeLabelVirtual captures enum value "Virtual" + VirtualMachineInterfaceTypeLabelVirtual string = "Virtual" +) + +// prop value enum +func (m *VirtualMachineInterfaceType) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, virtualMachineInterfaceTypeTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *VirtualMachineInterfaceType) validateLabel(formats strfmt.Registry) error { if err := validate.Required("type"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("type"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var virtualMachineInterfaceTypeTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["virtual"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualMachineInterfaceTypeTypeValuePropEnum = append(virtualMachineInterfaceTypeTypeValuePropEnum, v) + } +} + +const ( + + // VirtualMachineInterfaceTypeValueVirtual captures enum value "virtual" + VirtualMachineInterfaceTypeValueVirtual string = "virtual" +) + +// prop value enum +func (m *VirtualMachineInterfaceType) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, virtualMachineInterfaceTypeTypeValuePropEnum); err != nil { + return err + } return nil } @@ -436,6 +573,11 @@ func (m *VirtualMachineInterfaceType) validateValue(formats strfmt.Registry) err return err } + // value enum + if err := m.validateValueEnum("type"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_with_config_context.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_with_config_context.go index 0b889351d..63ef43fcc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_with_config_context.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/virtual_machine_with_config_context.go @@ -21,16 +21,17 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VirtualMachineWithConfigContext virtual machine with config context +// // swagger:model VirtualMachineWithConfigContext type VirtualMachineWithConfigContext struct { @@ -480,15 +481,18 @@ func (m *VirtualMachineWithConfigContext) UnmarshalBinary(b []byte) error { } // VirtualMachineWithConfigContextStatus Status +// // swagger:model VirtualMachineWithConfigContextStatus type VirtualMachineWithConfigContextStatus struct { // label // Required: true + // Enum: [Offline Active Planned Staged Failed Decommissioning] Label *string `json:"label"` // value // Required: true + // Enum: [offline active planned staged failed decommissioning] Value *string `json:"value"` } @@ -510,12 +514,99 @@ func (m *VirtualMachineWithConfigContextStatus) Validate(formats strfmt.Registry return nil } +var virtualMachineWithConfigContextStatusTypeLabelPropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["Offline","Active","Planned","Staged","Failed","Decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualMachineWithConfigContextStatusTypeLabelPropEnum = append(virtualMachineWithConfigContextStatusTypeLabelPropEnum, v) + } +} + +const ( + + // VirtualMachineWithConfigContextStatusLabelOffline captures enum value "Offline" + VirtualMachineWithConfigContextStatusLabelOffline string = "Offline" + + // VirtualMachineWithConfigContextStatusLabelActive captures enum value "Active" + VirtualMachineWithConfigContextStatusLabelActive string = "Active" + + // VirtualMachineWithConfigContextStatusLabelPlanned captures enum value "Planned" + VirtualMachineWithConfigContextStatusLabelPlanned string = "Planned" + + // VirtualMachineWithConfigContextStatusLabelStaged captures enum value "Staged" + VirtualMachineWithConfigContextStatusLabelStaged string = "Staged" + + // VirtualMachineWithConfigContextStatusLabelFailed captures enum value "Failed" + VirtualMachineWithConfigContextStatusLabelFailed string = "Failed" + + // VirtualMachineWithConfigContextStatusLabelDecommissioning captures enum value "Decommissioning" + VirtualMachineWithConfigContextStatusLabelDecommissioning string = "Decommissioning" +) + +// prop value enum +func (m *VirtualMachineWithConfigContextStatus) validateLabelEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, virtualMachineWithConfigContextStatusTypeLabelPropEnum); err != nil { + return err + } + return nil +} + func (m *VirtualMachineWithConfigContextStatus) validateLabel(formats strfmt.Registry) error { if err := validate.Required("status"+"."+"label", "body", m.Label); err != nil { return err } + // value enum + if err := m.validateLabelEnum("status"+"."+"label", "body", *m.Label); err != nil { + return err + } + + return nil +} + +var virtualMachineWithConfigContextStatusTypeValuePropEnum []interface{} + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["offline","active","planned","staged","failed","decommissioning"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + virtualMachineWithConfigContextStatusTypeValuePropEnum = append(virtualMachineWithConfigContextStatusTypeValuePropEnum, v) + } +} + +const ( + + // VirtualMachineWithConfigContextStatusValueOffline captures enum value "offline" + VirtualMachineWithConfigContextStatusValueOffline string = "offline" + + // VirtualMachineWithConfigContextStatusValueActive captures enum value "active" + VirtualMachineWithConfigContextStatusValueActive string = "active" + + // VirtualMachineWithConfigContextStatusValuePlanned captures enum value "planned" + VirtualMachineWithConfigContextStatusValuePlanned string = "planned" + + // VirtualMachineWithConfigContextStatusValueStaged captures enum value "staged" + VirtualMachineWithConfigContextStatusValueStaged string = "staged" + + // VirtualMachineWithConfigContextStatusValueFailed captures enum value "failed" + VirtualMachineWithConfigContextStatusValueFailed string = "failed" + + // VirtualMachineWithConfigContextStatusValueDecommissioning captures enum value "decommissioning" + VirtualMachineWithConfigContextStatusValueDecommissioning string = "decommissioning" +) + +// prop value enum +func (m *VirtualMachineWithConfigContextStatus) validateValueEnum(path, location string, value string) error { + if err := validate.Enum(path, location, value, virtualMachineWithConfigContextStatusTypeValuePropEnum); err != nil { + return err + } return nil } @@ -525,6 +616,11 @@ func (m *VirtualMachineWithConfigContextStatus) validateValue(formats strfmt.Reg return err } + // value enum + if err := m.validateValueEnum("status"+"."+"value", "body", *m.Value); err != nil { + return err + } + return nil } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_aggregate.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_aggregate.go index bdbed2b37..12c841775 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_aggregate.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_aggregate.go @@ -21,17 +21,16 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableAggregate writable aggregate +// // swagger:model WritableAggregate type WritableAggregate struct { @@ -48,13 +47,12 @@ type WritableAggregate struct { DateAdded *strfmt.Date `json:"date_added,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Family // Read Only: true - // Enum: [4 6] - Family int64 `json:"family,omitempty"` + Family string `json:"family,omitempty"` // ID // Read Only: true @@ -93,10 +91,6 @@ func (m *WritableAggregate) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateFamily(formats); err != nil { - res = append(res, err) - } - if err := m.validateLastUpdated(formats); err != nil { res = append(res, err) } @@ -151,41 +145,7 @@ func (m *WritableAggregate) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { - return err - } - - return nil -} - -var writableAggregateTypeFamilyPropEnum []interface{} - -func init() { - var res []int64 - if err := json.Unmarshal([]byte(`[4,6]`), &res); err != nil { - panic(err) - } - for _, v := range res { - writableAggregateTypeFamilyPropEnum = append(writableAggregateTypeFamilyPropEnum, v) - } -} - -// prop value enum -func (m *WritableAggregate) validateFamilyEnum(path, location string, value int64) error { - if err := validate.Enum(path, location, value, writableAggregateTypeFamilyPropEnum); err != nil { - return err - } - return nil -} - -func (m *WritableAggregate) validateFamily(formats strfmt.Registry) error { - - if swag.IsZero(m.Family) { // not required - return nil - } - - // value enum - if err := m.validateFamilyEnum("family", "body", m.Family); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cable.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cable.go index d2073f2b4..32cf6b9a5 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cable.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cable.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableCable writable cable +// // swagger:model WritableCable type WritableCable struct { @@ -89,7 +89,7 @@ type WritableCable struct { TerminationbType *string `json:"termination_b_type"` // Type - // Enum: [cat3 cat5 cat5e cat6 cat6a cat7 dac-active dac-passive coaxial mmf mmf-om1 mmf-om2 mmf-om3 mmf-om4 smf smf-os1 smf-os2 aoc power] + // Enum: [cat3 cat5 cat5e cat6 cat6a cat7 dac-active dac-passive mrj21-trunk coaxial mmf mmf-om1 mmf-om2 mmf-om3 mmf-om4 smf smf-os1 smf-os2 aoc power] Type string `json:"type,omitempty"` } @@ -341,7 +341,7 @@ var writableCableTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["cat3","cat5","cat5e","cat6","cat6a","cat7","dac-active","dac-passive","coaxial","mmf","mmf-om1","mmf-om2","mmf-om3","mmf-om4","smf","smf-os1","smf-os2","aoc","power"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["cat3","cat5","cat5e","cat6","cat6a","cat7","dac-active","dac-passive","mrj21-trunk","coaxial","mmf","mmf-om1","mmf-om2","mmf-om3","mmf-om4","smf","smf-os1","smf-os2","aoc","power"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -375,6 +375,9 @@ const ( // WritableCableTypeDacPassive captures enum value "dac-passive" WritableCableTypeDacPassive string = "dac-passive" + // WritableCableTypeMrj21Trunk captures enum value "mrj21-trunk" + WritableCableTypeMrj21Trunk string = "mrj21-trunk" + // WritableCableTypeCoaxial captures enum value "coaxial" WritableCableTypeCoaxial string = "coaxial" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit.go index ae1d81f18..929de2902 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableCircuit writable circuit +// // swagger:model WritableCircuit type WritableCircuit struct { @@ -58,7 +58,7 @@ type WritableCircuit struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -204,7 +204,7 @@ func (m *WritableCircuit) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit_termination.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit_termination.go index 4e821664b..cc5a70f0d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit_termination.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_circuit_termination.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableCircuitTermination writable circuit termination +// // swagger:model WritableCircuitTermination type WritableCircuitTermination struct { @@ -44,7 +44,7 @@ type WritableCircuitTermination struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -58,7 +58,7 @@ type WritableCircuitTermination struct { ConnectionStatus bool `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -213,7 +213,7 @@ func (m *WritableCircuitTermination) validateDescription(formats strfmt.Registry return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cluster.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cluster.go index 768bb5b63..f6df092dc 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cluster.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_cluster.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableCluster writable cluster +// // swagger:model WritableCluster type WritableCluster struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_config_context.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_config_context.go index 3d1207753..9591c0317 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_config_context.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_config_context.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableConfigContext writable config context +// // swagger:model WritableConfigContext type WritableConfigContext struct { @@ -47,7 +47,7 @@ type WritableConfigContext struct { Data *string `json:"data"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // ID @@ -200,7 +200,7 @@ func (m *WritableConfigContext) validateDescription(formats strfmt.Registry) err return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port.go index 43aa57a49..64693b09a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableConsolePort writable console port +// // swagger:model WritableConsolePort type WritableConsolePort struct { @@ -41,7 +41,7 @@ type WritableConsolePort struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -55,7 +55,7 @@ type WritableConsolePort struct { ConnectionStatus bool `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -76,6 +76,8 @@ type WritableConsolePort struct { Tags []string `json:"tags"` // Type + // + // Physical port type // Enum: [de-9 db-25 rj-11 rj-12 rj-45 usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b other] Type string `json:"type,omitempty"` } @@ -176,7 +178,7 @@ func (m *WritableConsolePort) validateDescription(formats strfmt.Registry) error return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port_template.go index 982709760..ee7402124 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_port_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableConsolePortTemplate writable console port template +// // swagger:model WritableConsolePortTemplate type WritableConsolePortTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port.go index 4945c8d94..9d965be8c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableConsoleServerPort writable console server port +// // swagger:model WritableConsoleServerPort type WritableConsoleServerPort struct { @@ -41,7 +41,7 @@ type WritableConsoleServerPort struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -55,7 +55,7 @@ type WritableConsoleServerPort struct { ConnectionStatus bool `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -76,6 +76,8 @@ type WritableConsoleServerPort struct { Tags []string `json:"tags"` // Type + // + // Physical port type // Enum: [de-9 db-25 rj-11 rj-12 rj-45 usb-a usb-b usb-c usb-mini-a usb-mini-b usb-micro-a usb-micro-b other] Type string `json:"type,omitempty"` } @@ -176,7 +178,7 @@ func (m *WritableConsoleServerPort) validateDescription(formats strfmt.Registry) return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port_template.go index 7c818debd..144abb63f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_console_server_port_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableConsoleServerPortTemplate writable console server port template +// // swagger:model WritableConsoleServerPortTemplate type WritableConsoleServerPortTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay.go index ad01f111d..7604084eb 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay.go @@ -23,19 +23,19 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableDeviceBay writable device bay +// // swagger:model WritableDeviceBay type WritableDeviceBay struct { // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -91,7 +91,7 @@ func (m *WritableDeviceBay) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay_template.go index e3031d4a7..1e62aaf02 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_bay_template.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableDeviceBayTemplate writable device bay template +// // swagger:model WritableDeviceBayTemplate type WritableDeviceBayTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_interface.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_interface.go index eeba3dfee..e16925c16 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_interface.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_interface.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableDeviceInterface writable device interface +// // swagger:model WritableDeviceInterface type WritableDeviceInterface struct { @@ -41,7 +41,7 @@ type WritableDeviceInterface struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -56,10 +56,10 @@ type WritableDeviceInterface struct { // Count ipaddresses // Read Only: true - CountIpaddresses string `json:"count_ipaddresses,omitempty"` + CountIpaddresses int64 `json:"count_ipaddresses,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -108,7 +108,7 @@ type WritableDeviceInterface struct { // Type // Required: true - // Enum: [virtual 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 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 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 128gfc-sfp28 inifiband-sdr inifiband-ddr inifiband-qdr inifiband-fdr10 inifiband-fdr inifiband-edr inifiband-hdr inifiband-ndr inifiband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual 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 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 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 128gfc-sfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Untagged VLAN @@ -223,7 +223,7 @@ func (m *WritableDeviceInterface) validateDescription(formats strfmt.Registry) e return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -353,7 +353,7 @@ var writableDeviceInterfaceTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","inifiband-sdr","inifiband-ddr","inifiband-qdr","inifiband-fdr10","inifiband-fdr","inifiband-edr","inifiband-hdr","inifiband-ndr","inifiband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -510,32 +510,32 @@ const ( // WritableDeviceInterfaceTypeNr128gfcSfp28 captures enum value "128gfc-sfp28" WritableDeviceInterfaceTypeNr128gfcSfp28 string = "128gfc-sfp28" - // WritableDeviceInterfaceTypeInifibandSdr captures enum value "inifiband-sdr" - WritableDeviceInterfaceTypeInifibandSdr string = "inifiband-sdr" + // WritableDeviceInterfaceTypeInfinibandSdr captures enum value "infiniband-sdr" + WritableDeviceInterfaceTypeInfinibandSdr string = "infiniband-sdr" - // WritableDeviceInterfaceTypeInifibandDdr captures enum value "inifiband-ddr" - WritableDeviceInterfaceTypeInifibandDdr string = "inifiband-ddr" + // WritableDeviceInterfaceTypeInfinibandDdr captures enum value "infiniband-ddr" + WritableDeviceInterfaceTypeInfinibandDdr string = "infiniband-ddr" - // WritableDeviceInterfaceTypeInifibandQdr captures enum value "inifiband-qdr" - WritableDeviceInterfaceTypeInifibandQdr string = "inifiband-qdr" + // WritableDeviceInterfaceTypeInfinibandQdr captures enum value "infiniband-qdr" + WritableDeviceInterfaceTypeInfinibandQdr string = "infiniband-qdr" - // WritableDeviceInterfaceTypeInifibandFdr10 captures enum value "inifiband-fdr10" - WritableDeviceInterfaceTypeInifibandFdr10 string = "inifiband-fdr10" + // WritableDeviceInterfaceTypeInfinibandFdr10 captures enum value "infiniband-fdr10" + WritableDeviceInterfaceTypeInfinibandFdr10 string = "infiniband-fdr10" - // WritableDeviceInterfaceTypeInifibandFdr captures enum value "inifiband-fdr" - WritableDeviceInterfaceTypeInifibandFdr string = "inifiband-fdr" + // WritableDeviceInterfaceTypeInfinibandFdr captures enum value "infiniband-fdr" + WritableDeviceInterfaceTypeInfinibandFdr string = "infiniband-fdr" - // WritableDeviceInterfaceTypeInifibandEdr captures enum value "inifiband-edr" - WritableDeviceInterfaceTypeInifibandEdr string = "inifiband-edr" + // WritableDeviceInterfaceTypeInfinibandEdr captures enum value "infiniband-edr" + WritableDeviceInterfaceTypeInfinibandEdr string = "infiniband-edr" - // WritableDeviceInterfaceTypeInifibandHdr captures enum value "inifiband-hdr" - WritableDeviceInterfaceTypeInifibandHdr string = "inifiband-hdr" + // WritableDeviceInterfaceTypeInfinibandHdr captures enum value "infiniband-hdr" + WritableDeviceInterfaceTypeInfinibandHdr string = "infiniband-hdr" - // WritableDeviceInterfaceTypeInifibandNdr captures enum value "inifiband-ndr" - WritableDeviceInterfaceTypeInifibandNdr string = "inifiband-ndr" + // WritableDeviceInterfaceTypeInfinibandNdr captures enum value "infiniband-ndr" + WritableDeviceInterfaceTypeInfinibandNdr string = "infiniband-ndr" - // WritableDeviceInterfaceTypeInifibandXdr captures enum value "inifiband-xdr" - WritableDeviceInterfaceTypeInifibandXdr string = "inifiband-xdr" + // WritableDeviceInterfaceTypeInfinibandXdr captures enum value "infiniband-xdr" + WritableDeviceInterfaceTypeInfinibandXdr string = "infiniband-xdr" // WritableDeviceInterfaceTypeT1 captures enum value "t1" WritableDeviceInterfaceTypeT1 string = "t1" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_type.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_type.go index 4506b20fa..178e3f52a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_type.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_type.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableDeviceType writable device type +// // swagger:model WritableDeviceType type WritableDeviceType struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_with_config_context.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_with_config_context.go index 455ac7e02..4af817915 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_with_config_context.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_device_with_config_context.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableDeviceWithConfigContext writable device with config context +// // swagger:model WritableDeviceWithConfigContext type WritableDeviceWithConfigContext struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_export_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_export_template.go index 5b279f073..83055b58a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_export_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_export_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableExportTemplate writable export template +// // swagger:model WritableExportTemplate type WritableExportTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port.go index 8deb2c343..7757c1c47 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableFrontPort writable front port +// // swagger:model WritableFrontPort type WritableFrontPort struct { @@ -39,7 +39,7 @@ type WritableFrontPort struct { Cable *NestedCable `json:"cable,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -70,7 +70,7 @@ type WritableFrontPort struct { // Type // Required: true - // Enum: [8p8c 110-punch bnc fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Type *string `json:"type"` } @@ -140,7 +140,7 @@ func (m *WritableFrontPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -220,7 +220,7 @@ var writableFrontPortTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -239,6 +239,9 @@ const ( // WritableFrontPortTypeBnc captures enum value "bnc" WritableFrontPortTypeBnc string = "bnc" + // WritableFrontPortTypeMrj21 captures enum value "mrj21" + WritableFrontPortTypeMrj21 string = "mrj21" + // WritableFrontPortTypeFc captures enum value "fc" WritableFrontPortTypeFc string = "fc" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port_template.go index 6fe4f93f6..cea2f3cf6 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_front_port_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableFrontPortTemplate writable front port template +// // swagger:model WritableFrontPortTemplate type WritableFrontPortTemplate struct { @@ -59,7 +59,7 @@ type WritableFrontPortTemplate struct { // Type // Required: true - // Enum: [8p8c 110-punch bnc fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Type *string `json:"type"` } @@ -149,7 +149,7 @@ var writableFrontPortTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -168,6 +168,9 @@ const ( // WritableFrontPortTemplateTypeBnc captures enum value "bnc" WritableFrontPortTemplateTypeBnc string = "bnc" + // WritableFrontPortTemplateTypeMrj21 captures enum value "mrj21" + WritableFrontPortTemplateTypeMrj21 string = "mrj21" + // WritableFrontPortTemplateTypeFc captures enum value "fc" WritableFrontPortTemplateTypeFc string = "fc" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_interface_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_interface_template.go index 73e84bf5d..2a1a6efd1 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_interface_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_interface_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableInterfaceTemplate writable interface template +// // swagger:model WritableInterfaceTemplate type WritableInterfaceTemplate struct { @@ -53,7 +53,7 @@ type WritableInterfaceTemplate struct { // Type // Required: true - // Enum: [virtual 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 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 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 128gfc-sfp28 inifiband-sdr inifiband-ddr inifiband-qdr inifiband-fdr10 inifiband-fdr inifiband-edr inifiband-hdr inifiband-ndr inifiband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual 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 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 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 128gfc-sfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` } @@ -109,7 +109,7 @@ var writableInterfaceTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","inifiband-sdr","inifiband-ddr","inifiband-qdr","inifiband-fdr10","inifiband-fdr","inifiband-edr","inifiband-hdr","inifiband-ndr","inifiband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -266,32 +266,32 @@ const ( // WritableInterfaceTemplateTypeNr128gfcSfp28 captures enum value "128gfc-sfp28" WritableInterfaceTemplateTypeNr128gfcSfp28 string = "128gfc-sfp28" - // WritableInterfaceTemplateTypeInifibandSdr captures enum value "inifiband-sdr" - WritableInterfaceTemplateTypeInifibandSdr string = "inifiband-sdr" + // WritableInterfaceTemplateTypeInfinibandSdr captures enum value "infiniband-sdr" + WritableInterfaceTemplateTypeInfinibandSdr string = "infiniband-sdr" - // WritableInterfaceTemplateTypeInifibandDdr captures enum value "inifiband-ddr" - WritableInterfaceTemplateTypeInifibandDdr string = "inifiband-ddr" + // WritableInterfaceTemplateTypeInfinibandDdr captures enum value "infiniband-ddr" + WritableInterfaceTemplateTypeInfinibandDdr string = "infiniband-ddr" - // WritableInterfaceTemplateTypeInifibandQdr captures enum value "inifiband-qdr" - WritableInterfaceTemplateTypeInifibandQdr string = "inifiband-qdr" + // WritableInterfaceTemplateTypeInfinibandQdr captures enum value "infiniband-qdr" + WritableInterfaceTemplateTypeInfinibandQdr string = "infiniband-qdr" - // WritableInterfaceTemplateTypeInifibandFdr10 captures enum value "inifiband-fdr10" - WritableInterfaceTemplateTypeInifibandFdr10 string = "inifiband-fdr10" + // WritableInterfaceTemplateTypeInfinibandFdr10 captures enum value "infiniband-fdr10" + WritableInterfaceTemplateTypeInfinibandFdr10 string = "infiniband-fdr10" - // WritableInterfaceTemplateTypeInifibandFdr captures enum value "inifiband-fdr" - WritableInterfaceTemplateTypeInifibandFdr string = "inifiband-fdr" + // WritableInterfaceTemplateTypeInfinibandFdr captures enum value "infiniband-fdr" + WritableInterfaceTemplateTypeInfinibandFdr string = "infiniband-fdr" - // WritableInterfaceTemplateTypeInifibandEdr captures enum value "inifiband-edr" - WritableInterfaceTemplateTypeInifibandEdr string = "inifiband-edr" + // WritableInterfaceTemplateTypeInfinibandEdr captures enum value "infiniband-edr" + WritableInterfaceTemplateTypeInfinibandEdr string = "infiniband-edr" - // WritableInterfaceTemplateTypeInifibandHdr captures enum value "inifiband-hdr" - WritableInterfaceTemplateTypeInifibandHdr string = "inifiband-hdr" + // WritableInterfaceTemplateTypeInfinibandHdr captures enum value "infiniband-hdr" + WritableInterfaceTemplateTypeInfinibandHdr string = "infiniband-hdr" - // WritableInterfaceTemplateTypeInifibandNdr captures enum value "inifiband-ndr" - WritableInterfaceTemplateTypeInifibandNdr string = "inifiband-ndr" + // WritableInterfaceTemplateTypeInfinibandNdr captures enum value "infiniband-ndr" + WritableInterfaceTemplateTypeInfinibandNdr string = "infiniband-ndr" - // WritableInterfaceTemplateTypeInifibandXdr captures enum value "inifiband-xdr" - WritableInterfaceTemplateTypeInifibandXdr string = "inifiband-xdr" + // WritableInterfaceTemplateTypeInfinibandXdr captures enum value "infiniband-xdr" + WritableInterfaceTemplateTypeInfinibandXdr string = "infiniband-xdr" // WritableInterfaceTemplateTypeT1 captures enum value "t1" WritableInterfaceTemplateTypeT1 string = "t1" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_inventory_item.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_inventory_item.go index 4ca3a8144..152fb1b07 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_inventory_item.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_inventory_item.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableInventoryItem writable inventory item +// // swagger:model WritableInventoryItem type WritableInventoryItem struct { @@ -41,7 +41,7 @@ type WritableInventoryItem struct { AssetTag *string `json:"asset_tag,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -49,6 +49,8 @@ type WritableInventoryItem struct { Device *int64 `json:"device"` // Discovered + // + // This item was automatically discovered Discovered bool `json:"discovered,omitempty"` // ID @@ -68,6 +70,8 @@ type WritableInventoryItem struct { Parent *int64 `json:"parent,omitempty"` // Part ID + // + // Manufacturer-assigned part identifier // Max Length: 50 PartID string `json:"part_id,omitempty"` @@ -136,7 +140,7 @@ func (m *WritableInventoryItem) validateDescription(formats strfmt.Registry) err return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_ip_address.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_ip_address.go index a9abe7cfe..063c6296f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_ip_address.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_ip_address.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableIPAddress writable IP address +// // swagger:model WritableIPAddress type WritableIPAddress struct { @@ -50,7 +50,7 @@ type WritableIPAddress struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // DNS Name @@ -62,7 +62,7 @@ type WritableIPAddress struct { // Family // Read Only: true - Family int64 `json:"family,omitempty"` + Family string `json:"family,omitempty"` // ID // Read Only: true @@ -181,7 +181,7 @@ func (m *WritableIPAddress) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_platform.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_platform.go index a6f8e24b2..26b79c5ee 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_platform.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_platform.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePlatform writable platform +// // swagger:model WritablePlatform type WritablePlatform struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // Device count // Read Only: true DeviceCount int64 `json:"device_count,omitempty"` @@ -78,6 +82,10 @@ type WritablePlatform struct { func (m *WritablePlatform) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -96,6 +104,19 @@ func (m *WritablePlatform) Validate(formats strfmt.Registry) error { return nil } +func (m *WritablePlatform) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *WritablePlatform) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_feed.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_feed.go index 42823245b..234d3b518 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_feed.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_feed.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePowerFeed writable power feed +// // swagger:model WritablePowerFeed type WritablePowerFeed struct { @@ -101,8 +101,8 @@ type WritablePowerFeed struct { // Voltage // Maximum: 32767 - // Minimum: 1 - Voltage int64 `json:"voltage,omitempty"` + // Minimum: -32768 + Voltage *int64 `json:"voltage,omitempty"` } // Validate validates this writable power feed @@ -450,11 +450,11 @@ func (m *WritablePowerFeed) validateVoltage(formats strfmt.Registry) error { return nil } - if err := validate.MinimumInt("voltage", "body", int64(m.Voltage), 1, false); err != nil { + if err := validate.MinimumInt("voltage", "body", int64(*m.Voltage), -32768, false); err != nil { return err } - if err := validate.MaximumInt("voltage", "body", int64(m.Voltage), 32767, false); err != nil { + if err := validate.MaximumInt("voltage", "body", int64(*m.Voltage), 32767, false); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet.go index 82397de64..89f8b8f8d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePowerOutlet writable power outlet +// // swagger:model WritablePowerOutlet type WritablePowerOutlet struct { @@ -41,7 +41,7 @@ type WritablePowerOutlet struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -55,7 +55,7 @@ type WritablePowerOutlet struct { ConnectionStatus bool `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -85,7 +85,9 @@ type WritablePowerOutlet struct { Tags []string `json:"tags"` // Type - // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 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-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-20r nema-l6-30r nema-l6-50r 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] + // + // Physical port type + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 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-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-20r nema-l6-30r nema-l6-50r 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 hdot-cx] Type string `json:"type,omitempty"` } @@ -189,7 +191,7 @@ func (m *WritablePowerOutlet) validateDescription(formats strfmt.Registry) error return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -289,7 +291,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-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-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-20r","nema-l6-30r","nema-l6-50r","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"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","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-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-20r","nema-l6-30r","nema-l6-50r","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","hdot-cx"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -445,6 +447,9 @@ const ( // WritablePowerOutletTypeItao captures enum value "ita-o" WritablePowerOutletTypeItao string = "ita-o" + + // WritablePowerOutletTypeHdotCx captures enum value "hdot-cx" + WritablePowerOutletTypeHdotCx string = "hdot-cx" ) // prop value enum diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet_template.go index 0d78c176a..3d4cf4730 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_outlet_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePowerOutletTemplate writable power outlet template +// // swagger:model WritablePowerOutletTemplate type WritablePowerOutletTemplate struct { @@ -58,7 +58,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-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-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-20r nema-l6-30r nema-l6-50r 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] + // Enum: [iec-60320-c5 iec-60320-c7 iec-60320-c13 iec-60320-c15 iec-60320-c19 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-5-15r nema-5-20r nema-5-30r nema-5-50r nema-6-15r nema-6-20r nema-6-30r nema-6-50r nema-l5-15r nema-l5-20r nema-l5-30r nema-l5-50r nema-l6-20r nema-l6-30r nema-l6-50r 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 hdot-cx] Type string `json:"type,omitempty"` } @@ -164,7 +164,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-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-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-20r","nema-l6-30r","nema-l6-50r","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"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["iec-60320-c5","iec-60320-c7","iec-60320-c13","iec-60320-c15","iec-60320-c19","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-5-15r","nema-5-20r","nema-5-30r","nema-5-50r","nema-6-15r","nema-6-20r","nema-6-30r","nema-6-50r","nema-l5-15r","nema-l5-20r","nema-l5-30r","nema-l5-50r","nema-l6-20r","nema-l6-30r","nema-l6-50r","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","hdot-cx"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -320,6 +320,9 @@ const ( // WritablePowerOutletTemplateTypeItao captures enum value "ita-o" WritablePowerOutletTemplateTypeItao string = "ita-o" + + // WritablePowerOutletTemplateTypeHdotCx captures enum value "hdot-cx" + WritablePowerOutletTemplateTypeHdotCx string = "hdot-cx" ) // prop value enum diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_panel.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_panel.go index 0bb57d4e2..5f5f6019b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_panel.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_panel.go @@ -21,14 +21,14 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePowerPanel writable power panel +// // swagger:model WritablePowerPanel type WritablePowerPanel struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port.go index 967f966a9..1ee89e90f 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePowerPort writable power port +// // swagger:model WritablePowerPort type WritablePowerPort struct { @@ -48,7 +48,7 @@ type WritablePowerPort struct { // Connected endpoint // // - // Return the appropriate serializer for the type of connected object. + // Return the appropriate serializer for the type of connected object. // // Read Only: true ConnectedEndpoint map[string]string `json:"connected_endpoint,omitempty"` @@ -62,7 +62,7 @@ type WritablePowerPort struct { ConnectionStatus bool `json:"connection_status,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -90,6 +90,8 @@ type WritablePowerPort struct { Tags []string `json:"tags"` // Type + // + // Physical port type // Enum: [iec-60320-c6 iec-60320-c8 iec-60320-c14 iec-60320-c16 iec-60320-c20 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-5-15p nema-5-20p nema-5-30p nema-5-50p nema-6-15p nema-6-20p nema-6-30p nema-6-50p nema-l5-15p nema-l5-20p nema-l5-30p nema-l5-50p nema-l6-20p nema-l6-30p nema-l6-50p cs6361c cs6365c cs8165c cs8265c cs8365c cs8465c ita-e ita-f ita-ef ita-g ita-h ita-i ita-j ita-k ita-l ita-m ita-n ita-o] Type string `json:"type,omitempty"` } @@ -215,7 +217,7 @@ func (m *WritablePowerPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port_template.go index f6230ed57..cdf2b5e4d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_power_port_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePowerPortTemplate writable power port template +// // swagger:model WritablePowerPortTemplate type WritablePowerPortTemplate struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_prefix.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_prefix.go index 1d2cc94fd..d4097cedf 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_prefix.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_prefix.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritablePrefix writable prefix +// // swagger:model WritablePrefix type WritablePrefix struct { @@ -44,12 +44,12 @@ type WritablePrefix struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Family // Read Only: true - Family int64 `json:"family,omitempty"` + Family string `json:"family,omitempty"` // ID // Read Only: true @@ -151,7 +151,7 @@ func (m *WritablePrefix) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack.go index 6ac5de583..9bd11b4ae 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableRack writable rack +// // swagger:model WritableRack type WritableRack struct { @@ -66,10 +66,14 @@ type WritableRack struct { DisplayName string `json:"display_name,omitempty"` // Facility ID + // + // Locally-assigned identifier // Max Length: 50 FacilityID *string `json:"facility_id,omitempty"` // Group + // + // Assigned group Group *int64 `json:"group,omitempty"` // ID @@ -88,6 +92,8 @@ type WritableRack struct { Name *string `json:"name"` // Outer depth + // + // Outer dimension of rack (depth) // Maximum: 32767 // Minimum: 0 OuterDepth *int64 `json:"outer_depth,omitempty"` @@ -97,6 +103,8 @@ type WritableRack struct { OuterUnit string `json:"outer_unit,omitempty"` // Outer width + // + // Outer dimension of rack (width) // Maximum: 32767 // Minimum: 0 OuterWidth *int64 `json:"outer_width,omitempty"` @@ -106,6 +114,8 @@ type WritableRack struct { PowerfeedCount int64 `json:"powerfeed_count,omitempty"` // Role + // + // Functional role Role *int64 `json:"role,omitempty"` // Serial number @@ -131,6 +141,8 @@ type WritableRack struct { Type string `json:"type,omitempty"` // Height (U) + // + // Height in rack units // Maximum: 100 // Minimum: 1 UHeight int64 `json:"u_height,omitempty"` @@ -138,7 +150,7 @@ type WritableRack struct { // Width // // Rail-to-rail width - // Enum: [19 23] + // Enum: [10 19 21 23] Width int64 `json:"width,omitempty"` } @@ -522,7 +534,7 @@ var writableRackTypeWidthPropEnum []interface{} func init() { var res []int64 - if err := json.Unmarshal([]byte(`[19,23]`), &res); err != nil { + if err := json.Unmarshal([]byte(`[10,19,21,23]`), &res); err != nil { panic(err) } for _, v := range res { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_group.go index c68faf82a..c1cf5e374 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_group.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableRackGroup writable rack group +// // swagger:model WritableRackGroup type WritableRackGroup struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -42,6 +46,9 @@ type WritableRackGroup struct { // Min Length: 1 Name *string `json:"name"` + // Parent + Parent *int64 `json:"parent,omitempty"` + // Rack count // Read Only: true RackCount int64 `json:"rack_count,omitempty"` @@ -62,6 +69,10 @@ type WritableRackGroup struct { func (m *WritableRackGroup) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -80,6 +91,19 @@ func (m *WritableRackGroup) Validate(formats strfmt.Registry) error { return nil } +func (m *WritableRackGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *WritableRackGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_reservation.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_reservation.go index 1485ad697..74cda6175 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_reservation.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rack_reservation.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableRackReservation writable rack reservation +// // swagger:model WritableRackReservation type WritableRackReservation struct { @@ -41,7 +41,7 @@ type WritableRackReservation struct { // Description // Required: true - // Max Length: 100 + // Max Length: 200 // Min Length: 1 Description *string `json:"description"` @@ -118,7 +118,7 @@ func (m *WritableRackReservation) validateDescription(formats strfmt.Registry) e return err } - if err := validate.MaxLength("description", "body", string(*m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(*m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port.go index f8e21790c..cf651dbf0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableRearPort writable rear port +// // swagger:model WritableRearPort type WritableRearPort struct { @@ -39,7 +39,7 @@ type WritableRearPort struct { Cable *NestedCable `json:"cable,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -66,7 +66,7 @@ type WritableRearPort struct { // Type // Required: true - // Enum: [8p8c 110-punch bnc fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Type *string `json:"type"` } @@ -132,7 +132,7 @@ func (m *WritableRearPort) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -203,7 +203,7 @@ var writableRearPortTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -222,6 +222,9 @@ const ( // WritableRearPortTypeBnc captures enum value "bnc" WritableRearPortTypeBnc string = "bnc" + // WritableRearPortTypeMrj21 captures enum value "mrj21" + WritableRearPortTypeMrj21 string = "mrj21" + // WritableRearPortTypeFc captures enum value "fc" WritableRearPortTypeFc string = "fc" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port_template.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port_template.go index a7d84b4a5..a2ae6d5f0 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port_template.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_rear_port_template.go @@ -23,14 +23,14 @@ package models import ( "encoding/json" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableRearPortTemplate writable rear port template +// // swagger:model WritableRearPortTemplate type WritableRearPortTemplate struct { @@ -55,7 +55,7 @@ type WritableRearPortTemplate struct { // Type // Required: true - // Enum: [8p8c 110-punch bnc fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] + // Enum: [8p8c 110-punch bnc mrj21 fc lc lc-apc lsh lsh-apc mpo mtrj sc sc-apc st] Type *string `json:"type"` } @@ -132,7 +132,7 @@ var writableRearPortTemplateTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["8p8c","110-punch","bnc","mrj21","fc","lc","lc-apc","lsh","lsh-apc","mpo","mtrj","sc","sc-apc","st"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -151,6 +151,9 @@ const ( // WritableRearPortTemplateTypeBnc captures enum value "bnc" WritableRearPortTemplateTypeBnc string = "bnc" + // WritableRearPortTemplateTypeMrj21 captures enum value "mrj21" + WritableRearPortTemplateTypeMrj21 string = "mrj21" + // WritableRearPortTemplateTypeFc captures enum value "fc" WritableRearPortTemplateTypeFc string = "fc" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_region.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_region.go index 2992002c8..f049b909b 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_region.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_region.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableRegion writable region +// // swagger:model WritableRegion type WritableRegion struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -61,6 +65,10 @@ type WritableRegion struct { func (m *WritableRegion) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -75,6 +83,19 @@ func (m *WritableRegion) Validate(formats strfmt.Registry) error { return nil } +func (m *WritableRegion) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *WritableRegion) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_secret.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_secret.go index 8dcdf8974..a05bbb274 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_secret.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_secret.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableSecret writable secret +// // swagger:model WritableSecret type WritableSecret struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_service.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_service.go index d4a25193d..48fc2a1ff 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_service.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_service.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableService writable service +// // swagger:model WritableService type WritableService struct { @@ -44,7 +44,7 @@ type WritableService struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device @@ -148,7 +148,7 @@ func (m *WritableService) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_site.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_site.go index b688a621b..2f32a411c 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_site.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_site.go @@ -24,18 +24,20 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableSite writable site +// // swagger:model WritableSite type WritableSite struct { // ASN + // + // 32-bit autonomous system number // Maximum: 4.294967295e+09 // Minimum: 1 Asn *int64 `json:"asn,omitempty"` @@ -69,7 +71,7 @@ type WritableSite struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device count @@ -77,6 +79,8 @@ type WritableSite struct { DeviceCount int64 `json:"device_count,omitempty"` // Facility + // + // Local facility ID or description // Max Length: 50 Facility string `json:"facility,omitempty"` @@ -90,9 +94,13 @@ type WritableSite struct { LastUpdated strfmt.DateTime `json:"last_updated,omitempty"` // Latitude + // + // GPS coordinate (latitude) Latitude *string `json:"latitude,omitempty"` // Longitude + // + // GPS coordinate (longitude) Longitude *string `json:"longitude,omitempty"` // Name @@ -294,7 +302,7 @@ func (m *WritableSite) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant.go index 72b96828c..7cba98231 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableTenant writable tenant +// // swagger:model WritableTenant type WritableTenant struct { @@ -54,9 +54,7 @@ type WritableTenant struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // - // Long-form name (optional) - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Device count @@ -173,7 +171,7 @@ func (m *WritableTenant) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant_group.go new file mode 100644 index 000000000..71c9abf76 --- /dev/null +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_tenant_group.go @@ -0,0 +1,153 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// Copyright 2020 The go-netbox Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// WritableTenantGroup writable tenant group +// +// swagger:model WritableTenantGroup +type WritableTenantGroup struct { + + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + + // ID + // Read Only: true + ID int64 `json:"id,omitempty"` + + // Name + // Required: true + // Max Length: 50 + // Min Length: 1 + Name *string `json:"name"` + + // Parent + Parent *int64 `json:"parent,omitempty"` + + // Slug + // Required: true + // Max Length: 50 + // Min Length: 1 + // Pattern: ^[-a-zA-Z0-9_]+$ + Slug *string `json:"slug"` + + // Tenant count + // Read Only: true + TenantCount int64 `json:"tenant_count,omitempty"` +} + +// Validate validates this writable tenant group +func (m *WritableTenantGroup) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSlug(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *WritableTenantGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + +func (m *WritableTenantGroup) validateName(formats strfmt.Registry) error { + + if err := validate.Required("name", "body", m.Name); err != nil { + return err + } + + if err := validate.MinLength("name", "body", string(*m.Name), 1); err != nil { + return err + } + + if err := validate.MaxLength("name", "body", string(*m.Name), 50); err != nil { + return err + } + + return nil +} + +func (m *WritableTenantGroup) validateSlug(formats strfmt.Registry) error { + + if err := validate.Required("slug", "body", m.Slug); err != nil { + return err + } + + if err := validate.MinLength("slug", "body", string(*m.Slug), 1); err != nil { + return err + } + + if err := validate.MaxLength("slug", "body", string(*m.Slug), 50); err != nil { + return err + } + + if err := validate.Pattern("slug", "body", string(*m.Slug), `^[-a-zA-Z0-9_]+$`); err != nil { + return err + } + + return nil +} + +// MarshalBinary interface implementation +func (m *WritableTenantGroup) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *WritableTenantGroup) UnmarshalBinary(b []byte) error { + var res WritableTenantGroup + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n.go index ccd7bfd9a..51e85dd01 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableVLAN writable v l a n +// // swagger:model WritableVLAN type WritableVLAN struct { @@ -44,7 +44,7 @@ type WritableVLAN struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Display name @@ -153,7 +153,7 @@ func (m *WritableVLAN) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n_group.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n_group.go index 967538dcd..b7ac43ea8 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n_group.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_l_a_n_group.go @@ -21,17 +21,21 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableVLANGroup writable v l a n group +// // swagger:model WritableVLANGroup type WritableVLANGroup struct { + // Description + // Max Length: 200 + Description string `json:"description,omitempty"` + // ID // Read Only: true ID int64 `json:"id,omitempty"` @@ -61,6 +65,10 @@ type WritableVLANGroup struct { func (m *WritableVLANGroup) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + if err := m.validateName(formats); err != nil { res = append(res, err) } @@ -75,6 +83,19 @@ func (m *WritableVLANGroup) Validate(formats strfmt.Registry) error { return nil } +func (m *WritableVLANGroup) validateDescription(formats strfmt.Registry) error { + + if swag.IsZero(m.Description) { // not required + return nil + } + + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { + return err + } + + return nil +} + func (m *WritableVLANGroup) validateName(formats strfmt.Registry) error { if err := validate.Required("name", "body", m.Name); err != nil { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_r_f.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_r_f.go index 47de2494f..ad8bc562d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_r_f.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_v_r_f.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableVRF writable v r f +// // swagger:model WritableVRF type WritableVRF struct { @@ -43,7 +43,7 @@ type WritableVRF struct { CustomFields interface{} `json:"custom_fields,omitempty"` // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Display name @@ -79,6 +79,8 @@ type WritableVRF struct { PrefixCount int64 `json:"prefix_count,omitempty"` // Route distinguisher + // + // Unique route distinguisher (as defined in RFC 4364) // Max Length: 21 Rd *string `json:"rd,omitempty"` @@ -142,7 +144,7 @@ func (m *WritableVRF) validateDescription(formats strfmt.Registry) error { return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_chassis.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_chassis.go index c232c5bcf..6918d206d 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_chassis.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_chassis.go @@ -23,14 +23,14 @@ package models import ( "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableVirtualChassis writable virtual chassis +// // swagger:model WritableVirtualChassis type WritableVirtualChassis struct { diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_interface.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_interface.go index 97ba22fc2..2075c9d46 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_interface.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_interface.go @@ -24,19 +24,19 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableVirtualMachineInterface writable virtual machine interface +// // swagger:model WritableVirtualMachineInterface type WritableVirtualMachineInterface struct { // Description - // Max Length: 100 + // Max Length: 200 Description string `json:"description,omitempty"` // Enabled @@ -73,7 +73,7 @@ type WritableVirtualMachineInterface struct { // Type // Required: true - // Enum: [virtual 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 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 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 128gfc-sfp28 inifiband-sdr inifiband-ddr inifiband-qdr inifiband-fdr10 inifiband-fdr inifiband-edr inifiband-hdr inifiband-ndr inifiband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] + // Enum: [virtual 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 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 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 128gfc-sfp28 infiniband-sdr infiniband-ddr infiniband-qdr infiniband-fdr10 infiniband-fdr infiniband-edr infiniband-hdr infiniband-ndr infiniband-xdr t1 e1 t3 e3 cisco-stackwise cisco-stackwise-plus cisco-flexstack cisco-flexstack-plus juniper-vcp extreme-summitstack extreme-summitstack-128 extreme-summitstack-256 extreme-summitstack-512 other] Type *string `json:"type"` // Untagged VLAN @@ -127,7 +127,7 @@ func (m *WritableVirtualMachineInterface) validateDescription(formats strfmt.Reg return nil } - if err := validate.MaxLength("description", "body", string(m.Description), 100); err != nil { + if err := validate.MaxLength("description", "body", string(m.Description), 200); err != nil { return err } @@ -248,7 +248,7 @@ var writableVirtualMachineInterfaceTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","inifiband-sdr","inifiband-ddr","inifiband-qdr","inifiband-fdr10","inifiband-fdr","inifiband-edr","inifiband-hdr","inifiband-ndr","inifiband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["virtual","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","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","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","128gfc-sfp28","infiniband-sdr","infiniband-ddr","infiniband-qdr","infiniband-fdr10","infiniband-fdr","infiniband-edr","infiniband-hdr","infiniband-ndr","infiniband-xdr","t1","e1","t3","e3","cisco-stackwise","cisco-stackwise-plus","cisco-flexstack","cisco-flexstack-plus","juniper-vcp","extreme-summitstack","extreme-summitstack-128","extreme-summitstack-256","extreme-summitstack-512","other"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -405,32 +405,32 @@ const ( // WritableVirtualMachineInterfaceTypeNr128gfcSfp28 captures enum value "128gfc-sfp28" WritableVirtualMachineInterfaceTypeNr128gfcSfp28 string = "128gfc-sfp28" - // WritableVirtualMachineInterfaceTypeInifibandSdr captures enum value "inifiband-sdr" - WritableVirtualMachineInterfaceTypeInifibandSdr string = "inifiband-sdr" + // WritableVirtualMachineInterfaceTypeInfinibandSdr captures enum value "infiniband-sdr" + WritableVirtualMachineInterfaceTypeInfinibandSdr string = "infiniband-sdr" - // WritableVirtualMachineInterfaceTypeInifibandDdr captures enum value "inifiband-ddr" - WritableVirtualMachineInterfaceTypeInifibandDdr string = "inifiband-ddr" + // WritableVirtualMachineInterfaceTypeInfinibandDdr captures enum value "infiniband-ddr" + WritableVirtualMachineInterfaceTypeInfinibandDdr string = "infiniband-ddr" - // WritableVirtualMachineInterfaceTypeInifibandQdr captures enum value "inifiband-qdr" - WritableVirtualMachineInterfaceTypeInifibandQdr string = "inifiband-qdr" + // WritableVirtualMachineInterfaceTypeInfinibandQdr captures enum value "infiniband-qdr" + WritableVirtualMachineInterfaceTypeInfinibandQdr string = "infiniband-qdr" - // WritableVirtualMachineInterfaceTypeInifibandFdr10 captures enum value "inifiband-fdr10" - WritableVirtualMachineInterfaceTypeInifibandFdr10 string = "inifiband-fdr10" + // WritableVirtualMachineInterfaceTypeInfinibandFdr10 captures enum value "infiniband-fdr10" + WritableVirtualMachineInterfaceTypeInfinibandFdr10 string = "infiniband-fdr10" - // WritableVirtualMachineInterfaceTypeInifibandFdr captures enum value "inifiband-fdr" - WritableVirtualMachineInterfaceTypeInifibandFdr string = "inifiband-fdr" + // WritableVirtualMachineInterfaceTypeInfinibandFdr captures enum value "infiniband-fdr" + WritableVirtualMachineInterfaceTypeInfinibandFdr string = "infiniband-fdr" - // WritableVirtualMachineInterfaceTypeInifibandEdr captures enum value "inifiband-edr" - WritableVirtualMachineInterfaceTypeInifibandEdr string = "inifiband-edr" + // WritableVirtualMachineInterfaceTypeInfinibandEdr captures enum value "infiniband-edr" + WritableVirtualMachineInterfaceTypeInfinibandEdr string = "infiniband-edr" - // WritableVirtualMachineInterfaceTypeInifibandHdr captures enum value "inifiband-hdr" - WritableVirtualMachineInterfaceTypeInifibandHdr string = "inifiband-hdr" + // WritableVirtualMachineInterfaceTypeInfinibandHdr captures enum value "infiniband-hdr" + WritableVirtualMachineInterfaceTypeInfinibandHdr string = "infiniband-hdr" - // WritableVirtualMachineInterfaceTypeInifibandNdr captures enum value "inifiband-ndr" - WritableVirtualMachineInterfaceTypeInifibandNdr string = "inifiband-ndr" + // WritableVirtualMachineInterfaceTypeInfinibandNdr captures enum value "infiniband-ndr" + WritableVirtualMachineInterfaceTypeInfinibandNdr string = "infiniband-ndr" - // WritableVirtualMachineInterfaceTypeInifibandXdr captures enum value "inifiband-xdr" - WritableVirtualMachineInterfaceTypeInifibandXdr string = "inifiband-xdr" + // WritableVirtualMachineInterfaceTypeInfinibandXdr captures enum value "infiniband-xdr" + WritableVirtualMachineInterfaceTypeInfinibandXdr string = "infiniband-xdr" // WritableVirtualMachineInterfaceTypeT1 captures enum value "t1" WritableVirtualMachineInterfaceTypeT1 string = "t1" diff --git a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go index be88b566e..f6a30921a 100644 --- a/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go +++ b/vendor/github.com/netbox-community/go-netbox/netbox/models/writable_virtual_machine_with_config_context.go @@ -24,14 +24,14 @@ import ( "encoding/json" "strconv" - strfmt "github.com/go-openapi/strfmt" - "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // WritableVirtualMachineWithConfigContext writable virtual machine with config context +// // swagger:model WritableVirtualMachineWithConfigContext type WritableVirtualMachineWithConfigContext struct { diff --git a/vendor/modules.txt b/vendor/modules.txt index aa0e6f9a8..87230d144 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -211,7 +211,7 @@ github.com/mitchellh/go-wordwrap github.com/mitchellh/mapstructure # github.com/mitchellh/reflectwalk v1.0.1 github.com/mitchellh/reflectwalk -# github.com/netbox-community/go-netbox v0.0.0-20200507032154-fbb6900a912a +# github.com/netbox-community/go-netbox v0.0.0-20200527232624-eea85738db88 ## explicit github.com/netbox-community/go-netbox/netbox/client github.com/netbox-community/go-netbox/netbox/client/circuits