github.com/digitalocean/go-netbox@v0.0.2/netbox/client/dcim/dcim_client.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 // Copyright 2020 The go-netbox Authors. 4 // 5 // Licensed under the Apache License, Version 2.0 (the "License"); 6 // you may not use this file except in compliance with the License. 7 // You may obtain a copy of the License at 8 // 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, software 12 // distributed under the License is distributed on an "AS IS" BASIS, 13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 // See the License for the specific language governing permissions and 15 // limitations under the License. 16 // 17 18 package dcim 19 20 // This file was generated by the swagger tool. 21 // Editing this file might prove futile when you re-run the swagger generate command 22 23 import ( 24 "fmt" 25 26 "github.com/go-openapi/runtime" 27 "github.com/go-openapi/strfmt" 28 ) 29 30 // New creates a new dcim API client. 31 func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { 32 return &Client{transport: transport, formats: formats} 33 } 34 35 /* 36 Client for dcim API 37 */ 38 type Client struct { 39 transport runtime.ClientTransport 40 formats strfmt.Registry 41 } 42 43 // ClientOption is the option for Client methods 44 type ClientOption func(*runtime.ClientOperation) 45 46 // ClientService is the interface for Client methods 47 type ClientService interface { 48 DcimCablesBulkDelete(params *DcimCablesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesBulkDeleteNoContent, error) 49 50 DcimCablesBulkPartialUpdate(params *DcimCablesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesBulkPartialUpdateOK, error) 51 52 DcimCablesBulkUpdate(params *DcimCablesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesBulkUpdateOK, error) 53 54 DcimCablesCreate(params *DcimCablesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesCreateCreated, error) 55 56 DcimCablesDelete(params *DcimCablesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesDeleteNoContent, error) 57 58 DcimCablesList(params *DcimCablesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesListOK, error) 59 60 DcimCablesPartialUpdate(params *DcimCablesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesPartialUpdateOK, error) 61 62 DcimCablesRead(params *DcimCablesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesReadOK, error) 63 64 DcimCablesUpdate(params *DcimCablesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesUpdateOK, error) 65 66 DcimConnectedDeviceList(params *DcimConnectedDeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConnectedDeviceListOK, error) 67 68 DcimConsoleConnectionsList(params *DcimConsoleConnectionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleConnectionsListOK, error) 69 70 DcimConsolePortTemplatesBulkDelete(params *DcimConsolePortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesBulkDeleteNoContent, error) 71 72 DcimConsolePortTemplatesBulkPartialUpdate(params *DcimConsolePortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesBulkPartialUpdateOK, error) 73 74 DcimConsolePortTemplatesBulkUpdate(params *DcimConsolePortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesBulkUpdateOK, error) 75 76 DcimConsolePortTemplatesCreate(params *DcimConsolePortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesCreateCreated, error) 77 78 DcimConsolePortTemplatesDelete(params *DcimConsolePortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesDeleteNoContent, error) 79 80 DcimConsolePortTemplatesList(params *DcimConsolePortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesListOK, error) 81 82 DcimConsolePortTemplatesPartialUpdate(params *DcimConsolePortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesPartialUpdateOK, error) 83 84 DcimConsolePortTemplatesRead(params *DcimConsolePortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesReadOK, error) 85 86 DcimConsolePortTemplatesUpdate(params *DcimConsolePortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesUpdateOK, error) 87 88 DcimConsolePortsBulkDelete(params *DcimConsolePortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsBulkDeleteNoContent, error) 89 90 DcimConsolePortsBulkPartialUpdate(params *DcimConsolePortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsBulkPartialUpdateOK, error) 91 92 DcimConsolePortsBulkUpdate(params *DcimConsolePortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsBulkUpdateOK, error) 93 94 DcimConsolePortsCreate(params *DcimConsolePortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsCreateCreated, error) 95 96 DcimConsolePortsDelete(params *DcimConsolePortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsDeleteNoContent, error) 97 98 DcimConsolePortsList(params *DcimConsolePortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsListOK, error) 99 100 DcimConsolePortsPartialUpdate(params *DcimConsolePortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsPartialUpdateOK, error) 101 102 DcimConsolePortsRead(params *DcimConsolePortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsReadOK, error) 103 104 DcimConsolePortsTrace(params *DcimConsolePortsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsTraceOK, error) 105 106 DcimConsolePortsUpdate(params *DcimConsolePortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsUpdateOK, error) 107 108 DcimConsoleServerPortTemplatesBulkDelete(params *DcimConsoleServerPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesBulkDeleteNoContent, error) 109 110 DcimConsoleServerPortTemplatesBulkPartialUpdate(params *DcimConsoleServerPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesBulkPartialUpdateOK, error) 111 112 DcimConsoleServerPortTemplatesBulkUpdate(params *DcimConsoleServerPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesBulkUpdateOK, error) 113 114 DcimConsoleServerPortTemplatesCreate(params *DcimConsoleServerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesCreateCreated, error) 115 116 DcimConsoleServerPortTemplatesDelete(params *DcimConsoleServerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesDeleteNoContent, error) 117 118 DcimConsoleServerPortTemplatesList(params *DcimConsoleServerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesListOK, error) 119 120 DcimConsoleServerPortTemplatesPartialUpdate(params *DcimConsoleServerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesPartialUpdateOK, error) 121 122 DcimConsoleServerPortTemplatesRead(params *DcimConsoleServerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesReadOK, error) 123 124 DcimConsoleServerPortTemplatesUpdate(params *DcimConsoleServerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesUpdateOK, error) 125 126 DcimConsoleServerPortsBulkDelete(params *DcimConsoleServerPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsBulkDeleteNoContent, error) 127 128 DcimConsoleServerPortsBulkPartialUpdate(params *DcimConsoleServerPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsBulkPartialUpdateOK, error) 129 130 DcimConsoleServerPortsBulkUpdate(params *DcimConsoleServerPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsBulkUpdateOK, error) 131 132 DcimConsoleServerPortsCreate(params *DcimConsoleServerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsCreateCreated, error) 133 134 DcimConsoleServerPortsDelete(params *DcimConsoleServerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsDeleteNoContent, error) 135 136 DcimConsoleServerPortsList(params *DcimConsoleServerPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsListOK, error) 137 138 DcimConsoleServerPortsPartialUpdate(params *DcimConsoleServerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsPartialUpdateOK, error) 139 140 DcimConsoleServerPortsRead(params *DcimConsoleServerPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsReadOK, error) 141 142 DcimConsoleServerPortsTrace(params *DcimConsoleServerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsTraceOK, error) 143 144 DcimConsoleServerPortsUpdate(params *DcimConsoleServerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsUpdateOK, error) 145 146 DcimDeviceBayTemplatesBulkDelete(params *DcimDeviceBayTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesBulkDeleteNoContent, error) 147 148 DcimDeviceBayTemplatesBulkPartialUpdate(params *DcimDeviceBayTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesBulkPartialUpdateOK, error) 149 150 DcimDeviceBayTemplatesBulkUpdate(params *DcimDeviceBayTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesBulkUpdateOK, error) 151 152 DcimDeviceBayTemplatesCreate(params *DcimDeviceBayTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesCreateCreated, error) 153 154 DcimDeviceBayTemplatesDelete(params *DcimDeviceBayTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesDeleteNoContent, error) 155 156 DcimDeviceBayTemplatesList(params *DcimDeviceBayTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesListOK, error) 157 158 DcimDeviceBayTemplatesPartialUpdate(params *DcimDeviceBayTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesPartialUpdateOK, error) 159 160 DcimDeviceBayTemplatesRead(params *DcimDeviceBayTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesReadOK, error) 161 162 DcimDeviceBayTemplatesUpdate(params *DcimDeviceBayTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesUpdateOK, error) 163 164 DcimDeviceBaysBulkDelete(params *DcimDeviceBaysBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysBulkDeleteNoContent, error) 165 166 DcimDeviceBaysBulkPartialUpdate(params *DcimDeviceBaysBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysBulkPartialUpdateOK, error) 167 168 DcimDeviceBaysBulkUpdate(params *DcimDeviceBaysBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysBulkUpdateOK, error) 169 170 DcimDeviceBaysCreate(params *DcimDeviceBaysCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysCreateCreated, error) 171 172 DcimDeviceBaysDelete(params *DcimDeviceBaysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysDeleteNoContent, error) 173 174 DcimDeviceBaysList(params *DcimDeviceBaysListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysListOK, error) 175 176 DcimDeviceBaysPartialUpdate(params *DcimDeviceBaysPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysPartialUpdateOK, error) 177 178 DcimDeviceBaysRead(params *DcimDeviceBaysReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysReadOK, error) 179 180 DcimDeviceBaysUpdate(params *DcimDeviceBaysUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysUpdateOK, error) 181 182 DcimDeviceRolesBulkDelete(params *DcimDeviceRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesBulkDeleteNoContent, error) 183 184 DcimDeviceRolesBulkPartialUpdate(params *DcimDeviceRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesBulkPartialUpdateOK, error) 185 186 DcimDeviceRolesBulkUpdate(params *DcimDeviceRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesBulkUpdateOK, error) 187 188 DcimDeviceRolesCreate(params *DcimDeviceRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesCreateCreated, error) 189 190 DcimDeviceRolesDelete(params *DcimDeviceRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesDeleteNoContent, error) 191 192 DcimDeviceRolesList(params *DcimDeviceRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesListOK, error) 193 194 DcimDeviceRolesPartialUpdate(params *DcimDeviceRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesPartialUpdateOK, error) 195 196 DcimDeviceRolesRead(params *DcimDeviceRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesReadOK, error) 197 198 DcimDeviceRolesUpdate(params *DcimDeviceRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesUpdateOK, error) 199 200 DcimDeviceTypesBulkDelete(params *DcimDeviceTypesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesBulkDeleteNoContent, error) 201 202 DcimDeviceTypesBulkPartialUpdate(params *DcimDeviceTypesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesBulkPartialUpdateOK, error) 203 204 DcimDeviceTypesBulkUpdate(params *DcimDeviceTypesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesBulkUpdateOK, error) 205 206 DcimDeviceTypesCreate(params *DcimDeviceTypesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesCreateCreated, error) 207 208 DcimDeviceTypesDelete(params *DcimDeviceTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesDeleteNoContent, error) 209 210 DcimDeviceTypesList(params *DcimDeviceTypesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesListOK, error) 211 212 DcimDeviceTypesPartialUpdate(params *DcimDeviceTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesPartialUpdateOK, error) 213 214 DcimDeviceTypesRead(params *DcimDeviceTypesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesReadOK, error) 215 216 DcimDeviceTypesUpdate(params *DcimDeviceTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesUpdateOK, error) 217 218 DcimDevicesBulkDelete(params *DcimDevicesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesBulkDeleteNoContent, error) 219 220 DcimDevicesBulkPartialUpdate(params *DcimDevicesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesBulkPartialUpdateOK, error) 221 222 DcimDevicesBulkUpdate(params *DcimDevicesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesBulkUpdateOK, error) 223 224 DcimDevicesCreate(params *DcimDevicesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesCreateCreated, error) 225 226 DcimDevicesDelete(params *DcimDevicesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesDeleteNoContent, error) 227 228 DcimDevicesList(params *DcimDevicesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesListOK, error) 229 230 DcimDevicesNapalm(params *DcimDevicesNapalmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesNapalmOK, error) 231 232 DcimDevicesPartialUpdate(params *DcimDevicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesPartialUpdateOK, error) 233 234 DcimDevicesRead(params *DcimDevicesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesReadOK, error) 235 236 DcimDevicesUpdate(params *DcimDevicesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesUpdateOK, error) 237 238 DcimFrontPortTemplatesBulkDelete(params *DcimFrontPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesBulkDeleteNoContent, error) 239 240 DcimFrontPortTemplatesBulkPartialUpdate(params *DcimFrontPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesBulkPartialUpdateOK, error) 241 242 DcimFrontPortTemplatesBulkUpdate(params *DcimFrontPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesBulkUpdateOK, error) 243 244 DcimFrontPortTemplatesCreate(params *DcimFrontPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesCreateCreated, error) 245 246 DcimFrontPortTemplatesDelete(params *DcimFrontPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesDeleteNoContent, error) 247 248 DcimFrontPortTemplatesList(params *DcimFrontPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesListOK, error) 249 250 DcimFrontPortTemplatesPartialUpdate(params *DcimFrontPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesPartialUpdateOK, error) 251 252 DcimFrontPortTemplatesRead(params *DcimFrontPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesReadOK, error) 253 254 DcimFrontPortTemplatesUpdate(params *DcimFrontPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesUpdateOK, error) 255 256 DcimFrontPortsBulkDelete(params *DcimFrontPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsBulkDeleteNoContent, error) 257 258 DcimFrontPortsBulkPartialUpdate(params *DcimFrontPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsBulkPartialUpdateOK, error) 259 260 DcimFrontPortsBulkUpdate(params *DcimFrontPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsBulkUpdateOK, error) 261 262 DcimFrontPortsCreate(params *DcimFrontPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsCreateCreated, error) 263 264 DcimFrontPortsDelete(params *DcimFrontPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsDeleteNoContent, error) 265 266 DcimFrontPortsList(params *DcimFrontPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsListOK, error) 267 268 DcimFrontPortsPartialUpdate(params *DcimFrontPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsPartialUpdateOK, error) 269 270 DcimFrontPortsPaths(params *DcimFrontPortsPathsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsPathsOK, error) 271 272 DcimFrontPortsRead(params *DcimFrontPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsReadOK, error) 273 274 DcimFrontPortsUpdate(params *DcimFrontPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsUpdateOK, error) 275 276 DcimInterfaceConnectionsList(params *DcimInterfaceConnectionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceConnectionsListOK, error) 277 278 DcimInterfaceTemplatesBulkDelete(params *DcimInterfaceTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesBulkDeleteNoContent, error) 279 280 DcimInterfaceTemplatesBulkPartialUpdate(params *DcimInterfaceTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesBulkPartialUpdateOK, error) 281 282 DcimInterfaceTemplatesBulkUpdate(params *DcimInterfaceTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesBulkUpdateOK, error) 283 284 DcimInterfaceTemplatesCreate(params *DcimInterfaceTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesCreateCreated, error) 285 286 DcimInterfaceTemplatesDelete(params *DcimInterfaceTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesDeleteNoContent, error) 287 288 DcimInterfaceTemplatesList(params *DcimInterfaceTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesListOK, error) 289 290 DcimInterfaceTemplatesPartialUpdate(params *DcimInterfaceTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesPartialUpdateOK, error) 291 292 DcimInterfaceTemplatesRead(params *DcimInterfaceTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesReadOK, error) 293 294 DcimInterfaceTemplatesUpdate(params *DcimInterfaceTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesUpdateOK, error) 295 296 DcimInterfacesBulkDelete(params *DcimInterfacesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesBulkDeleteNoContent, error) 297 298 DcimInterfacesBulkPartialUpdate(params *DcimInterfacesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesBulkPartialUpdateOK, error) 299 300 DcimInterfacesBulkUpdate(params *DcimInterfacesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesBulkUpdateOK, error) 301 302 DcimInterfacesCreate(params *DcimInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesCreateCreated, error) 303 304 DcimInterfacesDelete(params *DcimInterfacesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesDeleteNoContent, error) 305 306 DcimInterfacesList(params *DcimInterfacesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesListOK, error) 307 308 DcimInterfacesPartialUpdate(params *DcimInterfacesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesPartialUpdateOK, error) 309 310 DcimInterfacesRead(params *DcimInterfacesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesReadOK, error) 311 312 DcimInterfacesTrace(params *DcimInterfacesTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesTraceOK, error) 313 314 DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesUpdateOK, error) 315 316 DcimInventoryItemsBulkDelete(params *DcimInventoryItemsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkDeleteNoContent, error) 317 318 DcimInventoryItemsBulkPartialUpdate(params *DcimInventoryItemsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkPartialUpdateOK, error) 319 320 DcimInventoryItemsBulkUpdate(params *DcimInventoryItemsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkUpdateOK, error) 321 322 DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsCreateCreated, error) 323 324 DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsDeleteNoContent, error) 325 326 DcimInventoryItemsList(params *DcimInventoryItemsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsListOK, error) 327 328 DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsPartialUpdateOK, error) 329 330 DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsReadOK, error) 331 332 DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsUpdateOK, error) 333 334 DcimLocationsBulkDelete(params *DcimLocationsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkDeleteNoContent, error) 335 336 DcimLocationsBulkPartialUpdate(params *DcimLocationsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkPartialUpdateOK, error) 337 338 DcimLocationsBulkUpdate(params *DcimLocationsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkUpdateOK, error) 339 340 DcimLocationsCreate(params *DcimLocationsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsCreateCreated, error) 341 342 DcimLocationsDelete(params *DcimLocationsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsDeleteNoContent, error) 343 344 DcimLocationsList(params *DcimLocationsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsListOK, error) 345 346 DcimLocationsPartialUpdate(params *DcimLocationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsPartialUpdateOK, error) 347 348 DcimLocationsRead(params *DcimLocationsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsReadOK, error) 349 350 DcimLocationsUpdate(params *DcimLocationsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsUpdateOK, error) 351 352 DcimManufacturersBulkDelete(params *DcimManufacturersBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkDeleteNoContent, error) 353 354 DcimManufacturersBulkPartialUpdate(params *DcimManufacturersBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkPartialUpdateOK, error) 355 356 DcimManufacturersBulkUpdate(params *DcimManufacturersBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkUpdateOK, error) 357 358 DcimManufacturersCreate(params *DcimManufacturersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersCreateCreated, error) 359 360 DcimManufacturersDelete(params *DcimManufacturersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersDeleteNoContent, error) 361 362 DcimManufacturersList(params *DcimManufacturersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersListOK, error) 363 364 DcimManufacturersPartialUpdate(params *DcimManufacturersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersPartialUpdateOK, error) 365 366 DcimManufacturersRead(params *DcimManufacturersReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersReadOK, error) 367 368 DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersUpdateOK, error) 369 370 DcimPlatformsBulkDelete(params *DcimPlatformsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkDeleteNoContent, error) 371 372 DcimPlatformsBulkPartialUpdate(params *DcimPlatformsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkPartialUpdateOK, error) 373 374 DcimPlatformsBulkUpdate(params *DcimPlatformsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkUpdateOK, error) 375 376 DcimPlatformsCreate(params *DcimPlatformsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsCreateCreated, error) 377 378 DcimPlatformsDelete(params *DcimPlatformsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsDeleteNoContent, error) 379 380 DcimPlatformsList(params *DcimPlatformsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsListOK, error) 381 382 DcimPlatformsPartialUpdate(params *DcimPlatformsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsPartialUpdateOK, error) 383 384 DcimPlatformsRead(params *DcimPlatformsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsReadOK, error) 385 386 DcimPlatformsUpdate(params *DcimPlatformsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsUpdateOK, error) 387 388 DcimPowerConnectionsList(params *DcimPowerConnectionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerConnectionsListOK, error) 389 390 DcimPowerFeedsBulkDelete(params *DcimPowerFeedsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsBulkDeleteNoContent, error) 391 392 DcimPowerFeedsBulkPartialUpdate(params *DcimPowerFeedsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsBulkPartialUpdateOK, error) 393 394 DcimPowerFeedsBulkUpdate(params *DcimPowerFeedsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsBulkUpdateOK, error) 395 396 DcimPowerFeedsCreate(params *DcimPowerFeedsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsCreateCreated, error) 397 398 DcimPowerFeedsDelete(params *DcimPowerFeedsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsDeleteNoContent, error) 399 400 DcimPowerFeedsList(params *DcimPowerFeedsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsListOK, error) 401 402 DcimPowerFeedsPartialUpdate(params *DcimPowerFeedsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsPartialUpdateOK, error) 403 404 DcimPowerFeedsRead(params *DcimPowerFeedsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsReadOK, error) 405 406 DcimPowerFeedsTrace(params *DcimPowerFeedsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsTraceOK, error) 407 408 DcimPowerFeedsUpdate(params *DcimPowerFeedsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsUpdateOK, error) 409 410 DcimPowerOutletTemplatesBulkDelete(params *DcimPowerOutletTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesBulkDeleteNoContent, error) 411 412 DcimPowerOutletTemplatesBulkPartialUpdate(params *DcimPowerOutletTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesBulkPartialUpdateOK, error) 413 414 DcimPowerOutletTemplatesBulkUpdate(params *DcimPowerOutletTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesBulkUpdateOK, error) 415 416 DcimPowerOutletTemplatesCreate(params *DcimPowerOutletTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesCreateCreated, error) 417 418 DcimPowerOutletTemplatesDelete(params *DcimPowerOutletTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesDeleteNoContent, error) 419 420 DcimPowerOutletTemplatesList(params *DcimPowerOutletTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesListOK, error) 421 422 DcimPowerOutletTemplatesPartialUpdate(params *DcimPowerOutletTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesPartialUpdateOK, error) 423 424 DcimPowerOutletTemplatesRead(params *DcimPowerOutletTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesReadOK, error) 425 426 DcimPowerOutletTemplatesUpdate(params *DcimPowerOutletTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesUpdateOK, error) 427 428 DcimPowerOutletsBulkDelete(params *DcimPowerOutletsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsBulkDeleteNoContent, error) 429 430 DcimPowerOutletsBulkPartialUpdate(params *DcimPowerOutletsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsBulkPartialUpdateOK, error) 431 432 DcimPowerOutletsBulkUpdate(params *DcimPowerOutletsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsBulkUpdateOK, error) 433 434 DcimPowerOutletsCreate(params *DcimPowerOutletsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsCreateCreated, error) 435 436 DcimPowerOutletsDelete(params *DcimPowerOutletsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsDeleteNoContent, error) 437 438 DcimPowerOutletsList(params *DcimPowerOutletsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsListOK, error) 439 440 DcimPowerOutletsPartialUpdate(params *DcimPowerOutletsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsPartialUpdateOK, error) 441 442 DcimPowerOutletsRead(params *DcimPowerOutletsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsReadOK, error) 443 444 DcimPowerOutletsTrace(params *DcimPowerOutletsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsTraceOK, error) 445 446 DcimPowerOutletsUpdate(params *DcimPowerOutletsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsUpdateOK, error) 447 448 DcimPowerPanelsBulkDelete(params *DcimPowerPanelsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsBulkDeleteNoContent, error) 449 450 DcimPowerPanelsBulkPartialUpdate(params *DcimPowerPanelsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsBulkPartialUpdateOK, error) 451 452 DcimPowerPanelsBulkUpdate(params *DcimPowerPanelsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsBulkUpdateOK, error) 453 454 DcimPowerPanelsCreate(params *DcimPowerPanelsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsCreateCreated, error) 455 456 DcimPowerPanelsDelete(params *DcimPowerPanelsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsDeleteNoContent, error) 457 458 DcimPowerPanelsList(params *DcimPowerPanelsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsListOK, error) 459 460 DcimPowerPanelsPartialUpdate(params *DcimPowerPanelsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsPartialUpdateOK, error) 461 462 DcimPowerPanelsRead(params *DcimPowerPanelsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsReadOK, error) 463 464 DcimPowerPanelsUpdate(params *DcimPowerPanelsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsUpdateOK, error) 465 466 DcimPowerPortTemplatesBulkDelete(params *DcimPowerPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesBulkDeleteNoContent, error) 467 468 DcimPowerPortTemplatesBulkPartialUpdate(params *DcimPowerPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesBulkPartialUpdateOK, error) 469 470 DcimPowerPortTemplatesBulkUpdate(params *DcimPowerPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesBulkUpdateOK, error) 471 472 DcimPowerPortTemplatesCreate(params *DcimPowerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesCreateCreated, error) 473 474 DcimPowerPortTemplatesDelete(params *DcimPowerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesDeleteNoContent, error) 475 476 DcimPowerPortTemplatesList(params *DcimPowerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesListOK, error) 477 478 DcimPowerPortTemplatesPartialUpdate(params *DcimPowerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesPartialUpdateOK, error) 479 480 DcimPowerPortTemplatesRead(params *DcimPowerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesReadOK, error) 481 482 DcimPowerPortTemplatesUpdate(params *DcimPowerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesUpdateOK, error) 483 484 DcimPowerPortsBulkDelete(params *DcimPowerPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsBulkDeleteNoContent, error) 485 486 DcimPowerPortsBulkPartialUpdate(params *DcimPowerPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsBulkPartialUpdateOK, error) 487 488 DcimPowerPortsBulkUpdate(params *DcimPowerPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsBulkUpdateOK, error) 489 490 DcimPowerPortsCreate(params *DcimPowerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsCreateCreated, error) 491 492 DcimPowerPortsDelete(params *DcimPowerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsDeleteNoContent, error) 493 494 DcimPowerPortsList(params *DcimPowerPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsListOK, error) 495 496 DcimPowerPortsPartialUpdate(params *DcimPowerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsPartialUpdateOK, error) 497 498 DcimPowerPortsRead(params *DcimPowerPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsReadOK, error) 499 500 DcimPowerPortsTrace(params *DcimPowerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsTraceOK, error) 501 502 DcimPowerPortsUpdate(params *DcimPowerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsUpdateOK, error) 503 504 DcimRackReservationsBulkDelete(params *DcimRackReservationsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsBulkDeleteNoContent, error) 505 506 DcimRackReservationsBulkPartialUpdate(params *DcimRackReservationsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsBulkPartialUpdateOK, error) 507 508 DcimRackReservationsBulkUpdate(params *DcimRackReservationsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsBulkUpdateOK, error) 509 510 DcimRackReservationsCreate(params *DcimRackReservationsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsCreateCreated, error) 511 512 DcimRackReservationsDelete(params *DcimRackReservationsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsDeleteNoContent, error) 513 514 DcimRackReservationsList(params *DcimRackReservationsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsListOK, error) 515 516 DcimRackReservationsPartialUpdate(params *DcimRackReservationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsPartialUpdateOK, error) 517 518 DcimRackReservationsRead(params *DcimRackReservationsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsReadOK, error) 519 520 DcimRackReservationsUpdate(params *DcimRackReservationsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsUpdateOK, error) 521 522 DcimRackRolesBulkDelete(params *DcimRackRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesBulkDeleteNoContent, error) 523 524 DcimRackRolesBulkPartialUpdate(params *DcimRackRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesBulkPartialUpdateOK, error) 525 526 DcimRackRolesBulkUpdate(params *DcimRackRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesBulkUpdateOK, error) 527 528 DcimRackRolesCreate(params *DcimRackRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesCreateCreated, error) 529 530 DcimRackRolesDelete(params *DcimRackRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesDeleteNoContent, error) 531 532 DcimRackRolesList(params *DcimRackRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesListOK, error) 533 534 DcimRackRolesPartialUpdate(params *DcimRackRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesPartialUpdateOK, error) 535 536 DcimRackRolesRead(params *DcimRackRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesReadOK, error) 537 538 DcimRackRolesUpdate(params *DcimRackRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesUpdateOK, error) 539 540 DcimRacksBulkDelete(params *DcimRacksBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksBulkDeleteNoContent, error) 541 542 DcimRacksBulkPartialUpdate(params *DcimRacksBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksBulkPartialUpdateOK, error) 543 544 DcimRacksBulkUpdate(params *DcimRacksBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksBulkUpdateOK, error) 545 546 DcimRacksCreate(params *DcimRacksCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksCreateCreated, error) 547 548 DcimRacksDelete(params *DcimRacksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksDeleteNoContent, error) 549 550 DcimRacksElevation(params *DcimRacksElevationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksElevationOK, error) 551 552 DcimRacksList(params *DcimRacksListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksListOK, error) 553 554 DcimRacksPartialUpdate(params *DcimRacksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksPartialUpdateOK, error) 555 556 DcimRacksRead(params *DcimRacksReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksReadOK, error) 557 558 DcimRacksUpdate(params *DcimRacksUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksUpdateOK, error) 559 560 DcimRearPortTemplatesBulkDelete(params *DcimRearPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesBulkDeleteNoContent, error) 561 562 DcimRearPortTemplatesBulkPartialUpdate(params *DcimRearPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesBulkPartialUpdateOK, error) 563 564 DcimRearPortTemplatesBulkUpdate(params *DcimRearPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesBulkUpdateOK, error) 565 566 DcimRearPortTemplatesCreate(params *DcimRearPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesCreateCreated, error) 567 568 DcimRearPortTemplatesDelete(params *DcimRearPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesDeleteNoContent, error) 569 570 DcimRearPortTemplatesList(params *DcimRearPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesListOK, error) 571 572 DcimRearPortTemplatesPartialUpdate(params *DcimRearPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesPartialUpdateOK, error) 573 574 DcimRearPortTemplatesRead(params *DcimRearPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesReadOK, error) 575 576 DcimRearPortTemplatesUpdate(params *DcimRearPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesUpdateOK, error) 577 578 DcimRearPortsBulkDelete(params *DcimRearPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsBulkDeleteNoContent, error) 579 580 DcimRearPortsBulkPartialUpdate(params *DcimRearPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsBulkPartialUpdateOK, error) 581 582 DcimRearPortsBulkUpdate(params *DcimRearPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsBulkUpdateOK, error) 583 584 DcimRearPortsCreate(params *DcimRearPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsCreateCreated, error) 585 586 DcimRearPortsDelete(params *DcimRearPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsDeleteNoContent, error) 587 588 DcimRearPortsList(params *DcimRearPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsListOK, error) 589 590 DcimRearPortsPartialUpdate(params *DcimRearPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsPartialUpdateOK, error) 591 592 DcimRearPortsPaths(params *DcimRearPortsPathsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsPathsOK, error) 593 594 DcimRearPortsRead(params *DcimRearPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsReadOK, error) 595 596 DcimRearPortsUpdate(params *DcimRearPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsUpdateOK, error) 597 598 DcimRegionsBulkDelete(params *DcimRegionsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsBulkDeleteNoContent, error) 599 600 DcimRegionsBulkPartialUpdate(params *DcimRegionsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsBulkPartialUpdateOK, error) 601 602 DcimRegionsBulkUpdate(params *DcimRegionsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsBulkUpdateOK, error) 603 604 DcimRegionsCreate(params *DcimRegionsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsCreateCreated, error) 605 606 DcimRegionsDelete(params *DcimRegionsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsDeleteNoContent, error) 607 608 DcimRegionsList(params *DcimRegionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsListOK, error) 609 610 DcimRegionsPartialUpdate(params *DcimRegionsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsPartialUpdateOK, error) 611 612 DcimRegionsRead(params *DcimRegionsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsReadOK, error) 613 614 DcimRegionsUpdate(params *DcimRegionsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsUpdateOK, error) 615 616 DcimSiteGroupsBulkDelete(params *DcimSiteGroupsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsBulkDeleteNoContent, error) 617 618 DcimSiteGroupsBulkPartialUpdate(params *DcimSiteGroupsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsBulkPartialUpdateOK, error) 619 620 DcimSiteGroupsBulkUpdate(params *DcimSiteGroupsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsBulkUpdateOK, error) 621 622 DcimSiteGroupsCreate(params *DcimSiteGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsCreateCreated, error) 623 624 DcimSiteGroupsDelete(params *DcimSiteGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsDeleteNoContent, error) 625 626 DcimSiteGroupsList(params *DcimSiteGroupsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsListOK, error) 627 628 DcimSiteGroupsPartialUpdate(params *DcimSiteGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsPartialUpdateOK, error) 629 630 DcimSiteGroupsRead(params *DcimSiteGroupsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsReadOK, error) 631 632 DcimSiteGroupsUpdate(params *DcimSiteGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsUpdateOK, error) 633 634 DcimSitesBulkDelete(params *DcimSitesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesBulkDeleteNoContent, error) 635 636 DcimSitesBulkPartialUpdate(params *DcimSitesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesBulkPartialUpdateOK, error) 637 638 DcimSitesBulkUpdate(params *DcimSitesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesBulkUpdateOK, error) 639 640 DcimSitesCreate(params *DcimSitesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesCreateCreated, error) 641 642 DcimSitesDelete(params *DcimSitesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesDeleteNoContent, error) 643 644 DcimSitesList(params *DcimSitesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesListOK, error) 645 646 DcimSitesPartialUpdate(params *DcimSitesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesPartialUpdateOK, error) 647 648 DcimSitesRead(params *DcimSitesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesReadOK, error) 649 650 DcimSitesUpdate(params *DcimSitesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesUpdateOK, error) 651 652 DcimVirtualChassisBulkDelete(params *DcimVirtualChassisBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisBulkDeleteNoContent, error) 653 654 DcimVirtualChassisBulkPartialUpdate(params *DcimVirtualChassisBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisBulkPartialUpdateOK, error) 655 656 DcimVirtualChassisBulkUpdate(params *DcimVirtualChassisBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisBulkUpdateOK, error) 657 658 DcimVirtualChassisCreate(params *DcimVirtualChassisCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisCreateCreated, error) 659 660 DcimVirtualChassisDelete(params *DcimVirtualChassisDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisDeleteNoContent, error) 661 662 DcimVirtualChassisList(params *DcimVirtualChassisListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisListOK, error) 663 664 DcimVirtualChassisPartialUpdate(params *DcimVirtualChassisPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisPartialUpdateOK, error) 665 666 DcimVirtualChassisRead(params *DcimVirtualChassisReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisReadOK, error) 667 668 DcimVirtualChassisUpdate(params *DcimVirtualChassisUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisUpdateOK, error) 669 670 SetTransport(transport runtime.ClientTransport) 671 } 672 673 /* 674 DcimCablesBulkDelete dcim cables bulk delete API 675 */ 676 func (a *Client) DcimCablesBulkDelete(params *DcimCablesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesBulkDeleteNoContent, error) { 677 // TODO: Validate the params before sending 678 if params == nil { 679 params = NewDcimCablesBulkDeleteParams() 680 } 681 op := &runtime.ClientOperation{ 682 ID: "dcim_cables_bulk_delete", 683 Method: "DELETE", 684 PathPattern: "/dcim/cables/", 685 ProducesMediaTypes: []string{"application/json"}, 686 ConsumesMediaTypes: []string{"application/json"}, 687 Schemes: []string{"http"}, 688 Params: params, 689 Reader: &DcimCablesBulkDeleteReader{formats: a.formats}, 690 AuthInfo: authInfo, 691 Context: params.Context, 692 Client: params.HTTPClient, 693 } 694 for _, opt := range opts { 695 opt(op) 696 } 697 698 result, err := a.transport.Submit(op) 699 if err != nil { 700 return nil, err 701 } 702 success, ok := result.(*DcimCablesBulkDeleteNoContent) 703 if ok { 704 return success, nil 705 } 706 // unexpected success response 707 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 708 msg := fmt.Sprintf("unexpected success response for dcim_cables_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 709 panic(msg) 710 } 711 712 /* 713 DcimCablesBulkPartialUpdate dcim cables bulk partial update API 714 */ 715 func (a *Client) DcimCablesBulkPartialUpdate(params *DcimCablesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesBulkPartialUpdateOK, error) { 716 // TODO: Validate the params before sending 717 if params == nil { 718 params = NewDcimCablesBulkPartialUpdateParams() 719 } 720 op := &runtime.ClientOperation{ 721 ID: "dcim_cables_bulk_partial_update", 722 Method: "PATCH", 723 PathPattern: "/dcim/cables/", 724 ProducesMediaTypes: []string{"application/json"}, 725 ConsumesMediaTypes: []string{"application/json"}, 726 Schemes: []string{"http"}, 727 Params: params, 728 Reader: &DcimCablesBulkPartialUpdateReader{formats: a.formats}, 729 AuthInfo: authInfo, 730 Context: params.Context, 731 Client: params.HTTPClient, 732 } 733 for _, opt := range opts { 734 opt(op) 735 } 736 737 result, err := a.transport.Submit(op) 738 if err != nil { 739 return nil, err 740 } 741 success, ok := result.(*DcimCablesBulkPartialUpdateOK) 742 if ok { 743 return success, nil 744 } 745 // unexpected success response 746 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 747 msg := fmt.Sprintf("unexpected success response for dcim_cables_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 748 panic(msg) 749 } 750 751 /* 752 DcimCablesBulkUpdate dcim cables bulk update API 753 */ 754 func (a *Client) DcimCablesBulkUpdate(params *DcimCablesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesBulkUpdateOK, error) { 755 // TODO: Validate the params before sending 756 if params == nil { 757 params = NewDcimCablesBulkUpdateParams() 758 } 759 op := &runtime.ClientOperation{ 760 ID: "dcim_cables_bulk_update", 761 Method: "PUT", 762 PathPattern: "/dcim/cables/", 763 ProducesMediaTypes: []string{"application/json"}, 764 ConsumesMediaTypes: []string{"application/json"}, 765 Schemes: []string{"http"}, 766 Params: params, 767 Reader: &DcimCablesBulkUpdateReader{formats: a.formats}, 768 AuthInfo: authInfo, 769 Context: params.Context, 770 Client: params.HTTPClient, 771 } 772 for _, opt := range opts { 773 opt(op) 774 } 775 776 result, err := a.transport.Submit(op) 777 if err != nil { 778 return nil, err 779 } 780 success, ok := result.(*DcimCablesBulkUpdateOK) 781 if ok { 782 return success, nil 783 } 784 // unexpected success response 785 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 786 msg := fmt.Sprintf("unexpected success response for dcim_cables_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 787 panic(msg) 788 } 789 790 /* 791 DcimCablesCreate dcim cables create API 792 */ 793 func (a *Client) DcimCablesCreate(params *DcimCablesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesCreateCreated, error) { 794 // TODO: Validate the params before sending 795 if params == nil { 796 params = NewDcimCablesCreateParams() 797 } 798 op := &runtime.ClientOperation{ 799 ID: "dcim_cables_create", 800 Method: "POST", 801 PathPattern: "/dcim/cables/", 802 ProducesMediaTypes: []string{"application/json"}, 803 ConsumesMediaTypes: []string{"application/json"}, 804 Schemes: []string{"http"}, 805 Params: params, 806 Reader: &DcimCablesCreateReader{formats: a.formats}, 807 AuthInfo: authInfo, 808 Context: params.Context, 809 Client: params.HTTPClient, 810 } 811 for _, opt := range opts { 812 opt(op) 813 } 814 815 result, err := a.transport.Submit(op) 816 if err != nil { 817 return nil, err 818 } 819 success, ok := result.(*DcimCablesCreateCreated) 820 if ok { 821 return success, nil 822 } 823 // unexpected success response 824 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 825 msg := fmt.Sprintf("unexpected success response for dcim_cables_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 826 panic(msg) 827 } 828 829 /* 830 DcimCablesDelete dcim cables delete API 831 */ 832 func (a *Client) DcimCablesDelete(params *DcimCablesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesDeleteNoContent, error) { 833 // TODO: Validate the params before sending 834 if params == nil { 835 params = NewDcimCablesDeleteParams() 836 } 837 op := &runtime.ClientOperation{ 838 ID: "dcim_cables_delete", 839 Method: "DELETE", 840 PathPattern: "/dcim/cables/{id}/", 841 ProducesMediaTypes: []string{"application/json"}, 842 ConsumesMediaTypes: []string{"application/json"}, 843 Schemes: []string{"http"}, 844 Params: params, 845 Reader: &DcimCablesDeleteReader{formats: a.formats}, 846 AuthInfo: authInfo, 847 Context: params.Context, 848 Client: params.HTTPClient, 849 } 850 for _, opt := range opts { 851 opt(op) 852 } 853 854 result, err := a.transport.Submit(op) 855 if err != nil { 856 return nil, err 857 } 858 success, ok := result.(*DcimCablesDeleteNoContent) 859 if ok { 860 return success, nil 861 } 862 // unexpected success response 863 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 864 msg := fmt.Sprintf("unexpected success response for dcim_cables_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 865 panic(msg) 866 } 867 868 /* 869 DcimCablesList dcim cables list API 870 */ 871 func (a *Client) DcimCablesList(params *DcimCablesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesListOK, error) { 872 // TODO: Validate the params before sending 873 if params == nil { 874 params = NewDcimCablesListParams() 875 } 876 op := &runtime.ClientOperation{ 877 ID: "dcim_cables_list", 878 Method: "GET", 879 PathPattern: "/dcim/cables/", 880 ProducesMediaTypes: []string{"application/json"}, 881 ConsumesMediaTypes: []string{"application/json"}, 882 Schemes: []string{"http"}, 883 Params: params, 884 Reader: &DcimCablesListReader{formats: a.formats}, 885 AuthInfo: authInfo, 886 Context: params.Context, 887 Client: params.HTTPClient, 888 } 889 for _, opt := range opts { 890 opt(op) 891 } 892 893 result, err := a.transport.Submit(op) 894 if err != nil { 895 return nil, err 896 } 897 success, ok := result.(*DcimCablesListOK) 898 if ok { 899 return success, nil 900 } 901 // unexpected success response 902 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 903 msg := fmt.Sprintf("unexpected success response for dcim_cables_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 904 panic(msg) 905 } 906 907 /* 908 DcimCablesPartialUpdate dcim cables partial update API 909 */ 910 func (a *Client) DcimCablesPartialUpdate(params *DcimCablesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesPartialUpdateOK, error) { 911 // TODO: Validate the params before sending 912 if params == nil { 913 params = NewDcimCablesPartialUpdateParams() 914 } 915 op := &runtime.ClientOperation{ 916 ID: "dcim_cables_partial_update", 917 Method: "PATCH", 918 PathPattern: "/dcim/cables/{id}/", 919 ProducesMediaTypes: []string{"application/json"}, 920 ConsumesMediaTypes: []string{"application/json"}, 921 Schemes: []string{"http"}, 922 Params: params, 923 Reader: &DcimCablesPartialUpdateReader{formats: a.formats}, 924 AuthInfo: authInfo, 925 Context: params.Context, 926 Client: params.HTTPClient, 927 } 928 for _, opt := range opts { 929 opt(op) 930 } 931 932 result, err := a.transport.Submit(op) 933 if err != nil { 934 return nil, err 935 } 936 success, ok := result.(*DcimCablesPartialUpdateOK) 937 if ok { 938 return success, nil 939 } 940 // unexpected success response 941 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 942 msg := fmt.Sprintf("unexpected success response for dcim_cables_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 943 panic(msg) 944 } 945 946 /* 947 DcimCablesRead dcim cables read API 948 */ 949 func (a *Client) DcimCablesRead(params *DcimCablesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesReadOK, error) { 950 // TODO: Validate the params before sending 951 if params == nil { 952 params = NewDcimCablesReadParams() 953 } 954 op := &runtime.ClientOperation{ 955 ID: "dcim_cables_read", 956 Method: "GET", 957 PathPattern: "/dcim/cables/{id}/", 958 ProducesMediaTypes: []string{"application/json"}, 959 ConsumesMediaTypes: []string{"application/json"}, 960 Schemes: []string{"http"}, 961 Params: params, 962 Reader: &DcimCablesReadReader{formats: a.formats}, 963 AuthInfo: authInfo, 964 Context: params.Context, 965 Client: params.HTTPClient, 966 } 967 for _, opt := range opts { 968 opt(op) 969 } 970 971 result, err := a.transport.Submit(op) 972 if err != nil { 973 return nil, err 974 } 975 success, ok := result.(*DcimCablesReadOK) 976 if ok { 977 return success, nil 978 } 979 // unexpected success response 980 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 981 msg := fmt.Sprintf("unexpected success response for dcim_cables_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 982 panic(msg) 983 } 984 985 /* 986 DcimCablesUpdate dcim cables update API 987 */ 988 func (a *Client) DcimCablesUpdate(params *DcimCablesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimCablesUpdateOK, error) { 989 // TODO: Validate the params before sending 990 if params == nil { 991 params = NewDcimCablesUpdateParams() 992 } 993 op := &runtime.ClientOperation{ 994 ID: "dcim_cables_update", 995 Method: "PUT", 996 PathPattern: "/dcim/cables/{id}/", 997 ProducesMediaTypes: []string{"application/json"}, 998 ConsumesMediaTypes: []string{"application/json"}, 999 Schemes: []string{"http"}, 1000 Params: params, 1001 Reader: &DcimCablesUpdateReader{formats: a.formats}, 1002 AuthInfo: authInfo, 1003 Context: params.Context, 1004 Client: params.HTTPClient, 1005 } 1006 for _, opt := range opts { 1007 opt(op) 1008 } 1009 1010 result, err := a.transport.Submit(op) 1011 if err != nil { 1012 return nil, err 1013 } 1014 success, ok := result.(*DcimCablesUpdateOK) 1015 if ok { 1016 return success, nil 1017 } 1018 // unexpected success response 1019 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1020 msg := fmt.Sprintf("unexpected success response for dcim_cables_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1021 panic(msg) 1022 } 1023 1024 /* 1025 DcimConnectedDeviceList This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer 1026 interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors 1027 via a protocol such as LLDP. Two query parameters must be included in the request: 1028 1029 * `peer_device`: The name of the peer device 1030 * `peer_interface`: The name of the peer interface 1031 */ 1032 func (a *Client) DcimConnectedDeviceList(params *DcimConnectedDeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConnectedDeviceListOK, error) { 1033 // TODO: Validate the params before sending 1034 if params == nil { 1035 params = NewDcimConnectedDeviceListParams() 1036 } 1037 op := &runtime.ClientOperation{ 1038 ID: "dcim_connected-device_list", 1039 Method: "GET", 1040 PathPattern: "/dcim/connected-device/", 1041 ProducesMediaTypes: []string{"application/json"}, 1042 ConsumesMediaTypes: []string{"application/json"}, 1043 Schemes: []string{"http"}, 1044 Params: params, 1045 Reader: &DcimConnectedDeviceListReader{formats: a.formats}, 1046 AuthInfo: authInfo, 1047 Context: params.Context, 1048 Client: params.HTTPClient, 1049 } 1050 for _, opt := range opts { 1051 opt(op) 1052 } 1053 1054 result, err := a.transport.Submit(op) 1055 if err != nil { 1056 return nil, err 1057 } 1058 success, ok := result.(*DcimConnectedDeviceListOK) 1059 if ok { 1060 return success, nil 1061 } 1062 // unexpected success response 1063 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1064 msg := fmt.Sprintf("unexpected success response for dcim_connected-device_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1065 panic(msg) 1066 } 1067 1068 /* 1069 DcimConsoleConnectionsList dcim console connections list API 1070 */ 1071 func (a *Client) DcimConsoleConnectionsList(params *DcimConsoleConnectionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleConnectionsListOK, error) { 1072 // TODO: Validate the params before sending 1073 if params == nil { 1074 params = NewDcimConsoleConnectionsListParams() 1075 } 1076 op := &runtime.ClientOperation{ 1077 ID: "dcim_console-connections_list", 1078 Method: "GET", 1079 PathPattern: "/dcim/console-connections/", 1080 ProducesMediaTypes: []string{"application/json"}, 1081 ConsumesMediaTypes: []string{"application/json"}, 1082 Schemes: []string{"http"}, 1083 Params: params, 1084 Reader: &DcimConsoleConnectionsListReader{formats: a.formats}, 1085 AuthInfo: authInfo, 1086 Context: params.Context, 1087 Client: params.HTTPClient, 1088 } 1089 for _, opt := range opts { 1090 opt(op) 1091 } 1092 1093 result, err := a.transport.Submit(op) 1094 if err != nil { 1095 return nil, err 1096 } 1097 success, ok := result.(*DcimConsoleConnectionsListOK) 1098 if ok { 1099 return success, nil 1100 } 1101 // unexpected success response 1102 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1103 msg := fmt.Sprintf("unexpected success response for dcim_console-connections_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1104 panic(msg) 1105 } 1106 1107 /* 1108 DcimConsolePortTemplatesBulkDelete dcim console port templates bulk delete API 1109 */ 1110 func (a *Client) DcimConsolePortTemplatesBulkDelete(params *DcimConsolePortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesBulkDeleteNoContent, error) { 1111 // TODO: Validate the params before sending 1112 if params == nil { 1113 params = NewDcimConsolePortTemplatesBulkDeleteParams() 1114 } 1115 op := &runtime.ClientOperation{ 1116 ID: "dcim_console-port-templates_bulk_delete", 1117 Method: "DELETE", 1118 PathPattern: "/dcim/console-port-templates/", 1119 ProducesMediaTypes: []string{"application/json"}, 1120 ConsumesMediaTypes: []string{"application/json"}, 1121 Schemes: []string{"http"}, 1122 Params: params, 1123 Reader: &DcimConsolePortTemplatesBulkDeleteReader{formats: a.formats}, 1124 AuthInfo: authInfo, 1125 Context: params.Context, 1126 Client: params.HTTPClient, 1127 } 1128 for _, opt := range opts { 1129 opt(op) 1130 } 1131 1132 result, err := a.transport.Submit(op) 1133 if err != nil { 1134 return nil, err 1135 } 1136 success, ok := result.(*DcimConsolePortTemplatesBulkDeleteNoContent) 1137 if ok { 1138 return success, nil 1139 } 1140 // unexpected success response 1141 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1142 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1143 panic(msg) 1144 } 1145 1146 /* 1147 DcimConsolePortTemplatesBulkPartialUpdate dcim console port templates bulk partial update API 1148 */ 1149 func (a *Client) DcimConsolePortTemplatesBulkPartialUpdate(params *DcimConsolePortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesBulkPartialUpdateOK, error) { 1150 // TODO: Validate the params before sending 1151 if params == nil { 1152 params = NewDcimConsolePortTemplatesBulkPartialUpdateParams() 1153 } 1154 op := &runtime.ClientOperation{ 1155 ID: "dcim_console-port-templates_bulk_partial_update", 1156 Method: "PATCH", 1157 PathPattern: "/dcim/console-port-templates/", 1158 ProducesMediaTypes: []string{"application/json"}, 1159 ConsumesMediaTypes: []string{"application/json"}, 1160 Schemes: []string{"http"}, 1161 Params: params, 1162 Reader: &DcimConsolePortTemplatesBulkPartialUpdateReader{formats: a.formats}, 1163 AuthInfo: authInfo, 1164 Context: params.Context, 1165 Client: params.HTTPClient, 1166 } 1167 for _, opt := range opts { 1168 opt(op) 1169 } 1170 1171 result, err := a.transport.Submit(op) 1172 if err != nil { 1173 return nil, err 1174 } 1175 success, ok := result.(*DcimConsolePortTemplatesBulkPartialUpdateOK) 1176 if ok { 1177 return success, nil 1178 } 1179 // unexpected success response 1180 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1181 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1182 panic(msg) 1183 } 1184 1185 /* 1186 DcimConsolePortTemplatesBulkUpdate dcim console port templates bulk update API 1187 */ 1188 func (a *Client) DcimConsolePortTemplatesBulkUpdate(params *DcimConsolePortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesBulkUpdateOK, error) { 1189 // TODO: Validate the params before sending 1190 if params == nil { 1191 params = NewDcimConsolePortTemplatesBulkUpdateParams() 1192 } 1193 op := &runtime.ClientOperation{ 1194 ID: "dcim_console-port-templates_bulk_update", 1195 Method: "PUT", 1196 PathPattern: "/dcim/console-port-templates/", 1197 ProducesMediaTypes: []string{"application/json"}, 1198 ConsumesMediaTypes: []string{"application/json"}, 1199 Schemes: []string{"http"}, 1200 Params: params, 1201 Reader: &DcimConsolePortTemplatesBulkUpdateReader{formats: a.formats}, 1202 AuthInfo: authInfo, 1203 Context: params.Context, 1204 Client: params.HTTPClient, 1205 } 1206 for _, opt := range opts { 1207 opt(op) 1208 } 1209 1210 result, err := a.transport.Submit(op) 1211 if err != nil { 1212 return nil, err 1213 } 1214 success, ok := result.(*DcimConsolePortTemplatesBulkUpdateOK) 1215 if ok { 1216 return success, nil 1217 } 1218 // unexpected success response 1219 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1220 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1221 panic(msg) 1222 } 1223 1224 /* 1225 DcimConsolePortTemplatesCreate dcim console port templates create API 1226 */ 1227 func (a *Client) DcimConsolePortTemplatesCreate(params *DcimConsolePortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesCreateCreated, error) { 1228 // TODO: Validate the params before sending 1229 if params == nil { 1230 params = NewDcimConsolePortTemplatesCreateParams() 1231 } 1232 op := &runtime.ClientOperation{ 1233 ID: "dcim_console-port-templates_create", 1234 Method: "POST", 1235 PathPattern: "/dcim/console-port-templates/", 1236 ProducesMediaTypes: []string{"application/json"}, 1237 ConsumesMediaTypes: []string{"application/json"}, 1238 Schemes: []string{"http"}, 1239 Params: params, 1240 Reader: &DcimConsolePortTemplatesCreateReader{formats: a.formats}, 1241 AuthInfo: authInfo, 1242 Context: params.Context, 1243 Client: params.HTTPClient, 1244 } 1245 for _, opt := range opts { 1246 opt(op) 1247 } 1248 1249 result, err := a.transport.Submit(op) 1250 if err != nil { 1251 return nil, err 1252 } 1253 success, ok := result.(*DcimConsolePortTemplatesCreateCreated) 1254 if ok { 1255 return success, nil 1256 } 1257 // unexpected success response 1258 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1259 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1260 panic(msg) 1261 } 1262 1263 /* 1264 DcimConsolePortTemplatesDelete dcim console port templates delete API 1265 */ 1266 func (a *Client) DcimConsolePortTemplatesDelete(params *DcimConsolePortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesDeleteNoContent, error) { 1267 // TODO: Validate the params before sending 1268 if params == nil { 1269 params = NewDcimConsolePortTemplatesDeleteParams() 1270 } 1271 op := &runtime.ClientOperation{ 1272 ID: "dcim_console-port-templates_delete", 1273 Method: "DELETE", 1274 PathPattern: "/dcim/console-port-templates/{id}/", 1275 ProducesMediaTypes: []string{"application/json"}, 1276 ConsumesMediaTypes: []string{"application/json"}, 1277 Schemes: []string{"http"}, 1278 Params: params, 1279 Reader: &DcimConsolePortTemplatesDeleteReader{formats: a.formats}, 1280 AuthInfo: authInfo, 1281 Context: params.Context, 1282 Client: params.HTTPClient, 1283 } 1284 for _, opt := range opts { 1285 opt(op) 1286 } 1287 1288 result, err := a.transport.Submit(op) 1289 if err != nil { 1290 return nil, err 1291 } 1292 success, ok := result.(*DcimConsolePortTemplatesDeleteNoContent) 1293 if ok { 1294 return success, nil 1295 } 1296 // unexpected success response 1297 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1298 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1299 panic(msg) 1300 } 1301 1302 /* 1303 DcimConsolePortTemplatesList dcim console port templates list API 1304 */ 1305 func (a *Client) DcimConsolePortTemplatesList(params *DcimConsolePortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesListOK, error) { 1306 // TODO: Validate the params before sending 1307 if params == nil { 1308 params = NewDcimConsolePortTemplatesListParams() 1309 } 1310 op := &runtime.ClientOperation{ 1311 ID: "dcim_console-port-templates_list", 1312 Method: "GET", 1313 PathPattern: "/dcim/console-port-templates/", 1314 ProducesMediaTypes: []string{"application/json"}, 1315 ConsumesMediaTypes: []string{"application/json"}, 1316 Schemes: []string{"http"}, 1317 Params: params, 1318 Reader: &DcimConsolePortTemplatesListReader{formats: a.formats}, 1319 AuthInfo: authInfo, 1320 Context: params.Context, 1321 Client: params.HTTPClient, 1322 } 1323 for _, opt := range opts { 1324 opt(op) 1325 } 1326 1327 result, err := a.transport.Submit(op) 1328 if err != nil { 1329 return nil, err 1330 } 1331 success, ok := result.(*DcimConsolePortTemplatesListOK) 1332 if ok { 1333 return success, nil 1334 } 1335 // unexpected success response 1336 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1337 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1338 panic(msg) 1339 } 1340 1341 /* 1342 DcimConsolePortTemplatesPartialUpdate dcim console port templates partial update API 1343 */ 1344 func (a *Client) DcimConsolePortTemplatesPartialUpdate(params *DcimConsolePortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesPartialUpdateOK, error) { 1345 // TODO: Validate the params before sending 1346 if params == nil { 1347 params = NewDcimConsolePortTemplatesPartialUpdateParams() 1348 } 1349 op := &runtime.ClientOperation{ 1350 ID: "dcim_console-port-templates_partial_update", 1351 Method: "PATCH", 1352 PathPattern: "/dcim/console-port-templates/{id}/", 1353 ProducesMediaTypes: []string{"application/json"}, 1354 ConsumesMediaTypes: []string{"application/json"}, 1355 Schemes: []string{"http"}, 1356 Params: params, 1357 Reader: &DcimConsolePortTemplatesPartialUpdateReader{formats: a.formats}, 1358 AuthInfo: authInfo, 1359 Context: params.Context, 1360 Client: params.HTTPClient, 1361 } 1362 for _, opt := range opts { 1363 opt(op) 1364 } 1365 1366 result, err := a.transport.Submit(op) 1367 if err != nil { 1368 return nil, err 1369 } 1370 success, ok := result.(*DcimConsolePortTemplatesPartialUpdateOK) 1371 if ok { 1372 return success, nil 1373 } 1374 // unexpected success response 1375 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1376 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1377 panic(msg) 1378 } 1379 1380 /* 1381 DcimConsolePortTemplatesRead dcim console port templates read API 1382 */ 1383 func (a *Client) DcimConsolePortTemplatesRead(params *DcimConsolePortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesReadOK, error) { 1384 // TODO: Validate the params before sending 1385 if params == nil { 1386 params = NewDcimConsolePortTemplatesReadParams() 1387 } 1388 op := &runtime.ClientOperation{ 1389 ID: "dcim_console-port-templates_read", 1390 Method: "GET", 1391 PathPattern: "/dcim/console-port-templates/{id}/", 1392 ProducesMediaTypes: []string{"application/json"}, 1393 ConsumesMediaTypes: []string{"application/json"}, 1394 Schemes: []string{"http"}, 1395 Params: params, 1396 Reader: &DcimConsolePortTemplatesReadReader{formats: a.formats}, 1397 AuthInfo: authInfo, 1398 Context: params.Context, 1399 Client: params.HTTPClient, 1400 } 1401 for _, opt := range opts { 1402 opt(op) 1403 } 1404 1405 result, err := a.transport.Submit(op) 1406 if err != nil { 1407 return nil, err 1408 } 1409 success, ok := result.(*DcimConsolePortTemplatesReadOK) 1410 if ok { 1411 return success, nil 1412 } 1413 // unexpected success response 1414 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1415 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1416 panic(msg) 1417 } 1418 1419 /* 1420 DcimConsolePortTemplatesUpdate dcim console port templates update API 1421 */ 1422 func (a *Client) DcimConsolePortTemplatesUpdate(params *DcimConsolePortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortTemplatesUpdateOK, error) { 1423 // TODO: Validate the params before sending 1424 if params == nil { 1425 params = NewDcimConsolePortTemplatesUpdateParams() 1426 } 1427 op := &runtime.ClientOperation{ 1428 ID: "dcim_console-port-templates_update", 1429 Method: "PUT", 1430 PathPattern: "/dcim/console-port-templates/{id}/", 1431 ProducesMediaTypes: []string{"application/json"}, 1432 ConsumesMediaTypes: []string{"application/json"}, 1433 Schemes: []string{"http"}, 1434 Params: params, 1435 Reader: &DcimConsolePortTemplatesUpdateReader{formats: a.formats}, 1436 AuthInfo: authInfo, 1437 Context: params.Context, 1438 Client: params.HTTPClient, 1439 } 1440 for _, opt := range opts { 1441 opt(op) 1442 } 1443 1444 result, err := a.transport.Submit(op) 1445 if err != nil { 1446 return nil, err 1447 } 1448 success, ok := result.(*DcimConsolePortTemplatesUpdateOK) 1449 if ok { 1450 return success, nil 1451 } 1452 // unexpected success response 1453 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1454 msg := fmt.Sprintf("unexpected success response for dcim_console-port-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1455 panic(msg) 1456 } 1457 1458 /* 1459 DcimConsolePortsBulkDelete dcim console ports bulk delete API 1460 */ 1461 func (a *Client) DcimConsolePortsBulkDelete(params *DcimConsolePortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsBulkDeleteNoContent, error) { 1462 // TODO: Validate the params before sending 1463 if params == nil { 1464 params = NewDcimConsolePortsBulkDeleteParams() 1465 } 1466 op := &runtime.ClientOperation{ 1467 ID: "dcim_console-ports_bulk_delete", 1468 Method: "DELETE", 1469 PathPattern: "/dcim/console-ports/", 1470 ProducesMediaTypes: []string{"application/json"}, 1471 ConsumesMediaTypes: []string{"application/json"}, 1472 Schemes: []string{"http"}, 1473 Params: params, 1474 Reader: &DcimConsolePortsBulkDeleteReader{formats: a.formats}, 1475 AuthInfo: authInfo, 1476 Context: params.Context, 1477 Client: params.HTTPClient, 1478 } 1479 for _, opt := range opts { 1480 opt(op) 1481 } 1482 1483 result, err := a.transport.Submit(op) 1484 if err != nil { 1485 return nil, err 1486 } 1487 success, ok := result.(*DcimConsolePortsBulkDeleteNoContent) 1488 if ok { 1489 return success, nil 1490 } 1491 // unexpected success response 1492 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1493 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1494 panic(msg) 1495 } 1496 1497 /* 1498 DcimConsolePortsBulkPartialUpdate dcim console ports bulk partial update API 1499 */ 1500 func (a *Client) DcimConsolePortsBulkPartialUpdate(params *DcimConsolePortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsBulkPartialUpdateOK, error) { 1501 // TODO: Validate the params before sending 1502 if params == nil { 1503 params = NewDcimConsolePortsBulkPartialUpdateParams() 1504 } 1505 op := &runtime.ClientOperation{ 1506 ID: "dcim_console-ports_bulk_partial_update", 1507 Method: "PATCH", 1508 PathPattern: "/dcim/console-ports/", 1509 ProducesMediaTypes: []string{"application/json"}, 1510 ConsumesMediaTypes: []string{"application/json"}, 1511 Schemes: []string{"http"}, 1512 Params: params, 1513 Reader: &DcimConsolePortsBulkPartialUpdateReader{formats: a.formats}, 1514 AuthInfo: authInfo, 1515 Context: params.Context, 1516 Client: params.HTTPClient, 1517 } 1518 for _, opt := range opts { 1519 opt(op) 1520 } 1521 1522 result, err := a.transport.Submit(op) 1523 if err != nil { 1524 return nil, err 1525 } 1526 success, ok := result.(*DcimConsolePortsBulkPartialUpdateOK) 1527 if ok { 1528 return success, nil 1529 } 1530 // unexpected success response 1531 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1532 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1533 panic(msg) 1534 } 1535 1536 /* 1537 DcimConsolePortsBulkUpdate dcim console ports bulk update API 1538 */ 1539 func (a *Client) DcimConsolePortsBulkUpdate(params *DcimConsolePortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsBulkUpdateOK, error) { 1540 // TODO: Validate the params before sending 1541 if params == nil { 1542 params = NewDcimConsolePortsBulkUpdateParams() 1543 } 1544 op := &runtime.ClientOperation{ 1545 ID: "dcim_console-ports_bulk_update", 1546 Method: "PUT", 1547 PathPattern: "/dcim/console-ports/", 1548 ProducesMediaTypes: []string{"application/json"}, 1549 ConsumesMediaTypes: []string{"application/json"}, 1550 Schemes: []string{"http"}, 1551 Params: params, 1552 Reader: &DcimConsolePortsBulkUpdateReader{formats: a.formats}, 1553 AuthInfo: authInfo, 1554 Context: params.Context, 1555 Client: params.HTTPClient, 1556 } 1557 for _, opt := range opts { 1558 opt(op) 1559 } 1560 1561 result, err := a.transport.Submit(op) 1562 if err != nil { 1563 return nil, err 1564 } 1565 success, ok := result.(*DcimConsolePortsBulkUpdateOK) 1566 if ok { 1567 return success, nil 1568 } 1569 // unexpected success response 1570 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1571 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1572 panic(msg) 1573 } 1574 1575 /* 1576 DcimConsolePortsCreate dcim console ports create API 1577 */ 1578 func (a *Client) DcimConsolePortsCreate(params *DcimConsolePortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsCreateCreated, error) { 1579 // TODO: Validate the params before sending 1580 if params == nil { 1581 params = NewDcimConsolePortsCreateParams() 1582 } 1583 op := &runtime.ClientOperation{ 1584 ID: "dcim_console-ports_create", 1585 Method: "POST", 1586 PathPattern: "/dcim/console-ports/", 1587 ProducesMediaTypes: []string{"application/json"}, 1588 ConsumesMediaTypes: []string{"application/json"}, 1589 Schemes: []string{"http"}, 1590 Params: params, 1591 Reader: &DcimConsolePortsCreateReader{formats: a.formats}, 1592 AuthInfo: authInfo, 1593 Context: params.Context, 1594 Client: params.HTTPClient, 1595 } 1596 for _, opt := range opts { 1597 opt(op) 1598 } 1599 1600 result, err := a.transport.Submit(op) 1601 if err != nil { 1602 return nil, err 1603 } 1604 success, ok := result.(*DcimConsolePortsCreateCreated) 1605 if ok { 1606 return success, nil 1607 } 1608 // unexpected success response 1609 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1610 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1611 panic(msg) 1612 } 1613 1614 /* 1615 DcimConsolePortsDelete dcim console ports delete API 1616 */ 1617 func (a *Client) DcimConsolePortsDelete(params *DcimConsolePortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsDeleteNoContent, error) { 1618 // TODO: Validate the params before sending 1619 if params == nil { 1620 params = NewDcimConsolePortsDeleteParams() 1621 } 1622 op := &runtime.ClientOperation{ 1623 ID: "dcim_console-ports_delete", 1624 Method: "DELETE", 1625 PathPattern: "/dcim/console-ports/{id}/", 1626 ProducesMediaTypes: []string{"application/json"}, 1627 ConsumesMediaTypes: []string{"application/json"}, 1628 Schemes: []string{"http"}, 1629 Params: params, 1630 Reader: &DcimConsolePortsDeleteReader{formats: a.formats}, 1631 AuthInfo: authInfo, 1632 Context: params.Context, 1633 Client: params.HTTPClient, 1634 } 1635 for _, opt := range opts { 1636 opt(op) 1637 } 1638 1639 result, err := a.transport.Submit(op) 1640 if err != nil { 1641 return nil, err 1642 } 1643 success, ok := result.(*DcimConsolePortsDeleteNoContent) 1644 if ok { 1645 return success, nil 1646 } 1647 // unexpected success response 1648 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1649 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1650 panic(msg) 1651 } 1652 1653 /* 1654 DcimConsolePortsList dcim console ports list API 1655 */ 1656 func (a *Client) DcimConsolePortsList(params *DcimConsolePortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsListOK, error) { 1657 // TODO: Validate the params before sending 1658 if params == nil { 1659 params = NewDcimConsolePortsListParams() 1660 } 1661 op := &runtime.ClientOperation{ 1662 ID: "dcim_console-ports_list", 1663 Method: "GET", 1664 PathPattern: "/dcim/console-ports/", 1665 ProducesMediaTypes: []string{"application/json"}, 1666 ConsumesMediaTypes: []string{"application/json"}, 1667 Schemes: []string{"http"}, 1668 Params: params, 1669 Reader: &DcimConsolePortsListReader{formats: a.formats}, 1670 AuthInfo: authInfo, 1671 Context: params.Context, 1672 Client: params.HTTPClient, 1673 } 1674 for _, opt := range opts { 1675 opt(op) 1676 } 1677 1678 result, err := a.transport.Submit(op) 1679 if err != nil { 1680 return nil, err 1681 } 1682 success, ok := result.(*DcimConsolePortsListOK) 1683 if ok { 1684 return success, nil 1685 } 1686 // unexpected success response 1687 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1688 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1689 panic(msg) 1690 } 1691 1692 /* 1693 DcimConsolePortsPartialUpdate dcim console ports partial update API 1694 */ 1695 func (a *Client) DcimConsolePortsPartialUpdate(params *DcimConsolePortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsPartialUpdateOK, error) { 1696 // TODO: Validate the params before sending 1697 if params == nil { 1698 params = NewDcimConsolePortsPartialUpdateParams() 1699 } 1700 op := &runtime.ClientOperation{ 1701 ID: "dcim_console-ports_partial_update", 1702 Method: "PATCH", 1703 PathPattern: "/dcim/console-ports/{id}/", 1704 ProducesMediaTypes: []string{"application/json"}, 1705 ConsumesMediaTypes: []string{"application/json"}, 1706 Schemes: []string{"http"}, 1707 Params: params, 1708 Reader: &DcimConsolePortsPartialUpdateReader{formats: a.formats}, 1709 AuthInfo: authInfo, 1710 Context: params.Context, 1711 Client: params.HTTPClient, 1712 } 1713 for _, opt := range opts { 1714 opt(op) 1715 } 1716 1717 result, err := a.transport.Submit(op) 1718 if err != nil { 1719 return nil, err 1720 } 1721 success, ok := result.(*DcimConsolePortsPartialUpdateOK) 1722 if ok { 1723 return success, nil 1724 } 1725 // unexpected success response 1726 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1727 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1728 panic(msg) 1729 } 1730 1731 /* 1732 DcimConsolePortsRead dcim console ports read API 1733 */ 1734 func (a *Client) DcimConsolePortsRead(params *DcimConsolePortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsReadOK, error) { 1735 // TODO: Validate the params before sending 1736 if params == nil { 1737 params = NewDcimConsolePortsReadParams() 1738 } 1739 op := &runtime.ClientOperation{ 1740 ID: "dcim_console-ports_read", 1741 Method: "GET", 1742 PathPattern: "/dcim/console-ports/{id}/", 1743 ProducesMediaTypes: []string{"application/json"}, 1744 ConsumesMediaTypes: []string{"application/json"}, 1745 Schemes: []string{"http"}, 1746 Params: params, 1747 Reader: &DcimConsolePortsReadReader{formats: a.formats}, 1748 AuthInfo: authInfo, 1749 Context: params.Context, 1750 Client: params.HTTPClient, 1751 } 1752 for _, opt := range opts { 1753 opt(op) 1754 } 1755 1756 result, err := a.transport.Submit(op) 1757 if err != nil { 1758 return nil, err 1759 } 1760 success, ok := result.(*DcimConsolePortsReadOK) 1761 if ok { 1762 return success, nil 1763 } 1764 // unexpected success response 1765 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1766 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1767 panic(msg) 1768 } 1769 1770 /* 1771 DcimConsolePortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). 1772 */ 1773 func (a *Client) DcimConsolePortsTrace(params *DcimConsolePortsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsTraceOK, error) { 1774 // TODO: Validate the params before sending 1775 if params == nil { 1776 params = NewDcimConsolePortsTraceParams() 1777 } 1778 op := &runtime.ClientOperation{ 1779 ID: "dcim_console-ports_trace", 1780 Method: "GET", 1781 PathPattern: "/dcim/console-ports/{id}/trace/", 1782 ProducesMediaTypes: []string{"application/json"}, 1783 ConsumesMediaTypes: []string{"application/json"}, 1784 Schemes: []string{"http"}, 1785 Params: params, 1786 Reader: &DcimConsolePortsTraceReader{formats: a.formats}, 1787 AuthInfo: authInfo, 1788 Context: params.Context, 1789 Client: params.HTTPClient, 1790 } 1791 for _, opt := range opts { 1792 opt(op) 1793 } 1794 1795 result, err := a.transport.Submit(op) 1796 if err != nil { 1797 return nil, err 1798 } 1799 success, ok := result.(*DcimConsolePortsTraceOK) 1800 if ok { 1801 return success, nil 1802 } 1803 // unexpected success response 1804 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1805 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_trace: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1806 panic(msg) 1807 } 1808 1809 /* 1810 DcimConsolePortsUpdate dcim console ports update API 1811 */ 1812 func (a *Client) DcimConsolePortsUpdate(params *DcimConsolePortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsolePortsUpdateOK, error) { 1813 // TODO: Validate the params before sending 1814 if params == nil { 1815 params = NewDcimConsolePortsUpdateParams() 1816 } 1817 op := &runtime.ClientOperation{ 1818 ID: "dcim_console-ports_update", 1819 Method: "PUT", 1820 PathPattern: "/dcim/console-ports/{id}/", 1821 ProducesMediaTypes: []string{"application/json"}, 1822 ConsumesMediaTypes: []string{"application/json"}, 1823 Schemes: []string{"http"}, 1824 Params: params, 1825 Reader: &DcimConsolePortsUpdateReader{formats: a.formats}, 1826 AuthInfo: authInfo, 1827 Context: params.Context, 1828 Client: params.HTTPClient, 1829 } 1830 for _, opt := range opts { 1831 opt(op) 1832 } 1833 1834 result, err := a.transport.Submit(op) 1835 if err != nil { 1836 return nil, err 1837 } 1838 success, ok := result.(*DcimConsolePortsUpdateOK) 1839 if ok { 1840 return success, nil 1841 } 1842 // unexpected success response 1843 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1844 msg := fmt.Sprintf("unexpected success response for dcim_console-ports_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1845 panic(msg) 1846 } 1847 1848 /* 1849 DcimConsoleServerPortTemplatesBulkDelete dcim console server port templates bulk delete API 1850 */ 1851 func (a *Client) DcimConsoleServerPortTemplatesBulkDelete(params *DcimConsoleServerPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesBulkDeleteNoContent, error) { 1852 // TODO: Validate the params before sending 1853 if params == nil { 1854 params = NewDcimConsoleServerPortTemplatesBulkDeleteParams() 1855 } 1856 op := &runtime.ClientOperation{ 1857 ID: "dcim_console-server-port-templates_bulk_delete", 1858 Method: "DELETE", 1859 PathPattern: "/dcim/console-server-port-templates/", 1860 ProducesMediaTypes: []string{"application/json"}, 1861 ConsumesMediaTypes: []string{"application/json"}, 1862 Schemes: []string{"http"}, 1863 Params: params, 1864 Reader: &DcimConsoleServerPortTemplatesBulkDeleteReader{formats: a.formats}, 1865 AuthInfo: authInfo, 1866 Context: params.Context, 1867 Client: params.HTTPClient, 1868 } 1869 for _, opt := range opts { 1870 opt(op) 1871 } 1872 1873 result, err := a.transport.Submit(op) 1874 if err != nil { 1875 return nil, err 1876 } 1877 success, ok := result.(*DcimConsoleServerPortTemplatesBulkDeleteNoContent) 1878 if ok { 1879 return success, nil 1880 } 1881 // unexpected success response 1882 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1883 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1884 panic(msg) 1885 } 1886 1887 /* 1888 DcimConsoleServerPortTemplatesBulkPartialUpdate dcim console server port templates bulk partial update API 1889 */ 1890 func (a *Client) DcimConsoleServerPortTemplatesBulkPartialUpdate(params *DcimConsoleServerPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesBulkPartialUpdateOK, error) { 1891 // TODO: Validate the params before sending 1892 if params == nil { 1893 params = NewDcimConsoleServerPortTemplatesBulkPartialUpdateParams() 1894 } 1895 op := &runtime.ClientOperation{ 1896 ID: "dcim_console-server-port-templates_bulk_partial_update", 1897 Method: "PATCH", 1898 PathPattern: "/dcim/console-server-port-templates/", 1899 ProducesMediaTypes: []string{"application/json"}, 1900 ConsumesMediaTypes: []string{"application/json"}, 1901 Schemes: []string{"http"}, 1902 Params: params, 1903 Reader: &DcimConsoleServerPortTemplatesBulkPartialUpdateReader{formats: a.formats}, 1904 AuthInfo: authInfo, 1905 Context: params.Context, 1906 Client: params.HTTPClient, 1907 } 1908 for _, opt := range opts { 1909 opt(op) 1910 } 1911 1912 result, err := a.transport.Submit(op) 1913 if err != nil { 1914 return nil, err 1915 } 1916 success, ok := result.(*DcimConsoleServerPortTemplatesBulkPartialUpdateOK) 1917 if ok { 1918 return success, nil 1919 } 1920 // unexpected success response 1921 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1922 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1923 panic(msg) 1924 } 1925 1926 /* 1927 DcimConsoleServerPortTemplatesBulkUpdate dcim console server port templates bulk update API 1928 */ 1929 func (a *Client) DcimConsoleServerPortTemplatesBulkUpdate(params *DcimConsoleServerPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesBulkUpdateOK, error) { 1930 // TODO: Validate the params before sending 1931 if params == nil { 1932 params = NewDcimConsoleServerPortTemplatesBulkUpdateParams() 1933 } 1934 op := &runtime.ClientOperation{ 1935 ID: "dcim_console-server-port-templates_bulk_update", 1936 Method: "PUT", 1937 PathPattern: "/dcim/console-server-port-templates/", 1938 ProducesMediaTypes: []string{"application/json"}, 1939 ConsumesMediaTypes: []string{"application/json"}, 1940 Schemes: []string{"http"}, 1941 Params: params, 1942 Reader: &DcimConsoleServerPortTemplatesBulkUpdateReader{formats: a.formats}, 1943 AuthInfo: authInfo, 1944 Context: params.Context, 1945 Client: params.HTTPClient, 1946 } 1947 for _, opt := range opts { 1948 opt(op) 1949 } 1950 1951 result, err := a.transport.Submit(op) 1952 if err != nil { 1953 return nil, err 1954 } 1955 success, ok := result.(*DcimConsoleServerPortTemplatesBulkUpdateOK) 1956 if ok { 1957 return success, nil 1958 } 1959 // unexpected success response 1960 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1961 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1962 panic(msg) 1963 } 1964 1965 /* 1966 DcimConsoleServerPortTemplatesCreate dcim console server port templates create API 1967 */ 1968 func (a *Client) DcimConsoleServerPortTemplatesCreate(params *DcimConsoleServerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesCreateCreated, error) { 1969 // TODO: Validate the params before sending 1970 if params == nil { 1971 params = NewDcimConsoleServerPortTemplatesCreateParams() 1972 } 1973 op := &runtime.ClientOperation{ 1974 ID: "dcim_console-server-port-templates_create", 1975 Method: "POST", 1976 PathPattern: "/dcim/console-server-port-templates/", 1977 ProducesMediaTypes: []string{"application/json"}, 1978 ConsumesMediaTypes: []string{"application/json"}, 1979 Schemes: []string{"http"}, 1980 Params: params, 1981 Reader: &DcimConsoleServerPortTemplatesCreateReader{formats: a.formats}, 1982 AuthInfo: authInfo, 1983 Context: params.Context, 1984 Client: params.HTTPClient, 1985 } 1986 for _, opt := range opts { 1987 opt(op) 1988 } 1989 1990 result, err := a.transport.Submit(op) 1991 if err != nil { 1992 return nil, err 1993 } 1994 success, ok := result.(*DcimConsoleServerPortTemplatesCreateCreated) 1995 if ok { 1996 return success, nil 1997 } 1998 // unexpected success response 1999 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2000 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2001 panic(msg) 2002 } 2003 2004 /* 2005 DcimConsoleServerPortTemplatesDelete dcim console server port templates delete API 2006 */ 2007 func (a *Client) DcimConsoleServerPortTemplatesDelete(params *DcimConsoleServerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesDeleteNoContent, error) { 2008 // TODO: Validate the params before sending 2009 if params == nil { 2010 params = NewDcimConsoleServerPortTemplatesDeleteParams() 2011 } 2012 op := &runtime.ClientOperation{ 2013 ID: "dcim_console-server-port-templates_delete", 2014 Method: "DELETE", 2015 PathPattern: "/dcim/console-server-port-templates/{id}/", 2016 ProducesMediaTypes: []string{"application/json"}, 2017 ConsumesMediaTypes: []string{"application/json"}, 2018 Schemes: []string{"http"}, 2019 Params: params, 2020 Reader: &DcimConsoleServerPortTemplatesDeleteReader{formats: a.formats}, 2021 AuthInfo: authInfo, 2022 Context: params.Context, 2023 Client: params.HTTPClient, 2024 } 2025 for _, opt := range opts { 2026 opt(op) 2027 } 2028 2029 result, err := a.transport.Submit(op) 2030 if err != nil { 2031 return nil, err 2032 } 2033 success, ok := result.(*DcimConsoleServerPortTemplatesDeleteNoContent) 2034 if ok { 2035 return success, nil 2036 } 2037 // unexpected success response 2038 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2039 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2040 panic(msg) 2041 } 2042 2043 /* 2044 DcimConsoleServerPortTemplatesList dcim console server port templates list API 2045 */ 2046 func (a *Client) DcimConsoleServerPortTemplatesList(params *DcimConsoleServerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesListOK, error) { 2047 // TODO: Validate the params before sending 2048 if params == nil { 2049 params = NewDcimConsoleServerPortTemplatesListParams() 2050 } 2051 op := &runtime.ClientOperation{ 2052 ID: "dcim_console-server-port-templates_list", 2053 Method: "GET", 2054 PathPattern: "/dcim/console-server-port-templates/", 2055 ProducesMediaTypes: []string{"application/json"}, 2056 ConsumesMediaTypes: []string{"application/json"}, 2057 Schemes: []string{"http"}, 2058 Params: params, 2059 Reader: &DcimConsoleServerPortTemplatesListReader{formats: a.formats}, 2060 AuthInfo: authInfo, 2061 Context: params.Context, 2062 Client: params.HTTPClient, 2063 } 2064 for _, opt := range opts { 2065 opt(op) 2066 } 2067 2068 result, err := a.transport.Submit(op) 2069 if err != nil { 2070 return nil, err 2071 } 2072 success, ok := result.(*DcimConsoleServerPortTemplatesListOK) 2073 if ok { 2074 return success, nil 2075 } 2076 // unexpected success response 2077 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2078 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2079 panic(msg) 2080 } 2081 2082 /* 2083 DcimConsoleServerPortTemplatesPartialUpdate dcim console server port templates partial update API 2084 */ 2085 func (a *Client) DcimConsoleServerPortTemplatesPartialUpdate(params *DcimConsoleServerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesPartialUpdateOK, error) { 2086 // TODO: Validate the params before sending 2087 if params == nil { 2088 params = NewDcimConsoleServerPortTemplatesPartialUpdateParams() 2089 } 2090 op := &runtime.ClientOperation{ 2091 ID: "dcim_console-server-port-templates_partial_update", 2092 Method: "PATCH", 2093 PathPattern: "/dcim/console-server-port-templates/{id}/", 2094 ProducesMediaTypes: []string{"application/json"}, 2095 ConsumesMediaTypes: []string{"application/json"}, 2096 Schemes: []string{"http"}, 2097 Params: params, 2098 Reader: &DcimConsoleServerPortTemplatesPartialUpdateReader{formats: a.formats}, 2099 AuthInfo: authInfo, 2100 Context: params.Context, 2101 Client: params.HTTPClient, 2102 } 2103 for _, opt := range opts { 2104 opt(op) 2105 } 2106 2107 result, err := a.transport.Submit(op) 2108 if err != nil { 2109 return nil, err 2110 } 2111 success, ok := result.(*DcimConsoleServerPortTemplatesPartialUpdateOK) 2112 if ok { 2113 return success, nil 2114 } 2115 // unexpected success response 2116 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2117 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2118 panic(msg) 2119 } 2120 2121 /* 2122 DcimConsoleServerPortTemplatesRead dcim console server port templates read API 2123 */ 2124 func (a *Client) DcimConsoleServerPortTemplatesRead(params *DcimConsoleServerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesReadOK, error) { 2125 // TODO: Validate the params before sending 2126 if params == nil { 2127 params = NewDcimConsoleServerPortTemplatesReadParams() 2128 } 2129 op := &runtime.ClientOperation{ 2130 ID: "dcim_console-server-port-templates_read", 2131 Method: "GET", 2132 PathPattern: "/dcim/console-server-port-templates/{id}/", 2133 ProducesMediaTypes: []string{"application/json"}, 2134 ConsumesMediaTypes: []string{"application/json"}, 2135 Schemes: []string{"http"}, 2136 Params: params, 2137 Reader: &DcimConsoleServerPortTemplatesReadReader{formats: a.formats}, 2138 AuthInfo: authInfo, 2139 Context: params.Context, 2140 Client: params.HTTPClient, 2141 } 2142 for _, opt := range opts { 2143 opt(op) 2144 } 2145 2146 result, err := a.transport.Submit(op) 2147 if err != nil { 2148 return nil, err 2149 } 2150 success, ok := result.(*DcimConsoleServerPortTemplatesReadOK) 2151 if ok { 2152 return success, nil 2153 } 2154 // unexpected success response 2155 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2156 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2157 panic(msg) 2158 } 2159 2160 /* 2161 DcimConsoleServerPortTemplatesUpdate dcim console server port templates update API 2162 */ 2163 func (a *Client) DcimConsoleServerPortTemplatesUpdate(params *DcimConsoleServerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortTemplatesUpdateOK, error) { 2164 // TODO: Validate the params before sending 2165 if params == nil { 2166 params = NewDcimConsoleServerPortTemplatesUpdateParams() 2167 } 2168 op := &runtime.ClientOperation{ 2169 ID: "dcim_console-server-port-templates_update", 2170 Method: "PUT", 2171 PathPattern: "/dcim/console-server-port-templates/{id}/", 2172 ProducesMediaTypes: []string{"application/json"}, 2173 ConsumesMediaTypes: []string{"application/json"}, 2174 Schemes: []string{"http"}, 2175 Params: params, 2176 Reader: &DcimConsoleServerPortTemplatesUpdateReader{formats: a.formats}, 2177 AuthInfo: authInfo, 2178 Context: params.Context, 2179 Client: params.HTTPClient, 2180 } 2181 for _, opt := range opts { 2182 opt(op) 2183 } 2184 2185 result, err := a.transport.Submit(op) 2186 if err != nil { 2187 return nil, err 2188 } 2189 success, ok := result.(*DcimConsoleServerPortTemplatesUpdateOK) 2190 if ok { 2191 return success, nil 2192 } 2193 // unexpected success response 2194 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2195 msg := fmt.Sprintf("unexpected success response for dcim_console-server-port-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2196 panic(msg) 2197 } 2198 2199 /* 2200 DcimConsoleServerPortsBulkDelete dcim console server ports bulk delete API 2201 */ 2202 func (a *Client) DcimConsoleServerPortsBulkDelete(params *DcimConsoleServerPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsBulkDeleteNoContent, error) { 2203 // TODO: Validate the params before sending 2204 if params == nil { 2205 params = NewDcimConsoleServerPortsBulkDeleteParams() 2206 } 2207 op := &runtime.ClientOperation{ 2208 ID: "dcim_console-server-ports_bulk_delete", 2209 Method: "DELETE", 2210 PathPattern: "/dcim/console-server-ports/", 2211 ProducesMediaTypes: []string{"application/json"}, 2212 ConsumesMediaTypes: []string{"application/json"}, 2213 Schemes: []string{"http"}, 2214 Params: params, 2215 Reader: &DcimConsoleServerPortsBulkDeleteReader{formats: a.formats}, 2216 AuthInfo: authInfo, 2217 Context: params.Context, 2218 Client: params.HTTPClient, 2219 } 2220 for _, opt := range opts { 2221 opt(op) 2222 } 2223 2224 result, err := a.transport.Submit(op) 2225 if err != nil { 2226 return nil, err 2227 } 2228 success, ok := result.(*DcimConsoleServerPortsBulkDeleteNoContent) 2229 if ok { 2230 return success, nil 2231 } 2232 // unexpected success response 2233 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2234 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2235 panic(msg) 2236 } 2237 2238 /* 2239 DcimConsoleServerPortsBulkPartialUpdate dcim console server ports bulk partial update API 2240 */ 2241 func (a *Client) DcimConsoleServerPortsBulkPartialUpdate(params *DcimConsoleServerPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsBulkPartialUpdateOK, error) { 2242 // TODO: Validate the params before sending 2243 if params == nil { 2244 params = NewDcimConsoleServerPortsBulkPartialUpdateParams() 2245 } 2246 op := &runtime.ClientOperation{ 2247 ID: "dcim_console-server-ports_bulk_partial_update", 2248 Method: "PATCH", 2249 PathPattern: "/dcim/console-server-ports/", 2250 ProducesMediaTypes: []string{"application/json"}, 2251 ConsumesMediaTypes: []string{"application/json"}, 2252 Schemes: []string{"http"}, 2253 Params: params, 2254 Reader: &DcimConsoleServerPortsBulkPartialUpdateReader{formats: a.formats}, 2255 AuthInfo: authInfo, 2256 Context: params.Context, 2257 Client: params.HTTPClient, 2258 } 2259 for _, opt := range opts { 2260 opt(op) 2261 } 2262 2263 result, err := a.transport.Submit(op) 2264 if err != nil { 2265 return nil, err 2266 } 2267 success, ok := result.(*DcimConsoleServerPortsBulkPartialUpdateOK) 2268 if ok { 2269 return success, nil 2270 } 2271 // unexpected success response 2272 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2273 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2274 panic(msg) 2275 } 2276 2277 /* 2278 DcimConsoleServerPortsBulkUpdate dcim console server ports bulk update API 2279 */ 2280 func (a *Client) DcimConsoleServerPortsBulkUpdate(params *DcimConsoleServerPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsBulkUpdateOK, error) { 2281 // TODO: Validate the params before sending 2282 if params == nil { 2283 params = NewDcimConsoleServerPortsBulkUpdateParams() 2284 } 2285 op := &runtime.ClientOperation{ 2286 ID: "dcim_console-server-ports_bulk_update", 2287 Method: "PUT", 2288 PathPattern: "/dcim/console-server-ports/", 2289 ProducesMediaTypes: []string{"application/json"}, 2290 ConsumesMediaTypes: []string{"application/json"}, 2291 Schemes: []string{"http"}, 2292 Params: params, 2293 Reader: &DcimConsoleServerPortsBulkUpdateReader{formats: a.formats}, 2294 AuthInfo: authInfo, 2295 Context: params.Context, 2296 Client: params.HTTPClient, 2297 } 2298 for _, opt := range opts { 2299 opt(op) 2300 } 2301 2302 result, err := a.transport.Submit(op) 2303 if err != nil { 2304 return nil, err 2305 } 2306 success, ok := result.(*DcimConsoleServerPortsBulkUpdateOK) 2307 if ok { 2308 return success, nil 2309 } 2310 // unexpected success response 2311 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2312 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2313 panic(msg) 2314 } 2315 2316 /* 2317 DcimConsoleServerPortsCreate dcim console server ports create API 2318 */ 2319 func (a *Client) DcimConsoleServerPortsCreate(params *DcimConsoleServerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsCreateCreated, error) { 2320 // TODO: Validate the params before sending 2321 if params == nil { 2322 params = NewDcimConsoleServerPortsCreateParams() 2323 } 2324 op := &runtime.ClientOperation{ 2325 ID: "dcim_console-server-ports_create", 2326 Method: "POST", 2327 PathPattern: "/dcim/console-server-ports/", 2328 ProducesMediaTypes: []string{"application/json"}, 2329 ConsumesMediaTypes: []string{"application/json"}, 2330 Schemes: []string{"http"}, 2331 Params: params, 2332 Reader: &DcimConsoleServerPortsCreateReader{formats: a.formats}, 2333 AuthInfo: authInfo, 2334 Context: params.Context, 2335 Client: params.HTTPClient, 2336 } 2337 for _, opt := range opts { 2338 opt(op) 2339 } 2340 2341 result, err := a.transport.Submit(op) 2342 if err != nil { 2343 return nil, err 2344 } 2345 success, ok := result.(*DcimConsoleServerPortsCreateCreated) 2346 if ok { 2347 return success, nil 2348 } 2349 // unexpected success response 2350 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2351 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2352 panic(msg) 2353 } 2354 2355 /* 2356 DcimConsoleServerPortsDelete dcim console server ports delete API 2357 */ 2358 func (a *Client) DcimConsoleServerPortsDelete(params *DcimConsoleServerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsDeleteNoContent, error) { 2359 // TODO: Validate the params before sending 2360 if params == nil { 2361 params = NewDcimConsoleServerPortsDeleteParams() 2362 } 2363 op := &runtime.ClientOperation{ 2364 ID: "dcim_console-server-ports_delete", 2365 Method: "DELETE", 2366 PathPattern: "/dcim/console-server-ports/{id}/", 2367 ProducesMediaTypes: []string{"application/json"}, 2368 ConsumesMediaTypes: []string{"application/json"}, 2369 Schemes: []string{"http"}, 2370 Params: params, 2371 Reader: &DcimConsoleServerPortsDeleteReader{formats: a.formats}, 2372 AuthInfo: authInfo, 2373 Context: params.Context, 2374 Client: params.HTTPClient, 2375 } 2376 for _, opt := range opts { 2377 opt(op) 2378 } 2379 2380 result, err := a.transport.Submit(op) 2381 if err != nil { 2382 return nil, err 2383 } 2384 success, ok := result.(*DcimConsoleServerPortsDeleteNoContent) 2385 if ok { 2386 return success, nil 2387 } 2388 // unexpected success response 2389 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2390 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2391 panic(msg) 2392 } 2393 2394 /* 2395 DcimConsoleServerPortsList dcim console server ports list API 2396 */ 2397 func (a *Client) DcimConsoleServerPortsList(params *DcimConsoleServerPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsListOK, error) { 2398 // TODO: Validate the params before sending 2399 if params == nil { 2400 params = NewDcimConsoleServerPortsListParams() 2401 } 2402 op := &runtime.ClientOperation{ 2403 ID: "dcim_console-server-ports_list", 2404 Method: "GET", 2405 PathPattern: "/dcim/console-server-ports/", 2406 ProducesMediaTypes: []string{"application/json"}, 2407 ConsumesMediaTypes: []string{"application/json"}, 2408 Schemes: []string{"http"}, 2409 Params: params, 2410 Reader: &DcimConsoleServerPortsListReader{formats: a.formats}, 2411 AuthInfo: authInfo, 2412 Context: params.Context, 2413 Client: params.HTTPClient, 2414 } 2415 for _, opt := range opts { 2416 opt(op) 2417 } 2418 2419 result, err := a.transport.Submit(op) 2420 if err != nil { 2421 return nil, err 2422 } 2423 success, ok := result.(*DcimConsoleServerPortsListOK) 2424 if ok { 2425 return success, nil 2426 } 2427 // unexpected success response 2428 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2429 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2430 panic(msg) 2431 } 2432 2433 /* 2434 DcimConsoleServerPortsPartialUpdate dcim console server ports partial update API 2435 */ 2436 func (a *Client) DcimConsoleServerPortsPartialUpdate(params *DcimConsoleServerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsPartialUpdateOK, error) { 2437 // TODO: Validate the params before sending 2438 if params == nil { 2439 params = NewDcimConsoleServerPortsPartialUpdateParams() 2440 } 2441 op := &runtime.ClientOperation{ 2442 ID: "dcim_console-server-ports_partial_update", 2443 Method: "PATCH", 2444 PathPattern: "/dcim/console-server-ports/{id}/", 2445 ProducesMediaTypes: []string{"application/json"}, 2446 ConsumesMediaTypes: []string{"application/json"}, 2447 Schemes: []string{"http"}, 2448 Params: params, 2449 Reader: &DcimConsoleServerPortsPartialUpdateReader{formats: a.formats}, 2450 AuthInfo: authInfo, 2451 Context: params.Context, 2452 Client: params.HTTPClient, 2453 } 2454 for _, opt := range opts { 2455 opt(op) 2456 } 2457 2458 result, err := a.transport.Submit(op) 2459 if err != nil { 2460 return nil, err 2461 } 2462 success, ok := result.(*DcimConsoleServerPortsPartialUpdateOK) 2463 if ok { 2464 return success, nil 2465 } 2466 // unexpected success response 2467 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2468 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2469 panic(msg) 2470 } 2471 2472 /* 2473 DcimConsoleServerPortsRead dcim console server ports read API 2474 */ 2475 func (a *Client) DcimConsoleServerPortsRead(params *DcimConsoleServerPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsReadOK, error) { 2476 // TODO: Validate the params before sending 2477 if params == nil { 2478 params = NewDcimConsoleServerPortsReadParams() 2479 } 2480 op := &runtime.ClientOperation{ 2481 ID: "dcim_console-server-ports_read", 2482 Method: "GET", 2483 PathPattern: "/dcim/console-server-ports/{id}/", 2484 ProducesMediaTypes: []string{"application/json"}, 2485 ConsumesMediaTypes: []string{"application/json"}, 2486 Schemes: []string{"http"}, 2487 Params: params, 2488 Reader: &DcimConsoleServerPortsReadReader{formats: a.formats}, 2489 AuthInfo: authInfo, 2490 Context: params.Context, 2491 Client: params.HTTPClient, 2492 } 2493 for _, opt := range opts { 2494 opt(op) 2495 } 2496 2497 result, err := a.transport.Submit(op) 2498 if err != nil { 2499 return nil, err 2500 } 2501 success, ok := result.(*DcimConsoleServerPortsReadOK) 2502 if ok { 2503 return success, nil 2504 } 2505 // unexpected success response 2506 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2507 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2508 panic(msg) 2509 } 2510 2511 /* 2512 DcimConsoleServerPortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). 2513 */ 2514 func (a *Client) DcimConsoleServerPortsTrace(params *DcimConsoleServerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsTraceOK, error) { 2515 // TODO: Validate the params before sending 2516 if params == nil { 2517 params = NewDcimConsoleServerPortsTraceParams() 2518 } 2519 op := &runtime.ClientOperation{ 2520 ID: "dcim_console-server-ports_trace", 2521 Method: "GET", 2522 PathPattern: "/dcim/console-server-ports/{id}/trace/", 2523 ProducesMediaTypes: []string{"application/json"}, 2524 ConsumesMediaTypes: []string{"application/json"}, 2525 Schemes: []string{"http"}, 2526 Params: params, 2527 Reader: &DcimConsoleServerPortsTraceReader{formats: a.formats}, 2528 AuthInfo: authInfo, 2529 Context: params.Context, 2530 Client: params.HTTPClient, 2531 } 2532 for _, opt := range opts { 2533 opt(op) 2534 } 2535 2536 result, err := a.transport.Submit(op) 2537 if err != nil { 2538 return nil, err 2539 } 2540 success, ok := result.(*DcimConsoleServerPortsTraceOK) 2541 if ok { 2542 return success, nil 2543 } 2544 // unexpected success response 2545 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2546 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_trace: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2547 panic(msg) 2548 } 2549 2550 /* 2551 DcimConsoleServerPortsUpdate dcim console server ports update API 2552 */ 2553 func (a *Client) DcimConsoleServerPortsUpdate(params *DcimConsoleServerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimConsoleServerPortsUpdateOK, error) { 2554 // TODO: Validate the params before sending 2555 if params == nil { 2556 params = NewDcimConsoleServerPortsUpdateParams() 2557 } 2558 op := &runtime.ClientOperation{ 2559 ID: "dcim_console-server-ports_update", 2560 Method: "PUT", 2561 PathPattern: "/dcim/console-server-ports/{id}/", 2562 ProducesMediaTypes: []string{"application/json"}, 2563 ConsumesMediaTypes: []string{"application/json"}, 2564 Schemes: []string{"http"}, 2565 Params: params, 2566 Reader: &DcimConsoleServerPortsUpdateReader{formats: a.formats}, 2567 AuthInfo: authInfo, 2568 Context: params.Context, 2569 Client: params.HTTPClient, 2570 } 2571 for _, opt := range opts { 2572 opt(op) 2573 } 2574 2575 result, err := a.transport.Submit(op) 2576 if err != nil { 2577 return nil, err 2578 } 2579 success, ok := result.(*DcimConsoleServerPortsUpdateOK) 2580 if ok { 2581 return success, nil 2582 } 2583 // unexpected success response 2584 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2585 msg := fmt.Sprintf("unexpected success response for dcim_console-server-ports_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2586 panic(msg) 2587 } 2588 2589 /* 2590 DcimDeviceBayTemplatesBulkDelete dcim device bay templates bulk delete API 2591 */ 2592 func (a *Client) DcimDeviceBayTemplatesBulkDelete(params *DcimDeviceBayTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesBulkDeleteNoContent, error) { 2593 // TODO: Validate the params before sending 2594 if params == nil { 2595 params = NewDcimDeviceBayTemplatesBulkDeleteParams() 2596 } 2597 op := &runtime.ClientOperation{ 2598 ID: "dcim_device-bay-templates_bulk_delete", 2599 Method: "DELETE", 2600 PathPattern: "/dcim/device-bay-templates/", 2601 ProducesMediaTypes: []string{"application/json"}, 2602 ConsumesMediaTypes: []string{"application/json"}, 2603 Schemes: []string{"http"}, 2604 Params: params, 2605 Reader: &DcimDeviceBayTemplatesBulkDeleteReader{formats: a.formats}, 2606 AuthInfo: authInfo, 2607 Context: params.Context, 2608 Client: params.HTTPClient, 2609 } 2610 for _, opt := range opts { 2611 opt(op) 2612 } 2613 2614 result, err := a.transport.Submit(op) 2615 if err != nil { 2616 return nil, err 2617 } 2618 success, ok := result.(*DcimDeviceBayTemplatesBulkDeleteNoContent) 2619 if ok { 2620 return success, nil 2621 } 2622 // unexpected success response 2623 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2624 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2625 panic(msg) 2626 } 2627 2628 /* 2629 DcimDeviceBayTemplatesBulkPartialUpdate dcim device bay templates bulk partial update API 2630 */ 2631 func (a *Client) DcimDeviceBayTemplatesBulkPartialUpdate(params *DcimDeviceBayTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesBulkPartialUpdateOK, error) { 2632 // TODO: Validate the params before sending 2633 if params == nil { 2634 params = NewDcimDeviceBayTemplatesBulkPartialUpdateParams() 2635 } 2636 op := &runtime.ClientOperation{ 2637 ID: "dcim_device-bay-templates_bulk_partial_update", 2638 Method: "PATCH", 2639 PathPattern: "/dcim/device-bay-templates/", 2640 ProducesMediaTypes: []string{"application/json"}, 2641 ConsumesMediaTypes: []string{"application/json"}, 2642 Schemes: []string{"http"}, 2643 Params: params, 2644 Reader: &DcimDeviceBayTemplatesBulkPartialUpdateReader{formats: a.formats}, 2645 AuthInfo: authInfo, 2646 Context: params.Context, 2647 Client: params.HTTPClient, 2648 } 2649 for _, opt := range opts { 2650 opt(op) 2651 } 2652 2653 result, err := a.transport.Submit(op) 2654 if err != nil { 2655 return nil, err 2656 } 2657 success, ok := result.(*DcimDeviceBayTemplatesBulkPartialUpdateOK) 2658 if ok { 2659 return success, nil 2660 } 2661 // unexpected success response 2662 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2663 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2664 panic(msg) 2665 } 2666 2667 /* 2668 DcimDeviceBayTemplatesBulkUpdate dcim device bay templates bulk update API 2669 */ 2670 func (a *Client) DcimDeviceBayTemplatesBulkUpdate(params *DcimDeviceBayTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesBulkUpdateOK, error) { 2671 // TODO: Validate the params before sending 2672 if params == nil { 2673 params = NewDcimDeviceBayTemplatesBulkUpdateParams() 2674 } 2675 op := &runtime.ClientOperation{ 2676 ID: "dcim_device-bay-templates_bulk_update", 2677 Method: "PUT", 2678 PathPattern: "/dcim/device-bay-templates/", 2679 ProducesMediaTypes: []string{"application/json"}, 2680 ConsumesMediaTypes: []string{"application/json"}, 2681 Schemes: []string{"http"}, 2682 Params: params, 2683 Reader: &DcimDeviceBayTemplatesBulkUpdateReader{formats: a.formats}, 2684 AuthInfo: authInfo, 2685 Context: params.Context, 2686 Client: params.HTTPClient, 2687 } 2688 for _, opt := range opts { 2689 opt(op) 2690 } 2691 2692 result, err := a.transport.Submit(op) 2693 if err != nil { 2694 return nil, err 2695 } 2696 success, ok := result.(*DcimDeviceBayTemplatesBulkUpdateOK) 2697 if ok { 2698 return success, nil 2699 } 2700 // unexpected success response 2701 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2702 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2703 panic(msg) 2704 } 2705 2706 /* 2707 DcimDeviceBayTemplatesCreate dcim device bay templates create API 2708 */ 2709 func (a *Client) DcimDeviceBayTemplatesCreate(params *DcimDeviceBayTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesCreateCreated, error) { 2710 // TODO: Validate the params before sending 2711 if params == nil { 2712 params = NewDcimDeviceBayTemplatesCreateParams() 2713 } 2714 op := &runtime.ClientOperation{ 2715 ID: "dcim_device-bay-templates_create", 2716 Method: "POST", 2717 PathPattern: "/dcim/device-bay-templates/", 2718 ProducesMediaTypes: []string{"application/json"}, 2719 ConsumesMediaTypes: []string{"application/json"}, 2720 Schemes: []string{"http"}, 2721 Params: params, 2722 Reader: &DcimDeviceBayTemplatesCreateReader{formats: a.formats}, 2723 AuthInfo: authInfo, 2724 Context: params.Context, 2725 Client: params.HTTPClient, 2726 } 2727 for _, opt := range opts { 2728 opt(op) 2729 } 2730 2731 result, err := a.transport.Submit(op) 2732 if err != nil { 2733 return nil, err 2734 } 2735 success, ok := result.(*DcimDeviceBayTemplatesCreateCreated) 2736 if ok { 2737 return success, nil 2738 } 2739 // unexpected success response 2740 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2741 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2742 panic(msg) 2743 } 2744 2745 /* 2746 DcimDeviceBayTemplatesDelete dcim device bay templates delete API 2747 */ 2748 func (a *Client) DcimDeviceBayTemplatesDelete(params *DcimDeviceBayTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesDeleteNoContent, error) { 2749 // TODO: Validate the params before sending 2750 if params == nil { 2751 params = NewDcimDeviceBayTemplatesDeleteParams() 2752 } 2753 op := &runtime.ClientOperation{ 2754 ID: "dcim_device-bay-templates_delete", 2755 Method: "DELETE", 2756 PathPattern: "/dcim/device-bay-templates/{id}/", 2757 ProducesMediaTypes: []string{"application/json"}, 2758 ConsumesMediaTypes: []string{"application/json"}, 2759 Schemes: []string{"http"}, 2760 Params: params, 2761 Reader: &DcimDeviceBayTemplatesDeleteReader{formats: a.formats}, 2762 AuthInfo: authInfo, 2763 Context: params.Context, 2764 Client: params.HTTPClient, 2765 } 2766 for _, opt := range opts { 2767 opt(op) 2768 } 2769 2770 result, err := a.transport.Submit(op) 2771 if err != nil { 2772 return nil, err 2773 } 2774 success, ok := result.(*DcimDeviceBayTemplatesDeleteNoContent) 2775 if ok { 2776 return success, nil 2777 } 2778 // unexpected success response 2779 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2780 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2781 panic(msg) 2782 } 2783 2784 /* 2785 DcimDeviceBayTemplatesList dcim device bay templates list API 2786 */ 2787 func (a *Client) DcimDeviceBayTemplatesList(params *DcimDeviceBayTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesListOK, error) { 2788 // TODO: Validate the params before sending 2789 if params == nil { 2790 params = NewDcimDeviceBayTemplatesListParams() 2791 } 2792 op := &runtime.ClientOperation{ 2793 ID: "dcim_device-bay-templates_list", 2794 Method: "GET", 2795 PathPattern: "/dcim/device-bay-templates/", 2796 ProducesMediaTypes: []string{"application/json"}, 2797 ConsumesMediaTypes: []string{"application/json"}, 2798 Schemes: []string{"http"}, 2799 Params: params, 2800 Reader: &DcimDeviceBayTemplatesListReader{formats: a.formats}, 2801 AuthInfo: authInfo, 2802 Context: params.Context, 2803 Client: params.HTTPClient, 2804 } 2805 for _, opt := range opts { 2806 opt(op) 2807 } 2808 2809 result, err := a.transport.Submit(op) 2810 if err != nil { 2811 return nil, err 2812 } 2813 success, ok := result.(*DcimDeviceBayTemplatesListOK) 2814 if ok { 2815 return success, nil 2816 } 2817 // unexpected success response 2818 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2819 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2820 panic(msg) 2821 } 2822 2823 /* 2824 DcimDeviceBayTemplatesPartialUpdate dcim device bay templates partial update API 2825 */ 2826 func (a *Client) DcimDeviceBayTemplatesPartialUpdate(params *DcimDeviceBayTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesPartialUpdateOK, error) { 2827 // TODO: Validate the params before sending 2828 if params == nil { 2829 params = NewDcimDeviceBayTemplatesPartialUpdateParams() 2830 } 2831 op := &runtime.ClientOperation{ 2832 ID: "dcim_device-bay-templates_partial_update", 2833 Method: "PATCH", 2834 PathPattern: "/dcim/device-bay-templates/{id}/", 2835 ProducesMediaTypes: []string{"application/json"}, 2836 ConsumesMediaTypes: []string{"application/json"}, 2837 Schemes: []string{"http"}, 2838 Params: params, 2839 Reader: &DcimDeviceBayTemplatesPartialUpdateReader{formats: a.formats}, 2840 AuthInfo: authInfo, 2841 Context: params.Context, 2842 Client: params.HTTPClient, 2843 } 2844 for _, opt := range opts { 2845 opt(op) 2846 } 2847 2848 result, err := a.transport.Submit(op) 2849 if err != nil { 2850 return nil, err 2851 } 2852 success, ok := result.(*DcimDeviceBayTemplatesPartialUpdateOK) 2853 if ok { 2854 return success, nil 2855 } 2856 // unexpected success response 2857 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2858 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2859 panic(msg) 2860 } 2861 2862 /* 2863 DcimDeviceBayTemplatesRead dcim device bay templates read API 2864 */ 2865 func (a *Client) DcimDeviceBayTemplatesRead(params *DcimDeviceBayTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesReadOK, error) { 2866 // TODO: Validate the params before sending 2867 if params == nil { 2868 params = NewDcimDeviceBayTemplatesReadParams() 2869 } 2870 op := &runtime.ClientOperation{ 2871 ID: "dcim_device-bay-templates_read", 2872 Method: "GET", 2873 PathPattern: "/dcim/device-bay-templates/{id}/", 2874 ProducesMediaTypes: []string{"application/json"}, 2875 ConsumesMediaTypes: []string{"application/json"}, 2876 Schemes: []string{"http"}, 2877 Params: params, 2878 Reader: &DcimDeviceBayTemplatesReadReader{formats: a.formats}, 2879 AuthInfo: authInfo, 2880 Context: params.Context, 2881 Client: params.HTTPClient, 2882 } 2883 for _, opt := range opts { 2884 opt(op) 2885 } 2886 2887 result, err := a.transport.Submit(op) 2888 if err != nil { 2889 return nil, err 2890 } 2891 success, ok := result.(*DcimDeviceBayTemplatesReadOK) 2892 if ok { 2893 return success, nil 2894 } 2895 // unexpected success response 2896 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2897 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2898 panic(msg) 2899 } 2900 2901 /* 2902 DcimDeviceBayTemplatesUpdate dcim device bay templates update API 2903 */ 2904 func (a *Client) DcimDeviceBayTemplatesUpdate(params *DcimDeviceBayTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBayTemplatesUpdateOK, error) { 2905 // TODO: Validate the params before sending 2906 if params == nil { 2907 params = NewDcimDeviceBayTemplatesUpdateParams() 2908 } 2909 op := &runtime.ClientOperation{ 2910 ID: "dcim_device-bay-templates_update", 2911 Method: "PUT", 2912 PathPattern: "/dcim/device-bay-templates/{id}/", 2913 ProducesMediaTypes: []string{"application/json"}, 2914 ConsumesMediaTypes: []string{"application/json"}, 2915 Schemes: []string{"http"}, 2916 Params: params, 2917 Reader: &DcimDeviceBayTemplatesUpdateReader{formats: a.formats}, 2918 AuthInfo: authInfo, 2919 Context: params.Context, 2920 Client: params.HTTPClient, 2921 } 2922 for _, opt := range opts { 2923 opt(op) 2924 } 2925 2926 result, err := a.transport.Submit(op) 2927 if err != nil { 2928 return nil, err 2929 } 2930 success, ok := result.(*DcimDeviceBayTemplatesUpdateOK) 2931 if ok { 2932 return success, nil 2933 } 2934 // unexpected success response 2935 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2936 msg := fmt.Sprintf("unexpected success response for dcim_device-bay-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2937 panic(msg) 2938 } 2939 2940 /* 2941 DcimDeviceBaysBulkDelete dcim device bays bulk delete API 2942 */ 2943 func (a *Client) DcimDeviceBaysBulkDelete(params *DcimDeviceBaysBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysBulkDeleteNoContent, error) { 2944 // TODO: Validate the params before sending 2945 if params == nil { 2946 params = NewDcimDeviceBaysBulkDeleteParams() 2947 } 2948 op := &runtime.ClientOperation{ 2949 ID: "dcim_device-bays_bulk_delete", 2950 Method: "DELETE", 2951 PathPattern: "/dcim/device-bays/", 2952 ProducesMediaTypes: []string{"application/json"}, 2953 ConsumesMediaTypes: []string{"application/json"}, 2954 Schemes: []string{"http"}, 2955 Params: params, 2956 Reader: &DcimDeviceBaysBulkDeleteReader{formats: a.formats}, 2957 AuthInfo: authInfo, 2958 Context: params.Context, 2959 Client: params.HTTPClient, 2960 } 2961 for _, opt := range opts { 2962 opt(op) 2963 } 2964 2965 result, err := a.transport.Submit(op) 2966 if err != nil { 2967 return nil, err 2968 } 2969 success, ok := result.(*DcimDeviceBaysBulkDeleteNoContent) 2970 if ok { 2971 return success, nil 2972 } 2973 // unexpected success response 2974 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2975 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2976 panic(msg) 2977 } 2978 2979 /* 2980 DcimDeviceBaysBulkPartialUpdate dcim device bays bulk partial update API 2981 */ 2982 func (a *Client) DcimDeviceBaysBulkPartialUpdate(params *DcimDeviceBaysBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysBulkPartialUpdateOK, error) { 2983 // TODO: Validate the params before sending 2984 if params == nil { 2985 params = NewDcimDeviceBaysBulkPartialUpdateParams() 2986 } 2987 op := &runtime.ClientOperation{ 2988 ID: "dcim_device-bays_bulk_partial_update", 2989 Method: "PATCH", 2990 PathPattern: "/dcim/device-bays/", 2991 ProducesMediaTypes: []string{"application/json"}, 2992 ConsumesMediaTypes: []string{"application/json"}, 2993 Schemes: []string{"http"}, 2994 Params: params, 2995 Reader: &DcimDeviceBaysBulkPartialUpdateReader{formats: a.formats}, 2996 AuthInfo: authInfo, 2997 Context: params.Context, 2998 Client: params.HTTPClient, 2999 } 3000 for _, opt := range opts { 3001 opt(op) 3002 } 3003 3004 result, err := a.transport.Submit(op) 3005 if err != nil { 3006 return nil, err 3007 } 3008 success, ok := result.(*DcimDeviceBaysBulkPartialUpdateOK) 3009 if ok { 3010 return success, nil 3011 } 3012 // unexpected success response 3013 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3014 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3015 panic(msg) 3016 } 3017 3018 /* 3019 DcimDeviceBaysBulkUpdate dcim device bays bulk update API 3020 */ 3021 func (a *Client) DcimDeviceBaysBulkUpdate(params *DcimDeviceBaysBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysBulkUpdateOK, error) { 3022 // TODO: Validate the params before sending 3023 if params == nil { 3024 params = NewDcimDeviceBaysBulkUpdateParams() 3025 } 3026 op := &runtime.ClientOperation{ 3027 ID: "dcim_device-bays_bulk_update", 3028 Method: "PUT", 3029 PathPattern: "/dcim/device-bays/", 3030 ProducesMediaTypes: []string{"application/json"}, 3031 ConsumesMediaTypes: []string{"application/json"}, 3032 Schemes: []string{"http"}, 3033 Params: params, 3034 Reader: &DcimDeviceBaysBulkUpdateReader{formats: a.formats}, 3035 AuthInfo: authInfo, 3036 Context: params.Context, 3037 Client: params.HTTPClient, 3038 } 3039 for _, opt := range opts { 3040 opt(op) 3041 } 3042 3043 result, err := a.transport.Submit(op) 3044 if err != nil { 3045 return nil, err 3046 } 3047 success, ok := result.(*DcimDeviceBaysBulkUpdateOK) 3048 if ok { 3049 return success, nil 3050 } 3051 // unexpected success response 3052 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3053 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3054 panic(msg) 3055 } 3056 3057 /* 3058 DcimDeviceBaysCreate dcim device bays create API 3059 */ 3060 func (a *Client) DcimDeviceBaysCreate(params *DcimDeviceBaysCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysCreateCreated, error) { 3061 // TODO: Validate the params before sending 3062 if params == nil { 3063 params = NewDcimDeviceBaysCreateParams() 3064 } 3065 op := &runtime.ClientOperation{ 3066 ID: "dcim_device-bays_create", 3067 Method: "POST", 3068 PathPattern: "/dcim/device-bays/", 3069 ProducesMediaTypes: []string{"application/json"}, 3070 ConsumesMediaTypes: []string{"application/json"}, 3071 Schemes: []string{"http"}, 3072 Params: params, 3073 Reader: &DcimDeviceBaysCreateReader{formats: a.formats}, 3074 AuthInfo: authInfo, 3075 Context: params.Context, 3076 Client: params.HTTPClient, 3077 } 3078 for _, opt := range opts { 3079 opt(op) 3080 } 3081 3082 result, err := a.transport.Submit(op) 3083 if err != nil { 3084 return nil, err 3085 } 3086 success, ok := result.(*DcimDeviceBaysCreateCreated) 3087 if ok { 3088 return success, nil 3089 } 3090 // unexpected success response 3091 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3092 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3093 panic(msg) 3094 } 3095 3096 /* 3097 DcimDeviceBaysDelete dcim device bays delete API 3098 */ 3099 func (a *Client) DcimDeviceBaysDelete(params *DcimDeviceBaysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysDeleteNoContent, error) { 3100 // TODO: Validate the params before sending 3101 if params == nil { 3102 params = NewDcimDeviceBaysDeleteParams() 3103 } 3104 op := &runtime.ClientOperation{ 3105 ID: "dcim_device-bays_delete", 3106 Method: "DELETE", 3107 PathPattern: "/dcim/device-bays/{id}/", 3108 ProducesMediaTypes: []string{"application/json"}, 3109 ConsumesMediaTypes: []string{"application/json"}, 3110 Schemes: []string{"http"}, 3111 Params: params, 3112 Reader: &DcimDeviceBaysDeleteReader{formats: a.formats}, 3113 AuthInfo: authInfo, 3114 Context: params.Context, 3115 Client: params.HTTPClient, 3116 } 3117 for _, opt := range opts { 3118 opt(op) 3119 } 3120 3121 result, err := a.transport.Submit(op) 3122 if err != nil { 3123 return nil, err 3124 } 3125 success, ok := result.(*DcimDeviceBaysDeleteNoContent) 3126 if ok { 3127 return success, nil 3128 } 3129 // unexpected success response 3130 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3131 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3132 panic(msg) 3133 } 3134 3135 /* 3136 DcimDeviceBaysList dcim device bays list API 3137 */ 3138 func (a *Client) DcimDeviceBaysList(params *DcimDeviceBaysListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysListOK, error) { 3139 // TODO: Validate the params before sending 3140 if params == nil { 3141 params = NewDcimDeviceBaysListParams() 3142 } 3143 op := &runtime.ClientOperation{ 3144 ID: "dcim_device-bays_list", 3145 Method: "GET", 3146 PathPattern: "/dcim/device-bays/", 3147 ProducesMediaTypes: []string{"application/json"}, 3148 ConsumesMediaTypes: []string{"application/json"}, 3149 Schemes: []string{"http"}, 3150 Params: params, 3151 Reader: &DcimDeviceBaysListReader{formats: a.formats}, 3152 AuthInfo: authInfo, 3153 Context: params.Context, 3154 Client: params.HTTPClient, 3155 } 3156 for _, opt := range opts { 3157 opt(op) 3158 } 3159 3160 result, err := a.transport.Submit(op) 3161 if err != nil { 3162 return nil, err 3163 } 3164 success, ok := result.(*DcimDeviceBaysListOK) 3165 if ok { 3166 return success, nil 3167 } 3168 // unexpected success response 3169 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3170 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3171 panic(msg) 3172 } 3173 3174 /* 3175 DcimDeviceBaysPartialUpdate dcim device bays partial update API 3176 */ 3177 func (a *Client) DcimDeviceBaysPartialUpdate(params *DcimDeviceBaysPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysPartialUpdateOK, error) { 3178 // TODO: Validate the params before sending 3179 if params == nil { 3180 params = NewDcimDeviceBaysPartialUpdateParams() 3181 } 3182 op := &runtime.ClientOperation{ 3183 ID: "dcim_device-bays_partial_update", 3184 Method: "PATCH", 3185 PathPattern: "/dcim/device-bays/{id}/", 3186 ProducesMediaTypes: []string{"application/json"}, 3187 ConsumesMediaTypes: []string{"application/json"}, 3188 Schemes: []string{"http"}, 3189 Params: params, 3190 Reader: &DcimDeviceBaysPartialUpdateReader{formats: a.formats}, 3191 AuthInfo: authInfo, 3192 Context: params.Context, 3193 Client: params.HTTPClient, 3194 } 3195 for _, opt := range opts { 3196 opt(op) 3197 } 3198 3199 result, err := a.transport.Submit(op) 3200 if err != nil { 3201 return nil, err 3202 } 3203 success, ok := result.(*DcimDeviceBaysPartialUpdateOK) 3204 if ok { 3205 return success, nil 3206 } 3207 // unexpected success response 3208 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3209 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3210 panic(msg) 3211 } 3212 3213 /* 3214 DcimDeviceBaysRead dcim device bays read API 3215 */ 3216 func (a *Client) DcimDeviceBaysRead(params *DcimDeviceBaysReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysReadOK, error) { 3217 // TODO: Validate the params before sending 3218 if params == nil { 3219 params = NewDcimDeviceBaysReadParams() 3220 } 3221 op := &runtime.ClientOperation{ 3222 ID: "dcim_device-bays_read", 3223 Method: "GET", 3224 PathPattern: "/dcim/device-bays/{id}/", 3225 ProducesMediaTypes: []string{"application/json"}, 3226 ConsumesMediaTypes: []string{"application/json"}, 3227 Schemes: []string{"http"}, 3228 Params: params, 3229 Reader: &DcimDeviceBaysReadReader{formats: a.formats}, 3230 AuthInfo: authInfo, 3231 Context: params.Context, 3232 Client: params.HTTPClient, 3233 } 3234 for _, opt := range opts { 3235 opt(op) 3236 } 3237 3238 result, err := a.transport.Submit(op) 3239 if err != nil { 3240 return nil, err 3241 } 3242 success, ok := result.(*DcimDeviceBaysReadOK) 3243 if ok { 3244 return success, nil 3245 } 3246 // unexpected success response 3247 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3248 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3249 panic(msg) 3250 } 3251 3252 /* 3253 DcimDeviceBaysUpdate dcim device bays update API 3254 */ 3255 func (a *Client) DcimDeviceBaysUpdate(params *DcimDeviceBaysUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceBaysUpdateOK, error) { 3256 // TODO: Validate the params before sending 3257 if params == nil { 3258 params = NewDcimDeviceBaysUpdateParams() 3259 } 3260 op := &runtime.ClientOperation{ 3261 ID: "dcim_device-bays_update", 3262 Method: "PUT", 3263 PathPattern: "/dcim/device-bays/{id}/", 3264 ProducesMediaTypes: []string{"application/json"}, 3265 ConsumesMediaTypes: []string{"application/json"}, 3266 Schemes: []string{"http"}, 3267 Params: params, 3268 Reader: &DcimDeviceBaysUpdateReader{formats: a.formats}, 3269 AuthInfo: authInfo, 3270 Context: params.Context, 3271 Client: params.HTTPClient, 3272 } 3273 for _, opt := range opts { 3274 opt(op) 3275 } 3276 3277 result, err := a.transport.Submit(op) 3278 if err != nil { 3279 return nil, err 3280 } 3281 success, ok := result.(*DcimDeviceBaysUpdateOK) 3282 if ok { 3283 return success, nil 3284 } 3285 // unexpected success response 3286 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3287 msg := fmt.Sprintf("unexpected success response for dcim_device-bays_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3288 panic(msg) 3289 } 3290 3291 /* 3292 DcimDeviceRolesBulkDelete dcim device roles bulk delete API 3293 */ 3294 func (a *Client) DcimDeviceRolesBulkDelete(params *DcimDeviceRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesBulkDeleteNoContent, error) { 3295 // TODO: Validate the params before sending 3296 if params == nil { 3297 params = NewDcimDeviceRolesBulkDeleteParams() 3298 } 3299 op := &runtime.ClientOperation{ 3300 ID: "dcim_device-roles_bulk_delete", 3301 Method: "DELETE", 3302 PathPattern: "/dcim/device-roles/", 3303 ProducesMediaTypes: []string{"application/json"}, 3304 ConsumesMediaTypes: []string{"application/json"}, 3305 Schemes: []string{"http"}, 3306 Params: params, 3307 Reader: &DcimDeviceRolesBulkDeleteReader{formats: a.formats}, 3308 AuthInfo: authInfo, 3309 Context: params.Context, 3310 Client: params.HTTPClient, 3311 } 3312 for _, opt := range opts { 3313 opt(op) 3314 } 3315 3316 result, err := a.transport.Submit(op) 3317 if err != nil { 3318 return nil, err 3319 } 3320 success, ok := result.(*DcimDeviceRolesBulkDeleteNoContent) 3321 if ok { 3322 return success, nil 3323 } 3324 // unexpected success response 3325 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3326 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3327 panic(msg) 3328 } 3329 3330 /* 3331 DcimDeviceRolesBulkPartialUpdate dcim device roles bulk partial update API 3332 */ 3333 func (a *Client) DcimDeviceRolesBulkPartialUpdate(params *DcimDeviceRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesBulkPartialUpdateOK, error) { 3334 // TODO: Validate the params before sending 3335 if params == nil { 3336 params = NewDcimDeviceRolesBulkPartialUpdateParams() 3337 } 3338 op := &runtime.ClientOperation{ 3339 ID: "dcim_device-roles_bulk_partial_update", 3340 Method: "PATCH", 3341 PathPattern: "/dcim/device-roles/", 3342 ProducesMediaTypes: []string{"application/json"}, 3343 ConsumesMediaTypes: []string{"application/json"}, 3344 Schemes: []string{"http"}, 3345 Params: params, 3346 Reader: &DcimDeviceRolesBulkPartialUpdateReader{formats: a.formats}, 3347 AuthInfo: authInfo, 3348 Context: params.Context, 3349 Client: params.HTTPClient, 3350 } 3351 for _, opt := range opts { 3352 opt(op) 3353 } 3354 3355 result, err := a.transport.Submit(op) 3356 if err != nil { 3357 return nil, err 3358 } 3359 success, ok := result.(*DcimDeviceRolesBulkPartialUpdateOK) 3360 if ok { 3361 return success, nil 3362 } 3363 // unexpected success response 3364 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3365 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3366 panic(msg) 3367 } 3368 3369 /* 3370 DcimDeviceRolesBulkUpdate dcim device roles bulk update API 3371 */ 3372 func (a *Client) DcimDeviceRolesBulkUpdate(params *DcimDeviceRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesBulkUpdateOK, error) { 3373 // TODO: Validate the params before sending 3374 if params == nil { 3375 params = NewDcimDeviceRolesBulkUpdateParams() 3376 } 3377 op := &runtime.ClientOperation{ 3378 ID: "dcim_device-roles_bulk_update", 3379 Method: "PUT", 3380 PathPattern: "/dcim/device-roles/", 3381 ProducesMediaTypes: []string{"application/json"}, 3382 ConsumesMediaTypes: []string{"application/json"}, 3383 Schemes: []string{"http"}, 3384 Params: params, 3385 Reader: &DcimDeviceRolesBulkUpdateReader{formats: a.formats}, 3386 AuthInfo: authInfo, 3387 Context: params.Context, 3388 Client: params.HTTPClient, 3389 } 3390 for _, opt := range opts { 3391 opt(op) 3392 } 3393 3394 result, err := a.transport.Submit(op) 3395 if err != nil { 3396 return nil, err 3397 } 3398 success, ok := result.(*DcimDeviceRolesBulkUpdateOK) 3399 if ok { 3400 return success, nil 3401 } 3402 // unexpected success response 3403 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3404 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3405 panic(msg) 3406 } 3407 3408 /* 3409 DcimDeviceRolesCreate dcim device roles create API 3410 */ 3411 func (a *Client) DcimDeviceRolesCreate(params *DcimDeviceRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesCreateCreated, error) { 3412 // TODO: Validate the params before sending 3413 if params == nil { 3414 params = NewDcimDeviceRolesCreateParams() 3415 } 3416 op := &runtime.ClientOperation{ 3417 ID: "dcim_device-roles_create", 3418 Method: "POST", 3419 PathPattern: "/dcim/device-roles/", 3420 ProducesMediaTypes: []string{"application/json"}, 3421 ConsumesMediaTypes: []string{"application/json"}, 3422 Schemes: []string{"http"}, 3423 Params: params, 3424 Reader: &DcimDeviceRolesCreateReader{formats: a.formats}, 3425 AuthInfo: authInfo, 3426 Context: params.Context, 3427 Client: params.HTTPClient, 3428 } 3429 for _, opt := range opts { 3430 opt(op) 3431 } 3432 3433 result, err := a.transport.Submit(op) 3434 if err != nil { 3435 return nil, err 3436 } 3437 success, ok := result.(*DcimDeviceRolesCreateCreated) 3438 if ok { 3439 return success, nil 3440 } 3441 // unexpected success response 3442 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3443 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3444 panic(msg) 3445 } 3446 3447 /* 3448 DcimDeviceRolesDelete dcim device roles delete API 3449 */ 3450 func (a *Client) DcimDeviceRolesDelete(params *DcimDeviceRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesDeleteNoContent, error) { 3451 // TODO: Validate the params before sending 3452 if params == nil { 3453 params = NewDcimDeviceRolesDeleteParams() 3454 } 3455 op := &runtime.ClientOperation{ 3456 ID: "dcim_device-roles_delete", 3457 Method: "DELETE", 3458 PathPattern: "/dcim/device-roles/{id}/", 3459 ProducesMediaTypes: []string{"application/json"}, 3460 ConsumesMediaTypes: []string{"application/json"}, 3461 Schemes: []string{"http"}, 3462 Params: params, 3463 Reader: &DcimDeviceRolesDeleteReader{formats: a.formats}, 3464 AuthInfo: authInfo, 3465 Context: params.Context, 3466 Client: params.HTTPClient, 3467 } 3468 for _, opt := range opts { 3469 opt(op) 3470 } 3471 3472 result, err := a.transport.Submit(op) 3473 if err != nil { 3474 return nil, err 3475 } 3476 success, ok := result.(*DcimDeviceRolesDeleteNoContent) 3477 if ok { 3478 return success, nil 3479 } 3480 // unexpected success response 3481 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3482 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3483 panic(msg) 3484 } 3485 3486 /* 3487 DcimDeviceRolesList dcim device roles list API 3488 */ 3489 func (a *Client) DcimDeviceRolesList(params *DcimDeviceRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesListOK, error) { 3490 // TODO: Validate the params before sending 3491 if params == nil { 3492 params = NewDcimDeviceRolesListParams() 3493 } 3494 op := &runtime.ClientOperation{ 3495 ID: "dcim_device-roles_list", 3496 Method: "GET", 3497 PathPattern: "/dcim/device-roles/", 3498 ProducesMediaTypes: []string{"application/json"}, 3499 ConsumesMediaTypes: []string{"application/json"}, 3500 Schemes: []string{"http"}, 3501 Params: params, 3502 Reader: &DcimDeviceRolesListReader{formats: a.formats}, 3503 AuthInfo: authInfo, 3504 Context: params.Context, 3505 Client: params.HTTPClient, 3506 } 3507 for _, opt := range opts { 3508 opt(op) 3509 } 3510 3511 result, err := a.transport.Submit(op) 3512 if err != nil { 3513 return nil, err 3514 } 3515 success, ok := result.(*DcimDeviceRolesListOK) 3516 if ok { 3517 return success, nil 3518 } 3519 // unexpected success response 3520 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3521 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3522 panic(msg) 3523 } 3524 3525 /* 3526 DcimDeviceRolesPartialUpdate dcim device roles partial update API 3527 */ 3528 func (a *Client) DcimDeviceRolesPartialUpdate(params *DcimDeviceRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesPartialUpdateOK, error) { 3529 // TODO: Validate the params before sending 3530 if params == nil { 3531 params = NewDcimDeviceRolesPartialUpdateParams() 3532 } 3533 op := &runtime.ClientOperation{ 3534 ID: "dcim_device-roles_partial_update", 3535 Method: "PATCH", 3536 PathPattern: "/dcim/device-roles/{id}/", 3537 ProducesMediaTypes: []string{"application/json"}, 3538 ConsumesMediaTypes: []string{"application/json"}, 3539 Schemes: []string{"http"}, 3540 Params: params, 3541 Reader: &DcimDeviceRolesPartialUpdateReader{formats: a.formats}, 3542 AuthInfo: authInfo, 3543 Context: params.Context, 3544 Client: params.HTTPClient, 3545 } 3546 for _, opt := range opts { 3547 opt(op) 3548 } 3549 3550 result, err := a.transport.Submit(op) 3551 if err != nil { 3552 return nil, err 3553 } 3554 success, ok := result.(*DcimDeviceRolesPartialUpdateOK) 3555 if ok { 3556 return success, nil 3557 } 3558 // unexpected success response 3559 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3560 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3561 panic(msg) 3562 } 3563 3564 /* 3565 DcimDeviceRolesRead dcim device roles read API 3566 */ 3567 func (a *Client) DcimDeviceRolesRead(params *DcimDeviceRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesReadOK, error) { 3568 // TODO: Validate the params before sending 3569 if params == nil { 3570 params = NewDcimDeviceRolesReadParams() 3571 } 3572 op := &runtime.ClientOperation{ 3573 ID: "dcim_device-roles_read", 3574 Method: "GET", 3575 PathPattern: "/dcim/device-roles/{id}/", 3576 ProducesMediaTypes: []string{"application/json"}, 3577 ConsumesMediaTypes: []string{"application/json"}, 3578 Schemes: []string{"http"}, 3579 Params: params, 3580 Reader: &DcimDeviceRolesReadReader{formats: a.formats}, 3581 AuthInfo: authInfo, 3582 Context: params.Context, 3583 Client: params.HTTPClient, 3584 } 3585 for _, opt := range opts { 3586 opt(op) 3587 } 3588 3589 result, err := a.transport.Submit(op) 3590 if err != nil { 3591 return nil, err 3592 } 3593 success, ok := result.(*DcimDeviceRolesReadOK) 3594 if ok { 3595 return success, nil 3596 } 3597 // unexpected success response 3598 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3599 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3600 panic(msg) 3601 } 3602 3603 /* 3604 DcimDeviceRolesUpdate dcim device roles update API 3605 */ 3606 func (a *Client) DcimDeviceRolesUpdate(params *DcimDeviceRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceRolesUpdateOK, error) { 3607 // TODO: Validate the params before sending 3608 if params == nil { 3609 params = NewDcimDeviceRolesUpdateParams() 3610 } 3611 op := &runtime.ClientOperation{ 3612 ID: "dcim_device-roles_update", 3613 Method: "PUT", 3614 PathPattern: "/dcim/device-roles/{id}/", 3615 ProducesMediaTypes: []string{"application/json"}, 3616 ConsumesMediaTypes: []string{"application/json"}, 3617 Schemes: []string{"http"}, 3618 Params: params, 3619 Reader: &DcimDeviceRolesUpdateReader{formats: a.formats}, 3620 AuthInfo: authInfo, 3621 Context: params.Context, 3622 Client: params.HTTPClient, 3623 } 3624 for _, opt := range opts { 3625 opt(op) 3626 } 3627 3628 result, err := a.transport.Submit(op) 3629 if err != nil { 3630 return nil, err 3631 } 3632 success, ok := result.(*DcimDeviceRolesUpdateOK) 3633 if ok { 3634 return success, nil 3635 } 3636 // unexpected success response 3637 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3638 msg := fmt.Sprintf("unexpected success response for dcim_device-roles_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3639 panic(msg) 3640 } 3641 3642 /* 3643 DcimDeviceTypesBulkDelete dcim device types bulk delete API 3644 */ 3645 func (a *Client) DcimDeviceTypesBulkDelete(params *DcimDeviceTypesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesBulkDeleteNoContent, error) { 3646 // TODO: Validate the params before sending 3647 if params == nil { 3648 params = NewDcimDeviceTypesBulkDeleteParams() 3649 } 3650 op := &runtime.ClientOperation{ 3651 ID: "dcim_device-types_bulk_delete", 3652 Method: "DELETE", 3653 PathPattern: "/dcim/device-types/", 3654 ProducesMediaTypes: []string{"application/json"}, 3655 ConsumesMediaTypes: []string{"application/json"}, 3656 Schemes: []string{"http"}, 3657 Params: params, 3658 Reader: &DcimDeviceTypesBulkDeleteReader{formats: a.formats}, 3659 AuthInfo: authInfo, 3660 Context: params.Context, 3661 Client: params.HTTPClient, 3662 } 3663 for _, opt := range opts { 3664 opt(op) 3665 } 3666 3667 result, err := a.transport.Submit(op) 3668 if err != nil { 3669 return nil, err 3670 } 3671 success, ok := result.(*DcimDeviceTypesBulkDeleteNoContent) 3672 if ok { 3673 return success, nil 3674 } 3675 // unexpected success response 3676 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3677 msg := fmt.Sprintf("unexpected success response for dcim_device-types_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3678 panic(msg) 3679 } 3680 3681 /* 3682 DcimDeviceTypesBulkPartialUpdate dcim device types bulk partial update API 3683 */ 3684 func (a *Client) DcimDeviceTypesBulkPartialUpdate(params *DcimDeviceTypesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesBulkPartialUpdateOK, error) { 3685 // TODO: Validate the params before sending 3686 if params == nil { 3687 params = NewDcimDeviceTypesBulkPartialUpdateParams() 3688 } 3689 op := &runtime.ClientOperation{ 3690 ID: "dcim_device-types_bulk_partial_update", 3691 Method: "PATCH", 3692 PathPattern: "/dcim/device-types/", 3693 ProducesMediaTypes: []string{"application/json"}, 3694 ConsumesMediaTypes: []string{"application/json"}, 3695 Schemes: []string{"http"}, 3696 Params: params, 3697 Reader: &DcimDeviceTypesBulkPartialUpdateReader{formats: a.formats}, 3698 AuthInfo: authInfo, 3699 Context: params.Context, 3700 Client: params.HTTPClient, 3701 } 3702 for _, opt := range opts { 3703 opt(op) 3704 } 3705 3706 result, err := a.transport.Submit(op) 3707 if err != nil { 3708 return nil, err 3709 } 3710 success, ok := result.(*DcimDeviceTypesBulkPartialUpdateOK) 3711 if ok { 3712 return success, nil 3713 } 3714 // unexpected success response 3715 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3716 msg := fmt.Sprintf("unexpected success response for dcim_device-types_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3717 panic(msg) 3718 } 3719 3720 /* 3721 DcimDeviceTypesBulkUpdate dcim device types bulk update API 3722 */ 3723 func (a *Client) DcimDeviceTypesBulkUpdate(params *DcimDeviceTypesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesBulkUpdateOK, error) { 3724 // TODO: Validate the params before sending 3725 if params == nil { 3726 params = NewDcimDeviceTypesBulkUpdateParams() 3727 } 3728 op := &runtime.ClientOperation{ 3729 ID: "dcim_device-types_bulk_update", 3730 Method: "PUT", 3731 PathPattern: "/dcim/device-types/", 3732 ProducesMediaTypes: []string{"application/json"}, 3733 ConsumesMediaTypes: []string{"application/json"}, 3734 Schemes: []string{"http"}, 3735 Params: params, 3736 Reader: &DcimDeviceTypesBulkUpdateReader{formats: a.formats}, 3737 AuthInfo: authInfo, 3738 Context: params.Context, 3739 Client: params.HTTPClient, 3740 } 3741 for _, opt := range opts { 3742 opt(op) 3743 } 3744 3745 result, err := a.transport.Submit(op) 3746 if err != nil { 3747 return nil, err 3748 } 3749 success, ok := result.(*DcimDeviceTypesBulkUpdateOK) 3750 if ok { 3751 return success, nil 3752 } 3753 // unexpected success response 3754 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3755 msg := fmt.Sprintf("unexpected success response for dcim_device-types_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3756 panic(msg) 3757 } 3758 3759 /* 3760 DcimDeviceTypesCreate dcim device types create API 3761 */ 3762 func (a *Client) DcimDeviceTypesCreate(params *DcimDeviceTypesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesCreateCreated, error) { 3763 // TODO: Validate the params before sending 3764 if params == nil { 3765 params = NewDcimDeviceTypesCreateParams() 3766 } 3767 op := &runtime.ClientOperation{ 3768 ID: "dcim_device-types_create", 3769 Method: "POST", 3770 PathPattern: "/dcim/device-types/", 3771 ProducesMediaTypes: []string{"application/json"}, 3772 ConsumesMediaTypes: []string{"application/json"}, 3773 Schemes: []string{"http"}, 3774 Params: params, 3775 Reader: &DcimDeviceTypesCreateReader{formats: a.formats}, 3776 AuthInfo: authInfo, 3777 Context: params.Context, 3778 Client: params.HTTPClient, 3779 } 3780 for _, opt := range opts { 3781 opt(op) 3782 } 3783 3784 result, err := a.transport.Submit(op) 3785 if err != nil { 3786 return nil, err 3787 } 3788 success, ok := result.(*DcimDeviceTypesCreateCreated) 3789 if ok { 3790 return success, nil 3791 } 3792 // unexpected success response 3793 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3794 msg := fmt.Sprintf("unexpected success response for dcim_device-types_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3795 panic(msg) 3796 } 3797 3798 /* 3799 DcimDeviceTypesDelete dcim device types delete API 3800 */ 3801 func (a *Client) DcimDeviceTypesDelete(params *DcimDeviceTypesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesDeleteNoContent, error) { 3802 // TODO: Validate the params before sending 3803 if params == nil { 3804 params = NewDcimDeviceTypesDeleteParams() 3805 } 3806 op := &runtime.ClientOperation{ 3807 ID: "dcim_device-types_delete", 3808 Method: "DELETE", 3809 PathPattern: "/dcim/device-types/{id}/", 3810 ProducesMediaTypes: []string{"application/json"}, 3811 ConsumesMediaTypes: []string{"application/json"}, 3812 Schemes: []string{"http"}, 3813 Params: params, 3814 Reader: &DcimDeviceTypesDeleteReader{formats: a.formats}, 3815 AuthInfo: authInfo, 3816 Context: params.Context, 3817 Client: params.HTTPClient, 3818 } 3819 for _, opt := range opts { 3820 opt(op) 3821 } 3822 3823 result, err := a.transport.Submit(op) 3824 if err != nil { 3825 return nil, err 3826 } 3827 success, ok := result.(*DcimDeviceTypesDeleteNoContent) 3828 if ok { 3829 return success, nil 3830 } 3831 // unexpected success response 3832 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3833 msg := fmt.Sprintf("unexpected success response for dcim_device-types_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3834 panic(msg) 3835 } 3836 3837 /* 3838 DcimDeviceTypesList dcim device types list API 3839 */ 3840 func (a *Client) DcimDeviceTypesList(params *DcimDeviceTypesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesListOK, error) { 3841 // TODO: Validate the params before sending 3842 if params == nil { 3843 params = NewDcimDeviceTypesListParams() 3844 } 3845 op := &runtime.ClientOperation{ 3846 ID: "dcim_device-types_list", 3847 Method: "GET", 3848 PathPattern: "/dcim/device-types/", 3849 ProducesMediaTypes: []string{"application/json"}, 3850 ConsumesMediaTypes: []string{"application/json"}, 3851 Schemes: []string{"http"}, 3852 Params: params, 3853 Reader: &DcimDeviceTypesListReader{formats: a.formats}, 3854 AuthInfo: authInfo, 3855 Context: params.Context, 3856 Client: params.HTTPClient, 3857 } 3858 for _, opt := range opts { 3859 opt(op) 3860 } 3861 3862 result, err := a.transport.Submit(op) 3863 if err != nil { 3864 return nil, err 3865 } 3866 success, ok := result.(*DcimDeviceTypesListOK) 3867 if ok { 3868 return success, nil 3869 } 3870 // unexpected success response 3871 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3872 msg := fmt.Sprintf("unexpected success response for dcim_device-types_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3873 panic(msg) 3874 } 3875 3876 /* 3877 DcimDeviceTypesPartialUpdate dcim device types partial update API 3878 */ 3879 func (a *Client) DcimDeviceTypesPartialUpdate(params *DcimDeviceTypesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesPartialUpdateOK, error) { 3880 // TODO: Validate the params before sending 3881 if params == nil { 3882 params = NewDcimDeviceTypesPartialUpdateParams() 3883 } 3884 op := &runtime.ClientOperation{ 3885 ID: "dcim_device-types_partial_update", 3886 Method: "PATCH", 3887 PathPattern: "/dcim/device-types/{id}/", 3888 ProducesMediaTypes: []string{"application/json"}, 3889 ConsumesMediaTypes: []string{"application/json"}, 3890 Schemes: []string{"http"}, 3891 Params: params, 3892 Reader: &DcimDeviceTypesPartialUpdateReader{formats: a.formats}, 3893 AuthInfo: authInfo, 3894 Context: params.Context, 3895 Client: params.HTTPClient, 3896 } 3897 for _, opt := range opts { 3898 opt(op) 3899 } 3900 3901 result, err := a.transport.Submit(op) 3902 if err != nil { 3903 return nil, err 3904 } 3905 success, ok := result.(*DcimDeviceTypesPartialUpdateOK) 3906 if ok { 3907 return success, nil 3908 } 3909 // unexpected success response 3910 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3911 msg := fmt.Sprintf("unexpected success response for dcim_device-types_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3912 panic(msg) 3913 } 3914 3915 /* 3916 DcimDeviceTypesRead dcim device types read API 3917 */ 3918 func (a *Client) DcimDeviceTypesRead(params *DcimDeviceTypesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesReadOK, error) { 3919 // TODO: Validate the params before sending 3920 if params == nil { 3921 params = NewDcimDeviceTypesReadParams() 3922 } 3923 op := &runtime.ClientOperation{ 3924 ID: "dcim_device-types_read", 3925 Method: "GET", 3926 PathPattern: "/dcim/device-types/{id}/", 3927 ProducesMediaTypes: []string{"application/json"}, 3928 ConsumesMediaTypes: []string{"application/json"}, 3929 Schemes: []string{"http"}, 3930 Params: params, 3931 Reader: &DcimDeviceTypesReadReader{formats: a.formats}, 3932 AuthInfo: authInfo, 3933 Context: params.Context, 3934 Client: params.HTTPClient, 3935 } 3936 for _, opt := range opts { 3937 opt(op) 3938 } 3939 3940 result, err := a.transport.Submit(op) 3941 if err != nil { 3942 return nil, err 3943 } 3944 success, ok := result.(*DcimDeviceTypesReadOK) 3945 if ok { 3946 return success, nil 3947 } 3948 // unexpected success response 3949 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3950 msg := fmt.Sprintf("unexpected success response for dcim_device-types_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3951 panic(msg) 3952 } 3953 3954 /* 3955 DcimDeviceTypesUpdate dcim device types update API 3956 */ 3957 func (a *Client) DcimDeviceTypesUpdate(params *DcimDeviceTypesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDeviceTypesUpdateOK, error) { 3958 // TODO: Validate the params before sending 3959 if params == nil { 3960 params = NewDcimDeviceTypesUpdateParams() 3961 } 3962 op := &runtime.ClientOperation{ 3963 ID: "dcim_device-types_update", 3964 Method: "PUT", 3965 PathPattern: "/dcim/device-types/{id}/", 3966 ProducesMediaTypes: []string{"application/json"}, 3967 ConsumesMediaTypes: []string{"application/json"}, 3968 Schemes: []string{"http"}, 3969 Params: params, 3970 Reader: &DcimDeviceTypesUpdateReader{formats: a.formats}, 3971 AuthInfo: authInfo, 3972 Context: params.Context, 3973 Client: params.HTTPClient, 3974 } 3975 for _, opt := range opts { 3976 opt(op) 3977 } 3978 3979 result, err := a.transport.Submit(op) 3980 if err != nil { 3981 return nil, err 3982 } 3983 success, ok := result.(*DcimDeviceTypesUpdateOK) 3984 if ok { 3985 return success, nil 3986 } 3987 // unexpected success response 3988 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3989 msg := fmt.Sprintf("unexpected success response for dcim_device-types_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3990 panic(msg) 3991 } 3992 3993 /* 3994 DcimDevicesBulkDelete dcim devices bulk delete API 3995 */ 3996 func (a *Client) DcimDevicesBulkDelete(params *DcimDevicesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesBulkDeleteNoContent, error) { 3997 // TODO: Validate the params before sending 3998 if params == nil { 3999 params = NewDcimDevicesBulkDeleteParams() 4000 } 4001 op := &runtime.ClientOperation{ 4002 ID: "dcim_devices_bulk_delete", 4003 Method: "DELETE", 4004 PathPattern: "/dcim/devices/", 4005 ProducesMediaTypes: []string{"application/json"}, 4006 ConsumesMediaTypes: []string{"application/json"}, 4007 Schemes: []string{"http"}, 4008 Params: params, 4009 Reader: &DcimDevicesBulkDeleteReader{formats: a.formats}, 4010 AuthInfo: authInfo, 4011 Context: params.Context, 4012 Client: params.HTTPClient, 4013 } 4014 for _, opt := range opts { 4015 opt(op) 4016 } 4017 4018 result, err := a.transport.Submit(op) 4019 if err != nil { 4020 return nil, err 4021 } 4022 success, ok := result.(*DcimDevicesBulkDeleteNoContent) 4023 if ok { 4024 return success, nil 4025 } 4026 // unexpected success response 4027 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4028 msg := fmt.Sprintf("unexpected success response for dcim_devices_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4029 panic(msg) 4030 } 4031 4032 /* 4033 DcimDevicesBulkPartialUpdate dcim devices bulk partial update API 4034 */ 4035 func (a *Client) DcimDevicesBulkPartialUpdate(params *DcimDevicesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesBulkPartialUpdateOK, error) { 4036 // TODO: Validate the params before sending 4037 if params == nil { 4038 params = NewDcimDevicesBulkPartialUpdateParams() 4039 } 4040 op := &runtime.ClientOperation{ 4041 ID: "dcim_devices_bulk_partial_update", 4042 Method: "PATCH", 4043 PathPattern: "/dcim/devices/", 4044 ProducesMediaTypes: []string{"application/json"}, 4045 ConsumesMediaTypes: []string{"application/json"}, 4046 Schemes: []string{"http"}, 4047 Params: params, 4048 Reader: &DcimDevicesBulkPartialUpdateReader{formats: a.formats}, 4049 AuthInfo: authInfo, 4050 Context: params.Context, 4051 Client: params.HTTPClient, 4052 } 4053 for _, opt := range opts { 4054 opt(op) 4055 } 4056 4057 result, err := a.transport.Submit(op) 4058 if err != nil { 4059 return nil, err 4060 } 4061 success, ok := result.(*DcimDevicesBulkPartialUpdateOK) 4062 if ok { 4063 return success, nil 4064 } 4065 // unexpected success response 4066 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4067 msg := fmt.Sprintf("unexpected success response for dcim_devices_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4068 panic(msg) 4069 } 4070 4071 /* 4072 DcimDevicesBulkUpdate dcim devices bulk update API 4073 */ 4074 func (a *Client) DcimDevicesBulkUpdate(params *DcimDevicesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesBulkUpdateOK, error) { 4075 // TODO: Validate the params before sending 4076 if params == nil { 4077 params = NewDcimDevicesBulkUpdateParams() 4078 } 4079 op := &runtime.ClientOperation{ 4080 ID: "dcim_devices_bulk_update", 4081 Method: "PUT", 4082 PathPattern: "/dcim/devices/", 4083 ProducesMediaTypes: []string{"application/json"}, 4084 ConsumesMediaTypes: []string{"application/json"}, 4085 Schemes: []string{"http"}, 4086 Params: params, 4087 Reader: &DcimDevicesBulkUpdateReader{formats: a.formats}, 4088 AuthInfo: authInfo, 4089 Context: params.Context, 4090 Client: params.HTTPClient, 4091 } 4092 for _, opt := range opts { 4093 opt(op) 4094 } 4095 4096 result, err := a.transport.Submit(op) 4097 if err != nil { 4098 return nil, err 4099 } 4100 success, ok := result.(*DcimDevicesBulkUpdateOK) 4101 if ok { 4102 return success, nil 4103 } 4104 // unexpected success response 4105 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4106 msg := fmt.Sprintf("unexpected success response for dcim_devices_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4107 panic(msg) 4108 } 4109 4110 /* 4111 DcimDevicesCreate dcim devices create API 4112 */ 4113 func (a *Client) DcimDevicesCreate(params *DcimDevicesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesCreateCreated, error) { 4114 // TODO: Validate the params before sending 4115 if params == nil { 4116 params = NewDcimDevicesCreateParams() 4117 } 4118 op := &runtime.ClientOperation{ 4119 ID: "dcim_devices_create", 4120 Method: "POST", 4121 PathPattern: "/dcim/devices/", 4122 ProducesMediaTypes: []string{"application/json"}, 4123 ConsumesMediaTypes: []string{"application/json"}, 4124 Schemes: []string{"http"}, 4125 Params: params, 4126 Reader: &DcimDevicesCreateReader{formats: a.formats}, 4127 AuthInfo: authInfo, 4128 Context: params.Context, 4129 Client: params.HTTPClient, 4130 } 4131 for _, opt := range opts { 4132 opt(op) 4133 } 4134 4135 result, err := a.transport.Submit(op) 4136 if err != nil { 4137 return nil, err 4138 } 4139 success, ok := result.(*DcimDevicesCreateCreated) 4140 if ok { 4141 return success, nil 4142 } 4143 // unexpected success response 4144 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4145 msg := fmt.Sprintf("unexpected success response for dcim_devices_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4146 panic(msg) 4147 } 4148 4149 /* 4150 DcimDevicesDelete dcim devices delete API 4151 */ 4152 func (a *Client) DcimDevicesDelete(params *DcimDevicesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesDeleteNoContent, error) { 4153 // TODO: Validate the params before sending 4154 if params == nil { 4155 params = NewDcimDevicesDeleteParams() 4156 } 4157 op := &runtime.ClientOperation{ 4158 ID: "dcim_devices_delete", 4159 Method: "DELETE", 4160 PathPattern: "/dcim/devices/{id}/", 4161 ProducesMediaTypes: []string{"application/json"}, 4162 ConsumesMediaTypes: []string{"application/json"}, 4163 Schemes: []string{"http"}, 4164 Params: params, 4165 Reader: &DcimDevicesDeleteReader{formats: a.formats}, 4166 AuthInfo: authInfo, 4167 Context: params.Context, 4168 Client: params.HTTPClient, 4169 } 4170 for _, opt := range opts { 4171 opt(op) 4172 } 4173 4174 result, err := a.transport.Submit(op) 4175 if err != nil { 4176 return nil, err 4177 } 4178 success, ok := result.(*DcimDevicesDeleteNoContent) 4179 if ok { 4180 return success, nil 4181 } 4182 // unexpected success response 4183 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4184 msg := fmt.Sprintf("unexpected success response for dcim_devices_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4185 panic(msg) 4186 } 4187 4188 /* 4189 DcimDevicesList dcim devices list API 4190 */ 4191 func (a *Client) DcimDevicesList(params *DcimDevicesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesListOK, error) { 4192 // TODO: Validate the params before sending 4193 if params == nil { 4194 params = NewDcimDevicesListParams() 4195 } 4196 op := &runtime.ClientOperation{ 4197 ID: "dcim_devices_list", 4198 Method: "GET", 4199 PathPattern: "/dcim/devices/", 4200 ProducesMediaTypes: []string{"application/json"}, 4201 ConsumesMediaTypes: []string{"application/json"}, 4202 Schemes: []string{"http"}, 4203 Params: params, 4204 Reader: &DcimDevicesListReader{formats: a.formats}, 4205 AuthInfo: authInfo, 4206 Context: params.Context, 4207 Client: params.HTTPClient, 4208 } 4209 for _, opt := range opts { 4210 opt(op) 4211 } 4212 4213 result, err := a.transport.Submit(op) 4214 if err != nil { 4215 return nil, err 4216 } 4217 success, ok := result.(*DcimDevicesListOK) 4218 if ok { 4219 return success, nil 4220 } 4221 // unexpected success response 4222 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4223 msg := fmt.Sprintf("unexpected success response for dcim_devices_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4224 panic(msg) 4225 } 4226 4227 /* 4228 DcimDevicesNapalm Execute a NAPALM method on a Device 4229 */ 4230 func (a *Client) DcimDevicesNapalm(params *DcimDevicesNapalmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesNapalmOK, error) { 4231 // TODO: Validate the params before sending 4232 if params == nil { 4233 params = NewDcimDevicesNapalmParams() 4234 } 4235 op := &runtime.ClientOperation{ 4236 ID: "dcim_devices_napalm", 4237 Method: "GET", 4238 PathPattern: "/dcim/devices/{id}/napalm/", 4239 ProducesMediaTypes: []string{"application/json"}, 4240 ConsumesMediaTypes: []string{"application/json"}, 4241 Schemes: []string{"http"}, 4242 Params: params, 4243 Reader: &DcimDevicesNapalmReader{formats: a.formats}, 4244 AuthInfo: authInfo, 4245 Context: params.Context, 4246 Client: params.HTTPClient, 4247 } 4248 for _, opt := range opts { 4249 opt(op) 4250 } 4251 4252 result, err := a.transport.Submit(op) 4253 if err != nil { 4254 return nil, err 4255 } 4256 success, ok := result.(*DcimDevicesNapalmOK) 4257 if ok { 4258 return success, nil 4259 } 4260 // unexpected success response 4261 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4262 msg := fmt.Sprintf("unexpected success response for dcim_devices_napalm: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4263 panic(msg) 4264 } 4265 4266 /* 4267 DcimDevicesPartialUpdate dcim devices partial update API 4268 */ 4269 func (a *Client) DcimDevicesPartialUpdate(params *DcimDevicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesPartialUpdateOK, error) { 4270 // TODO: Validate the params before sending 4271 if params == nil { 4272 params = NewDcimDevicesPartialUpdateParams() 4273 } 4274 op := &runtime.ClientOperation{ 4275 ID: "dcim_devices_partial_update", 4276 Method: "PATCH", 4277 PathPattern: "/dcim/devices/{id}/", 4278 ProducesMediaTypes: []string{"application/json"}, 4279 ConsumesMediaTypes: []string{"application/json"}, 4280 Schemes: []string{"http"}, 4281 Params: params, 4282 Reader: &DcimDevicesPartialUpdateReader{formats: a.formats}, 4283 AuthInfo: authInfo, 4284 Context: params.Context, 4285 Client: params.HTTPClient, 4286 } 4287 for _, opt := range opts { 4288 opt(op) 4289 } 4290 4291 result, err := a.transport.Submit(op) 4292 if err != nil { 4293 return nil, err 4294 } 4295 success, ok := result.(*DcimDevicesPartialUpdateOK) 4296 if ok { 4297 return success, nil 4298 } 4299 // unexpected success response 4300 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4301 msg := fmt.Sprintf("unexpected success response for dcim_devices_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4302 panic(msg) 4303 } 4304 4305 /* 4306 DcimDevicesRead dcim devices read API 4307 */ 4308 func (a *Client) DcimDevicesRead(params *DcimDevicesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesReadOK, error) { 4309 // TODO: Validate the params before sending 4310 if params == nil { 4311 params = NewDcimDevicesReadParams() 4312 } 4313 op := &runtime.ClientOperation{ 4314 ID: "dcim_devices_read", 4315 Method: "GET", 4316 PathPattern: "/dcim/devices/{id}/", 4317 ProducesMediaTypes: []string{"application/json"}, 4318 ConsumesMediaTypes: []string{"application/json"}, 4319 Schemes: []string{"http"}, 4320 Params: params, 4321 Reader: &DcimDevicesReadReader{formats: a.formats}, 4322 AuthInfo: authInfo, 4323 Context: params.Context, 4324 Client: params.HTTPClient, 4325 } 4326 for _, opt := range opts { 4327 opt(op) 4328 } 4329 4330 result, err := a.transport.Submit(op) 4331 if err != nil { 4332 return nil, err 4333 } 4334 success, ok := result.(*DcimDevicesReadOK) 4335 if ok { 4336 return success, nil 4337 } 4338 // unexpected success response 4339 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4340 msg := fmt.Sprintf("unexpected success response for dcim_devices_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4341 panic(msg) 4342 } 4343 4344 /* 4345 DcimDevicesUpdate dcim devices update API 4346 */ 4347 func (a *Client) DcimDevicesUpdate(params *DcimDevicesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimDevicesUpdateOK, error) { 4348 // TODO: Validate the params before sending 4349 if params == nil { 4350 params = NewDcimDevicesUpdateParams() 4351 } 4352 op := &runtime.ClientOperation{ 4353 ID: "dcim_devices_update", 4354 Method: "PUT", 4355 PathPattern: "/dcim/devices/{id}/", 4356 ProducesMediaTypes: []string{"application/json"}, 4357 ConsumesMediaTypes: []string{"application/json"}, 4358 Schemes: []string{"http"}, 4359 Params: params, 4360 Reader: &DcimDevicesUpdateReader{formats: a.formats}, 4361 AuthInfo: authInfo, 4362 Context: params.Context, 4363 Client: params.HTTPClient, 4364 } 4365 for _, opt := range opts { 4366 opt(op) 4367 } 4368 4369 result, err := a.transport.Submit(op) 4370 if err != nil { 4371 return nil, err 4372 } 4373 success, ok := result.(*DcimDevicesUpdateOK) 4374 if ok { 4375 return success, nil 4376 } 4377 // unexpected success response 4378 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4379 msg := fmt.Sprintf("unexpected success response for dcim_devices_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4380 panic(msg) 4381 } 4382 4383 /* 4384 DcimFrontPortTemplatesBulkDelete dcim front port templates bulk delete API 4385 */ 4386 func (a *Client) DcimFrontPortTemplatesBulkDelete(params *DcimFrontPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesBulkDeleteNoContent, error) { 4387 // TODO: Validate the params before sending 4388 if params == nil { 4389 params = NewDcimFrontPortTemplatesBulkDeleteParams() 4390 } 4391 op := &runtime.ClientOperation{ 4392 ID: "dcim_front-port-templates_bulk_delete", 4393 Method: "DELETE", 4394 PathPattern: "/dcim/front-port-templates/", 4395 ProducesMediaTypes: []string{"application/json"}, 4396 ConsumesMediaTypes: []string{"application/json"}, 4397 Schemes: []string{"http"}, 4398 Params: params, 4399 Reader: &DcimFrontPortTemplatesBulkDeleteReader{formats: a.formats}, 4400 AuthInfo: authInfo, 4401 Context: params.Context, 4402 Client: params.HTTPClient, 4403 } 4404 for _, opt := range opts { 4405 opt(op) 4406 } 4407 4408 result, err := a.transport.Submit(op) 4409 if err != nil { 4410 return nil, err 4411 } 4412 success, ok := result.(*DcimFrontPortTemplatesBulkDeleteNoContent) 4413 if ok { 4414 return success, nil 4415 } 4416 // unexpected success response 4417 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4418 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4419 panic(msg) 4420 } 4421 4422 /* 4423 DcimFrontPortTemplatesBulkPartialUpdate dcim front port templates bulk partial update API 4424 */ 4425 func (a *Client) DcimFrontPortTemplatesBulkPartialUpdate(params *DcimFrontPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesBulkPartialUpdateOK, error) { 4426 // TODO: Validate the params before sending 4427 if params == nil { 4428 params = NewDcimFrontPortTemplatesBulkPartialUpdateParams() 4429 } 4430 op := &runtime.ClientOperation{ 4431 ID: "dcim_front-port-templates_bulk_partial_update", 4432 Method: "PATCH", 4433 PathPattern: "/dcim/front-port-templates/", 4434 ProducesMediaTypes: []string{"application/json"}, 4435 ConsumesMediaTypes: []string{"application/json"}, 4436 Schemes: []string{"http"}, 4437 Params: params, 4438 Reader: &DcimFrontPortTemplatesBulkPartialUpdateReader{formats: a.formats}, 4439 AuthInfo: authInfo, 4440 Context: params.Context, 4441 Client: params.HTTPClient, 4442 } 4443 for _, opt := range opts { 4444 opt(op) 4445 } 4446 4447 result, err := a.transport.Submit(op) 4448 if err != nil { 4449 return nil, err 4450 } 4451 success, ok := result.(*DcimFrontPortTemplatesBulkPartialUpdateOK) 4452 if ok { 4453 return success, nil 4454 } 4455 // unexpected success response 4456 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4457 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4458 panic(msg) 4459 } 4460 4461 /* 4462 DcimFrontPortTemplatesBulkUpdate dcim front port templates bulk update API 4463 */ 4464 func (a *Client) DcimFrontPortTemplatesBulkUpdate(params *DcimFrontPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesBulkUpdateOK, error) { 4465 // TODO: Validate the params before sending 4466 if params == nil { 4467 params = NewDcimFrontPortTemplatesBulkUpdateParams() 4468 } 4469 op := &runtime.ClientOperation{ 4470 ID: "dcim_front-port-templates_bulk_update", 4471 Method: "PUT", 4472 PathPattern: "/dcim/front-port-templates/", 4473 ProducesMediaTypes: []string{"application/json"}, 4474 ConsumesMediaTypes: []string{"application/json"}, 4475 Schemes: []string{"http"}, 4476 Params: params, 4477 Reader: &DcimFrontPortTemplatesBulkUpdateReader{formats: a.formats}, 4478 AuthInfo: authInfo, 4479 Context: params.Context, 4480 Client: params.HTTPClient, 4481 } 4482 for _, opt := range opts { 4483 opt(op) 4484 } 4485 4486 result, err := a.transport.Submit(op) 4487 if err != nil { 4488 return nil, err 4489 } 4490 success, ok := result.(*DcimFrontPortTemplatesBulkUpdateOK) 4491 if ok { 4492 return success, nil 4493 } 4494 // unexpected success response 4495 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4496 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4497 panic(msg) 4498 } 4499 4500 /* 4501 DcimFrontPortTemplatesCreate dcim front port templates create API 4502 */ 4503 func (a *Client) DcimFrontPortTemplatesCreate(params *DcimFrontPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesCreateCreated, error) { 4504 // TODO: Validate the params before sending 4505 if params == nil { 4506 params = NewDcimFrontPortTemplatesCreateParams() 4507 } 4508 op := &runtime.ClientOperation{ 4509 ID: "dcim_front-port-templates_create", 4510 Method: "POST", 4511 PathPattern: "/dcim/front-port-templates/", 4512 ProducesMediaTypes: []string{"application/json"}, 4513 ConsumesMediaTypes: []string{"application/json"}, 4514 Schemes: []string{"http"}, 4515 Params: params, 4516 Reader: &DcimFrontPortTemplatesCreateReader{formats: a.formats}, 4517 AuthInfo: authInfo, 4518 Context: params.Context, 4519 Client: params.HTTPClient, 4520 } 4521 for _, opt := range opts { 4522 opt(op) 4523 } 4524 4525 result, err := a.transport.Submit(op) 4526 if err != nil { 4527 return nil, err 4528 } 4529 success, ok := result.(*DcimFrontPortTemplatesCreateCreated) 4530 if ok { 4531 return success, nil 4532 } 4533 // unexpected success response 4534 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4535 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4536 panic(msg) 4537 } 4538 4539 /* 4540 DcimFrontPortTemplatesDelete dcim front port templates delete API 4541 */ 4542 func (a *Client) DcimFrontPortTemplatesDelete(params *DcimFrontPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesDeleteNoContent, error) { 4543 // TODO: Validate the params before sending 4544 if params == nil { 4545 params = NewDcimFrontPortTemplatesDeleteParams() 4546 } 4547 op := &runtime.ClientOperation{ 4548 ID: "dcim_front-port-templates_delete", 4549 Method: "DELETE", 4550 PathPattern: "/dcim/front-port-templates/{id}/", 4551 ProducesMediaTypes: []string{"application/json"}, 4552 ConsumesMediaTypes: []string{"application/json"}, 4553 Schemes: []string{"http"}, 4554 Params: params, 4555 Reader: &DcimFrontPortTemplatesDeleteReader{formats: a.formats}, 4556 AuthInfo: authInfo, 4557 Context: params.Context, 4558 Client: params.HTTPClient, 4559 } 4560 for _, opt := range opts { 4561 opt(op) 4562 } 4563 4564 result, err := a.transport.Submit(op) 4565 if err != nil { 4566 return nil, err 4567 } 4568 success, ok := result.(*DcimFrontPortTemplatesDeleteNoContent) 4569 if ok { 4570 return success, nil 4571 } 4572 // unexpected success response 4573 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4574 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4575 panic(msg) 4576 } 4577 4578 /* 4579 DcimFrontPortTemplatesList dcim front port templates list API 4580 */ 4581 func (a *Client) DcimFrontPortTemplatesList(params *DcimFrontPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesListOK, error) { 4582 // TODO: Validate the params before sending 4583 if params == nil { 4584 params = NewDcimFrontPortTemplatesListParams() 4585 } 4586 op := &runtime.ClientOperation{ 4587 ID: "dcim_front-port-templates_list", 4588 Method: "GET", 4589 PathPattern: "/dcim/front-port-templates/", 4590 ProducesMediaTypes: []string{"application/json"}, 4591 ConsumesMediaTypes: []string{"application/json"}, 4592 Schemes: []string{"http"}, 4593 Params: params, 4594 Reader: &DcimFrontPortTemplatesListReader{formats: a.formats}, 4595 AuthInfo: authInfo, 4596 Context: params.Context, 4597 Client: params.HTTPClient, 4598 } 4599 for _, opt := range opts { 4600 opt(op) 4601 } 4602 4603 result, err := a.transport.Submit(op) 4604 if err != nil { 4605 return nil, err 4606 } 4607 success, ok := result.(*DcimFrontPortTemplatesListOK) 4608 if ok { 4609 return success, nil 4610 } 4611 // unexpected success response 4612 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4613 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4614 panic(msg) 4615 } 4616 4617 /* 4618 DcimFrontPortTemplatesPartialUpdate dcim front port templates partial update API 4619 */ 4620 func (a *Client) DcimFrontPortTemplatesPartialUpdate(params *DcimFrontPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesPartialUpdateOK, error) { 4621 // TODO: Validate the params before sending 4622 if params == nil { 4623 params = NewDcimFrontPortTemplatesPartialUpdateParams() 4624 } 4625 op := &runtime.ClientOperation{ 4626 ID: "dcim_front-port-templates_partial_update", 4627 Method: "PATCH", 4628 PathPattern: "/dcim/front-port-templates/{id}/", 4629 ProducesMediaTypes: []string{"application/json"}, 4630 ConsumesMediaTypes: []string{"application/json"}, 4631 Schemes: []string{"http"}, 4632 Params: params, 4633 Reader: &DcimFrontPortTemplatesPartialUpdateReader{formats: a.formats}, 4634 AuthInfo: authInfo, 4635 Context: params.Context, 4636 Client: params.HTTPClient, 4637 } 4638 for _, opt := range opts { 4639 opt(op) 4640 } 4641 4642 result, err := a.transport.Submit(op) 4643 if err != nil { 4644 return nil, err 4645 } 4646 success, ok := result.(*DcimFrontPortTemplatesPartialUpdateOK) 4647 if ok { 4648 return success, nil 4649 } 4650 // unexpected success response 4651 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4652 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4653 panic(msg) 4654 } 4655 4656 /* 4657 DcimFrontPortTemplatesRead dcim front port templates read API 4658 */ 4659 func (a *Client) DcimFrontPortTemplatesRead(params *DcimFrontPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesReadOK, error) { 4660 // TODO: Validate the params before sending 4661 if params == nil { 4662 params = NewDcimFrontPortTemplatesReadParams() 4663 } 4664 op := &runtime.ClientOperation{ 4665 ID: "dcim_front-port-templates_read", 4666 Method: "GET", 4667 PathPattern: "/dcim/front-port-templates/{id}/", 4668 ProducesMediaTypes: []string{"application/json"}, 4669 ConsumesMediaTypes: []string{"application/json"}, 4670 Schemes: []string{"http"}, 4671 Params: params, 4672 Reader: &DcimFrontPortTemplatesReadReader{formats: a.formats}, 4673 AuthInfo: authInfo, 4674 Context: params.Context, 4675 Client: params.HTTPClient, 4676 } 4677 for _, opt := range opts { 4678 opt(op) 4679 } 4680 4681 result, err := a.transport.Submit(op) 4682 if err != nil { 4683 return nil, err 4684 } 4685 success, ok := result.(*DcimFrontPortTemplatesReadOK) 4686 if ok { 4687 return success, nil 4688 } 4689 // unexpected success response 4690 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4691 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4692 panic(msg) 4693 } 4694 4695 /* 4696 DcimFrontPortTemplatesUpdate dcim front port templates update API 4697 */ 4698 func (a *Client) DcimFrontPortTemplatesUpdate(params *DcimFrontPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortTemplatesUpdateOK, error) { 4699 // TODO: Validate the params before sending 4700 if params == nil { 4701 params = NewDcimFrontPortTemplatesUpdateParams() 4702 } 4703 op := &runtime.ClientOperation{ 4704 ID: "dcim_front-port-templates_update", 4705 Method: "PUT", 4706 PathPattern: "/dcim/front-port-templates/{id}/", 4707 ProducesMediaTypes: []string{"application/json"}, 4708 ConsumesMediaTypes: []string{"application/json"}, 4709 Schemes: []string{"http"}, 4710 Params: params, 4711 Reader: &DcimFrontPortTemplatesUpdateReader{formats: a.formats}, 4712 AuthInfo: authInfo, 4713 Context: params.Context, 4714 Client: params.HTTPClient, 4715 } 4716 for _, opt := range opts { 4717 opt(op) 4718 } 4719 4720 result, err := a.transport.Submit(op) 4721 if err != nil { 4722 return nil, err 4723 } 4724 success, ok := result.(*DcimFrontPortTemplatesUpdateOK) 4725 if ok { 4726 return success, nil 4727 } 4728 // unexpected success response 4729 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4730 msg := fmt.Sprintf("unexpected success response for dcim_front-port-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4731 panic(msg) 4732 } 4733 4734 /* 4735 DcimFrontPortsBulkDelete dcim front ports bulk delete API 4736 */ 4737 func (a *Client) DcimFrontPortsBulkDelete(params *DcimFrontPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsBulkDeleteNoContent, error) { 4738 // TODO: Validate the params before sending 4739 if params == nil { 4740 params = NewDcimFrontPortsBulkDeleteParams() 4741 } 4742 op := &runtime.ClientOperation{ 4743 ID: "dcim_front-ports_bulk_delete", 4744 Method: "DELETE", 4745 PathPattern: "/dcim/front-ports/", 4746 ProducesMediaTypes: []string{"application/json"}, 4747 ConsumesMediaTypes: []string{"application/json"}, 4748 Schemes: []string{"http"}, 4749 Params: params, 4750 Reader: &DcimFrontPortsBulkDeleteReader{formats: a.formats}, 4751 AuthInfo: authInfo, 4752 Context: params.Context, 4753 Client: params.HTTPClient, 4754 } 4755 for _, opt := range opts { 4756 opt(op) 4757 } 4758 4759 result, err := a.transport.Submit(op) 4760 if err != nil { 4761 return nil, err 4762 } 4763 success, ok := result.(*DcimFrontPortsBulkDeleteNoContent) 4764 if ok { 4765 return success, nil 4766 } 4767 // unexpected success response 4768 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4769 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4770 panic(msg) 4771 } 4772 4773 /* 4774 DcimFrontPortsBulkPartialUpdate dcim front ports bulk partial update API 4775 */ 4776 func (a *Client) DcimFrontPortsBulkPartialUpdate(params *DcimFrontPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsBulkPartialUpdateOK, error) { 4777 // TODO: Validate the params before sending 4778 if params == nil { 4779 params = NewDcimFrontPortsBulkPartialUpdateParams() 4780 } 4781 op := &runtime.ClientOperation{ 4782 ID: "dcim_front-ports_bulk_partial_update", 4783 Method: "PATCH", 4784 PathPattern: "/dcim/front-ports/", 4785 ProducesMediaTypes: []string{"application/json"}, 4786 ConsumesMediaTypes: []string{"application/json"}, 4787 Schemes: []string{"http"}, 4788 Params: params, 4789 Reader: &DcimFrontPortsBulkPartialUpdateReader{formats: a.formats}, 4790 AuthInfo: authInfo, 4791 Context: params.Context, 4792 Client: params.HTTPClient, 4793 } 4794 for _, opt := range opts { 4795 opt(op) 4796 } 4797 4798 result, err := a.transport.Submit(op) 4799 if err != nil { 4800 return nil, err 4801 } 4802 success, ok := result.(*DcimFrontPortsBulkPartialUpdateOK) 4803 if ok { 4804 return success, nil 4805 } 4806 // unexpected success response 4807 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4808 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4809 panic(msg) 4810 } 4811 4812 /* 4813 DcimFrontPortsBulkUpdate dcim front ports bulk update API 4814 */ 4815 func (a *Client) DcimFrontPortsBulkUpdate(params *DcimFrontPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsBulkUpdateOK, error) { 4816 // TODO: Validate the params before sending 4817 if params == nil { 4818 params = NewDcimFrontPortsBulkUpdateParams() 4819 } 4820 op := &runtime.ClientOperation{ 4821 ID: "dcim_front-ports_bulk_update", 4822 Method: "PUT", 4823 PathPattern: "/dcim/front-ports/", 4824 ProducesMediaTypes: []string{"application/json"}, 4825 ConsumesMediaTypes: []string{"application/json"}, 4826 Schemes: []string{"http"}, 4827 Params: params, 4828 Reader: &DcimFrontPortsBulkUpdateReader{formats: a.formats}, 4829 AuthInfo: authInfo, 4830 Context: params.Context, 4831 Client: params.HTTPClient, 4832 } 4833 for _, opt := range opts { 4834 opt(op) 4835 } 4836 4837 result, err := a.transport.Submit(op) 4838 if err != nil { 4839 return nil, err 4840 } 4841 success, ok := result.(*DcimFrontPortsBulkUpdateOK) 4842 if ok { 4843 return success, nil 4844 } 4845 // unexpected success response 4846 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4847 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4848 panic(msg) 4849 } 4850 4851 /* 4852 DcimFrontPortsCreate dcim front ports create API 4853 */ 4854 func (a *Client) DcimFrontPortsCreate(params *DcimFrontPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsCreateCreated, error) { 4855 // TODO: Validate the params before sending 4856 if params == nil { 4857 params = NewDcimFrontPortsCreateParams() 4858 } 4859 op := &runtime.ClientOperation{ 4860 ID: "dcim_front-ports_create", 4861 Method: "POST", 4862 PathPattern: "/dcim/front-ports/", 4863 ProducesMediaTypes: []string{"application/json"}, 4864 ConsumesMediaTypes: []string{"application/json"}, 4865 Schemes: []string{"http"}, 4866 Params: params, 4867 Reader: &DcimFrontPortsCreateReader{formats: a.formats}, 4868 AuthInfo: authInfo, 4869 Context: params.Context, 4870 Client: params.HTTPClient, 4871 } 4872 for _, opt := range opts { 4873 opt(op) 4874 } 4875 4876 result, err := a.transport.Submit(op) 4877 if err != nil { 4878 return nil, err 4879 } 4880 success, ok := result.(*DcimFrontPortsCreateCreated) 4881 if ok { 4882 return success, nil 4883 } 4884 // unexpected success response 4885 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4886 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4887 panic(msg) 4888 } 4889 4890 /* 4891 DcimFrontPortsDelete dcim front ports delete API 4892 */ 4893 func (a *Client) DcimFrontPortsDelete(params *DcimFrontPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsDeleteNoContent, error) { 4894 // TODO: Validate the params before sending 4895 if params == nil { 4896 params = NewDcimFrontPortsDeleteParams() 4897 } 4898 op := &runtime.ClientOperation{ 4899 ID: "dcim_front-ports_delete", 4900 Method: "DELETE", 4901 PathPattern: "/dcim/front-ports/{id}/", 4902 ProducesMediaTypes: []string{"application/json"}, 4903 ConsumesMediaTypes: []string{"application/json"}, 4904 Schemes: []string{"http"}, 4905 Params: params, 4906 Reader: &DcimFrontPortsDeleteReader{formats: a.formats}, 4907 AuthInfo: authInfo, 4908 Context: params.Context, 4909 Client: params.HTTPClient, 4910 } 4911 for _, opt := range opts { 4912 opt(op) 4913 } 4914 4915 result, err := a.transport.Submit(op) 4916 if err != nil { 4917 return nil, err 4918 } 4919 success, ok := result.(*DcimFrontPortsDeleteNoContent) 4920 if ok { 4921 return success, nil 4922 } 4923 // unexpected success response 4924 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4925 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4926 panic(msg) 4927 } 4928 4929 /* 4930 DcimFrontPortsList dcim front ports list API 4931 */ 4932 func (a *Client) DcimFrontPortsList(params *DcimFrontPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsListOK, error) { 4933 // TODO: Validate the params before sending 4934 if params == nil { 4935 params = NewDcimFrontPortsListParams() 4936 } 4937 op := &runtime.ClientOperation{ 4938 ID: "dcim_front-ports_list", 4939 Method: "GET", 4940 PathPattern: "/dcim/front-ports/", 4941 ProducesMediaTypes: []string{"application/json"}, 4942 ConsumesMediaTypes: []string{"application/json"}, 4943 Schemes: []string{"http"}, 4944 Params: params, 4945 Reader: &DcimFrontPortsListReader{formats: a.formats}, 4946 AuthInfo: authInfo, 4947 Context: params.Context, 4948 Client: params.HTTPClient, 4949 } 4950 for _, opt := range opts { 4951 opt(op) 4952 } 4953 4954 result, err := a.transport.Submit(op) 4955 if err != nil { 4956 return nil, err 4957 } 4958 success, ok := result.(*DcimFrontPortsListOK) 4959 if ok { 4960 return success, nil 4961 } 4962 // unexpected success response 4963 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 4964 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 4965 panic(msg) 4966 } 4967 4968 /* 4969 DcimFrontPortsPartialUpdate dcim front ports partial update API 4970 */ 4971 func (a *Client) DcimFrontPortsPartialUpdate(params *DcimFrontPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsPartialUpdateOK, error) { 4972 // TODO: Validate the params before sending 4973 if params == nil { 4974 params = NewDcimFrontPortsPartialUpdateParams() 4975 } 4976 op := &runtime.ClientOperation{ 4977 ID: "dcim_front-ports_partial_update", 4978 Method: "PATCH", 4979 PathPattern: "/dcim/front-ports/{id}/", 4980 ProducesMediaTypes: []string{"application/json"}, 4981 ConsumesMediaTypes: []string{"application/json"}, 4982 Schemes: []string{"http"}, 4983 Params: params, 4984 Reader: &DcimFrontPortsPartialUpdateReader{formats: a.formats}, 4985 AuthInfo: authInfo, 4986 Context: params.Context, 4987 Client: params.HTTPClient, 4988 } 4989 for _, opt := range opts { 4990 opt(op) 4991 } 4992 4993 result, err := a.transport.Submit(op) 4994 if err != nil { 4995 return nil, err 4996 } 4997 success, ok := result.(*DcimFrontPortsPartialUpdateOK) 4998 if ok { 4999 return success, nil 5000 } 5001 // unexpected success response 5002 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5003 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5004 panic(msg) 5005 } 5006 5007 /* 5008 DcimFrontPortsPaths Return all CablePaths which traverse a given pass-through port. 5009 */ 5010 func (a *Client) DcimFrontPortsPaths(params *DcimFrontPortsPathsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsPathsOK, error) { 5011 // TODO: Validate the params before sending 5012 if params == nil { 5013 params = NewDcimFrontPortsPathsParams() 5014 } 5015 op := &runtime.ClientOperation{ 5016 ID: "dcim_front-ports_paths", 5017 Method: "GET", 5018 PathPattern: "/dcim/front-ports/{id}/paths/", 5019 ProducesMediaTypes: []string{"application/json"}, 5020 ConsumesMediaTypes: []string{"application/json"}, 5021 Schemes: []string{"http"}, 5022 Params: params, 5023 Reader: &DcimFrontPortsPathsReader{formats: a.formats}, 5024 AuthInfo: authInfo, 5025 Context: params.Context, 5026 Client: params.HTTPClient, 5027 } 5028 for _, opt := range opts { 5029 opt(op) 5030 } 5031 5032 result, err := a.transport.Submit(op) 5033 if err != nil { 5034 return nil, err 5035 } 5036 success, ok := result.(*DcimFrontPortsPathsOK) 5037 if ok { 5038 return success, nil 5039 } 5040 // unexpected success response 5041 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5042 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_paths: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5043 panic(msg) 5044 } 5045 5046 /* 5047 DcimFrontPortsRead dcim front ports read API 5048 */ 5049 func (a *Client) DcimFrontPortsRead(params *DcimFrontPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsReadOK, error) { 5050 // TODO: Validate the params before sending 5051 if params == nil { 5052 params = NewDcimFrontPortsReadParams() 5053 } 5054 op := &runtime.ClientOperation{ 5055 ID: "dcim_front-ports_read", 5056 Method: "GET", 5057 PathPattern: "/dcim/front-ports/{id}/", 5058 ProducesMediaTypes: []string{"application/json"}, 5059 ConsumesMediaTypes: []string{"application/json"}, 5060 Schemes: []string{"http"}, 5061 Params: params, 5062 Reader: &DcimFrontPortsReadReader{formats: a.formats}, 5063 AuthInfo: authInfo, 5064 Context: params.Context, 5065 Client: params.HTTPClient, 5066 } 5067 for _, opt := range opts { 5068 opt(op) 5069 } 5070 5071 result, err := a.transport.Submit(op) 5072 if err != nil { 5073 return nil, err 5074 } 5075 success, ok := result.(*DcimFrontPortsReadOK) 5076 if ok { 5077 return success, nil 5078 } 5079 // unexpected success response 5080 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5081 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5082 panic(msg) 5083 } 5084 5085 /* 5086 DcimFrontPortsUpdate dcim front ports update API 5087 */ 5088 func (a *Client) DcimFrontPortsUpdate(params *DcimFrontPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimFrontPortsUpdateOK, error) { 5089 // TODO: Validate the params before sending 5090 if params == nil { 5091 params = NewDcimFrontPortsUpdateParams() 5092 } 5093 op := &runtime.ClientOperation{ 5094 ID: "dcim_front-ports_update", 5095 Method: "PUT", 5096 PathPattern: "/dcim/front-ports/{id}/", 5097 ProducesMediaTypes: []string{"application/json"}, 5098 ConsumesMediaTypes: []string{"application/json"}, 5099 Schemes: []string{"http"}, 5100 Params: params, 5101 Reader: &DcimFrontPortsUpdateReader{formats: a.formats}, 5102 AuthInfo: authInfo, 5103 Context: params.Context, 5104 Client: params.HTTPClient, 5105 } 5106 for _, opt := range opts { 5107 opt(op) 5108 } 5109 5110 result, err := a.transport.Submit(op) 5111 if err != nil { 5112 return nil, err 5113 } 5114 success, ok := result.(*DcimFrontPortsUpdateOK) 5115 if ok { 5116 return success, nil 5117 } 5118 // unexpected success response 5119 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5120 msg := fmt.Sprintf("unexpected success response for dcim_front-ports_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5121 panic(msg) 5122 } 5123 5124 /* 5125 DcimInterfaceConnectionsList dcim interface connections list API 5126 */ 5127 func (a *Client) DcimInterfaceConnectionsList(params *DcimInterfaceConnectionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceConnectionsListOK, error) { 5128 // TODO: Validate the params before sending 5129 if params == nil { 5130 params = NewDcimInterfaceConnectionsListParams() 5131 } 5132 op := &runtime.ClientOperation{ 5133 ID: "dcim_interface-connections_list", 5134 Method: "GET", 5135 PathPattern: "/dcim/interface-connections/", 5136 ProducesMediaTypes: []string{"application/json"}, 5137 ConsumesMediaTypes: []string{"application/json"}, 5138 Schemes: []string{"http"}, 5139 Params: params, 5140 Reader: &DcimInterfaceConnectionsListReader{formats: a.formats}, 5141 AuthInfo: authInfo, 5142 Context: params.Context, 5143 Client: params.HTTPClient, 5144 } 5145 for _, opt := range opts { 5146 opt(op) 5147 } 5148 5149 result, err := a.transport.Submit(op) 5150 if err != nil { 5151 return nil, err 5152 } 5153 success, ok := result.(*DcimInterfaceConnectionsListOK) 5154 if ok { 5155 return success, nil 5156 } 5157 // unexpected success response 5158 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5159 msg := fmt.Sprintf("unexpected success response for dcim_interface-connections_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5160 panic(msg) 5161 } 5162 5163 /* 5164 DcimInterfaceTemplatesBulkDelete dcim interface templates bulk delete API 5165 */ 5166 func (a *Client) DcimInterfaceTemplatesBulkDelete(params *DcimInterfaceTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesBulkDeleteNoContent, error) { 5167 // TODO: Validate the params before sending 5168 if params == nil { 5169 params = NewDcimInterfaceTemplatesBulkDeleteParams() 5170 } 5171 op := &runtime.ClientOperation{ 5172 ID: "dcim_interface-templates_bulk_delete", 5173 Method: "DELETE", 5174 PathPattern: "/dcim/interface-templates/", 5175 ProducesMediaTypes: []string{"application/json"}, 5176 ConsumesMediaTypes: []string{"application/json"}, 5177 Schemes: []string{"http"}, 5178 Params: params, 5179 Reader: &DcimInterfaceTemplatesBulkDeleteReader{formats: a.formats}, 5180 AuthInfo: authInfo, 5181 Context: params.Context, 5182 Client: params.HTTPClient, 5183 } 5184 for _, opt := range opts { 5185 opt(op) 5186 } 5187 5188 result, err := a.transport.Submit(op) 5189 if err != nil { 5190 return nil, err 5191 } 5192 success, ok := result.(*DcimInterfaceTemplatesBulkDeleteNoContent) 5193 if ok { 5194 return success, nil 5195 } 5196 // unexpected success response 5197 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5198 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5199 panic(msg) 5200 } 5201 5202 /* 5203 DcimInterfaceTemplatesBulkPartialUpdate dcim interface templates bulk partial update API 5204 */ 5205 func (a *Client) DcimInterfaceTemplatesBulkPartialUpdate(params *DcimInterfaceTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesBulkPartialUpdateOK, error) { 5206 // TODO: Validate the params before sending 5207 if params == nil { 5208 params = NewDcimInterfaceTemplatesBulkPartialUpdateParams() 5209 } 5210 op := &runtime.ClientOperation{ 5211 ID: "dcim_interface-templates_bulk_partial_update", 5212 Method: "PATCH", 5213 PathPattern: "/dcim/interface-templates/", 5214 ProducesMediaTypes: []string{"application/json"}, 5215 ConsumesMediaTypes: []string{"application/json"}, 5216 Schemes: []string{"http"}, 5217 Params: params, 5218 Reader: &DcimInterfaceTemplatesBulkPartialUpdateReader{formats: a.formats}, 5219 AuthInfo: authInfo, 5220 Context: params.Context, 5221 Client: params.HTTPClient, 5222 } 5223 for _, opt := range opts { 5224 opt(op) 5225 } 5226 5227 result, err := a.transport.Submit(op) 5228 if err != nil { 5229 return nil, err 5230 } 5231 success, ok := result.(*DcimInterfaceTemplatesBulkPartialUpdateOK) 5232 if ok { 5233 return success, nil 5234 } 5235 // unexpected success response 5236 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5237 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5238 panic(msg) 5239 } 5240 5241 /* 5242 DcimInterfaceTemplatesBulkUpdate dcim interface templates bulk update API 5243 */ 5244 func (a *Client) DcimInterfaceTemplatesBulkUpdate(params *DcimInterfaceTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesBulkUpdateOK, error) { 5245 // TODO: Validate the params before sending 5246 if params == nil { 5247 params = NewDcimInterfaceTemplatesBulkUpdateParams() 5248 } 5249 op := &runtime.ClientOperation{ 5250 ID: "dcim_interface-templates_bulk_update", 5251 Method: "PUT", 5252 PathPattern: "/dcim/interface-templates/", 5253 ProducesMediaTypes: []string{"application/json"}, 5254 ConsumesMediaTypes: []string{"application/json"}, 5255 Schemes: []string{"http"}, 5256 Params: params, 5257 Reader: &DcimInterfaceTemplatesBulkUpdateReader{formats: a.formats}, 5258 AuthInfo: authInfo, 5259 Context: params.Context, 5260 Client: params.HTTPClient, 5261 } 5262 for _, opt := range opts { 5263 opt(op) 5264 } 5265 5266 result, err := a.transport.Submit(op) 5267 if err != nil { 5268 return nil, err 5269 } 5270 success, ok := result.(*DcimInterfaceTemplatesBulkUpdateOK) 5271 if ok { 5272 return success, nil 5273 } 5274 // unexpected success response 5275 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5276 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5277 panic(msg) 5278 } 5279 5280 /* 5281 DcimInterfaceTemplatesCreate dcim interface templates create API 5282 */ 5283 func (a *Client) DcimInterfaceTemplatesCreate(params *DcimInterfaceTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesCreateCreated, error) { 5284 // TODO: Validate the params before sending 5285 if params == nil { 5286 params = NewDcimInterfaceTemplatesCreateParams() 5287 } 5288 op := &runtime.ClientOperation{ 5289 ID: "dcim_interface-templates_create", 5290 Method: "POST", 5291 PathPattern: "/dcim/interface-templates/", 5292 ProducesMediaTypes: []string{"application/json"}, 5293 ConsumesMediaTypes: []string{"application/json"}, 5294 Schemes: []string{"http"}, 5295 Params: params, 5296 Reader: &DcimInterfaceTemplatesCreateReader{formats: a.formats}, 5297 AuthInfo: authInfo, 5298 Context: params.Context, 5299 Client: params.HTTPClient, 5300 } 5301 for _, opt := range opts { 5302 opt(op) 5303 } 5304 5305 result, err := a.transport.Submit(op) 5306 if err != nil { 5307 return nil, err 5308 } 5309 success, ok := result.(*DcimInterfaceTemplatesCreateCreated) 5310 if ok { 5311 return success, nil 5312 } 5313 // unexpected success response 5314 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5315 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5316 panic(msg) 5317 } 5318 5319 /* 5320 DcimInterfaceTemplatesDelete dcim interface templates delete API 5321 */ 5322 func (a *Client) DcimInterfaceTemplatesDelete(params *DcimInterfaceTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesDeleteNoContent, error) { 5323 // TODO: Validate the params before sending 5324 if params == nil { 5325 params = NewDcimInterfaceTemplatesDeleteParams() 5326 } 5327 op := &runtime.ClientOperation{ 5328 ID: "dcim_interface-templates_delete", 5329 Method: "DELETE", 5330 PathPattern: "/dcim/interface-templates/{id}/", 5331 ProducesMediaTypes: []string{"application/json"}, 5332 ConsumesMediaTypes: []string{"application/json"}, 5333 Schemes: []string{"http"}, 5334 Params: params, 5335 Reader: &DcimInterfaceTemplatesDeleteReader{formats: a.formats}, 5336 AuthInfo: authInfo, 5337 Context: params.Context, 5338 Client: params.HTTPClient, 5339 } 5340 for _, opt := range opts { 5341 opt(op) 5342 } 5343 5344 result, err := a.transport.Submit(op) 5345 if err != nil { 5346 return nil, err 5347 } 5348 success, ok := result.(*DcimInterfaceTemplatesDeleteNoContent) 5349 if ok { 5350 return success, nil 5351 } 5352 // unexpected success response 5353 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5354 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5355 panic(msg) 5356 } 5357 5358 /* 5359 DcimInterfaceTemplatesList dcim interface templates list API 5360 */ 5361 func (a *Client) DcimInterfaceTemplatesList(params *DcimInterfaceTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesListOK, error) { 5362 // TODO: Validate the params before sending 5363 if params == nil { 5364 params = NewDcimInterfaceTemplatesListParams() 5365 } 5366 op := &runtime.ClientOperation{ 5367 ID: "dcim_interface-templates_list", 5368 Method: "GET", 5369 PathPattern: "/dcim/interface-templates/", 5370 ProducesMediaTypes: []string{"application/json"}, 5371 ConsumesMediaTypes: []string{"application/json"}, 5372 Schemes: []string{"http"}, 5373 Params: params, 5374 Reader: &DcimInterfaceTemplatesListReader{formats: a.formats}, 5375 AuthInfo: authInfo, 5376 Context: params.Context, 5377 Client: params.HTTPClient, 5378 } 5379 for _, opt := range opts { 5380 opt(op) 5381 } 5382 5383 result, err := a.transport.Submit(op) 5384 if err != nil { 5385 return nil, err 5386 } 5387 success, ok := result.(*DcimInterfaceTemplatesListOK) 5388 if ok { 5389 return success, nil 5390 } 5391 // unexpected success response 5392 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5393 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5394 panic(msg) 5395 } 5396 5397 /* 5398 DcimInterfaceTemplatesPartialUpdate dcim interface templates partial update API 5399 */ 5400 func (a *Client) DcimInterfaceTemplatesPartialUpdate(params *DcimInterfaceTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesPartialUpdateOK, error) { 5401 // TODO: Validate the params before sending 5402 if params == nil { 5403 params = NewDcimInterfaceTemplatesPartialUpdateParams() 5404 } 5405 op := &runtime.ClientOperation{ 5406 ID: "dcim_interface-templates_partial_update", 5407 Method: "PATCH", 5408 PathPattern: "/dcim/interface-templates/{id}/", 5409 ProducesMediaTypes: []string{"application/json"}, 5410 ConsumesMediaTypes: []string{"application/json"}, 5411 Schemes: []string{"http"}, 5412 Params: params, 5413 Reader: &DcimInterfaceTemplatesPartialUpdateReader{formats: a.formats}, 5414 AuthInfo: authInfo, 5415 Context: params.Context, 5416 Client: params.HTTPClient, 5417 } 5418 for _, opt := range opts { 5419 opt(op) 5420 } 5421 5422 result, err := a.transport.Submit(op) 5423 if err != nil { 5424 return nil, err 5425 } 5426 success, ok := result.(*DcimInterfaceTemplatesPartialUpdateOK) 5427 if ok { 5428 return success, nil 5429 } 5430 // unexpected success response 5431 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5432 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5433 panic(msg) 5434 } 5435 5436 /* 5437 DcimInterfaceTemplatesRead dcim interface templates read API 5438 */ 5439 func (a *Client) DcimInterfaceTemplatesRead(params *DcimInterfaceTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesReadOK, error) { 5440 // TODO: Validate the params before sending 5441 if params == nil { 5442 params = NewDcimInterfaceTemplatesReadParams() 5443 } 5444 op := &runtime.ClientOperation{ 5445 ID: "dcim_interface-templates_read", 5446 Method: "GET", 5447 PathPattern: "/dcim/interface-templates/{id}/", 5448 ProducesMediaTypes: []string{"application/json"}, 5449 ConsumesMediaTypes: []string{"application/json"}, 5450 Schemes: []string{"http"}, 5451 Params: params, 5452 Reader: &DcimInterfaceTemplatesReadReader{formats: a.formats}, 5453 AuthInfo: authInfo, 5454 Context: params.Context, 5455 Client: params.HTTPClient, 5456 } 5457 for _, opt := range opts { 5458 opt(op) 5459 } 5460 5461 result, err := a.transport.Submit(op) 5462 if err != nil { 5463 return nil, err 5464 } 5465 success, ok := result.(*DcimInterfaceTemplatesReadOK) 5466 if ok { 5467 return success, nil 5468 } 5469 // unexpected success response 5470 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5471 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5472 panic(msg) 5473 } 5474 5475 /* 5476 DcimInterfaceTemplatesUpdate dcim interface templates update API 5477 */ 5478 func (a *Client) DcimInterfaceTemplatesUpdate(params *DcimInterfaceTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfaceTemplatesUpdateOK, error) { 5479 // TODO: Validate the params before sending 5480 if params == nil { 5481 params = NewDcimInterfaceTemplatesUpdateParams() 5482 } 5483 op := &runtime.ClientOperation{ 5484 ID: "dcim_interface-templates_update", 5485 Method: "PUT", 5486 PathPattern: "/dcim/interface-templates/{id}/", 5487 ProducesMediaTypes: []string{"application/json"}, 5488 ConsumesMediaTypes: []string{"application/json"}, 5489 Schemes: []string{"http"}, 5490 Params: params, 5491 Reader: &DcimInterfaceTemplatesUpdateReader{formats: a.formats}, 5492 AuthInfo: authInfo, 5493 Context: params.Context, 5494 Client: params.HTTPClient, 5495 } 5496 for _, opt := range opts { 5497 opt(op) 5498 } 5499 5500 result, err := a.transport.Submit(op) 5501 if err != nil { 5502 return nil, err 5503 } 5504 success, ok := result.(*DcimInterfaceTemplatesUpdateOK) 5505 if ok { 5506 return success, nil 5507 } 5508 // unexpected success response 5509 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5510 msg := fmt.Sprintf("unexpected success response for dcim_interface-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5511 panic(msg) 5512 } 5513 5514 /* 5515 DcimInterfacesBulkDelete dcim interfaces bulk delete API 5516 */ 5517 func (a *Client) DcimInterfacesBulkDelete(params *DcimInterfacesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesBulkDeleteNoContent, error) { 5518 // TODO: Validate the params before sending 5519 if params == nil { 5520 params = NewDcimInterfacesBulkDeleteParams() 5521 } 5522 op := &runtime.ClientOperation{ 5523 ID: "dcim_interfaces_bulk_delete", 5524 Method: "DELETE", 5525 PathPattern: "/dcim/interfaces/", 5526 ProducesMediaTypes: []string{"application/json"}, 5527 ConsumesMediaTypes: []string{"application/json"}, 5528 Schemes: []string{"http"}, 5529 Params: params, 5530 Reader: &DcimInterfacesBulkDeleteReader{formats: a.formats}, 5531 AuthInfo: authInfo, 5532 Context: params.Context, 5533 Client: params.HTTPClient, 5534 } 5535 for _, opt := range opts { 5536 opt(op) 5537 } 5538 5539 result, err := a.transport.Submit(op) 5540 if err != nil { 5541 return nil, err 5542 } 5543 success, ok := result.(*DcimInterfacesBulkDeleteNoContent) 5544 if ok { 5545 return success, nil 5546 } 5547 // unexpected success response 5548 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5549 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5550 panic(msg) 5551 } 5552 5553 /* 5554 DcimInterfacesBulkPartialUpdate dcim interfaces bulk partial update API 5555 */ 5556 func (a *Client) DcimInterfacesBulkPartialUpdate(params *DcimInterfacesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesBulkPartialUpdateOK, error) { 5557 // TODO: Validate the params before sending 5558 if params == nil { 5559 params = NewDcimInterfacesBulkPartialUpdateParams() 5560 } 5561 op := &runtime.ClientOperation{ 5562 ID: "dcim_interfaces_bulk_partial_update", 5563 Method: "PATCH", 5564 PathPattern: "/dcim/interfaces/", 5565 ProducesMediaTypes: []string{"application/json"}, 5566 ConsumesMediaTypes: []string{"application/json"}, 5567 Schemes: []string{"http"}, 5568 Params: params, 5569 Reader: &DcimInterfacesBulkPartialUpdateReader{formats: a.formats}, 5570 AuthInfo: authInfo, 5571 Context: params.Context, 5572 Client: params.HTTPClient, 5573 } 5574 for _, opt := range opts { 5575 opt(op) 5576 } 5577 5578 result, err := a.transport.Submit(op) 5579 if err != nil { 5580 return nil, err 5581 } 5582 success, ok := result.(*DcimInterfacesBulkPartialUpdateOK) 5583 if ok { 5584 return success, nil 5585 } 5586 // unexpected success response 5587 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5588 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5589 panic(msg) 5590 } 5591 5592 /* 5593 DcimInterfacesBulkUpdate dcim interfaces bulk update API 5594 */ 5595 func (a *Client) DcimInterfacesBulkUpdate(params *DcimInterfacesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesBulkUpdateOK, error) { 5596 // TODO: Validate the params before sending 5597 if params == nil { 5598 params = NewDcimInterfacesBulkUpdateParams() 5599 } 5600 op := &runtime.ClientOperation{ 5601 ID: "dcim_interfaces_bulk_update", 5602 Method: "PUT", 5603 PathPattern: "/dcim/interfaces/", 5604 ProducesMediaTypes: []string{"application/json"}, 5605 ConsumesMediaTypes: []string{"application/json"}, 5606 Schemes: []string{"http"}, 5607 Params: params, 5608 Reader: &DcimInterfacesBulkUpdateReader{formats: a.formats}, 5609 AuthInfo: authInfo, 5610 Context: params.Context, 5611 Client: params.HTTPClient, 5612 } 5613 for _, opt := range opts { 5614 opt(op) 5615 } 5616 5617 result, err := a.transport.Submit(op) 5618 if err != nil { 5619 return nil, err 5620 } 5621 success, ok := result.(*DcimInterfacesBulkUpdateOK) 5622 if ok { 5623 return success, nil 5624 } 5625 // unexpected success response 5626 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5627 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5628 panic(msg) 5629 } 5630 5631 /* 5632 DcimInterfacesCreate dcim interfaces create API 5633 */ 5634 func (a *Client) DcimInterfacesCreate(params *DcimInterfacesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesCreateCreated, error) { 5635 // TODO: Validate the params before sending 5636 if params == nil { 5637 params = NewDcimInterfacesCreateParams() 5638 } 5639 op := &runtime.ClientOperation{ 5640 ID: "dcim_interfaces_create", 5641 Method: "POST", 5642 PathPattern: "/dcim/interfaces/", 5643 ProducesMediaTypes: []string{"application/json"}, 5644 ConsumesMediaTypes: []string{"application/json"}, 5645 Schemes: []string{"http"}, 5646 Params: params, 5647 Reader: &DcimInterfacesCreateReader{formats: a.formats}, 5648 AuthInfo: authInfo, 5649 Context: params.Context, 5650 Client: params.HTTPClient, 5651 } 5652 for _, opt := range opts { 5653 opt(op) 5654 } 5655 5656 result, err := a.transport.Submit(op) 5657 if err != nil { 5658 return nil, err 5659 } 5660 success, ok := result.(*DcimInterfacesCreateCreated) 5661 if ok { 5662 return success, nil 5663 } 5664 // unexpected success response 5665 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5666 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5667 panic(msg) 5668 } 5669 5670 /* 5671 DcimInterfacesDelete dcim interfaces delete API 5672 */ 5673 func (a *Client) DcimInterfacesDelete(params *DcimInterfacesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesDeleteNoContent, error) { 5674 // TODO: Validate the params before sending 5675 if params == nil { 5676 params = NewDcimInterfacesDeleteParams() 5677 } 5678 op := &runtime.ClientOperation{ 5679 ID: "dcim_interfaces_delete", 5680 Method: "DELETE", 5681 PathPattern: "/dcim/interfaces/{id}/", 5682 ProducesMediaTypes: []string{"application/json"}, 5683 ConsumesMediaTypes: []string{"application/json"}, 5684 Schemes: []string{"http"}, 5685 Params: params, 5686 Reader: &DcimInterfacesDeleteReader{formats: a.formats}, 5687 AuthInfo: authInfo, 5688 Context: params.Context, 5689 Client: params.HTTPClient, 5690 } 5691 for _, opt := range opts { 5692 opt(op) 5693 } 5694 5695 result, err := a.transport.Submit(op) 5696 if err != nil { 5697 return nil, err 5698 } 5699 success, ok := result.(*DcimInterfacesDeleteNoContent) 5700 if ok { 5701 return success, nil 5702 } 5703 // unexpected success response 5704 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5705 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5706 panic(msg) 5707 } 5708 5709 /* 5710 DcimInterfacesList dcim interfaces list API 5711 */ 5712 func (a *Client) DcimInterfacesList(params *DcimInterfacesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesListOK, error) { 5713 // TODO: Validate the params before sending 5714 if params == nil { 5715 params = NewDcimInterfacesListParams() 5716 } 5717 op := &runtime.ClientOperation{ 5718 ID: "dcim_interfaces_list", 5719 Method: "GET", 5720 PathPattern: "/dcim/interfaces/", 5721 ProducesMediaTypes: []string{"application/json"}, 5722 ConsumesMediaTypes: []string{"application/json"}, 5723 Schemes: []string{"http"}, 5724 Params: params, 5725 Reader: &DcimInterfacesListReader{formats: a.formats}, 5726 AuthInfo: authInfo, 5727 Context: params.Context, 5728 Client: params.HTTPClient, 5729 } 5730 for _, opt := range opts { 5731 opt(op) 5732 } 5733 5734 result, err := a.transport.Submit(op) 5735 if err != nil { 5736 return nil, err 5737 } 5738 success, ok := result.(*DcimInterfacesListOK) 5739 if ok { 5740 return success, nil 5741 } 5742 // unexpected success response 5743 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5744 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5745 panic(msg) 5746 } 5747 5748 /* 5749 DcimInterfacesPartialUpdate dcim interfaces partial update API 5750 */ 5751 func (a *Client) DcimInterfacesPartialUpdate(params *DcimInterfacesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesPartialUpdateOK, error) { 5752 // TODO: Validate the params before sending 5753 if params == nil { 5754 params = NewDcimInterfacesPartialUpdateParams() 5755 } 5756 op := &runtime.ClientOperation{ 5757 ID: "dcim_interfaces_partial_update", 5758 Method: "PATCH", 5759 PathPattern: "/dcim/interfaces/{id}/", 5760 ProducesMediaTypes: []string{"application/json"}, 5761 ConsumesMediaTypes: []string{"application/json"}, 5762 Schemes: []string{"http"}, 5763 Params: params, 5764 Reader: &DcimInterfacesPartialUpdateReader{formats: a.formats}, 5765 AuthInfo: authInfo, 5766 Context: params.Context, 5767 Client: params.HTTPClient, 5768 } 5769 for _, opt := range opts { 5770 opt(op) 5771 } 5772 5773 result, err := a.transport.Submit(op) 5774 if err != nil { 5775 return nil, err 5776 } 5777 success, ok := result.(*DcimInterfacesPartialUpdateOK) 5778 if ok { 5779 return success, nil 5780 } 5781 // unexpected success response 5782 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5783 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5784 panic(msg) 5785 } 5786 5787 /* 5788 DcimInterfacesRead dcim interfaces read API 5789 */ 5790 func (a *Client) DcimInterfacesRead(params *DcimInterfacesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesReadOK, error) { 5791 // TODO: Validate the params before sending 5792 if params == nil { 5793 params = NewDcimInterfacesReadParams() 5794 } 5795 op := &runtime.ClientOperation{ 5796 ID: "dcim_interfaces_read", 5797 Method: "GET", 5798 PathPattern: "/dcim/interfaces/{id}/", 5799 ProducesMediaTypes: []string{"application/json"}, 5800 ConsumesMediaTypes: []string{"application/json"}, 5801 Schemes: []string{"http"}, 5802 Params: params, 5803 Reader: &DcimInterfacesReadReader{formats: a.formats}, 5804 AuthInfo: authInfo, 5805 Context: params.Context, 5806 Client: params.HTTPClient, 5807 } 5808 for _, opt := range opts { 5809 opt(op) 5810 } 5811 5812 result, err := a.transport.Submit(op) 5813 if err != nil { 5814 return nil, err 5815 } 5816 success, ok := result.(*DcimInterfacesReadOK) 5817 if ok { 5818 return success, nil 5819 } 5820 // unexpected success response 5821 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5822 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5823 panic(msg) 5824 } 5825 5826 /* 5827 DcimInterfacesTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). 5828 */ 5829 func (a *Client) DcimInterfacesTrace(params *DcimInterfacesTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesTraceOK, error) { 5830 // TODO: Validate the params before sending 5831 if params == nil { 5832 params = NewDcimInterfacesTraceParams() 5833 } 5834 op := &runtime.ClientOperation{ 5835 ID: "dcim_interfaces_trace", 5836 Method: "GET", 5837 PathPattern: "/dcim/interfaces/{id}/trace/", 5838 ProducesMediaTypes: []string{"application/json"}, 5839 ConsumesMediaTypes: []string{"application/json"}, 5840 Schemes: []string{"http"}, 5841 Params: params, 5842 Reader: &DcimInterfacesTraceReader{formats: a.formats}, 5843 AuthInfo: authInfo, 5844 Context: params.Context, 5845 Client: params.HTTPClient, 5846 } 5847 for _, opt := range opts { 5848 opt(op) 5849 } 5850 5851 result, err := a.transport.Submit(op) 5852 if err != nil { 5853 return nil, err 5854 } 5855 success, ok := result.(*DcimInterfacesTraceOK) 5856 if ok { 5857 return success, nil 5858 } 5859 // unexpected success response 5860 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5861 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_trace: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5862 panic(msg) 5863 } 5864 5865 /* 5866 DcimInterfacesUpdate dcim interfaces update API 5867 */ 5868 func (a *Client) DcimInterfacesUpdate(params *DcimInterfacesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInterfacesUpdateOK, error) { 5869 // TODO: Validate the params before sending 5870 if params == nil { 5871 params = NewDcimInterfacesUpdateParams() 5872 } 5873 op := &runtime.ClientOperation{ 5874 ID: "dcim_interfaces_update", 5875 Method: "PUT", 5876 PathPattern: "/dcim/interfaces/{id}/", 5877 ProducesMediaTypes: []string{"application/json"}, 5878 ConsumesMediaTypes: []string{"application/json"}, 5879 Schemes: []string{"http"}, 5880 Params: params, 5881 Reader: &DcimInterfacesUpdateReader{formats: a.formats}, 5882 AuthInfo: authInfo, 5883 Context: params.Context, 5884 Client: params.HTTPClient, 5885 } 5886 for _, opt := range opts { 5887 opt(op) 5888 } 5889 5890 result, err := a.transport.Submit(op) 5891 if err != nil { 5892 return nil, err 5893 } 5894 success, ok := result.(*DcimInterfacesUpdateOK) 5895 if ok { 5896 return success, nil 5897 } 5898 // unexpected success response 5899 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5900 msg := fmt.Sprintf("unexpected success response for dcim_interfaces_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5901 panic(msg) 5902 } 5903 5904 /* 5905 DcimInventoryItemsBulkDelete dcim inventory items bulk delete API 5906 */ 5907 func (a *Client) DcimInventoryItemsBulkDelete(params *DcimInventoryItemsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkDeleteNoContent, error) { 5908 // TODO: Validate the params before sending 5909 if params == nil { 5910 params = NewDcimInventoryItemsBulkDeleteParams() 5911 } 5912 op := &runtime.ClientOperation{ 5913 ID: "dcim_inventory-items_bulk_delete", 5914 Method: "DELETE", 5915 PathPattern: "/dcim/inventory-items/", 5916 ProducesMediaTypes: []string{"application/json"}, 5917 ConsumesMediaTypes: []string{"application/json"}, 5918 Schemes: []string{"http"}, 5919 Params: params, 5920 Reader: &DcimInventoryItemsBulkDeleteReader{formats: a.formats}, 5921 AuthInfo: authInfo, 5922 Context: params.Context, 5923 Client: params.HTTPClient, 5924 } 5925 for _, opt := range opts { 5926 opt(op) 5927 } 5928 5929 result, err := a.transport.Submit(op) 5930 if err != nil { 5931 return nil, err 5932 } 5933 success, ok := result.(*DcimInventoryItemsBulkDeleteNoContent) 5934 if ok { 5935 return success, nil 5936 } 5937 // unexpected success response 5938 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5939 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5940 panic(msg) 5941 } 5942 5943 /* 5944 DcimInventoryItemsBulkPartialUpdate dcim inventory items bulk partial update API 5945 */ 5946 func (a *Client) DcimInventoryItemsBulkPartialUpdate(params *DcimInventoryItemsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkPartialUpdateOK, error) { 5947 // TODO: Validate the params before sending 5948 if params == nil { 5949 params = NewDcimInventoryItemsBulkPartialUpdateParams() 5950 } 5951 op := &runtime.ClientOperation{ 5952 ID: "dcim_inventory-items_bulk_partial_update", 5953 Method: "PATCH", 5954 PathPattern: "/dcim/inventory-items/", 5955 ProducesMediaTypes: []string{"application/json"}, 5956 ConsumesMediaTypes: []string{"application/json"}, 5957 Schemes: []string{"http"}, 5958 Params: params, 5959 Reader: &DcimInventoryItemsBulkPartialUpdateReader{formats: a.formats}, 5960 AuthInfo: authInfo, 5961 Context: params.Context, 5962 Client: params.HTTPClient, 5963 } 5964 for _, opt := range opts { 5965 opt(op) 5966 } 5967 5968 result, err := a.transport.Submit(op) 5969 if err != nil { 5970 return nil, err 5971 } 5972 success, ok := result.(*DcimInventoryItemsBulkPartialUpdateOK) 5973 if ok { 5974 return success, nil 5975 } 5976 // unexpected success response 5977 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 5978 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 5979 panic(msg) 5980 } 5981 5982 /* 5983 DcimInventoryItemsBulkUpdate dcim inventory items bulk update API 5984 */ 5985 func (a *Client) DcimInventoryItemsBulkUpdate(params *DcimInventoryItemsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsBulkUpdateOK, error) { 5986 // TODO: Validate the params before sending 5987 if params == nil { 5988 params = NewDcimInventoryItemsBulkUpdateParams() 5989 } 5990 op := &runtime.ClientOperation{ 5991 ID: "dcim_inventory-items_bulk_update", 5992 Method: "PUT", 5993 PathPattern: "/dcim/inventory-items/", 5994 ProducesMediaTypes: []string{"application/json"}, 5995 ConsumesMediaTypes: []string{"application/json"}, 5996 Schemes: []string{"http"}, 5997 Params: params, 5998 Reader: &DcimInventoryItemsBulkUpdateReader{formats: a.formats}, 5999 AuthInfo: authInfo, 6000 Context: params.Context, 6001 Client: params.HTTPClient, 6002 } 6003 for _, opt := range opts { 6004 opt(op) 6005 } 6006 6007 result, err := a.transport.Submit(op) 6008 if err != nil { 6009 return nil, err 6010 } 6011 success, ok := result.(*DcimInventoryItemsBulkUpdateOK) 6012 if ok { 6013 return success, nil 6014 } 6015 // unexpected success response 6016 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6017 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6018 panic(msg) 6019 } 6020 6021 /* 6022 DcimInventoryItemsCreate dcim inventory items create API 6023 */ 6024 func (a *Client) DcimInventoryItemsCreate(params *DcimInventoryItemsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsCreateCreated, error) { 6025 // TODO: Validate the params before sending 6026 if params == nil { 6027 params = NewDcimInventoryItemsCreateParams() 6028 } 6029 op := &runtime.ClientOperation{ 6030 ID: "dcim_inventory-items_create", 6031 Method: "POST", 6032 PathPattern: "/dcim/inventory-items/", 6033 ProducesMediaTypes: []string{"application/json"}, 6034 ConsumesMediaTypes: []string{"application/json"}, 6035 Schemes: []string{"http"}, 6036 Params: params, 6037 Reader: &DcimInventoryItemsCreateReader{formats: a.formats}, 6038 AuthInfo: authInfo, 6039 Context: params.Context, 6040 Client: params.HTTPClient, 6041 } 6042 for _, opt := range opts { 6043 opt(op) 6044 } 6045 6046 result, err := a.transport.Submit(op) 6047 if err != nil { 6048 return nil, err 6049 } 6050 success, ok := result.(*DcimInventoryItemsCreateCreated) 6051 if ok { 6052 return success, nil 6053 } 6054 // unexpected success response 6055 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6056 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6057 panic(msg) 6058 } 6059 6060 /* 6061 DcimInventoryItemsDelete dcim inventory items delete API 6062 */ 6063 func (a *Client) DcimInventoryItemsDelete(params *DcimInventoryItemsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsDeleteNoContent, error) { 6064 // TODO: Validate the params before sending 6065 if params == nil { 6066 params = NewDcimInventoryItemsDeleteParams() 6067 } 6068 op := &runtime.ClientOperation{ 6069 ID: "dcim_inventory-items_delete", 6070 Method: "DELETE", 6071 PathPattern: "/dcim/inventory-items/{id}/", 6072 ProducesMediaTypes: []string{"application/json"}, 6073 ConsumesMediaTypes: []string{"application/json"}, 6074 Schemes: []string{"http"}, 6075 Params: params, 6076 Reader: &DcimInventoryItemsDeleteReader{formats: a.formats}, 6077 AuthInfo: authInfo, 6078 Context: params.Context, 6079 Client: params.HTTPClient, 6080 } 6081 for _, opt := range opts { 6082 opt(op) 6083 } 6084 6085 result, err := a.transport.Submit(op) 6086 if err != nil { 6087 return nil, err 6088 } 6089 success, ok := result.(*DcimInventoryItemsDeleteNoContent) 6090 if ok { 6091 return success, nil 6092 } 6093 // unexpected success response 6094 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6095 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6096 panic(msg) 6097 } 6098 6099 /* 6100 DcimInventoryItemsList dcim inventory items list API 6101 */ 6102 func (a *Client) DcimInventoryItemsList(params *DcimInventoryItemsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsListOK, error) { 6103 // TODO: Validate the params before sending 6104 if params == nil { 6105 params = NewDcimInventoryItemsListParams() 6106 } 6107 op := &runtime.ClientOperation{ 6108 ID: "dcim_inventory-items_list", 6109 Method: "GET", 6110 PathPattern: "/dcim/inventory-items/", 6111 ProducesMediaTypes: []string{"application/json"}, 6112 ConsumesMediaTypes: []string{"application/json"}, 6113 Schemes: []string{"http"}, 6114 Params: params, 6115 Reader: &DcimInventoryItemsListReader{formats: a.formats}, 6116 AuthInfo: authInfo, 6117 Context: params.Context, 6118 Client: params.HTTPClient, 6119 } 6120 for _, opt := range opts { 6121 opt(op) 6122 } 6123 6124 result, err := a.transport.Submit(op) 6125 if err != nil { 6126 return nil, err 6127 } 6128 success, ok := result.(*DcimInventoryItemsListOK) 6129 if ok { 6130 return success, nil 6131 } 6132 // unexpected success response 6133 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6134 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6135 panic(msg) 6136 } 6137 6138 /* 6139 DcimInventoryItemsPartialUpdate dcim inventory items partial update API 6140 */ 6141 func (a *Client) DcimInventoryItemsPartialUpdate(params *DcimInventoryItemsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsPartialUpdateOK, error) { 6142 // TODO: Validate the params before sending 6143 if params == nil { 6144 params = NewDcimInventoryItemsPartialUpdateParams() 6145 } 6146 op := &runtime.ClientOperation{ 6147 ID: "dcim_inventory-items_partial_update", 6148 Method: "PATCH", 6149 PathPattern: "/dcim/inventory-items/{id}/", 6150 ProducesMediaTypes: []string{"application/json"}, 6151 ConsumesMediaTypes: []string{"application/json"}, 6152 Schemes: []string{"http"}, 6153 Params: params, 6154 Reader: &DcimInventoryItemsPartialUpdateReader{formats: a.formats}, 6155 AuthInfo: authInfo, 6156 Context: params.Context, 6157 Client: params.HTTPClient, 6158 } 6159 for _, opt := range opts { 6160 opt(op) 6161 } 6162 6163 result, err := a.transport.Submit(op) 6164 if err != nil { 6165 return nil, err 6166 } 6167 success, ok := result.(*DcimInventoryItemsPartialUpdateOK) 6168 if ok { 6169 return success, nil 6170 } 6171 // unexpected success response 6172 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6173 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6174 panic(msg) 6175 } 6176 6177 /* 6178 DcimInventoryItemsRead dcim inventory items read API 6179 */ 6180 func (a *Client) DcimInventoryItemsRead(params *DcimInventoryItemsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsReadOK, error) { 6181 // TODO: Validate the params before sending 6182 if params == nil { 6183 params = NewDcimInventoryItemsReadParams() 6184 } 6185 op := &runtime.ClientOperation{ 6186 ID: "dcim_inventory-items_read", 6187 Method: "GET", 6188 PathPattern: "/dcim/inventory-items/{id}/", 6189 ProducesMediaTypes: []string{"application/json"}, 6190 ConsumesMediaTypes: []string{"application/json"}, 6191 Schemes: []string{"http"}, 6192 Params: params, 6193 Reader: &DcimInventoryItemsReadReader{formats: a.formats}, 6194 AuthInfo: authInfo, 6195 Context: params.Context, 6196 Client: params.HTTPClient, 6197 } 6198 for _, opt := range opts { 6199 opt(op) 6200 } 6201 6202 result, err := a.transport.Submit(op) 6203 if err != nil { 6204 return nil, err 6205 } 6206 success, ok := result.(*DcimInventoryItemsReadOK) 6207 if ok { 6208 return success, nil 6209 } 6210 // unexpected success response 6211 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6212 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6213 panic(msg) 6214 } 6215 6216 /* 6217 DcimInventoryItemsUpdate dcim inventory items update API 6218 */ 6219 func (a *Client) DcimInventoryItemsUpdate(params *DcimInventoryItemsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimInventoryItemsUpdateOK, error) { 6220 // TODO: Validate the params before sending 6221 if params == nil { 6222 params = NewDcimInventoryItemsUpdateParams() 6223 } 6224 op := &runtime.ClientOperation{ 6225 ID: "dcim_inventory-items_update", 6226 Method: "PUT", 6227 PathPattern: "/dcim/inventory-items/{id}/", 6228 ProducesMediaTypes: []string{"application/json"}, 6229 ConsumesMediaTypes: []string{"application/json"}, 6230 Schemes: []string{"http"}, 6231 Params: params, 6232 Reader: &DcimInventoryItemsUpdateReader{formats: a.formats}, 6233 AuthInfo: authInfo, 6234 Context: params.Context, 6235 Client: params.HTTPClient, 6236 } 6237 for _, opt := range opts { 6238 opt(op) 6239 } 6240 6241 result, err := a.transport.Submit(op) 6242 if err != nil { 6243 return nil, err 6244 } 6245 success, ok := result.(*DcimInventoryItemsUpdateOK) 6246 if ok { 6247 return success, nil 6248 } 6249 // unexpected success response 6250 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6251 msg := fmt.Sprintf("unexpected success response for dcim_inventory-items_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6252 panic(msg) 6253 } 6254 6255 /* 6256 DcimLocationsBulkDelete dcim locations bulk delete API 6257 */ 6258 func (a *Client) DcimLocationsBulkDelete(params *DcimLocationsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkDeleteNoContent, error) { 6259 // TODO: Validate the params before sending 6260 if params == nil { 6261 params = NewDcimLocationsBulkDeleteParams() 6262 } 6263 op := &runtime.ClientOperation{ 6264 ID: "dcim_locations_bulk_delete", 6265 Method: "DELETE", 6266 PathPattern: "/dcim/locations/", 6267 ProducesMediaTypes: []string{"application/json"}, 6268 ConsumesMediaTypes: []string{"application/json"}, 6269 Schemes: []string{"http"}, 6270 Params: params, 6271 Reader: &DcimLocationsBulkDeleteReader{formats: a.formats}, 6272 AuthInfo: authInfo, 6273 Context: params.Context, 6274 Client: params.HTTPClient, 6275 } 6276 for _, opt := range opts { 6277 opt(op) 6278 } 6279 6280 result, err := a.transport.Submit(op) 6281 if err != nil { 6282 return nil, err 6283 } 6284 success, ok := result.(*DcimLocationsBulkDeleteNoContent) 6285 if ok { 6286 return success, nil 6287 } 6288 // unexpected success response 6289 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6290 msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6291 panic(msg) 6292 } 6293 6294 /* 6295 DcimLocationsBulkPartialUpdate dcim locations bulk partial update API 6296 */ 6297 func (a *Client) DcimLocationsBulkPartialUpdate(params *DcimLocationsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkPartialUpdateOK, error) { 6298 // TODO: Validate the params before sending 6299 if params == nil { 6300 params = NewDcimLocationsBulkPartialUpdateParams() 6301 } 6302 op := &runtime.ClientOperation{ 6303 ID: "dcim_locations_bulk_partial_update", 6304 Method: "PATCH", 6305 PathPattern: "/dcim/locations/", 6306 ProducesMediaTypes: []string{"application/json"}, 6307 ConsumesMediaTypes: []string{"application/json"}, 6308 Schemes: []string{"http"}, 6309 Params: params, 6310 Reader: &DcimLocationsBulkPartialUpdateReader{formats: a.formats}, 6311 AuthInfo: authInfo, 6312 Context: params.Context, 6313 Client: params.HTTPClient, 6314 } 6315 for _, opt := range opts { 6316 opt(op) 6317 } 6318 6319 result, err := a.transport.Submit(op) 6320 if err != nil { 6321 return nil, err 6322 } 6323 success, ok := result.(*DcimLocationsBulkPartialUpdateOK) 6324 if ok { 6325 return success, nil 6326 } 6327 // unexpected success response 6328 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6329 msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6330 panic(msg) 6331 } 6332 6333 /* 6334 DcimLocationsBulkUpdate dcim locations bulk update API 6335 */ 6336 func (a *Client) DcimLocationsBulkUpdate(params *DcimLocationsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsBulkUpdateOK, error) { 6337 // TODO: Validate the params before sending 6338 if params == nil { 6339 params = NewDcimLocationsBulkUpdateParams() 6340 } 6341 op := &runtime.ClientOperation{ 6342 ID: "dcim_locations_bulk_update", 6343 Method: "PUT", 6344 PathPattern: "/dcim/locations/", 6345 ProducesMediaTypes: []string{"application/json"}, 6346 ConsumesMediaTypes: []string{"application/json"}, 6347 Schemes: []string{"http"}, 6348 Params: params, 6349 Reader: &DcimLocationsBulkUpdateReader{formats: a.formats}, 6350 AuthInfo: authInfo, 6351 Context: params.Context, 6352 Client: params.HTTPClient, 6353 } 6354 for _, opt := range opts { 6355 opt(op) 6356 } 6357 6358 result, err := a.transport.Submit(op) 6359 if err != nil { 6360 return nil, err 6361 } 6362 success, ok := result.(*DcimLocationsBulkUpdateOK) 6363 if ok { 6364 return success, nil 6365 } 6366 // unexpected success response 6367 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6368 msg := fmt.Sprintf("unexpected success response for dcim_locations_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6369 panic(msg) 6370 } 6371 6372 /* 6373 DcimLocationsCreate dcim locations create API 6374 */ 6375 func (a *Client) DcimLocationsCreate(params *DcimLocationsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsCreateCreated, error) { 6376 // TODO: Validate the params before sending 6377 if params == nil { 6378 params = NewDcimLocationsCreateParams() 6379 } 6380 op := &runtime.ClientOperation{ 6381 ID: "dcim_locations_create", 6382 Method: "POST", 6383 PathPattern: "/dcim/locations/", 6384 ProducesMediaTypes: []string{"application/json"}, 6385 ConsumesMediaTypes: []string{"application/json"}, 6386 Schemes: []string{"http"}, 6387 Params: params, 6388 Reader: &DcimLocationsCreateReader{formats: a.formats}, 6389 AuthInfo: authInfo, 6390 Context: params.Context, 6391 Client: params.HTTPClient, 6392 } 6393 for _, opt := range opts { 6394 opt(op) 6395 } 6396 6397 result, err := a.transport.Submit(op) 6398 if err != nil { 6399 return nil, err 6400 } 6401 success, ok := result.(*DcimLocationsCreateCreated) 6402 if ok { 6403 return success, nil 6404 } 6405 // unexpected success response 6406 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6407 msg := fmt.Sprintf("unexpected success response for dcim_locations_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6408 panic(msg) 6409 } 6410 6411 /* 6412 DcimLocationsDelete dcim locations delete API 6413 */ 6414 func (a *Client) DcimLocationsDelete(params *DcimLocationsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsDeleteNoContent, error) { 6415 // TODO: Validate the params before sending 6416 if params == nil { 6417 params = NewDcimLocationsDeleteParams() 6418 } 6419 op := &runtime.ClientOperation{ 6420 ID: "dcim_locations_delete", 6421 Method: "DELETE", 6422 PathPattern: "/dcim/locations/{id}/", 6423 ProducesMediaTypes: []string{"application/json"}, 6424 ConsumesMediaTypes: []string{"application/json"}, 6425 Schemes: []string{"http"}, 6426 Params: params, 6427 Reader: &DcimLocationsDeleteReader{formats: a.formats}, 6428 AuthInfo: authInfo, 6429 Context: params.Context, 6430 Client: params.HTTPClient, 6431 } 6432 for _, opt := range opts { 6433 opt(op) 6434 } 6435 6436 result, err := a.transport.Submit(op) 6437 if err != nil { 6438 return nil, err 6439 } 6440 success, ok := result.(*DcimLocationsDeleteNoContent) 6441 if ok { 6442 return success, nil 6443 } 6444 // unexpected success response 6445 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6446 msg := fmt.Sprintf("unexpected success response for dcim_locations_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6447 panic(msg) 6448 } 6449 6450 /* 6451 DcimLocationsList dcim locations list API 6452 */ 6453 func (a *Client) DcimLocationsList(params *DcimLocationsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsListOK, error) { 6454 // TODO: Validate the params before sending 6455 if params == nil { 6456 params = NewDcimLocationsListParams() 6457 } 6458 op := &runtime.ClientOperation{ 6459 ID: "dcim_locations_list", 6460 Method: "GET", 6461 PathPattern: "/dcim/locations/", 6462 ProducesMediaTypes: []string{"application/json"}, 6463 ConsumesMediaTypes: []string{"application/json"}, 6464 Schemes: []string{"http"}, 6465 Params: params, 6466 Reader: &DcimLocationsListReader{formats: a.formats}, 6467 AuthInfo: authInfo, 6468 Context: params.Context, 6469 Client: params.HTTPClient, 6470 } 6471 for _, opt := range opts { 6472 opt(op) 6473 } 6474 6475 result, err := a.transport.Submit(op) 6476 if err != nil { 6477 return nil, err 6478 } 6479 success, ok := result.(*DcimLocationsListOK) 6480 if ok { 6481 return success, nil 6482 } 6483 // unexpected success response 6484 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6485 msg := fmt.Sprintf("unexpected success response for dcim_locations_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6486 panic(msg) 6487 } 6488 6489 /* 6490 DcimLocationsPartialUpdate dcim locations partial update API 6491 */ 6492 func (a *Client) DcimLocationsPartialUpdate(params *DcimLocationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsPartialUpdateOK, error) { 6493 // TODO: Validate the params before sending 6494 if params == nil { 6495 params = NewDcimLocationsPartialUpdateParams() 6496 } 6497 op := &runtime.ClientOperation{ 6498 ID: "dcim_locations_partial_update", 6499 Method: "PATCH", 6500 PathPattern: "/dcim/locations/{id}/", 6501 ProducesMediaTypes: []string{"application/json"}, 6502 ConsumesMediaTypes: []string{"application/json"}, 6503 Schemes: []string{"http"}, 6504 Params: params, 6505 Reader: &DcimLocationsPartialUpdateReader{formats: a.formats}, 6506 AuthInfo: authInfo, 6507 Context: params.Context, 6508 Client: params.HTTPClient, 6509 } 6510 for _, opt := range opts { 6511 opt(op) 6512 } 6513 6514 result, err := a.transport.Submit(op) 6515 if err != nil { 6516 return nil, err 6517 } 6518 success, ok := result.(*DcimLocationsPartialUpdateOK) 6519 if ok { 6520 return success, nil 6521 } 6522 // unexpected success response 6523 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6524 msg := fmt.Sprintf("unexpected success response for dcim_locations_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6525 panic(msg) 6526 } 6527 6528 /* 6529 DcimLocationsRead dcim locations read API 6530 */ 6531 func (a *Client) DcimLocationsRead(params *DcimLocationsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsReadOK, error) { 6532 // TODO: Validate the params before sending 6533 if params == nil { 6534 params = NewDcimLocationsReadParams() 6535 } 6536 op := &runtime.ClientOperation{ 6537 ID: "dcim_locations_read", 6538 Method: "GET", 6539 PathPattern: "/dcim/locations/{id}/", 6540 ProducesMediaTypes: []string{"application/json"}, 6541 ConsumesMediaTypes: []string{"application/json"}, 6542 Schemes: []string{"http"}, 6543 Params: params, 6544 Reader: &DcimLocationsReadReader{formats: a.formats}, 6545 AuthInfo: authInfo, 6546 Context: params.Context, 6547 Client: params.HTTPClient, 6548 } 6549 for _, opt := range opts { 6550 opt(op) 6551 } 6552 6553 result, err := a.transport.Submit(op) 6554 if err != nil { 6555 return nil, err 6556 } 6557 success, ok := result.(*DcimLocationsReadOK) 6558 if ok { 6559 return success, nil 6560 } 6561 // unexpected success response 6562 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6563 msg := fmt.Sprintf("unexpected success response for dcim_locations_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6564 panic(msg) 6565 } 6566 6567 /* 6568 DcimLocationsUpdate dcim locations update API 6569 */ 6570 func (a *Client) DcimLocationsUpdate(params *DcimLocationsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimLocationsUpdateOK, error) { 6571 // TODO: Validate the params before sending 6572 if params == nil { 6573 params = NewDcimLocationsUpdateParams() 6574 } 6575 op := &runtime.ClientOperation{ 6576 ID: "dcim_locations_update", 6577 Method: "PUT", 6578 PathPattern: "/dcim/locations/{id}/", 6579 ProducesMediaTypes: []string{"application/json"}, 6580 ConsumesMediaTypes: []string{"application/json"}, 6581 Schemes: []string{"http"}, 6582 Params: params, 6583 Reader: &DcimLocationsUpdateReader{formats: a.formats}, 6584 AuthInfo: authInfo, 6585 Context: params.Context, 6586 Client: params.HTTPClient, 6587 } 6588 for _, opt := range opts { 6589 opt(op) 6590 } 6591 6592 result, err := a.transport.Submit(op) 6593 if err != nil { 6594 return nil, err 6595 } 6596 success, ok := result.(*DcimLocationsUpdateOK) 6597 if ok { 6598 return success, nil 6599 } 6600 // unexpected success response 6601 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6602 msg := fmt.Sprintf("unexpected success response for dcim_locations_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6603 panic(msg) 6604 } 6605 6606 /* 6607 DcimManufacturersBulkDelete dcim manufacturers bulk delete API 6608 */ 6609 func (a *Client) DcimManufacturersBulkDelete(params *DcimManufacturersBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkDeleteNoContent, error) { 6610 // TODO: Validate the params before sending 6611 if params == nil { 6612 params = NewDcimManufacturersBulkDeleteParams() 6613 } 6614 op := &runtime.ClientOperation{ 6615 ID: "dcim_manufacturers_bulk_delete", 6616 Method: "DELETE", 6617 PathPattern: "/dcim/manufacturers/", 6618 ProducesMediaTypes: []string{"application/json"}, 6619 ConsumesMediaTypes: []string{"application/json"}, 6620 Schemes: []string{"http"}, 6621 Params: params, 6622 Reader: &DcimManufacturersBulkDeleteReader{formats: a.formats}, 6623 AuthInfo: authInfo, 6624 Context: params.Context, 6625 Client: params.HTTPClient, 6626 } 6627 for _, opt := range opts { 6628 opt(op) 6629 } 6630 6631 result, err := a.transport.Submit(op) 6632 if err != nil { 6633 return nil, err 6634 } 6635 success, ok := result.(*DcimManufacturersBulkDeleteNoContent) 6636 if ok { 6637 return success, nil 6638 } 6639 // unexpected success response 6640 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6641 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6642 panic(msg) 6643 } 6644 6645 /* 6646 DcimManufacturersBulkPartialUpdate dcim manufacturers bulk partial update API 6647 */ 6648 func (a *Client) DcimManufacturersBulkPartialUpdate(params *DcimManufacturersBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkPartialUpdateOK, error) { 6649 // TODO: Validate the params before sending 6650 if params == nil { 6651 params = NewDcimManufacturersBulkPartialUpdateParams() 6652 } 6653 op := &runtime.ClientOperation{ 6654 ID: "dcim_manufacturers_bulk_partial_update", 6655 Method: "PATCH", 6656 PathPattern: "/dcim/manufacturers/", 6657 ProducesMediaTypes: []string{"application/json"}, 6658 ConsumesMediaTypes: []string{"application/json"}, 6659 Schemes: []string{"http"}, 6660 Params: params, 6661 Reader: &DcimManufacturersBulkPartialUpdateReader{formats: a.formats}, 6662 AuthInfo: authInfo, 6663 Context: params.Context, 6664 Client: params.HTTPClient, 6665 } 6666 for _, opt := range opts { 6667 opt(op) 6668 } 6669 6670 result, err := a.transport.Submit(op) 6671 if err != nil { 6672 return nil, err 6673 } 6674 success, ok := result.(*DcimManufacturersBulkPartialUpdateOK) 6675 if ok { 6676 return success, nil 6677 } 6678 // unexpected success response 6679 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6680 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6681 panic(msg) 6682 } 6683 6684 /* 6685 DcimManufacturersBulkUpdate dcim manufacturers bulk update API 6686 */ 6687 func (a *Client) DcimManufacturersBulkUpdate(params *DcimManufacturersBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersBulkUpdateOK, error) { 6688 // TODO: Validate the params before sending 6689 if params == nil { 6690 params = NewDcimManufacturersBulkUpdateParams() 6691 } 6692 op := &runtime.ClientOperation{ 6693 ID: "dcim_manufacturers_bulk_update", 6694 Method: "PUT", 6695 PathPattern: "/dcim/manufacturers/", 6696 ProducesMediaTypes: []string{"application/json"}, 6697 ConsumesMediaTypes: []string{"application/json"}, 6698 Schemes: []string{"http"}, 6699 Params: params, 6700 Reader: &DcimManufacturersBulkUpdateReader{formats: a.formats}, 6701 AuthInfo: authInfo, 6702 Context: params.Context, 6703 Client: params.HTTPClient, 6704 } 6705 for _, opt := range opts { 6706 opt(op) 6707 } 6708 6709 result, err := a.transport.Submit(op) 6710 if err != nil { 6711 return nil, err 6712 } 6713 success, ok := result.(*DcimManufacturersBulkUpdateOK) 6714 if ok { 6715 return success, nil 6716 } 6717 // unexpected success response 6718 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6719 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6720 panic(msg) 6721 } 6722 6723 /* 6724 DcimManufacturersCreate dcim manufacturers create API 6725 */ 6726 func (a *Client) DcimManufacturersCreate(params *DcimManufacturersCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersCreateCreated, error) { 6727 // TODO: Validate the params before sending 6728 if params == nil { 6729 params = NewDcimManufacturersCreateParams() 6730 } 6731 op := &runtime.ClientOperation{ 6732 ID: "dcim_manufacturers_create", 6733 Method: "POST", 6734 PathPattern: "/dcim/manufacturers/", 6735 ProducesMediaTypes: []string{"application/json"}, 6736 ConsumesMediaTypes: []string{"application/json"}, 6737 Schemes: []string{"http"}, 6738 Params: params, 6739 Reader: &DcimManufacturersCreateReader{formats: a.formats}, 6740 AuthInfo: authInfo, 6741 Context: params.Context, 6742 Client: params.HTTPClient, 6743 } 6744 for _, opt := range opts { 6745 opt(op) 6746 } 6747 6748 result, err := a.transport.Submit(op) 6749 if err != nil { 6750 return nil, err 6751 } 6752 success, ok := result.(*DcimManufacturersCreateCreated) 6753 if ok { 6754 return success, nil 6755 } 6756 // unexpected success response 6757 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6758 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6759 panic(msg) 6760 } 6761 6762 /* 6763 DcimManufacturersDelete dcim manufacturers delete API 6764 */ 6765 func (a *Client) DcimManufacturersDelete(params *DcimManufacturersDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersDeleteNoContent, error) { 6766 // TODO: Validate the params before sending 6767 if params == nil { 6768 params = NewDcimManufacturersDeleteParams() 6769 } 6770 op := &runtime.ClientOperation{ 6771 ID: "dcim_manufacturers_delete", 6772 Method: "DELETE", 6773 PathPattern: "/dcim/manufacturers/{id}/", 6774 ProducesMediaTypes: []string{"application/json"}, 6775 ConsumesMediaTypes: []string{"application/json"}, 6776 Schemes: []string{"http"}, 6777 Params: params, 6778 Reader: &DcimManufacturersDeleteReader{formats: a.formats}, 6779 AuthInfo: authInfo, 6780 Context: params.Context, 6781 Client: params.HTTPClient, 6782 } 6783 for _, opt := range opts { 6784 opt(op) 6785 } 6786 6787 result, err := a.transport.Submit(op) 6788 if err != nil { 6789 return nil, err 6790 } 6791 success, ok := result.(*DcimManufacturersDeleteNoContent) 6792 if ok { 6793 return success, nil 6794 } 6795 // unexpected success response 6796 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6797 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6798 panic(msg) 6799 } 6800 6801 /* 6802 DcimManufacturersList dcim manufacturers list API 6803 */ 6804 func (a *Client) DcimManufacturersList(params *DcimManufacturersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersListOK, error) { 6805 // TODO: Validate the params before sending 6806 if params == nil { 6807 params = NewDcimManufacturersListParams() 6808 } 6809 op := &runtime.ClientOperation{ 6810 ID: "dcim_manufacturers_list", 6811 Method: "GET", 6812 PathPattern: "/dcim/manufacturers/", 6813 ProducesMediaTypes: []string{"application/json"}, 6814 ConsumesMediaTypes: []string{"application/json"}, 6815 Schemes: []string{"http"}, 6816 Params: params, 6817 Reader: &DcimManufacturersListReader{formats: a.formats}, 6818 AuthInfo: authInfo, 6819 Context: params.Context, 6820 Client: params.HTTPClient, 6821 } 6822 for _, opt := range opts { 6823 opt(op) 6824 } 6825 6826 result, err := a.transport.Submit(op) 6827 if err != nil { 6828 return nil, err 6829 } 6830 success, ok := result.(*DcimManufacturersListOK) 6831 if ok { 6832 return success, nil 6833 } 6834 // unexpected success response 6835 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6836 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6837 panic(msg) 6838 } 6839 6840 /* 6841 DcimManufacturersPartialUpdate dcim manufacturers partial update API 6842 */ 6843 func (a *Client) DcimManufacturersPartialUpdate(params *DcimManufacturersPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersPartialUpdateOK, error) { 6844 // TODO: Validate the params before sending 6845 if params == nil { 6846 params = NewDcimManufacturersPartialUpdateParams() 6847 } 6848 op := &runtime.ClientOperation{ 6849 ID: "dcim_manufacturers_partial_update", 6850 Method: "PATCH", 6851 PathPattern: "/dcim/manufacturers/{id}/", 6852 ProducesMediaTypes: []string{"application/json"}, 6853 ConsumesMediaTypes: []string{"application/json"}, 6854 Schemes: []string{"http"}, 6855 Params: params, 6856 Reader: &DcimManufacturersPartialUpdateReader{formats: a.formats}, 6857 AuthInfo: authInfo, 6858 Context: params.Context, 6859 Client: params.HTTPClient, 6860 } 6861 for _, opt := range opts { 6862 opt(op) 6863 } 6864 6865 result, err := a.transport.Submit(op) 6866 if err != nil { 6867 return nil, err 6868 } 6869 success, ok := result.(*DcimManufacturersPartialUpdateOK) 6870 if ok { 6871 return success, nil 6872 } 6873 // unexpected success response 6874 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6875 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6876 panic(msg) 6877 } 6878 6879 /* 6880 DcimManufacturersRead dcim manufacturers read API 6881 */ 6882 func (a *Client) DcimManufacturersRead(params *DcimManufacturersReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersReadOK, error) { 6883 // TODO: Validate the params before sending 6884 if params == nil { 6885 params = NewDcimManufacturersReadParams() 6886 } 6887 op := &runtime.ClientOperation{ 6888 ID: "dcim_manufacturers_read", 6889 Method: "GET", 6890 PathPattern: "/dcim/manufacturers/{id}/", 6891 ProducesMediaTypes: []string{"application/json"}, 6892 ConsumesMediaTypes: []string{"application/json"}, 6893 Schemes: []string{"http"}, 6894 Params: params, 6895 Reader: &DcimManufacturersReadReader{formats: a.formats}, 6896 AuthInfo: authInfo, 6897 Context: params.Context, 6898 Client: params.HTTPClient, 6899 } 6900 for _, opt := range opts { 6901 opt(op) 6902 } 6903 6904 result, err := a.transport.Submit(op) 6905 if err != nil { 6906 return nil, err 6907 } 6908 success, ok := result.(*DcimManufacturersReadOK) 6909 if ok { 6910 return success, nil 6911 } 6912 // unexpected success response 6913 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6914 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6915 panic(msg) 6916 } 6917 6918 /* 6919 DcimManufacturersUpdate dcim manufacturers update API 6920 */ 6921 func (a *Client) DcimManufacturersUpdate(params *DcimManufacturersUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimManufacturersUpdateOK, error) { 6922 // TODO: Validate the params before sending 6923 if params == nil { 6924 params = NewDcimManufacturersUpdateParams() 6925 } 6926 op := &runtime.ClientOperation{ 6927 ID: "dcim_manufacturers_update", 6928 Method: "PUT", 6929 PathPattern: "/dcim/manufacturers/{id}/", 6930 ProducesMediaTypes: []string{"application/json"}, 6931 ConsumesMediaTypes: []string{"application/json"}, 6932 Schemes: []string{"http"}, 6933 Params: params, 6934 Reader: &DcimManufacturersUpdateReader{formats: a.formats}, 6935 AuthInfo: authInfo, 6936 Context: params.Context, 6937 Client: params.HTTPClient, 6938 } 6939 for _, opt := range opts { 6940 opt(op) 6941 } 6942 6943 result, err := a.transport.Submit(op) 6944 if err != nil { 6945 return nil, err 6946 } 6947 success, ok := result.(*DcimManufacturersUpdateOK) 6948 if ok { 6949 return success, nil 6950 } 6951 // unexpected success response 6952 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6953 msg := fmt.Sprintf("unexpected success response for dcim_manufacturers_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6954 panic(msg) 6955 } 6956 6957 /* 6958 DcimPlatformsBulkDelete dcim platforms bulk delete API 6959 */ 6960 func (a *Client) DcimPlatformsBulkDelete(params *DcimPlatformsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkDeleteNoContent, error) { 6961 // TODO: Validate the params before sending 6962 if params == nil { 6963 params = NewDcimPlatformsBulkDeleteParams() 6964 } 6965 op := &runtime.ClientOperation{ 6966 ID: "dcim_platforms_bulk_delete", 6967 Method: "DELETE", 6968 PathPattern: "/dcim/platforms/", 6969 ProducesMediaTypes: []string{"application/json"}, 6970 ConsumesMediaTypes: []string{"application/json"}, 6971 Schemes: []string{"http"}, 6972 Params: params, 6973 Reader: &DcimPlatformsBulkDeleteReader{formats: a.formats}, 6974 AuthInfo: authInfo, 6975 Context: params.Context, 6976 Client: params.HTTPClient, 6977 } 6978 for _, opt := range opts { 6979 opt(op) 6980 } 6981 6982 result, err := a.transport.Submit(op) 6983 if err != nil { 6984 return nil, err 6985 } 6986 success, ok := result.(*DcimPlatformsBulkDeleteNoContent) 6987 if ok { 6988 return success, nil 6989 } 6990 // unexpected success response 6991 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 6992 msg := fmt.Sprintf("unexpected success response for dcim_platforms_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 6993 panic(msg) 6994 } 6995 6996 /* 6997 DcimPlatformsBulkPartialUpdate dcim platforms bulk partial update API 6998 */ 6999 func (a *Client) DcimPlatformsBulkPartialUpdate(params *DcimPlatformsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkPartialUpdateOK, error) { 7000 // TODO: Validate the params before sending 7001 if params == nil { 7002 params = NewDcimPlatformsBulkPartialUpdateParams() 7003 } 7004 op := &runtime.ClientOperation{ 7005 ID: "dcim_platforms_bulk_partial_update", 7006 Method: "PATCH", 7007 PathPattern: "/dcim/platforms/", 7008 ProducesMediaTypes: []string{"application/json"}, 7009 ConsumesMediaTypes: []string{"application/json"}, 7010 Schemes: []string{"http"}, 7011 Params: params, 7012 Reader: &DcimPlatformsBulkPartialUpdateReader{formats: a.formats}, 7013 AuthInfo: authInfo, 7014 Context: params.Context, 7015 Client: params.HTTPClient, 7016 } 7017 for _, opt := range opts { 7018 opt(op) 7019 } 7020 7021 result, err := a.transport.Submit(op) 7022 if err != nil { 7023 return nil, err 7024 } 7025 success, ok := result.(*DcimPlatformsBulkPartialUpdateOK) 7026 if ok { 7027 return success, nil 7028 } 7029 // unexpected success response 7030 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7031 msg := fmt.Sprintf("unexpected success response for dcim_platforms_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7032 panic(msg) 7033 } 7034 7035 /* 7036 DcimPlatformsBulkUpdate dcim platforms bulk update API 7037 */ 7038 func (a *Client) DcimPlatformsBulkUpdate(params *DcimPlatformsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsBulkUpdateOK, error) { 7039 // TODO: Validate the params before sending 7040 if params == nil { 7041 params = NewDcimPlatformsBulkUpdateParams() 7042 } 7043 op := &runtime.ClientOperation{ 7044 ID: "dcim_platforms_bulk_update", 7045 Method: "PUT", 7046 PathPattern: "/dcim/platforms/", 7047 ProducesMediaTypes: []string{"application/json"}, 7048 ConsumesMediaTypes: []string{"application/json"}, 7049 Schemes: []string{"http"}, 7050 Params: params, 7051 Reader: &DcimPlatformsBulkUpdateReader{formats: a.formats}, 7052 AuthInfo: authInfo, 7053 Context: params.Context, 7054 Client: params.HTTPClient, 7055 } 7056 for _, opt := range opts { 7057 opt(op) 7058 } 7059 7060 result, err := a.transport.Submit(op) 7061 if err != nil { 7062 return nil, err 7063 } 7064 success, ok := result.(*DcimPlatformsBulkUpdateOK) 7065 if ok { 7066 return success, nil 7067 } 7068 // unexpected success response 7069 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7070 msg := fmt.Sprintf("unexpected success response for dcim_platforms_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7071 panic(msg) 7072 } 7073 7074 /* 7075 DcimPlatformsCreate dcim platforms create API 7076 */ 7077 func (a *Client) DcimPlatformsCreate(params *DcimPlatformsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsCreateCreated, error) { 7078 // TODO: Validate the params before sending 7079 if params == nil { 7080 params = NewDcimPlatformsCreateParams() 7081 } 7082 op := &runtime.ClientOperation{ 7083 ID: "dcim_platforms_create", 7084 Method: "POST", 7085 PathPattern: "/dcim/platforms/", 7086 ProducesMediaTypes: []string{"application/json"}, 7087 ConsumesMediaTypes: []string{"application/json"}, 7088 Schemes: []string{"http"}, 7089 Params: params, 7090 Reader: &DcimPlatformsCreateReader{formats: a.formats}, 7091 AuthInfo: authInfo, 7092 Context: params.Context, 7093 Client: params.HTTPClient, 7094 } 7095 for _, opt := range opts { 7096 opt(op) 7097 } 7098 7099 result, err := a.transport.Submit(op) 7100 if err != nil { 7101 return nil, err 7102 } 7103 success, ok := result.(*DcimPlatformsCreateCreated) 7104 if ok { 7105 return success, nil 7106 } 7107 // unexpected success response 7108 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7109 msg := fmt.Sprintf("unexpected success response for dcim_platforms_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7110 panic(msg) 7111 } 7112 7113 /* 7114 DcimPlatformsDelete dcim platforms delete API 7115 */ 7116 func (a *Client) DcimPlatformsDelete(params *DcimPlatformsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsDeleteNoContent, error) { 7117 // TODO: Validate the params before sending 7118 if params == nil { 7119 params = NewDcimPlatformsDeleteParams() 7120 } 7121 op := &runtime.ClientOperation{ 7122 ID: "dcim_platforms_delete", 7123 Method: "DELETE", 7124 PathPattern: "/dcim/platforms/{id}/", 7125 ProducesMediaTypes: []string{"application/json"}, 7126 ConsumesMediaTypes: []string{"application/json"}, 7127 Schemes: []string{"http"}, 7128 Params: params, 7129 Reader: &DcimPlatformsDeleteReader{formats: a.formats}, 7130 AuthInfo: authInfo, 7131 Context: params.Context, 7132 Client: params.HTTPClient, 7133 } 7134 for _, opt := range opts { 7135 opt(op) 7136 } 7137 7138 result, err := a.transport.Submit(op) 7139 if err != nil { 7140 return nil, err 7141 } 7142 success, ok := result.(*DcimPlatformsDeleteNoContent) 7143 if ok { 7144 return success, nil 7145 } 7146 // unexpected success response 7147 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7148 msg := fmt.Sprintf("unexpected success response for dcim_platforms_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7149 panic(msg) 7150 } 7151 7152 /* 7153 DcimPlatformsList dcim platforms list API 7154 */ 7155 func (a *Client) DcimPlatformsList(params *DcimPlatformsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsListOK, error) { 7156 // TODO: Validate the params before sending 7157 if params == nil { 7158 params = NewDcimPlatformsListParams() 7159 } 7160 op := &runtime.ClientOperation{ 7161 ID: "dcim_platforms_list", 7162 Method: "GET", 7163 PathPattern: "/dcim/platforms/", 7164 ProducesMediaTypes: []string{"application/json"}, 7165 ConsumesMediaTypes: []string{"application/json"}, 7166 Schemes: []string{"http"}, 7167 Params: params, 7168 Reader: &DcimPlatformsListReader{formats: a.formats}, 7169 AuthInfo: authInfo, 7170 Context: params.Context, 7171 Client: params.HTTPClient, 7172 } 7173 for _, opt := range opts { 7174 opt(op) 7175 } 7176 7177 result, err := a.transport.Submit(op) 7178 if err != nil { 7179 return nil, err 7180 } 7181 success, ok := result.(*DcimPlatformsListOK) 7182 if ok { 7183 return success, nil 7184 } 7185 // unexpected success response 7186 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7187 msg := fmt.Sprintf("unexpected success response for dcim_platforms_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7188 panic(msg) 7189 } 7190 7191 /* 7192 DcimPlatformsPartialUpdate dcim platforms partial update API 7193 */ 7194 func (a *Client) DcimPlatformsPartialUpdate(params *DcimPlatformsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsPartialUpdateOK, error) { 7195 // TODO: Validate the params before sending 7196 if params == nil { 7197 params = NewDcimPlatformsPartialUpdateParams() 7198 } 7199 op := &runtime.ClientOperation{ 7200 ID: "dcim_platforms_partial_update", 7201 Method: "PATCH", 7202 PathPattern: "/dcim/platforms/{id}/", 7203 ProducesMediaTypes: []string{"application/json"}, 7204 ConsumesMediaTypes: []string{"application/json"}, 7205 Schemes: []string{"http"}, 7206 Params: params, 7207 Reader: &DcimPlatformsPartialUpdateReader{formats: a.formats}, 7208 AuthInfo: authInfo, 7209 Context: params.Context, 7210 Client: params.HTTPClient, 7211 } 7212 for _, opt := range opts { 7213 opt(op) 7214 } 7215 7216 result, err := a.transport.Submit(op) 7217 if err != nil { 7218 return nil, err 7219 } 7220 success, ok := result.(*DcimPlatformsPartialUpdateOK) 7221 if ok { 7222 return success, nil 7223 } 7224 // unexpected success response 7225 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7226 msg := fmt.Sprintf("unexpected success response for dcim_platforms_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7227 panic(msg) 7228 } 7229 7230 /* 7231 DcimPlatformsRead dcim platforms read API 7232 */ 7233 func (a *Client) DcimPlatformsRead(params *DcimPlatformsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsReadOK, error) { 7234 // TODO: Validate the params before sending 7235 if params == nil { 7236 params = NewDcimPlatformsReadParams() 7237 } 7238 op := &runtime.ClientOperation{ 7239 ID: "dcim_platforms_read", 7240 Method: "GET", 7241 PathPattern: "/dcim/platforms/{id}/", 7242 ProducesMediaTypes: []string{"application/json"}, 7243 ConsumesMediaTypes: []string{"application/json"}, 7244 Schemes: []string{"http"}, 7245 Params: params, 7246 Reader: &DcimPlatformsReadReader{formats: a.formats}, 7247 AuthInfo: authInfo, 7248 Context: params.Context, 7249 Client: params.HTTPClient, 7250 } 7251 for _, opt := range opts { 7252 opt(op) 7253 } 7254 7255 result, err := a.transport.Submit(op) 7256 if err != nil { 7257 return nil, err 7258 } 7259 success, ok := result.(*DcimPlatformsReadOK) 7260 if ok { 7261 return success, nil 7262 } 7263 // unexpected success response 7264 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7265 msg := fmt.Sprintf("unexpected success response for dcim_platforms_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7266 panic(msg) 7267 } 7268 7269 /* 7270 DcimPlatformsUpdate dcim platforms update API 7271 */ 7272 func (a *Client) DcimPlatformsUpdate(params *DcimPlatformsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPlatformsUpdateOK, error) { 7273 // TODO: Validate the params before sending 7274 if params == nil { 7275 params = NewDcimPlatformsUpdateParams() 7276 } 7277 op := &runtime.ClientOperation{ 7278 ID: "dcim_platforms_update", 7279 Method: "PUT", 7280 PathPattern: "/dcim/platforms/{id}/", 7281 ProducesMediaTypes: []string{"application/json"}, 7282 ConsumesMediaTypes: []string{"application/json"}, 7283 Schemes: []string{"http"}, 7284 Params: params, 7285 Reader: &DcimPlatformsUpdateReader{formats: a.formats}, 7286 AuthInfo: authInfo, 7287 Context: params.Context, 7288 Client: params.HTTPClient, 7289 } 7290 for _, opt := range opts { 7291 opt(op) 7292 } 7293 7294 result, err := a.transport.Submit(op) 7295 if err != nil { 7296 return nil, err 7297 } 7298 success, ok := result.(*DcimPlatformsUpdateOK) 7299 if ok { 7300 return success, nil 7301 } 7302 // unexpected success response 7303 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7304 msg := fmt.Sprintf("unexpected success response for dcim_platforms_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7305 panic(msg) 7306 } 7307 7308 /* 7309 DcimPowerConnectionsList dcim power connections list API 7310 */ 7311 func (a *Client) DcimPowerConnectionsList(params *DcimPowerConnectionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerConnectionsListOK, error) { 7312 // TODO: Validate the params before sending 7313 if params == nil { 7314 params = NewDcimPowerConnectionsListParams() 7315 } 7316 op := &runtime.ClientOperation{ 7317 ID: "dcim_power-connections_list", 7318 Method: "GET", 7319 PathPattern: "/dcim/power-connections/", 7320 ProducesMediaTypes: []string{"application/json"}, 7321 ConsumesMediaTypes: []string{"application/json"}, 7322 Schemes: []string{"http"}, 7323 Params: params, 7324 Reader: &DcimPowerConnectionsListReader{formats: a.formats}, 7325 AuthInfo: authInfo, 7326 Context: params.Context, 7327 Client: params.HTTPClient, 7328 } 7329 for _, opt := range opts { 7330 opt(op) 7331 } 7332 7333 result, err := a.transport.Submit(op) 7334 if err != nil { 7335 return nil, err 7336 } 7337 success, ok := result.(*DcimPowerConnectionsListOK) 7338 if ok { 7339 return success, nil 7340 } 7341 // unexpected success response 7342 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7343 msg := fmt.Sprintf("unexpected success response for dcim_power-connections_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7344 panic(msg) 7345 } 7346 7347 /* 7348 DcimPowerFeedsBulkDelete dcim power feeds bulk delete API 7349 */ 7350 func (a *Client) DcimPowerFeedsBulkDelete(params *DcimPowerFeedsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsBulkDeleteNoContent, error) { 7351 // TODO: Validate the params before sending 7352 if params == nil { 7353 params = NewDcimPowerFeedsBulkDeleteParams() 7354 } 7355 op := &runtime.ClientOperation{ 7356 ID: "dcim_power-feeds_bulk_delete", 7357 Method: "DELETE", 7358 PathPattern: "/dcim/power-feeds/", 7359 ProducesMediaTypes: []string{"application/json"}, 7360 ConsumesMediaTypes: []string{"application/json"}, 7361 Schemes: []string{"http"}, 7362 Params: params, 7363 Reader: &DcimPowerFeedsBulkDeleteReader{formats: a.formats}, 7364 AuthInfo: authInfo, 7365 Context: params.Context, 7366 Client: params.HTTPClient, 7367 } 7368 for _, opt := range opts { 7369 opt(op) 7370 } 7371 7372 result, err := a.transport.Submit(op) 7373 if err != nil { 7374 return nil, err 7375 } 7376 success, ok := result.(*DcimPowerFeedsBulkDeleteNoContent) 7377 if ok { 7378 return success, nil 7379 } 7380 // unexpected success response 7381 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7382 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7383 panic(msg) 7384 } 7385 7386 /* 7387 DcimPowerFeedsBulkPartialUpdate dcim power feeds bulk partial update API 7388 */ 7389 func (a *Client) DcimPowerFeedsBulkPartialUpdate(params *DcimPowerFeedsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsBulkPartialUpdateOK, error) { 7390 // TODO: Validate the params before sending 7391 if params == nil { 7392 params = NewDcimPowerFeedsBulkPartialUpdateParams() 7393 } 7394 op := &runtime.ClientOperation{ 7395 ID: "dcim_power-feeds_bulk_partial_update", 7396 Method: "PATCH", 7397 PathPattern: "/dcim/power-feeds/", 7398 ProducesMediaTypes: []string{"application/json"}, 7399 ConsumesMediaTypes: []string{"application/json"}, 7400 Schemes: []string{"http"}, 7401 Params: params, 7402 Reader: &DcimPowerFeedsBulkPartialUpdateReader{formats: a.formats}, 7403 AuthInfo: authInfo, 7404 Context: params.Context, 7405 Client: params.HTTPClient, 7406 } 7407 for _, opt := range opts { 7408 opt(op) 7409 } 7410 7411 result, err := a.transport.Submit(op) 7412 if err != nil { 7413 return nil, err 7414 } 7415 success, ok := result.(*DcimPowerFeedsBulkPartialUpdateOK) 7416 if ok { 7417 return success, nil 7418 } 7419 // unexpected success response 7420 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7421 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7422 panic(msg) 7423 } 7424 7425 /* 7426 DcimPowerFeedsBulkUpdate dcim power feeds bulk update API 7427 */ 7428 func (a *Client) DcimPowerFeedsBulkUpdate(params *DcimPowerFeedsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsBulkUpdateOK, error) { 7429 // TODO: Validate the params before sending 7430 if params == nil { 7431 params = NewDcimPowerFeedsBulkUpdateParams() 7432 } 7433 op := &runtime.ClientOperation{ 7434 ID: "dcim_power-feeds_bulk_update", 7435 Method: "PUT", 7436 PathPattern: "/dcim/power-feeds/", 7437 ProducesMediaTypes: []string{"application/json"}, 7438 ConsumesMediaTypes: []string{"application/json"}, 7439 Schemes: []string{"http"}, 7440 Params: params, 7441 Reader: &DcimPowerFeedsBulkUpdateReader{formats: a.formats}, 7442 AuthInfo: authInfo, 7443 Context: params.Context, 7444 Client: params.HTTPClient, 7445 } 7446 for _, opt := range opts { 7447 opt(op) 7448 } 7449 7450 result, err := a.transport.Submit(op) 7451 if err != nil { 7452 return nil, err 7453 } 7454 success, ok := result.(*DcimPowerFeedsBulkUpdateOK) 7455 if ok { 7456 return success, nil 7457 } 7458 // unexpected success response 7459 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7460 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7461 panic(msg) 7462 } 7463 7464 /* 7465 DcimPowerFeedsCreate dcim power feeds create API 7466 */ 7467 func (a *Client) DcimPowerFeedsCreate(params *DcimPowerFeedsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsCreateCreated, error) { 7468 // TODO: Validate the params before sending 7469 if params == nil { 7470 params = NewDcimPowerFeedsCreateParams() 7471 } 7472 op := &runtime.ClientOperation{ 7473 ID: "dcim_power-feeds_create", 7474 Method: "POST", 7475 PathPattern: "/dcim/power-feeds/", 7476 ProducesMediaTypes: []string{"application/json"}, 7477 ConsumesMediaTypes: []string{"application/json"}, 7478 Schemes: []string{"http"}, 7479 Params: params, 7480 Reader: &DcimPowerFeedsCreateReader{formats: a.formats}, 7481 AuthInfo: authInfo, 7482 Context: params.Context, 7483 Client: params.HTTPClient, 7484 } 7485 for _, opt := range opts { 7486 opt(op) 7487 } 7488 7489 result, err := a.transport.Submit(op) 7490 if err != nil { 7491 return nil, err 7492 } 7493 success, ok := result.(*DcimPowerFeedsCreateCreated) 7494 if ok { 7495 return success, nil 7496 } 7497 // unexpected success response 7498 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7499 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7500 panic(msg) 7501 } 7502 7503 /* 7504 DcimPowerFeedsDelete dcim power feeds delete API 7505 */ 7506 func (a *Client) DcimPowerFeedsDelete(params *DcimPowerFeedsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsDeleteNoContent, error) { 7507 // TODO: Validate the params before sending 7508 if params == nil { 7509 params = NewDcimPowerFeedsDeleteParams() 7510 } 7511 op := &runtime.ClientOperation{ 7512 ID: "dcim_power-feeds_delete", 7513 Method: "DELETE", 7514 PathPattern: "/dcim/power-feeds/{id}/", 7515 ProducesMediaTypes: []string{"application/json"}, 7516 ConsumesMediaTypes: []string{"application/json"}, 7517 Schemes: []string{"http"}, 7518 Params: params, 7519 Reader: &DcimPowerFeedsDeleteReader{formats: a.formats}, 7520 AuthInfo: authInfo, 7521 Context: params.Context, 7522 Client: params.HTTPClient, 7523 } 7524 for _, opt := range opts { 7525 opt(op) 7526 } 7527 7528 result, err := a.transport.Submit(op) 7529 if err != nil { 7530 return nil, err 7531 } 7532 success, ok := result.(*DcimPowerFeedsDeleteNoContent) 7533 if ok { 7534 return success, nil 7535 } 7536 // unexpected success response 7537 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7538 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7539 panic(msg) 7540 } 7541 7542 /* 7543 DcimPowerFeedsList dcim power feeds list API 7544 */ 7545 func (a *Client) DcimPowerFeedsList(params *DcimPowerFeedsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsListOK, error) { 7546 // TODO: Validate the params before sending 7547 if params == nil { 7548 params = NewDcimPowerFeedsListParams() 7549 } 7550 op := &runtime.ClientOperation{ 7551 ID: "dcim_power-feeds_list", 7552 Method: "GET", 7553 PathPattern: "/dcim/power-feeds/", 7554 ProducesMediaTypes: []string{"application/json"}, 7555 ConsumesMediaTypes: []string{"application/json"}, 7556 Schemes: []string{"http"}, 7557 Params: params, 7558 Reader: &DcimPowerFeedsListReader{formats: a.formats}, 7559 AuthInfo: authInfo, 7560 Context: params.Context, 7561 Client: params.HTTPClient, 7562 } 7563 for _, opt := range opts { 7564 opt(op) 7565 } 7566 7567 result, err := a.transport.Submit(op) 7568 if err != nil { 7569 return nil, err 7570 } 7571 success, ok := result.(*DcimPowerFeedsListOK) 7572 if ok { 7573 return success, nil 7574 } 7575 // unexpected success response 7576 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7577 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7578 panic(msg) 7579 } 7580 7581 /* 7582 DcimPowerFeedsPartialUpdate dcim power feeds partial update API 7583 */ 7584 func (a *Client) DcimPowerFeedsPartialUpdate(params *DcimPowerFeedsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsPartialUpdateOK, error) { 7585 // TODO: Validate the params before sending 7586 if params == nil { 7587 params = NewDcimPowerFeedsPartialUpdateParams() 7588 } 7589 op := &runtime.ClientOperation{ 7590 ID: "dcim_power-feeds_partial_update", 7591 Method: "PATCH", 7592 PathPattern: "/dcim/power-feeds/{id}/", 7593 ProducesMediaTypes: []string{"application/json"}, 7594 ConsumesMediaTypes: []string{"application/json"}, 7595 Schemes: []string{"http"}, 7596 Params: params, 7597 Reader: &DcimPowerFeedsPartialUpdateReader{formats: a.formats}, 7598 AuthInfo: authInfo, 7599 Context: params.Context, 7600 Client: params.HTTPClient, 7601 } 7602 for _, opt := range opts { 7603 opt(op) 7604 } 7605 7606 result, err := a.transport.Submit(op) 7607 if err != nil { 7608 return nil, err 7609 } 7610 success, ok := result.(*DcimPowerFeedsPartialUpdateOK) 7611 if ok { 7612 return success, nil 7613 } 7614 // unexpected success response 7615 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7616 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7617 panic(msg) 7618 } 7619 7620 /* 7621 DcimPowerFeedsRead dcim power feeds read API 7622 */ 7623 func (a *Client) DcimPowerFeedsRead(params *DcimPowerFeedsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsReadOK, error) { 7624 // TODO: Validate the params before sending 7625 if params == nil { 7626 params = NewDcimPowerFeedsReadParams() 7627 } 7628 op := &runtime.ClientOperation{ 7629 ID: "dcim_power-feeds_read", 7630 Method: "GET", 7631 PathPattern: "/dcim/power-feeds/{id}/", 7632 ProducesMediaTypes: []string{"application/json"}, 7633 ConsumesMediaTypes: []string{"application/json"}, 7634 Schemes: []string{"http"}, 7635 Params: params, 7636 Reader: &DcimPowerFeedsReadReader{formats: a.formats}, 7637 AuthInfo: authInfo, 7638 Context: params.Context, 7639 Client: params.HTTPClient, 7640 } 7641 for _, opt := range opts { 7642 opt(op) 7643 } 7644 7645 result, err := a.transport.Submit(op) 7646 if err != nil { 7647 return nil, err 7648 } 7649 success, ok := result.(*DcimPowerFeedsReadOK) 7650 if ok { 7651 return success, nil 7652 } 7653 // unexpected success response 7654 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7655 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7656 panic(msg) 7657 } 7658 7659 /* 7660 DcimPowerFeedsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). 7661 */ 7662 func (a *Client) DcimPowerFeedsTrace(params *DcimPowerFeedsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsTraceOK, error) { 7663 // TODO: Validate the params before sending 7664 if params == nil { 7665 params = NewDcimPowerFeedsTraceParams() 7666 } 7667 op := &runtime.ClientOperation{ 7668 ID: "dcim_power-feeds_trace", 7669 Method: "GET", 7670 PathPattern: "/dcim/power-feeds/{id}/trace/", 7671 ProducesMediaTypes: []string{"application/json"}, 7672 ConsumesMediaTypes: []string{"application/json"}, 7673 Schemes: []string{"http"}, 7674 Params: params, 7675 Reader: &DcimPowerFeedsTraceReader{formats: a.formats}, 7676 AuthInfo: authInfo, 7677 Context: params.Context, 7678 Client: params.HTTPClient, 7679 } 7680 for _, opt := range opts { 7681 opt(op) 7682 } 7683 7684 result, err := a.transport.Submit(op) 7685 if err != nil { 7686 return nil, err 7687 } 7688 success, ok := result.(*DcimPowerFeedsTraceOK) 7689 if ok { 7690 return success, nil 7691 } 7692 // unexpected success response 7693 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7694 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_trace: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7695 panic(msg) 7696 } 7697 7698 /* 7699 DcimPowerFeedsUpdate dcim power feeds update API 7700 */ 7701 func (a *Client) DcimPowerFeedsUpdate(params *DcimPowerFeedsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerFeedsUpdateOK, error) { 7702 // TODO: Validate the params before sending 7703 if params == nil { 7704 params = NewDcimPowerFeedsUpdateParams() 7705 } 7706 op := &runtime.ClientOperation{ 7707 ID: "dcim_power-feeds_update", 7708 Method: "PUT", 7709 PathPattern: "/dcim/power-feeds/{id}/", 7710 ProducesMediaTypes: []string{"application/json"}, 7711 ConsumesMediaTypes: []string{"application/json"}, 7712 Schemes: []string{"http"}, 7713 Params: params, 7714 Reader: &DcimPowerFeedsUpdateReader{formats: a.formats}, 7715 AuthInfo: authInfo, 7716 Context: params.Context, 7717 Client: params.HTTPClient, 7718 } 7719 for _, opt := range opts { 7720 opt(op) 7721 } 7722 7723 result, err := a.transport.Submit(op) 7724 if err != nil { 7725 return nil, err 7726 } 7727 success, ok := result.(*DcimPowerFeedsUpdateOK) 7728 if ok { 7729 return success, nil 7730 } 7731 // unexpected success response 7732 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7733 msg := fmt.Sprintf("unexpected success response for dcim_power-feeds_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7734 panic(msg) 7735 } 7736 7737 /* 7738 DcimPowerOutletTemplatesBulkDelete dcim power outlet templates bulk delete API 7739 */ 7740 func (a *Client) DcimPowerOutletTemplatesBulkDelete(params *DcimPowerOutletTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesBulkDeleteNoContent, error) { 7741 // TODO: Validate the params before sending 7742 if params == nil { 7743 params = NewDcimPowerOutletTemplatesBulkDeleteParams() 7744 } 7745 op := &runtime.ClientOperation{ 7746 ID: "dcim_power-outlet-templates_bulk_delete", 7747 Method: "DELETE", 7748 PathPattern: "/dcim/power-outlet-templates/", 7749 ProducesMediaTypes: []string{"application/json"}, 7750 ConsumesMediaTypes: []string{"application/json"}, 7751 Schemes: []string{"http"}, 7752 Params: params, 7753 Reader: &DcimPowerOutletTemplatesBulkDeleteReader{formats: a.formats}, 7754 AuthInfo: authInfo, 7755 Context: params.Context, 7756 Client: params.HTTPClient, 7757 } 7758 for _, opt := range opts { 7759 opt(op) 7760 } 7761 7762 result, err := a.transport.Submit(op) 7763 if err != nil { 7764 return nil, err 7765 } 7766 success, ok := result.(*DcimPowerOutletTemplatesBulkDeleteNoContent) 7767 if ok { 7768 return success, nil 7769 } 7770 // unexpected success response 7771 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7772 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7773 panic(msg) 7774 } 7775 7776 /* 7777 DcimPowerOutletTemplatesBulkPartialUpdate dcim power outlet templates bulk partial update API 7778 */ 7779 func (a *Client) DcimPowerOutletTemplatesBulkPartialUpdate(params *DcimPowerOutletTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesBulkPartialUpdateOK, error) { 7780 // TODO: Validate the params before sending 7781 if params == nil { 7782 params = NewDcimPowerOutletTemplatesBulkPartialUpdateParams() 7783 } 7784 op := &runtime.ClientOperation{ 7785 ID: "dcim_power-outlet-templates_bulk_partial_update", 7786 Method: "PATCH", 7787 PathPattern: "/dcim/power-outlet-templates/", 7788 ProducesMediaTypes: []string{"application/json"}, 7789 ConsumesMediaTypes: []string{"application/json"}, 7790 Schemes: []string{"http"}, 7791 Params: params, 7792 Reader: &DcimPowerOutletTemplatesBulkPartialUpdateReader{formats: a.formats}, 7793 AuthInfo: authInfo, 7794 Context: params.Context, 7795 Client: params.HTTPClient, 7796 } 7797 for _, opt := range opts { 7798 opt(op) 7799 } 7800 7801 result, err := a.transport.Submit(op) 7802 if err != nil { 7803 return nil, err 7804 } 7805 success, ok := result.(*DcimPowerOutletTemplatesBulkPartialUpdateOK) 7806 if ok { 7807 return success, nil 7808 } 7809 // unexpected success response 7810 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7811 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7812 panic(msg) 7813 } 7814 7815 /* 7816 DcimPowerOutletTemplatesBulkUpdate dcim power outlet templates bulk update API 7817 */ 7818 func (a *Client) DcimPowerOutletTemplatesBulkUpdate(params *DcimPowerOutletTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesBulkUpdateOK, error) { 7819 // TODO: Validate the params before sending 7820 if params == nil { 7821 params = NewDcimPowerOutletTemplatesBulkUpdateParams() 7822 } 7823 op := &runtime.ClientOperation{ 7824 ID: "dcim_power-outlet-templates_bulk_update", 7825 Method: "PUT", 7826 PathPattern: "/dcim/power-outlet-templates/", 7827 ProducesMediaTypes: []string{"application/json"}, 7828 ConsumesMediaTypes: []string{"application/json"}, 7829 Schemes: []string{"http"}, 7830 Params: params, 7831 Reader: &DcimPowerOutletTemplatesBulkUpdateReader{formats: a.formats}, 7832 AuthInfo: authInfo, 7833 Context: params.Context, 7834 Client: params.HTTPClient, 7835 } 7836 for _, opt := range opts { 7837 opt(op) 7838 } 7839 7840 result, err := a.transport.Submit(op) 7841 if err != nil { 7842 return nil, err 7843 } 7844 success, ok := result.(*DcimPowerOutletTemplatesBulkUpdateOK) 7845 if ok { 7846 return success, nil 7847 } 7848 // unexpected success response 7849 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7850 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7851 panic(msg) 7852 } 7853 7854 /* 7855 DcimPowerOutletTemplatesCreate dcim power outlet templates create API 7856 */ 7857 func (a *Client) DcimPowerOutletTemplatesCreate(params *DcimPowerOutletTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesCreateCreated, error) { 7858 // TODO: Validate the params before sending 7859 if params == nil { 7860 params = NewDcimPowerOutletTemplatesCreateParams() 7861 } 7862 op := &runtime.ClientOperation{ 7863 ID: "dcim_power-outlet-templates_create", 7864 Method: "POST", 7865 PathPattern: "/dcim/power-outlet-templates/", 7866 ProducesMediaTypes: []string{"application/json"}, 7867 ConsumesMediaTypes: []string{"application/json"}, 7868 Schemes: []string{"http"}, 7869 Params: params, 7870 Reader: &DcimPowerOutletTemplatesCreateReader{formats: a.formats}, 7871 AuthInfo: authInfo, 7872 Context: params.Context, 7873 Client: params.HTTPClient, 7874 } 7875 for _, opt := range opts { 7876 opt(op) 7877 } 7878 7879 result, err := a.transport.Submit(op) 7880 if err != nil { 7881 return nil, err 7882 } 7883 success, ok := result.(*DcimPowerOutletTemplatesCreateCreated) 7884 if ok { 7885 return success, nil 7886 } 7887 // unexpected success response 7888 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7889 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7890 panic(msg) 7891 } 7892 7893 /* 7894 DcimPowerOutletTemplatesDelete dcim power outlet templates delete API 7895 */ 7896 func (a *Client) DcimPowerOutletTemplatesDelete(params *DcimPowerOutletTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesDeleteNoContent, error) { 7897 // TODO: Validate the params before sending 7898 if params == nil { 7899 params = NewDcimPowerOutletTemplatesDeleteParams() 7900 } 7901 op := &runtime.ClientOperation{ 7902 ID: "dcim_power-outlet-templates_delete", 7903 Method: "DELETE", 7904 PathPattern: "/dcim/power-outlet-templates/{id}/", 7905 ProducesMediaTypes: []string{"application/json"}, 7906 ConsumesMediaTypes: []string{"application/json"}, 7907 Schemes: []string{"http"}, 7908 Params: params, 7909 Reader: &DcimPowerOutletTemplatesDeleteReader{formats: a.formats}, 7910 AuthInfo: authInfo, 7911 Context: params.Context, 7912 Client: params.HTTPClient, 7913 } 7914 for _, opt := range opts { 7915 opt(op) 7916 } 7917 7918 result, err := a.transport.Submit(op) 7919 if err != nil { 7920 return nil, err 7921 } 7922 success, ok := result.(*DcimPowerOutletTemplatesDeleteNoContent) 7923 if ok { 7924 return success, nil 7925 } 7926 // unexpected success response 7927 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7928 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7929 panic(msg) 7930 } 7931 7932 /* 7933 DcimPowerOutletTemplatesList dcim power outlet templates list API 7934 */ 7935 func (a *Client) DcimPowerOutletTemplatesList(params *DcimPowerOutletTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesListOK, error) { 7936 // TODO: Validate the params before sending 7937 if params == nil { 7938 params = NewDcimPowerOutletTemplatesListParams() 7939 } 7940 op := &runtime.ClientOperation{ 7941 ID: "dcim_power-outlet-templates_list", 7942 Method: "GET", 7943 PathPattern: "/dcim/power-outlet-templates/", 7944 ProducesMediaTypes: []string{"application/json"}, 7945 ConsumesMediaTypes: []string{"application/json"}, 7946 Schemes: []string{"http"}, 7947 Params: params, 7948 Reader: &DcimPowerOutletTemplatesListReader{formats: a.formats}, 7949 AuthInfo: authInfo, 7950 Context: params.Context, 7951 Client: params.HTTPClient, 7952 } 7953 for _, opt := range opts { 7954 opt(op) 7955 } 7956 7957 result, err := a.transport.Submit(op) 7958 if err != nil { 7959 return nil, err 7960 } 7961 success, ok := result.(*DcimPowerOutletTemplatesListOK) 7962 if ok { 7963 return success, nil 7964 } 7965 // unexpected success response 7966 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 7967 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 7968 panic(msg) 7969 } 7970 7971 /* 7972 DcimPowerOutletTemplatesPartialUpdate dcim power outlet templates partial update API 7973 */ 7974 func (a *Client) DcimPowerOutletTemplatesPartialUpdate(params *DcimPowerOutletTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesPartialUpdateOK, error) { 7975 // TODO: Validate the params before sending 7976 if params == nil { 7977 params = NewDcimPowerOutletTemplatesPartialUpdateParams() 7978 } 7979 op := &runtime.ClientOperation{ 7980 ID: "dcim_power-outlet-templates_partial_update", 7981 Method: "PATCH", 7982 PathPattern: "/dcim/power-outlet-templates/{id}/", 7983 ProducesMediaTypes: []string{"application/json"}, 7984 ConsumesMediaTypes: []string{"application/json"}, 7985 Schemes: []string{"http"}, 7986 Params: params, 7987 Reader: &DcimPowerOutletTemplatesPartialUpdateReader{formats: a.formats}, 7988 AuthInfo: authInfo, 7989 Context: params.Context, 7990 Client: params.HTTPClient, 7991 } 7992 for _, opt := range opts { 7993 opt(op) 7994 } 7995 7996 result, err := a.transport.Submit(op) 7997 if err != nil { 7998 return nil, err 7999 } 8000 success, ok := result.(*DcimPowerOutletTemplatesPartialUpdateOK) 8001 if ok { 8002 return success, nil 8003 } 8004 // unexpected success response 8005 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8006 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8007 panic(msg) 8008 } 8009 8010 /* 8011 DcimPowerOutletTemplatesRead dcim power outlet templates read API 8012 */ 8013 func (a *Client) DcimPowerOutletTemplatesRead(params *DcimPowerOutletTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesReadOK, error) { 8014 // TODO: Validate the params before sending 8015 if params == nil { 8016 params = NewDcimPowerOutletTemplatesReadParams() 8017 } 8018 op := &runtime.ClientOperation{ 8019 ID: "dcim_power-outlet-templates_read", 8020 Method: "GET", 8021 PathPattern: "/dcim/power-outlet-templates/{id}/", 8022 ProducesMediaTypes: []string{"application/json"}, 8023 ConsumesMediaTypes: []string{"application/json"}, 8024 Schemes: []string{"http"}, 8025 Params: params, 8026 Reader: &DcimPowerOutletTemplatesReadReader{formats: a.formats}, 8027 AuthInfo: authInfo, 8028 Context: params.Context, 8029 Client: params.HTTPClient, 8030 } 8031 for _, opt := range opts { 8032 opt(op) 8033 } 8034 8035 result, err := a.transport.Submit(op) 8036 if err != nil { 8037 return nil, err 8038 } 8039 success, ok := result.(*DcimPowerOutletTemplatesReadOK) 8040 if ok { 8041 return success, nil 8042 } 8043 // unexpected success response 8044 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8045 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8046 panic(msg) 8047 } 8048 8049 /* 8050 DcimPowerOutletTemplatesUpdate dcim power outlet templates update API 8051 */ 8052 func (a *Client) DcimPowerOutletTemplatesUpdate(params *DcimPowerOutletTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletTemplatesUpdateOK, error) { 8053 // TODO: Validate the params before sending 8054 if params == nil { 8055 params = NewDcimPowerOutletTemplatesUpdateParams() 8056 } 8057 op := &runtime.ClientOperation{ 8058 ID: "dcim_power-outlet-templates_update", 8059 Method: "PUT", 8060 PathPattern: "/dcim/power-outlet-templates/{id}/", 8061 ProducesMediaTypes: []string{"application/json"}, 8062 ConsumesMediaTypes: []string{"application/json"}, 8063 Schemes: []string{"http"}, 8064 Params: params, 8065 Reader: &DcimPowerOutletTemplatesUpdateReader{formats: a.formats}, 8066 AuthInfo: authInfo, 8067 Context: params.Context, 8068 Client: params.HTTPClient, 8069 } 8070 for _, opt := range opts { 8071 opt(op) 8072 } 8073 8074 result, err := a.transport.Submit(op) 8075 if err != nil { 8076 return nil, err 8077 } 8078 success, ok := result.(*DcimPowerOutletTemplatesUpdateOK) 8079 if ok { 8080 return success, nil 8081 } 8082 // unexpected success response 8083 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8084 msg := fmt.Sprintf("unexpected success response for dcim_power-outlet-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8085 panic(msg) 8086 } 8087 8088 /* 8089 DcimPowerOutletsBulkDelete dcim power outlets bulk delete API 8090 */ 8091 func (a *Client) DcimPowerOutletsBulkDelete(params *DcimPowerOutletsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsBulkDeleteNoContent, error) { 8092 // TODO: Validate the params before sending 8093 if params == nil { 8094 params = NewDcimPowerOutletsBulkDeleteParams() 8095 } 8096 op := &runtime.ClientOperation{ 8097 ID: "dcim_power-outlets_bulk_delete", 8098 Method: "DELETE", 8099 PathPattern: "/dcim/power-outlets/", 8100 ProducesMediaTypes: []string{"application/json"}, 8101 ConsumesMediaTypes: []string{"application/json"}, 8102 Schemes: []string{"http"}, 8103 Params: params, 8104 Reader: &DcimPowerOutletsBulkDeleteReader{formats: a.formats}, 8105 AuthInfo: authInfo, 8106 Context: params.Context, 8107 Client: params.HTTPClient, 8108 } 8109 for _, opt := range opts { 8110 opt(op) 8111 } 8112 8113 result, err := a.transport.Submit(op) 8114 if err != nil { 8115 return nil, err 8116 } 8117 success, ok := result.(*DcimPowerOutletsBulkDeleteNoContent) 8118 if ok { 8119 return success, nil 8120 } 8121 // unexpected success response 8122 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8123 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8124 panic(msg) 8125 } 8126 8127 /* 8128 DcimPowerOutletsBulkPartialUpdate dcim power outlets bulk partial update API 8129 */ 8130 func (a *Client) DcimPowerOutletsBulkPartialUpdate(params *DcimPowerOutletsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsBulkPartialUpdateOK, error) { 8131 // TODO: Validate the params before sending 8132 if params == nil { 8133 params = NewDcimPowerOutletsBulkPartialUpdateParams() 8134 } 8135 op := &runtime.ClientOperation{ 8136 ID: "dcim_power-outlets_bulk_partial_update", 8137 Method: "PATCH", 8138 PathPattern: "/dcim/power-outlets/", 8139 ProducesMediaTypes: []string{"application/json"}, 8140 ConsumesMediaTypes: []string{"application/json"}, 8141 Schemes: []string{"http"}, 8142 Params: params, 8143 Reader: &DcimPowerOutletsBulkPartialUpdateReader{formats: a.formats}, 8144 AuthInfo: authInfo, 8145 Context: params.Context, 8146 Client: params.HTTPClient, 8147 } 8148 for _, opt := range opts { 8149 opt(op) 8150 } 8151 8152 result, err := a.transport.Submit(op) 8153 if err != nil { 8154 return nil, err 8155 } 8156 success, ok := result.(*DcimPowerOutletsBulkPartialUpdateOK) 8157 if ok { 8158 return success, nil 8159 } 8160 // unexpected success response 8161 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8162 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8163 panic(msg) 8164 } 8165 8166 /* 8167 DcimPowerOutletsBulkUpdate dcim power outlets bulk update API 8168 */ 8169 func (a *Client) DcimPowerOutletsBulkUpdate(params *DcimPowerOutletsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsBulkUpdateOK, error) { 8170 // TODO: Validate the params before sending 8171 if params == nil { 8172 params = NewDcimPowerOutletsBulkUpdateParams() 8173 } 8174 op := &runtime.ClientOperation{ 8175 ID: "dcim_power-outlets_bulk_update", 8176 Method: "PUT", 8177 PathPattern: "/dcim/power-outlets/", 8178 ProducesMediaTypes: []string{"application/json"}, 8179 ConsumesMediaTypes: []string{"application/json"}, 8180 Schemes: []string{"http"}, 8181 Params: params, 8182 Reader: &DcimPowerOutletsBulkUpdateReader{formats: a.formats}, 8183 AuthInfo: authInfo, 8184 Context: params.Context, 8185 Client: params.HTTPClient, 8186 } 8187 for _, opt := range opts { 8188 opt(op) 8189 } 8190 8191 result, err := a.transport.Submit(op) 8192 if err != nil { 8193 return nil, err 8194 } 8195 success, ok := result.(*DcimPowerOutletsBulkUpdateOK) 8196 if ok { 8197 return success, nil 8198 } 8199 // unexpected success response 8200 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8201 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8202 panic(msg) 8203 } 8204 8205 /* 8206 DcimPowerOutletsCreate dcim power outlets create API 8207 */ 8208 func (a *Client) DcimPowerOutletsCreate(params *DcimPowerOutletsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsCreateCreated, error) { 8209 // TODO: Validate the params before sending 8210 if params == nil { 8211 params = NewDcimPowerOutletsCreateParams() 8212 } 8213 op := &runtime.ClientOperation{ 8214 ID: "dcim_power-outlets_create", 8215 Method: "POST", 8216 PathPattern: "/dcim/power-outlets/", 8217 ProducesMediaTypes: []string{"application/json"}, 8218 ConsumesMediaTypes: []string{"application/json"}, 8219 Schemes: []string{"http"}, 8220 Params: params, 8221 Reader: &DcimPowerOutletsCreateReader{formats: a.formats}, 8222 AuthInfo: authInfo, 8223 Context: params.Context, 8224 Client: params.HTTPClient, 8225 } 8226 for _, opt := range opts { 8227 opt(op) 8228 } 8229 8230 result, err := a.transport.Submit(op) 8231 if err != nil { 8232 return nil, err 8233 } 8234 success, ok := result.(*DcimPowerOutletsCreateCreated) 8235 if ok { 8236 return success, nil 8237 } 8238 // unexpected success response 8239 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8240 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8241 panic(msg) 8242 } 8243 8244 /* 8245 DcimPowerOutletsDelete dcim power outlets delete API 8246 */ 8247 func (a *Client) DcimPowerOutletsDelete(params *DcimPowerOutletsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsDeleteNoContent, error) { 8248 // TODO: Validate the params before sending 8249 if params == nil { 8250 params = NewDcimPowerOutletsDeleteParams() 8251 } 8252 op := &runtime.ClientOperation{ 8253 ID: "dcim_power-outlets_delete", 8254 Method: "DELETE", 8255 PathPattern: "/dcim/power-outlets/{id}/", 8256 ProducesMediaTypes: []string{"application/json"}, 8257 ConsumesMediaTypes: []string{"application/json"}, 8258 Schemes: []string{"http"}, 8259 Params: params, 8260 Reader: &DcimPowerOutletsDeleteReader{formats: a.formats}, 8261 AuthInfo: authInfo, 8262 Context: params.Context, 8263 Client: params.HTTPClient, 8264 } 8265 for _, opt := range opts { 8266 opt(op) 8267 } 8268 8269 result, err := a.transport.Submit(op) 8270 if err != nil { 8271 return nil, err 8272 } 8273 success, ok := result.(*DcimPowerOutletsDeleteNoContent) 8274 if ok { 8275 return success, nil 8276 } 8277 // unexpected success response 8278 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8279 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8280 panic(msg) 8281 } 8282 8283 /* 8284 DcimPowerOutletsList dcim power outlets list API 8285 */ 8286 func (a *Client) DcimPowerOutletsList(params *DcimPowerOutletsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsListOK, error) { 8287 // TODO: Validate the params before sending 8288 if params == nil { 8289 params = NewDcimPowerOutletsListParams() 8290 } 8291 op := &runtime.ClientOperation{ 8292 ID: "dcim_power-outlets_list", 8293 Method: "GET", 8294 PathPattern: "/dcim/power-outlets/", 8295 ProducesMediaTypes: []string{"application/json"}, 8296 ConsumesMediaTypes: []string{"application/json"}, 8297 Schemes: []string{"http"}, 8298 Params: params, 8299 Reader: &DcimPowerOutletsListReader{formats: a.formats}, 8300 AuthInfo: authInfo, 8301 Context: params.Context, 8302 Client: params.HTTPClient, 8303 } 8304 for _, opt := range opts { 8305 opt(op) 8306 } 8307 8308 result, err := a.transport.Submit(op) 8309 if err != nil { 8310 return nil, err 8311 } 8312 success, ok := result.(*DcimPowerOutletsListOK) 8313 if ok { 8314 return success, nil 8315 } 8316 // unexpected success response 8317 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8318 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8319 panic(msg) 8320 } 8321 8322 /* 8323 DcimPowerOutletsPartialUpdate dcim power outlets partial update API 8324 */ 8325 func (a *Client) DcimPowerOutletsPartialUpdate(params *DcimPowerOutletsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsPartialUpdateOK, error) { 8326 // TODO: Validate the params before sending 8327 if params == nil { 8328 params = NewDcimPowerOutletsPartialUpdateParams() 8329 } 8330 op := &runtime.ClientOperation{ 8331 ID: "dcim_power-outlets_partial_update", 8332 Method: "PATCH", 8333 PathPattern: "/dcim/power-outlets/{id}/", 8334 ProducesMediaTypes: []string{"application/json"}, 8335 ConsumesMediaTypes: []string{"application/json"}, 8336 Schemes: []string{"http"}, 8337 Params: params, 8338 Reader: &DcimPowerOutletsPartialUpdateReader{formats: a.formats}, 8339 AuthInfo: authInfo, 8340 Context: params.Context, 8341 Client: params.HTTPClient, 8342 } 8343 for _, opt := range opts { 8344 opt(op) 8345 } 8346 8347 result, err := a.transport.Submit(op) 8348 if err != nil { 8349 return nil, err 8350 } 8351 success, ok := result.(*DcimPowerOutletsPartialUpdateOK) 8352 if ok { 8353 return success, nil 8354 } 8355 // unexpected success response 8356 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8357 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8358 panic(msg) 8359 } 8360 8361 /* 8362 DcimPowerOutletsRead dcim power outlets read API 8363 */ 8364 func (a *Client) DcimPowerOutletsRead(params *DcimPowerOutletsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsReadOK, error) { 8365 // TODO: Validate the params before sending 8366 if params == nil { 8367 params = NewDcimPowerOutletsReadParams() 8368 } 8369 op := &runtime.ClientOperation{ 8370 ID: "dcim_power-outlets_read", 8371 Method: "GET", 8372 PathPattern: "/dcim/power-outlets/{id}/", 8373 ProducesMediaTypes: []string{"application/json"}, 8374 ConsumesMediaTypes: []string{"application/json"}, 8375 Schemes: []string{"http"}, 8376 Params: params, 8377 Reader: &DcimPowerOutletsReadReader{formats: a.formats}, 8378 AuthInfo: authInfo, 8379 Context: params.Context, 8380 Client: params.HTTPClient, 8381 } 8382 for _, opt := range opts { 8383 opt(op) 8384 } 8385 8386 result, err := a.transport.Submit(op) 8387 if err != nil { 8388 return nil, err 8389 } 8390 success, ok := result.(*DcimPowerOutletsReadOK) 8391 if ok { 8392 return success, nil 8393 } 8394 // unexpected success response 8395 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8396 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8397 panic(msg) 8398 } 8399 8400 /* 8401 DcimPowerOutletsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). 8402 */ 8403 func (a *Client) DcimPowerOutletsTrace(params *DcimPowerOutletsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsTraceOK, error) { 8404 // TODO: Validate the params before sending 8405 if params == nil { 8406 params = NewDcimPowerOutletsTraceParams() 8407 } 8408 op := &runtime.ClientOperation{ 8409 ID: "dcim_power-outlets_trace", 8410 Method: "GET", 8411 PathPattern: "/dcim/power-outlets/{id}/trace/", 8412 ProducesMediaTypes: []string{"application/json"}, 8413 ConsumesMediaTypes: []string{"application/json"}, 8414 Schemes: []string{"http"}, 8415 Params: params, 8416 Reader: &DcimPowerOutletsTraceReader{formats: a.formats}, 8417 AuthInfo: authInfo, 8418 Context: params.Context, 8419 Client: params.HTTPClient, 8420 } 8421 for _, opt := range opts { 8422 opt(op) 8423 } 8424 8425 result, err := a.transport.Submit(op) 8426 if err != nil { 8427 return nil, err 8428 } 8429 success, ok := result.(*DcimPowerOutletsTraceOK) 8430 if ok { 8431 return success, nil 8432 } 8433 // unexpected success response 8434 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8435 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_trace: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8436 panic(msg) 8437 } 8438 8439 /* 8440 DcimPowerOutletsUpdate dcim power outlets update API 8441 */ 8442 func (a *Client) DcimPowerOutletsUpdate(params *DcimPowerOutletsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerOutletsUpdateOK, error) { 8443 // TODO: Validate the params before sending 8444 if params == nil { 8445 params = NewDcimPowerOutletsUpdateParams() 8446 } 8447 op := &runtime.ClientOperation{ 8448 ID: "dcim_power-outlets_update", 8449 Method: "PUT", 8450 PathPattern: "/dcim/power-outlets/{id}/", 8451 ProducesMediaTypes: []string{"application/json"}, 8452 ConsumesMediaTypes: []string{"application/json"}, 8453 Schemes: []string{"http"}, 8454 Params: params, 8455 Reader: &DcimPowerOutletsUpdateReader{formats: a.formats}, 8456 AuthInfo: authInfo, 8457 Context: params.Context, 8458 Client: params.HTTPClient, 8459 } 8460 for _, opt := range opts { 8461 opt(op) 8462 } 8463 8464 result, err := a.transport.Submit(op) 8465 if err != nil { 8466 return nil, err 8467 } 8468 success, ok := result.(*DcimPowerOutletsUpdateOK) 8469 if ok { 8470 return success, nil 8471 } 8472 // unexpected success response 8473 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8474 msg := fmt.Sprintf("unexpected success response for dcim_power-outlets_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8475 panic(msg) 8476 } 8477 8478 /* 8479 DcimPowerPanelsBulkDelete dcim power panels bulk delete API 8480 */ 8481 func (a *Client) DcimPowerPanelsBulkDelete(params *DcimPowerPanelsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsBulkDeleteNoContent, error) { 8482 // TODO: Validate the params before sending 8483 if params == nil { 8484 params = NewDcimPowerPanelsBulkDeleteParams() 8485 } 8486 op := &runtime.ClientOperation{ 8487 ID: "dcim_power-panels_bulk_delete", 8488 Method: "DELETE", 8489 PathPattern: "/dcim/power-panels/", 8490 ProducesMediaTypes: []string{"application/json"}, 8491 ConsumesMediaTypes: []string{"application/json"}, 8492 Schemes: []string{"http"}, 8493 Params: params, 8494 Reader: &DcimPowerPanelsBulkDeleteReader{formats: a.formats}, 8495 AuthInfo: authInfo, 8496 Context: params.Context, 8497 Client: params.HTTPClient, 8498 } 8499 for _, opt := range opts { 8500 opt(op) 8501 } 8502 8503 result, err := a.transport.Submit(op) 8504 if err != nil { 8505 return nil, err 8506 } 8507 success, ok := result.(*DcimPowerPanelsBulkDeleteNoContent) 8508 if ok { 8509 return success, nil 8510 } 8511 // unexpected success response 8512 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8513 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8514 panic(msg) 8515 } 8516 8517 /* 8518 DcimPowerPanelsBulkPartialUpdate dcim power panels bulk partial update API 8519 */ 8520 func (a *Client) DcimPowerPanelsBulkPartialUpdate(params *DcimPowerPanelsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsBulkPartialUpdateOK, error) { 8521 // TODO: Validate the params before sending 8522 if params == nil { 8523 params = NewDcimPowerPanelsBulkPartialUpdateParams() 8524 } 8525 op := &runtime.ClientOperation{ 8526 ID: "dcim_power-panels_bulk_partial_update", 8527 Method: "PATCH", 8528 PathPattern: "/dcim/power-panels/", 8529 ProducesMediaTypes: []string{"application/json"}, 8530 ConsumesMediaTypes: []string{"application/json"}, 8531 Schemes: []string{"http"}, 8532 Params: params, 8533 Reader: &DcimPowerPanelsBulkPartialUpdateReader{formats: a.formats}, 8534 AuthInfo: authInfo, 8535 Context: params.Context, 8536 Client: params.HTTPClient, 8537 } 8538 for _, opt := range opts { 8539 opt(op) 8540 } 8541 8542 result, err := a.transport.Submit(op) 8543 if err != nil { 8544 return nil, err 8545 } 8546 success, ok := result.(*DcimPowerPanelsBulkPartialUpdateOK) 8547 if ok { 8548 return success, nil 8549 } 8550 // unexpected success response 8551 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8552 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8553 panic(msg) 8554 } 8555 8556 /* 8557 DcimPowerPanelsBulkUpdate dcim power panels bulk update API 8558 */ 8559 func (a *Client) DcimPowerPanelsBulkUpdate(params *DcimPowerPanelsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsBulkUpdateOK, error) { 8560 // TODO: Validate the params before sending 8561 if params == nil { 8562 params = NewDcimPowerPanelsBulkUpdateParams() 8563 } 8564 op := &runtime.ClientOperation{ 8565 ID: "dcim_power-panels_bulk_update", 8566 Method: "PUT", 8567 PathPattern: "/dcim/power-panels/", 8568 ProducesMediaTypes: []string{"application/json"}, 8569 ConsumesMediaTypes: []string{"application/json"}, 8570 Schemes: []string{"http"}, 8571 Params: params, 8572 Reader: &DcimPowerPanelsBulkUpdateReader{formats: a.formats}, 8573 AuthInfo: authInfo, 8574 Context: params.Context, 8575 Client: params.HTTPClient, 8576 } 8577 for _, opt := range opts { 8578 opt(op) 8579 } 8580 8581 result, err := a.transport.Submit(op) 8582 if err != nil { 8583 return nil, err 8584 } 8585 success, ok := result.(*DcimPowerPanelsBulkUpdateOK) 8586 if ok { 8587 return success, nil 8588 } 8589 // unexpected success response 8590 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8591 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8592 panic(msg) 8593 } 8594 8595 /* 8596 DcimPowerPanelsCreate dcim power panels create API 8597 */ 8598 func (a *Client) DcimPowerPanelsCreate(params *DcimPowerPanelsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsCreateCreated, error) { 8599 // TODO: Validate the params before sending 8600 if params == nil { 8601 params = NewDcimPowerPanelsCreateParams() 8602 } 8603 op := &runtime.ClientOperation{ 8604 ID: "dcim_power-panels_create", 8605 Method: "POST", 8606 PathPattern: "/dcim/power-panels/", 8607 ProducesMediaTypes: []string{"application/json"}, 8608 ConsumesMediaTypes: []string{"application/json"}, 8609 Schemes: []string{"http"}, 8610 Params: params, 8611 Reader: &DcimPowerPanelsCreateReader{formats: a.formats}, 8612 AuthInfo: authInfo, 8613 Context: params.Context, 8614 Client: params.HTTPClient, 8615 } 8616 for _, opt := range opts { 8617 opt(op) 8618 } 8619 8620 result, err := a.transport.Submit(op) 8621 if err != nil { 8622 return nil, err 8623 } 8624 success, ok := result.(*DcimPowerPanelsCreateCreated) 8625 if ok { 8626 return success, nil 8627 } 8628 // unexpected success response 8629 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8630 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8631 panic(msg) 8632 } 8633 8634 /* 8635 DcimPowerPanelsDelete dcim power panels delete API 8636 */ 8637 func (a *Client) DcimPowerPanelsDelete(params *DcimPowerPanelsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsDeleteNoContent, error) { 8638 // TODO: Validate the params before sending 8639 if params == nil { 8640 params = NewDcimPowerPanelsDeleteParams() 8641 } 8642 op := &runtime.ClientOperation{ 8643 ID: "dcim_power-panels_delete", 8644 Method: "DELETE", 8645 PathPattern: "/dcim/power-panels/{id}/", 8646 ProducesMediaTypes: []string{"application/json"}, 8647 ConsumesMediaTypes: []string{"application/json"}, 8648 Schemes: []string{"http"}, 8649 Params: params, 8650 Reader: &DcimPowerPanelsDeleteReader{formats: a.formats}, 8651 AuthInfo: authInfo, 8652 Context: params.Context, 8653 Client: params.HTTPClient, 8654 } 8655 for _, opt := range opts { 8656 opt(op) 8657 } 8658 8659 result, err := a.transport.Submit(op) 8660 if err != nil { 8661 return nil, err 8662 } 8663 success, ok := result.(*DcimPowerPanelsDeleteNoContent) 8664 if ok { 8665 return success, nil 8666 } 8667 // unexpected success response 8668 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8669 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8670 panic(msg) 8671 } 8672 8673 /* 8674 DcimPowerPanelsList dcim power panels list API 8675 */ 8676 func (a *Client) DcimPowerPanelsList(params *DcimPowerPanelsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsListOK, error) { 8677 // TODO: Validate the params before sending 8678 if params == nil { 8679 params = NewDcimPowerPanelsListParams() 8680 } 8681 op := &runtime.ClientOperation{ 8682 ID: "dcim_power-panels_list", 8683 Method: "GET", 8684 PathPattern: "/dcim/power-panels/", 8685 ProducesMediaTypes: []string{"application/json"}, 8686 ConsumesMediaTypes: []string{"application/json"}, 8687 Schemes: []string{"http"}, 8688 Params: params, 8689 Reader: &DcimPowerPanelsListReader{formats: a.formats}, 8690 AuthInfo: authInfo, 8691 Context: params.Context, 8692 Client: params.HTTPClient, 8693 } 8694 for _, opt := range opts { 8695 opt(op) 8696 } 8697 8698 result, err := a.transport.Submit(op) 8699 if err != nil { 8700 return nil, err 8701 } 8702 success, ok := result.(*DcimPowerPanelsListOK) 8703 if ok { 8704 return success, nil 8705 } 8706 // unexpected success response 8707 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8708 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8709 panic(msg) 8710 } 8711 8712 /* 8713 DcimPowerPanelsPartialUpdate dcim power panels partial update API 8714 */ 8715 func (a *Client) DcimPowerPanelsPartialUpdate(params *DcimPowerPanelsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsPartialUpdateOK, error) { 8716 // TODO: Validate the params before sending 8717 if params == nil { 8718 params = NewDcimPowerPanelsPartialUpdateParams() 8719 } 8720 op := &runtime.ClientOperation{ 8721 ID: "dcim_power-panels_partial_update", 8722 Method: "PATCH", 8723 PathPattern: "/dcim/power-panels/{id}/", 8724 ProducesMediaTypes: []string{"application/json"}, 8725 ConsumesMediaTypes: []string{"application/json"}, 8726 Schemes: []string{"http"}, 8727 Params: params, 8728 Reader: &DcimPowerPanelsPartialUpdateReader{formats: a.formats}, 8729 AuthInfo: authInfo, 8730 Context: params.Context, 8731 Client: params.HTTPClient, 8732 } 8733 for _, opt := range opts { 8734 opt(op) 8735 } 8736 8737 result, err := a.transport.Submit(op) 8738 if err != nil { 8739 return nil, err 8740 } 8741 success, ok := result.(*DcimPowerPanelsPartialUpdateOK) 8742 if ok { 8743 return success, nil 8744 } 8745 // unexpected success response 8746 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8747 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8748 panic(msg) 8749 } 8750 8751 /* 8752 DcimPowerPanelsRead dcim power panels read API 8753 */ 8754 func (a *Client) DcimPowerPanelsRead(params *DcimPowerPanelsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsReadOK, error) { 8755 // TODO: Validate the params before sending 8756 if params == nil { 8757 params = NewDcimPowerPanelsReadParams() 8758 } 8759 op := &runtime.ClientOperation{ 8760 ID: "dcim_power-panels_read", 8761 Method: "GET", 8762 PathPattern: "/dcim/power-panels/{id}/", 8763 ProducesMediaTypes: []string{"application/json"}, 8764 ConsumesMediaTypes: []string{"application/json"}, 8765 Schemes: []string{"http"}, 8766 Params: params, 8767 Reader: &DcimPowerPanelsReadReader{formats: a.formats}, 8768 AuthInfo: authInfo, 8769 Context: params.Context, 8770 Client: params.HTTPClient, 8771 } 8772 for _, opt := range opts { 8773 opt(op) 8774 } 8775 8776 result, err := a.transport.Submit(op) 8777 if err != nil { 8778 return nil, err 8779 } 8780 success, ok := result.(*DcimPowerPanelsReadOK) 8781 if ok { 8782 return success, nil 8783 } 8784 // unexpected success response 8785 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8786 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8787 panic(msg) 8788 } 8789 8790 /* 8791 DcimPowerPanelsUpdate dcim power panels update API 8792 */ 8793 func (a *Client) DcimPowerPanelsUpdate(params *DcimPowerPanelsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPanelsUpdateOK, error) { 8794 // TODO: Validate the params before sending 8795 if params == nil { 8796 params = NewDcimPowerPanelsUpdateParams() 8797 } 8798 op := &runtime.ClientOperation{ 8799 ID: "dcim_power-panels_update", 8800 Method: "PUT", 8801 PathPattern: "/dcim/power-panels/{id}/", 8802 ProducesMediaTypes: []string{"application/json"}, 8803 ConsumesMediaTypes: []string{"application/json"}, 8804 Schemes: []string{"http"}, 8805 Params: params, 8806 Reader: &DcimPowerPanelsUpdateReader{formats: a.formats}, 8807 AuthInfo: authInfo, 8808 Context: params.Context, 8809 Client: params.HTTPClient, 8810 } 8811 for _, opt := range opts { 8812 opt(op) 8813 } 8814 8815 result, err := a.transport.Submit(op) 8816 if err != nil { 8817 return nil, err 8818 } 8819 success, ok := result.(*DcimPowerPanelsUpdateOK) 8820 if ok { 8821 return success, nil 8822 } 8823 // unexpected success response 8824 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8825 msg := fmt.Sprintf("unexpected success response for dcim_power-panels_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8826 panic(msg) 8827 } 8828 8829 /* 8830 DcimPowerPortTemplatesBulkDelete dcim power port templates bulk delete API 8831 */ 8832 func (a *Client) DcimPowerPortTemplatesBulkDelete(params *DcimPowerPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesBulkDeleteNoContent, error) { 8833 // TODO: Validate the params before sending 8834 if params == nil { 8835 params = NewDcimPowerPortTemplatesBulkDeleteParams() 8836 } 8837 op := &runtime.ClientOperation{ 8838 ID: "dcim_power-port-templates_bulk_delete", 8839 Method: "DELETE", 8840 PathPattern: "/dcim/power-port-templates/", 8841 ProducesMediaTypes: []string{"application/json"}, 8842 ConsumesMediaTypes: []string{"application/json"}, 8843 Schemes: []string{"http"}, 8844 Params: params, 8845 Reader: &DcimPowerPortTemplatesBulkDeleteReader{formats: a.formats}, 8846 AuthInfo: authInfo, 8847 Context: params.Context, 8848 Client: params.HTTPClient, 8849 } 8850 for _, opt := range opts { 8851 opt(op) 8852 } 8853 8854 result, err := a.transport.Submit(op) 8855 if err != nil { 8856 return nil, err 8857 } 8858 success, ok := result.(*DcimPowerPortTemplatesBulkDeleteNoContent) 8859 if ok { 8860 return success, nil 8861 } 8862 // unexpected success response 8863 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8864 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8865 panic(msg) 8866 } 8867 8868 /* 8869 DcimPowerPortTemplatesBulkPartialUpdate dcim power port templates bulk partial update API 8870 */ 8871 func (a *Client) DcimPowerPortTemplatesBulkPartialUpdate(params *DcimPowerPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesBulkPartialUpdateOK, error) { 8872 // TODO: Validate the params before sending 8873 if params == nil { 8874 params = NewDcimPowerPortTemplatesBulkPartialUpdateParams() 8875 } 8876 op := &runtime.ClientOperation{ 8877 ID: "dcim_power-port-templates_bulk_partial_update", 8878 Method: "PATCH", 8879 PathPattern: "/dcim/power-port-templates/", 8880 ProducesMediaTypes: []string{"application/json"}, 8881 ConsumesMediaTypes: []string{"application/json"}, 8882 Schemes: []string{"http"}, 8883 Params: params, 8884 Reader: &DcimPowerPortTemplatesBulkPartialUpdateReader{formats: a.formats}, 8885 AuthInfo: authInfo, 8886 Context: params.Context, 8887 Client: params.HTTPClient, 8888 } 8889 for _, opt := range opts { 8890 opt(op) 8891 } 8892 8893 result, err := a.transport.Submit(op) 8894 if err != nil { 8895 return nil, err 8896 } 8897 success, ok := result.(*DcimPowerPortTemplatesBulkPartialUpdateOK) 8898 if ok { 8899 return success, nil 8900 } 8901 // unexpected success response 8902 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8903 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8904 panic(msg) 8905 } 8906 8907 /* 8908 DcimPowerPortTemplatesBulkUpdate dcim power port templates bulk update API 8909 */ 8910 func (a *Client) DcimPowerPortTemplatesBulkUpdate(params *DcimPowerPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesBulkUpdateOK, error) { 8911 // TODO: Validate the params before sending 8912 if params == nil { 8913 params = NewDcimPowerPortTemplatesBulkUpdateParams() 8914 } 8915 op := &runtime.ClientOperation{ 8916 ID: "dcim_power-port-templates_bulk_update", 8917 Method: "PUT", 8918 PathPattern: "/dcim/power-port-templates/", 8919 ProducesMediaTypes: []string{"application/json"}, 8920 ConsumesMediaTypes: []string{"application/json"}, 8921 Schemes: []string{"http"}, 8922 Params: params, 8923 Reader: &DcimPowerPortTemplatesBulkUpdateReader{formats: a.formats}, 8924 AuthInfo: authInfo, 8925 Context: params.Context, 8926 Client: params.HTTPClient, 8927 } 8928 for _, opt := range opts { 8929 opt(op) 8930 } 8931 8932 result, err := a.transport.Submit(op) 8933 if err != nil { 8934 return nil, err 8935 } 8936 success, ok := result.(*DcimPowerPortTemplatesBulkUpdateOK) 8937 if ok { 8938 return success, nil 8939 } 8940 // unexpected success response 8941 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8942 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8943 panic(msg) 8944 } 8945 8946 /* 8947 DcimPowerPortTemplatesCreate dcim power port templates create API 8948 */ 8949 func (a *Client) DcimPowerPortTemplatesCreate(params *DcimPowerPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesCreateCreated, error) { 8950 // TODO: Validate the params before sending 8951 if params == nil { 8952 params = NewDcimPowerPortTemplatesCreateParams() 8953 } 8954 op := &runtime.ClientOperation{ 8955 ID: "dcim_power-port-templates_create", 8956 Method: "POST", 8957 PathPattern: "/dcim/power-port-templates/", 8958 ProducesMediaTypes: []string{"application/json"}, 8959 ConsumesMediaTypes: []string{"application/json"}, 8960 Schemes: []string{"http"}, 8961 Params: params, 8962 Reader: &DcimPowerPortTemplatesCreateReader{formats: a.formats}, 8963 AuthInfo: authInfo, 8964 Context: params.Context, 8965 Client: params.HTTPClient, 8966 } 8967 for _, opt := range opts { 8968 opt(op) 8969 } 8970 8971 result, err := a.transport.Submit(op) 8972 if err != nil { 8973 return nil, err 8974 } 8975 success, ok := result.(*DcimPowerPortTemplatesCreateCreated) 8976 if ok { 8977 return success, nil 8978 } 8979 // unexpected success response 8980 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 8981 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 8982 panic(msg) 8983 } 8984 8985 /* 8986 DcimPowerPortTemplatesDelete dcim power port templates delete API 8987 */ 8988 func (a *Client) DcimPowerPortTemplatesDelete(params *DcimPowerPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesDeleteNoContent, error) { 8989 // TODO: Validate the params before sending 8990 if params == nil { 8991 params = NewDcimPowerPortTemplatesDeleteParams() 8992 } 8993 op := &runtime.ClientOperation{ 8994 ID: "dcim_power-port-templates_delete", 8995 Method: "DELETE", 8996 PathPattern: "/dcim/power-port-templates/{id}/", 8997 ProducesMediaTypes: []string{"application/json"}, 8998 ConsumesMediaTypes: []string{"application/json"}, 8999 Schemes: []string{"http"}, 9000 Params: params, 9001 Reader: &DcimPowerPortTemplatesDeleteReader{formats: a.formats}, 9002 AuthInfo: authInfo, 9003 Context: params.Context, 9004 Client: params.HTTPClient, 9005 } 9006 for _, opt := range opts { 9007 opt(op) 9008 } 9009 9010 result, err := a.transport.Submit(op) 9011 if err != nil { 9012 return nil, err 9013 } 9014 success, ok := result.(*DcimPowerPortTemplatesDeleteNoContent) 9015 if ok { 9016 return success, nil 9017 } 9018 // unexpected success response 9019 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9020 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9021 panic(msg) 9022 } 9023 9024 /* 9025 DcimPowerPortTemplatesList dcim power port templates list API 9026 */ 9027 func (a *Client) DcimPowerPortTemplatesList(params *DcimPowerPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesListOK, error) { 9028 // TODO: Validate the params before sending 9029 if params == nil { 9030 params = NewDcimPowerPortTemplatesListParams() 9031 } 9032 op := &runtime.ClientOperation{ 9033 ID: "dcim_power-port-templates_list", 9034 Method: "GET", 9035 PathPattern: "/dcim/power-port-templates/", 9036 ProducesMediaTypes: []string{"application/json"}, 9037 ConsumesMediaTypes: []string{"application/json"}, 9038 Schemes: []string{"http"}, 9039 Params: params, 9040 Reader: &DcimPowerPortTemplatesListReader{formats: a.formats}, 9041 AuthInfo: authInfo, 9042 Context: params.Context, 9043 Client: params.HTTPClient, 9044 } 9045 for _, opt := range opts { 9046 opt(op) 9047 } 9048 9049 result, err := a.transport.Submit(op) 9050 if err != nil { 9051 return nil, err 9052 } 9053 success, ok := result.(*DcimPowerPortTemplatesListOK) 9054 if ok { 9055 return success, nil 9056 } 9057 // unexpected success response 9058 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9059 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9060 panic(msg) 9061 } 9062 9063 /* 9064 DcimPowerPortTemplatesPartialUpdate dcim power port templates partial update API 9065 */ 9066 func (a *Client) DcimPowerPortTemplatesPartialUpdate(params *DcimPowerPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesPartialUpdateOK, error) { 9067 // TODO: Validate the params before sending 9068 if params == nil { 9069 params = NewDcimPowerPortTemplatesPartialUpdateParams() 9070 } 9071 op := &runtime.ClientOperation{ 9072 ID: "dcim_power-port-templates_partial_update", 9073 Method: "PATCH", 9074 PathPattern: "/dcim/power-port-templates/{id}/", 9075 ProducesMediaTypes: []string{"application/json"}, 9076 ConsumesMediaTypes: []string{"application/json"}, 9077 Schemes: []string{"http"}, 9078 Params: params, 9079 Reader: &DcimPowerPortTemplatesPartialUpdateReader{formats: a.formats}, 9080 AuthInfo: authInfo, 9081 Context: params.Context, 9082 Client: params.HTTPClient, 9083 } 9084 for _, opt := range opts { 9085 opt(op) 9086 } 9087 9088 result, err := a.transport.Submit(op) 9089 if err != nil { 9090 return nil, err 9091 } 9092 success, ok := result.(*DcimPowerPortTemplatesPartialUpdateOK) 9093 if ok { 9094 return success, nil 9095 } 9096 // unexpected success response 9097 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9098 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9099 panic(msg) 9100 } 9101 9102 /* 9103 DcimPowerPortTemplatesRead dcim power port templates read API 9104 */ 9105 func (a *Client) DcimPowerPortTemplatesRead(params *DcimPowerPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesReadOK, error) { 9106 // TODO: Validate the params before sending 9107 if params == nil { 9108 params = NewDcimPowerPortTemplatesReadParams() 9109 } 9110 op := &runtime.ClientOperation{ 9111 ID: "dcim_power-port-templates_read", 9112 Method: "GET", 9113 PathPattern: "/dcim/power-port-templates/{id}/", 9114 ProducesMediaTypes: []string{"application/json"}, 9115 ConsumesMediaTypes: []string{"application/json"}, 9116 Schemes: []string{"http"}, 9117 Params: params, 9118 Reader: &DcimPowerPortTemplatesReadReader{formats: a.formats}, 9119 AuthInfo: authInfo, 9120 Context: params.Context, 9121 Client: params.HTTPClient, 9122 } 9123 for _, opt := range opts { 9124 opt(op) 9125 } 9126 9127 result, err := a.transport.Submit(op) 9128 if err != nil { 9129 return nil, err 9130 } 9131 success, ok := result.(*DcimPowerPortTemplatesReadOK) 9132 if ok { 9133 return success, nil 9134 } 9135 // unexpected success response 9136 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9137 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9138 panic(msg) 9139 } 9140 9141 /* 9142 DcimPowerPortTemplatesUpdate dcim power port templates update API 9143 */ 9144 func (a *Client) DcimPowerPortTemplatesUpdate(params *DcimPowerPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortTemplatesUpdateOK, error) { 9145 // TODO: Validate the params before sending 9146 if params == nil { 9147 params = NewDcimPowerPortTemplatesUpdateParams() 9148 } 9149 op := &runtime.ClientOperation{ 9150 ID: "dcim_power-port-templates_update", 9151 Method: "PUT", 9152 PathPattern: "/dcim/power-port-templates/{id}/", 9153 ProducesMediaTypes: []string{"application/json"}, 9154 ConsumesMediaTypes: []string{"application/json"}, 9155 Schemes: []string{"http"}, 9156 Params: params, 9157 Reader: &DcimPowerPortTemplatesUpdateReader{formats: a.formats}, 9158 AuthInfo: authInfo, 9159 Context: params.Context, 9160 Client: params.HTTPClient, 9161 } 9162 for _, opt := range opts { 9163 opt(op) 9164 } 9165 9166 result, err := a.transport.Submit(op) 9167 if err != nil { 9168 return nil, err 9169 } 9170 success, ok := result.(*DcimPowerPortTemplatesUpdateOK) 9171 if ok { 9172 return success, nil 9173 } 9174 // unexpected success response 9175 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9176 msg := fmt.Sprintf("unexpected success response for dcim_power-port-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9177 panic(msg) 9178 } 9179 9180 /* 9181 DcimPowerPortsBulkDelete dcim power ports bulk delete API 9182 */ 9183 func (a *Client) DcimPowerPortsBulkDelete(params *DcimPowerPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsBulkDeleteNoContent, error) { 9184 // TODO: Validate the params before sending 9185 if params == nil { 9186 params = NewDcimPowerPortsBulkDeleteParams() 9187 } 9188 op := &runtime.ClientOperation{ 9189 ID: "dcim_power-ports_bulk_delete", 9190 Method: "DELETE", 9191 PathPattern: "/dcim/power-ports/", 9192 ProducesMediaTypes: []string{"application/json"}, 9193 ConsumesMediaTypes: []string{"application/json"}, 9194 Schemes: []string{"http"}, 9195 Params: params, 9196 Reader: &DcimPowerPortsBulkDeleteReader{formats: a.formats}, 9197 AuthInfo: authInfo, 9198 Context: params.Context, 9199 Client: params.HTTPClient, 9200 } 9201 for _, opt := range opts { 9202 opt(op) 9203 } 9204 9205 result, err := a.transport.Submit(op) 9206 if err != nil { 9207 return nil, err 9208 } 9209 success, ok := result.(*DcimPowerPortsBulkDeleteNoContent) 9210 if ok { 9211 return success, nil 9212 } 9213 // unexpected success response 9214 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9215 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9216 panic(msg) 9217 } 9218 9219 /* 9220 DcimPowerPortsBulkPartialUpdate dcim power ports bulk partial update API 9221 */ 9222 func (a *Client) DcimPowerPortsBulkPartialUpdate(params *DcimPowerPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsBulkPartialUpdateOK, error) { 9223 // TODO: Validate the params before sending 9224 if params == nil { 9225 params = NewDcimPowerPortsBulkPartialUpdateParams() 9226 } 9227 op := &runtime.ClientOperation{ 9228 ID: "dcim_power-ports_bulk_partial_update", 9229 Method: "PATCH", 9230 PathPattern: "/dcim/power-ports/", 9231 ProducesMediaTypes: []string{"application/json"}, 9232 ConsumesMediaTypes: []string{"application/json"}, 9233 Schemes: []string{"http"}, 9234 Params: params, 9235 Reader: &DcimPowerPortsBulkPartialUpdateReader{formats: a.formats}, 9236 AuthInfo: authInfo, 9237 Context: params.Context, 9238 Client: params.HTTPClient, 9239 } 9240 for _, opt := range opts { 9241 opt(op) 9242 } 9243 9244 result, err := a.transport.Submit(op) 9245 if err != nil { 9246 return nil, err 9247 } 9248 success, ok := result.(*DcimPowerPortsBulkPartialUpdateOK) 9249 if ok { 9250 return success, nil 9251 } 9252 // unexpected success response 9253 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9254 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9255 panic(msg) 9256 } 9257 9258 /* 9259 DcimPowerPortsBulkUpdate dcim power ports bulk update API 9260 */ 9261 func (a *Client) DcimPowerPortsBulkUpdate(params *DcimPowerPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsBulkUpdateOK, error) { 9262 // TODO: Validate the params before sending 9263 if params == nil { 9264 params = NewDcimPowerPortsBulkUpdateParams() 9265 } 9266 op := &runtime.ClientOperation{ 9267 ID: "dcim_power-ports_bulk_update", 9268 Method: "PUT", 9269 PathPattern: "/dcim/power-ports/", 9270 ProducesMediaTypes: []string{"application/json"}, 9271 ConsumesMediaTypes: []string{"application/json"}, 9272 Schemes: []string{"http"}, 9273 Params: params, 9274 Reader: &DcimPowerPortsBulkUpdateReader{formats: a.formats}, 9275 AuthInfo: authInfo, 9276 Context: params.Context, 9277 Client: params.HTTPClient, 9278 } 9279 for _, opt := range opts { 9280 opt(op) 9281 } 9282 9283 result, err := a.transport.Submit(op) 9284 if err != nil { 9285 return nil, err 9286 } 9287 success, ok := result.(*DcimPowerPortsBulkUpdateOK) 9288 if ok { 9289 return success, nil 9290 } 9291 // unexpected success response 9292 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9293 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9294 panic(msg) 9295 } 9296 9297 /* 9298 DcimPowerPortsCreate dcim power ports create API 9299 */ 9300 func (a *Client) DcimPowerPortsCreate(params *DcimPowerPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsCreateCreated, error) { 9301 // TODO: Validate the params before sending 9302 if params == nil { 9303 params = NewDcimPowerPortsCreateParams() 9304 } 9305 op := &runtime.ClientOperation{ 9306 ID: "dcim_power-ports_create", 9307 Method: "POST", 9308 PathPattern: "/dcim/power-ports/", 9309 ProducesMediaTypes: []string{"application/json"}, 9310 ConsumesMediaTypes: []string{"application/json"}, 9311 Schemes: []string{"http"}, 9312 Params: params, 9313 Reader: &DcimPowerPortsCreateReader{formats: a.formats}, 9314 AuthInfo: authInfo, 9315 Context: params.Context, 9316 Client: params.HTTPClient, 9317 } 9318 for _, opt := range opts { 9319 opt(op) 9320 } 9321 9322 result, err := a.transport.Submit(op) 9323 if err != nil { 9324 return nil, err 9325 } 9326 success, ok := result.(*DcimPowerPortsCreateCreated) 9327 if ok { 9328 return success, nil 9329 } 9330 // unexpected success response 9331 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9332 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9333 panic(msg) 9334 } 9335 9336 /* 9337 DcimPowerPortsDelete dcim power ports delete API 9338 */ 9339 func (a *Client) DcimPowerPortsDelete(params *DcimPowerPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsDeleteNoContent, error) { 9340 // TODO: Validate the params before sending 9341 if params == nil { 9342 params = NewDcimPowerPortsDeleteParams() 9343 } 9344 op := &runtime.ClientOperation{ 9345 ID: "dcim_power-ports_delete", 9346 Method: "DELETE", 9347 PathPattern: "/dcim/power-ports/{id}/", 9348 ProducesMediaTypes: []string{"application/json"}, 9349 ConsumesMediaTypes: []string{"application/json"}, 9350 Schemes: []string{"http"}, 9351 Params: params, 9352 Reader: &DcimPowerPortsDeleteReader{formats: a.formats}, 9353 AuthInfo: authInfo, 9354 Context: params.Context, 9355 Client: params.HTTPClient, 9356 } 9357 for _, opt := range opts { 9358 opt(op) 9359 } 9360 9361 result, err := a.transport.Submit(op) 9362 if err != nil { 9363 return nil, err 9364 } 9365 success, ok := result.(*DcimPowerPortsDeleteNoContent) 9366 if ok { 9367 return success, nil 9368 } 9369 // unexpected success response 9370 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9371 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9372 panic(msg) 9373 } 9374 9375 /* 9376 DcimPowerPortsList dcim power ports list API 9377 */ 9378 func (a *Client) DcimPowerPortsList(params *DcimPowerPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsListOK, error) { 9379 // TODO: Validate the params before sending 9380 if params == nil { 9381 params = NewDcimPowerPortsListParams() 9382 } 9383 op := &runtime.ClientOperation{ 9384 ID: "dcim_power-ports_list", 9385 Method: "GET", 9386 PathPattern: "/dcim/power-ports/", 9387 ProducesMediaTypes: []string{"application/json"}, 9388 ConsumesMediaTypes: []string{"application/json"}, 9389 Schemes: []string{"http"}, 9390 Params: params, 9391 Reader: &DcimPowerPortsListReader{formats: a.formats}, 9392 AuthInfo: authInfo, 9393 Context: params.Context, 9394 Client: params.HTTPClient, 9395 } 9396 for _, opt := range opts { 9397 opt(op) 9398 } 9399 9400 result, err := a.transport.Submit(op) 9401 if err != nil { 9402 return nil, err 9403 } 9404 success, ok := result.(*DcimPowerPortsListOK) 9405 if ok { 9406 return success, nil 9407 } 9408 // unexpected success response 9409 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9410 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9411 panic(msg) 9412 } 9413 9414 /* 9415 DcimPowerPortsPartialUpdate dcim power ports partial update API 9416 */ 9417 func (a *Client) DcimPowerPortsPartialUpdate(params *DcimPowerPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsPartialUpdateOK, error) { 9418 // TODO: Validate the params before sending 9419 if params == nil { 9420 params = NewDcimPowerPortsPartialUpdateParams() 9421 } 9422 op := &runtime.ClientOperation{ 9423 ID: "dcim_power-ports_partial_update", 9424 Method: "PATCH", 9425 PathPattern: "/dcim/power-ports/{id}/", 9426 ProducesMediaTypes: []string{"application/json"}, 9427 ConsumesMediaTypes: []string{"application/json"}, 9428 Schemes: []string{"http"}, 9429 Params: params, 9430 Reader: &DcimPowerPortsPartialUpdateReader{formats: a.formats}, 9431 AuthInfo: authInfo, 9432 Context: params.Context, 9433 Client: params.HTTPClient, 9434 } 9435 for _, opt := range opts { 9436 opt(op) 9437 } 9438 9439 result, err := a.transport.Submit(op) 9440 if err != nil { 9441 return nil, err 9442 } 9443 success, ok := result.(*DcimPowerPortsPartialUpdateOK) 9444 if ok { 9445 return success, nil 9446 } 9447 // unexpected success response 9448 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9449 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9450 panic(msg) 9451 } 9452 9453 /* 9454 DcimPowerPortsRead dcim power ports read API 9455 */ 9456 func (a *Client) DcimPowerPortsRead(params *DcimPowerPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsReadOK, error) { 9457 // TODO: Validate the params before sending 9458 if params == nil { 9459 params = NewDcimPowerPortsReadParams() 9460 } 9461 op := &runtime.ClientOperation{ 9462 ID: "dcim_power-ports_read", 9463 Method: "GET", 9464 PathPattern: "/dcim/power-ports/{id}/", 9465 ProducesMediaTypes: []string{"application/json"}, 9466 ConsumesMediaTypes: []string{"application/json"}, 9467 Schemes: []string{"http"}, 9468 Params: params, 9469 Reader: &DcimPowerPortsReadReader{formats: a.formats}, 9470 AuthInfo: authInfo, 9471 Context: params.Context, 9472 Client: params.HTTPClient, 9473 } 9474 for _, opt := range opts { 9475 opt(op) 9476 } 9477 9478 result, err := a.transport.Submit(op) 9479 if err != nil { 9480 return nil, err 9481 } 9482 success, ok := result.(*DcimPowerPortsReadOK) 9483 if ok { 9484 return success, nil 9485 } 9486 // unexpected success response 9487 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9488 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9489 panic(msg) 9490 } 9491 9492 /* 9493 DcimPowerPortsTrace Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). 9494 */ 9495 func (a *Client) DcimPowerPortsTrace(params *DcimPowerPortsTraceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsTraceOK, error) { 9496 // TODO: Validate the params before sending 9497 if params == nil { 9498 params = NewDcimPowerPortsTraceParams() 9499 } 9500 op := &runtime.ClientOperation{ 9501 ID: "dcim_power-ports_trace", 9502 Method: "GET", 9503 PathPattern: "/dcim/power-ports/{id}/trace/", 9504 ProducesMediaTypes: []string{"application/json"}, 9505 ConsumesMediaTypes: []string{"application/json"}, 9506 Schemes: []string{"http"}, 9507 Params: params, 9508 Reader: &DcimPowerPortsTraceReader{formats: a.formats}, 9509 AuthInfo: authInfo, 9510 Context: params.Context, 9511 Client: params.HTTPClient, 9512 } 9513 for _, opt := range opts { 9514 opt(op) 9515 } 9516 9517 result, err := a.transport.Submit(op) 9518 if err != nil { 9519 return nil, err 9520 } 9521 success, ok := result.(*DcimPowerPortsTraceOK) 9522 if ok { 9523 return success, nil 9524 } 9525 // unexpected success response 9526 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9527 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_trace: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9528 panic(msg) 9529 } 9530 9531 /* 9532 DcimPowerPortsUpdate dcim power ports update API 9533 */ 9534 func (a *Client) DcimPowerPortsUpdate(params *DcimPowerPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimPowerPortsUpdateOK, error) { 9535 // TODO: Validate the params before sending 9536 if params == nil { 9537 params = NewDcimPowerPortsUpdateParams() 9538 } 9539 op := &runtime.ClientOperation{ 9540 ID: "dcim_power-ports_update", 9541 Method: "PUT", 9542 PathPattern: "/dcim/power-ports/{id}/", 9543 ProducesMediaTypes: []string{"application/json"}, 9544 ConsumesMediaTypes: []string{"application/json"}, 9545 Schemes: []string{"http"}, 9546 Params: params, 9547 Reader: &DcimPowerPortsUpdateReader{formats: a.formats}, 9548 AuthInfo: authInfo, 9549 Context: params.Context, 9550 Client: params.HTTPClient, 9551 } 9552 for _, opt := range opts { 9553 opt(op) 9554 } 9555 9556 result, err := a.transport.Submit(op) 9557 if err != nil { 9558 return nil, err 9559 } 9560 success, ok := result.(*DcimPowerPortsUpdateOK) 9561 if ok { 9562 return success, nil 9563 } 9564 // unexpected success response 9565 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9566 msg := fmt.Sprintf("unexpected success response for dcim_power-ports_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9567 panic(msg) 9568 } 9569 9570 /* 9571 DcimRackReservationsBulkDelete dcim rack reservations bulk delete API 9572 */ 9573 func (a *Client) DcimRackReservationsBulkDelete(params *DcimRackReservationsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsBulkDeleteNoContent, error) { 9574 // TODO: Validate the params before sending 9575 if params == nil { 9576 params = NewDcimRackReservationsBulkDeleteParams() 9577 } 9578 op := &runtime.ClientOperation{ 9579 ID: "dcim_rack-reservations_bulk_delete", 9580 Method: "DELETE", 9581 PathPattern: "/dcim/rack-reservations/", 9582 ProducesMediaTypes: []string{"application/json"}, 9583 ConsumesMediaTypes: []string{"application/json"}, 9584 Schemes: []string{"http"}, 9585 Params: params, 9586 Reader: &DcimRackReservationsBulkDeleteReader{formats: a.formats}, 9587 AuthInfo: authInfo, 9588 Context: params.Context, 9589 Client: params.HTTPClient, 9590 } 9591 for _, opt := range opts { 9592 opt(op) 9593 } 9594 9595 result, err := a.transport.Submit(op) 9596 if err != nil { 9597 return nil, err 9598 } 9599 success, ok := result.(*DcimRackReservationsBulkDeleteNoContent) 9600 if ok { 9601 return success, nil 9602 } 9603 // unexpected success response 9604 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9605 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9606 panic(msg) 9607 } 9608 9609 /* 9610 DcimRackReservationsBulkPartialUpdate dcim rack reservations bulk partial update API 9611 */ 9612 func (a *Client) DcimRackReservationsBulkPartialUpdate(params *DcimRackReservationsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsBulkPartialUpdateOK, error) { 9613 // TODO: Validate the params before sending 9614 if params == nil { 9615 params = NewDcimRackReservationsBulkPartialUpdateParams() 9616 } 9617 op := &runtime.ClientOperation{ 9618 ID: "dcim_rack-reservations_bulk_partial_update", 9619 Method: "PATCH", 9620 PathPattern: "/dcim/rack-reservations/", 9621 ProducesMediaTypes: []string{"application/json"}, 9622 ConsumesMediaTypes: []string{"application/json"}, 9623 Schemes: []string{"http"}, 9624 Params: params, 9625 Reader: &DcimRackReservationsBulkPartialUpdateReader{formats: a.formats}, 9626 AuthInfo: authInfo, 9627 Context: params.Context, 9628 Client: params.HTTPClient, 9629 } 9630 for _, opt := range opts { 9631 opt(op) 9632 } 9633 9634 result, err := a.transport.Submit(op) 9635 if err != nil { 9636 return nil, err 9637 } 9638 success, ok := result.(*DcimRackReservationsBulkPartialUpdateOK) 9639 if ok { 9640 return success, nil 9641 } 9642 // unexpected success response 9643 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9644 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9645 panic(msg) 9646 } 9647 9648 /* 9649 DcimRackReservationsBulkUpdate dcim rack reservations bulk update API 9650 */ 9651 func (a *Client) DcimRackReservationsBulkUpdate(params *DcimRackReservationsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsBulkUpdateOK, error) { 9652 // TODO: Validate the params before sending 9653 if params == nil { 9654 params = NewDcimRackReservationsBulkUpdateParams() 9655 } 9656 op := &runtime.ClientOperation{ 9657 ID: "dcim_rack-reservations_bulk_update", 9658 Method: "PUT", 9659 PathPattern: "/dcim/rack-reservations/", 9660 ProducesMediaTypes: []string{"application/json"}, 9661 ConsumesMediaTypes: []string{"application/json"}, 9662 Schemes: []string{"http"}, 9663 Params: params, 9664 Reader: &DcimRackReservationsBulkUpdateReader{formats: a.formats}, 9665 AuthInfo: authInfo, 9666 Context: params.Context, 9667 Client: params.HTTPClient, 9668 } 9669 for _, opt := range opts { 9670 opt(op) 9671 } 9672 9673 result, err := a.transport.Submit(op) 9674 if err != nil { 9675 return nil, err 9676 } 9677 success, ok := result.(*DcimRackReservationsBulkUpdateOK) 9678 if ok { 9679 return success, nil 9680 } 9681 // unexpected success response 9682 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9683 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9684 panic(msg) 9685 } 9686 9687 /* 9688 DcimRackReservationsCreate dcim rack reservations create API 9689 */ 9690 func (a *Client) DcimRackReservationsCreate(params *DcimRackReservationsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsCreateCreated, error) { 9691 // TODO: Validate the params before sending 9692 if params == nil { 9693 params = NewDcimRackReservationsCreateParams() 9694 } 9695 op := &runtime.ClientOperation{ 9696 ID: "dcim_rack-reservations_create", 9697 Method: "POST", 9698 PathPattern: "/dcim/rack-reservations/", 9699 ProducesMediaTypes: []string{"application/json"}, 9700 ConsumesMediaTypes: []string{"application/json"}, 9701 Schemes: []string{"http"}, 9702 Params: params, 9703 Reader: &DcimRackReservationsCreateReader{formats: a.formats}, 9704 AuthInfo: authInfo, 9705 Context: params.Context, 9706 Client: params.HTTPClient, 9707 } 9708 for _, opt := range opts { 9709 opt(op) 9710 } 9711 9712 result, err := a.transport.Submit(op) 9713 if err != nil { 9714 return nil, err 9715 } 9716 success, ok := result.(*DcimRackReservationsCreateCreated) 9717 if ok { 9718 return success, nil 9719 } 9720 // unexpected success response 9721 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9722 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9723 panic(msg) 9724 } 9725 9726 /* 9727 DcimRackReservationsDelete dcim rack reservations delete API 9728 */ 9729 func (a *Client) DcimRackReservationsDelete(params *DcimRackReservationsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsDeleteNoContent, error) { 9730 // TODO: Validate the params before sending 9731 if params == nil { 9732 params = NewDcimRackReservationsDeleteParams() 9733 } 9734 op := &runtime.ClientOperation{ 9735 ID: "dcim_rack-reservations_delete", 9736 Method: "DELETE", 9737 PathPattern: "/dcim/rack-reservations/{id}/", 9738 ProducesMediaTypes: []string{"application/json"}, 9739 ConsumesMediaTypes: []string{"application/json"}, 9740 Schemes: []string{"http"}, 9741 Params: params, 9742 Reader: &DcimRackReservationsDeleteReader{formats: a.formats}, 9743 AuthInfo: authInfo, 9744 Context: params.Context, 9745 Client: params.HTTPClient, 9746 } 9747 for _, opt := range opts { 9748 opt(op) 9749 } 9750 9751 result, err := a.transport.Submit(op) 9752 if err != nil { 9753 return nil, err 9754 } 9755 success, ok := result.(*DcimRackReservationsDeleteNoContent) 9756 if ok { 9757 return success, nil 9758 } 9759 // unexpected success response 9760 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9761 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9762 panic(msg) 9763 } 9764 9765 /* 9766 DcimRackReservationsList dcim rack reservations list API 9767 */ 9768 func (a *Client) DcimRackReservationsList(params *DcimRackReservationsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsListOK, error) { 9769 // TODO: Validate the params before sending 9770 if params == nil { 9771 params = NewDcimRackReservationsListParams() 9772 } 9773 op := &runtime.ClientOperation{ 9774 ID: "dcim_rack-reservations_list", 9775 Method: "GET", 9776 PathPattern: "/dcim/rack-reservations/", 9777 ProducesMediaTypes: []string{"application/json"}, 9778 ConsumesMediaTypes: []string{"application/json"}, 9779 Schemes: []string{"http"}, 9780 Params: params, 9781 Reader: &DcimRackReservationsListReader{formats: a.formats}, 9782 AuthInfo: authInfo, 9783 Context: params.Context, 9784 Client: params.HTTPClient, 9785 } 9786 for _, opt := range opts { 9787 opt(op) 9788 } 9789 9790 result, err := a.transport.Submit(op) 9791 if err != nil { 9792 return nil, err 9793 } 9794 success, ok := result.(*DcimRackReservationsListOK) 9795 if ok { 9796 return success, nil 9797 } 9798 // unexpected success response 9799 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9800 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9801 panic(msg) 9802 } 9803 9804 /* 9805 DcimRackReservationsPartialUpdate dcim rack reservations partial update API 9806 */ 9807 func (a *Client) DcimRackReservationsPartialUpdate(params *DcimRackReservationsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsPartialUpdateOK, error) { 9808 // TODO: Validate the params before sending 9809 if params == nil { 9810 params = NewDcimRackReservationsPartialUpdateParams() 9811 } 9812 op := &runtime.ClientOperation{ 9813 ID: "dcim_rack-reservations_partial_update", 9814 Method: "PATCH", 9815 PathPattern: "/dcim/rack-reservations/{id}/", 9816 ProducesMediaTypes: []string{"application/json"}, 9817 ConsumesMediaTypes: []string{"application/json"}, 9818 Schemes: []string{"http"}, 9819 Params: params, 9820 Reader: &DcimRackReservationsPartialUpdateReader{formats: a.formats}, 9821 AuthInfo: authInfo, 9822 Context: params.Context, 9823 Client: params.HTTPClient, 9824 } 9825 for _, opt := range opts { 9826 opt(op) 9827 } 9828 9829 result, err := a.transport.Submit(op) 9830 if err != nil { 9831 return nil, err 9832 } 9833 success, ok := result.(*DcimRackReservationsPartialUpdateOK) 9834 if ok { 9835 return success, nil 9836 } 9837 // unexpected success response 9838 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9839 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9840 panic(msg) 9841 } 9842 9843 /* 9844 DcimRackReservationsRead dcim rack reservations read API 9845 */ 9846 func (a *Client) DcimRackReservationsRead(params *DcimRackReservationsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsReadOK, error) { 9847 // TODO: Validate the params before sending 9848 if params == nil { 9849 params = NewDcimRackReservationsReadParams() 9850 } 9851 op := &runtime.ClientOperation{ 9852 ID: "dcim_rack-reservations_read", 9853 Method: "GET", 9854 PathPattern: "/dcim/rack-reservations/{id}/", 9855 ProducesMediaTypes: []string{"application/json"}, 9856 ConsumesMediaTypes: []string{"application/json"}, 9857 Schemes: []string{"http"}, 9858 Params: params, 9859 Reader: &DcimRackReservationsReadReader{formats: a.formats}, 9860 AuthInfo: authInfo, 9861 Context: params.Context, 9862 Client: params.HTTPClient, 9863 } 9864 for _, opt := range opts { 9865 opt(op) 9866 } 9867 9868 result, err := a.transport.Submit(op) 9869 if err != nil { 9870 return nil, err 9871 } 9872 success, ok := result.(*DcimRackReservationsReadOK) 9873 if ok { 9874 return success, nil 9875 } 9876 // unexpected success response 9877 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9878 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9879 panic(msg) 9880 } 9881 9882 /* 9883 DcimRackReservationsUpdate dcim rack reservations update API 9884 */ 9885 func (a *Client) DcimRackReservationsUpdate(params *DcimRackReservationsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackReservationsUpdateOK, error) { 9886 // TODO: Validate the params before sending 9887 if params == nil { 9888 params = NewDcimRackReservationsUpdateParams() 9889 } 9890 op := &runtime.ClientOperation{ 9891 ID: "dcim_rack-reservations_update", 9892 Method: "PUT", 9893 PathPattern: "/dcim/rack-reservations/{id}/", 9894 ProducesMediaTypes: []string{"application/json"}, 9895 ConsumesMediaTypes: []string{"application/json"}, 9896 Schemes: []string{"http"}, 9897 Params: params, 9898 Reader: &DcimRackReservationsUpdateReader{formats: a.formats}, 9899 AuthInfo: authInfo, 9900 Context: params.Context, 9901 Client: params.HTTPClient, 9902 } 9903 for _, opt := range opts { 9904 opt(op) 9905 } 9906 9907 result, err := a.transport.Submit(op) 9908 if err != nil { 9909 return nil, err 9910 } 9911 success, ok := result.(*DcimRackReservationsUpdateOK) 9912 if ok { 9913 return success, nil 9914 } 9915 // unexpected success response 9916 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9917 msg := fmt.Sprintf("unexpected success response for dcim_rack-reservations_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9918 panic(msg) 9919 } 9920 9921 /* 9922 DcimRackRolesBulkDelete dcim rack roles bulk delete API 9923 */ 9924 func (a *Client) DcimRackRolesBulkDelete(params *DcimRackRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesBulkDeleteNoContent, error) { 9925 // TODO: Validate the params before sending 9926 if params == nil { 9927 params = NewDcimRackRolesBulkDeleteParams() 9928 } 9929 op := &runtime.ClientOperation{ 9930 ID: "dcim_rack-roles_bulk_delete", 9931 Method: "DELETE", 9932 PathPattern: "/dcim/rack-roles/", 9933 ProducesMediaTypes: []string{"application/json"}, 9934 ConsumesMediaTypes: []string{"application/json"}, 9935 Schemes: []string{"http"}, 9936 Params: params, 9937 Reader: &DcimRackRolesBulkDeleteReader{formats: a.formats}, 9938 AuthInfo: authInfo, 9939 Context: params.Context, 9940 Client: params.HTTPClient, 9941 } 9942 for _, opt := range opts { 9943 opt(op) 9944 } 9945 9946 result, err := a.transport.Submit(op) 9947 if err != nil { 9948 return nil, err 9949 } 9950 success, ok := result.(*DcimRackRolesBulkDeleteNoContent) 9951 if ok { 9952 return success, nil 9953 } 9954 // unexpected success response 9955 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9956 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9957 panic(msg) 9958 } 9959 9960 /* 9961 DcimRackRolesBulkPartialUpdate dcim rack roles bulk partial update API 9962 */ 9963 func (a *Client) DcimRackRolesBulkPartialUpdate(params *DcimRackRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesBulkPartialUpdateOK, error) { 9964 // TODO: Validate the params before sending 9965 if params == nil { 9966 params = NewDcimRackRolesBulkPartialUpdateParams() 9967 } 9968 op := &runtime.ClientOperation{ 9969 ID: "dcim_rack-roles_bulk_partial_update", 9970 Method: "PATCH", 9971 PathPattern: "/dcim/rack-roles/", 9972 ProducesMediaTypes: []string{"application/json"}, 9973 ConsumesMediaTypes: []string{"application/json"}, 9974 Schemes: []string{"http"}, 9975 Params: params, 9976 Reader: &DcimRackRolesBulkPartialUpdateReader{formats: a.formats}, 9977 AuthInfo: authInfo, 9978 Context: params.Context, 9979 Client: params.HTTPClient, 9980 } 9981 for _, opt := range opts { 9982 opt(op) 9983 } 9984 9985 result, err := a.transport.Submit(op) 9986 if err != nil { 9987 return nil, err 9988 } 9989 success, ok := result.(*DcimRackRolesBulkPartialUpdateOK) 9990 if ok { 9991 return success, nil 9992 } 9993 // unexpected success response 9994 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 9995 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 9996 panic(msg) 9997 } 9998 9999 /* 10000 DcimRackRolesBulkUpdate dcim rack roles bulk update API 10001 */ 10002 func (a *Client) DcimRackRolesBulkUpdate(params *DcimRackRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesBulkUpdateOK, error) { 10003 // TODO: Validate the params before sending 10004 if params == nil { 10005 params = NewDcimRackRolesBulkUpdateParams() 10006 } 10007 op := &runtime.ClientOperation{ 10008 ID: "dcim_rack-roles_bulk_update", 10009 Method: "PUT", 10010 PathPattern: "/dcim/rack-roles/", 10011 ProducesMediaTypes: []string{"application/json"}, 10012 ConsumesMediaTypes: []string{"application/json"}, 10013 Schemes: []string{"http"}, 10014 Params: params, 10015 Reader: &DcimRackRolesBulkUpdateReader{formats: a.formats}, 10016 AuthInfo: authInfo, 10017 Context: params.Context, 10018 Client: params.HTTPClient, 10019 } 10020 for _, opt := range opts { 10021 opt(op) 10022 } 10023 10024 result, err := a.transport.Submit(op) 10025 if err != nil { 10026 return nil, err 10027 } 10028 success, ok := result.(*DcimRackRolesBulkUpdateOK) 10029 if ok { 10030 return success, nil 10031 } 10032 // unexpected success response 10033 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10034 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10035 panic(msg) 10036 } 10037 10038 /* 10039 DcimRackRolesCreate dcim rack roles create API 10040 */ 10041 func (a *Client) DcimRackRolesCreate(params *DcimRackRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesCreateCreated, error) { 10042 // TODO: Validate the params before sending 10043 if params == nil { 10044 params = NewDcimRackRolesCreateParams() 10045 } 10046 op := &runtime.ClientOperation{ 10047 ID: "dcim_rack-roles_create", 10048 Method: "POST", 10049 PathPattern: "/dcim/rack-roles/", 10050 ProducesMediaTypes: []string{"application/json"}, 10051 ConsumesMediaTypes: []string{"application/json"}, 10052 Schemes: []string{"http"}, 10053 Params: params, 10054 Reader: &DcimRackRolesCreateReader{formats: a.formats}, 10055 AuthInfo: authInfo, 10056 Context: params.Context, 10057 Client: params.HTTPClient, 10058 } 10059 for _, opt := range opts { 10060 opt(op) 10061 } 10062 10063 result, err := a.transport.Submit(op) 10064 if err != nil { 10065 return nil, err 10066 } 10067 success, ok := result.(*DcimRackRolesCreateCreated) 10068 if ok { 10069 return success, nil 10070 } 10071 // unexpected success response 10072 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10073 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10074 panic(msg) 10075 } 10076 10077 /* 10078 DcimRackRolesDelete dcim rack roles delete API 10079 */ 10080 func (a *Client) DcimRackRolesDelete(params *DcimRackRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesDeleteNoContent, error) { 10081 // TODO: Validate the params before sending 10082 if params == nil { 10083 params = NewDcimRackRolesDeleteParams() 10084 } 10085 op := &runtime.ClientOperation{ 10086 ID: "dcim_rack-roles_delete", 10087 Method: "DELETE", 10088 PathPattern: "/dcim/rack-roles/{id}/", 10089 ProducesMediaTypes: []string{"application/json"}, 10090 ConsumesMediaTypes: []string{"application/json"}, 10091 Schemes: []string{"http"}, 10092 Params: params, 10093 Reader: &DcimRackRolesDeleteReader{formats: a.formats}, 10094 AuthInfo: authInfo, 10095 Context: params.Context, 10096 Client: params.HTTPClient, 10097 } 10098 for _, opt := range opts { 10099 opt(op) 10100 } 10101 10102 result, err := a.transport.Submit(op) 10103 if err != nil { 10104 return nil, err 10105 } 10106 success, ok := result.(*DcimRackRolesDeleteNoContent) 10107 if ok { 10108 return success, nil 10109 } 10110 // unexpected success response 10111 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10112 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10113 panic(msg) 10114 } 10115 10116 /* 10117 DcimRackRolesList dcim rack roles list API 10118 */ 10119 func (a *Client) DcimRackRolesList(params *DcimRackRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesListOK, error) { 10120 // TODO: Validate the params before sending 10121 if params == nil { 10122 params = NewDcimRackRolesListParams() 10123 } 10124 op := &runtime.ClientOperation{ 10125 ID: "dcim_rack-roles_list", 10126 Method: "GET", 10127 PathPattern: "/dcim/rack-roles/", 10128 ProducesMediaTypes: []string{"application/json"}, 10129 ConsumesMediaTypes: []string{"application/json"}, 10130 Schemes: []string{"http"}, 10131 Params: params, 10132 Reader: &DcimRackRolesListReader{formats: a.formats}, 10133 AuthInfo: authInfo, 10134 Context: params.Context, 10135 Client: params.HTTPClient, 10136 } 10137 for _, opt := range opts { 10138 opt(op) 10139 } 10140 10141 result, err := a.transport.Submit(op) 10142 if err != nil { 10143 return nil, err 10144 } 10145 success, ok := result.(*DcimRackRolesListOK) 10146 if ok { 10147 return success, nil 10148 } 10149 // unexpected success response 10150 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10151 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10152 panic(msg) 10153 } 10154 10155 /* 10156 DcimRackRolesPartialUpdate dcim rack roles partial update API 10157 */ 10158 func (a *Client) DcimRackRolesPartialUpdate(params *DcimRackRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesPartialUpdateOK, error) { 10159 // TODO: Validate the params before sending 10160 if params == nil { 10161 params = NewDcimRackRolesPartialUpdateParams() 10162 } 10163 op := &runtime.ClientOperation{ 10164 ID: "dcim_rack-roles_partial_update", 10165 Method: "PATCH", 10166 PathPattern: "/dcim/rack-roles/{id}/", 10167 ProducesMediaTypes: []string{"application/json"}, 10168 ConsumesMediaTypes: []string{"application/json"}, 10169 Schemes: []string{"http"}, 10170 Params: params, 10171 Reader: &DcimRackRolesPartialUpdateReader{formats: a.formats}, 10172 AuthInfo: authInfo, 10173 Context: params.Context, 10174 Client: params.HTTPClient, 10175 } 10176 for _, opt := range opts { 10177 opt(op) 10178 } 10179 10180 result, err := a.transport.Submit(op) 10181 if err != nil { 10182 return nil, err 10183 } 10184 success, ok := result.(*DcimRackRolesPartialUpdateOK) 10185 if ok { 10186 return success, nil 10187 } 10188 // unexpected success response 10189 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10190 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10191 panic(msg) 10192 } 10193 10194 /* 10195 DcimRackRolesRead dcim rack roles read API 10196 */ 10197 func (a *Client) DcimRackRolesRead(params *DcimRackRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesReadOK, error) { 10198 // TODO: Validate the params before sending 10199 if params == nil { 10200 params = NewDcimRackRolesReadParams() 10201 } 10202 op := &runtime.ClientOperation{ 10203 ID: "dcim_rack-roles_read", 10204 Method: "GET", 10205 PathPattern: "/dcim/rack-roles/{id}/", 10206 ProducesMediaTypes: []string{"application/json"}, 10207 ConsumesMediaTypes: []string{"application/json"}, 10208 Schemes: []string{"http"}, 10209 Params: params, 10210 Reader: &DcimRackRolesReadReader{formats: a.formats}, 10211 AuthInfo: authInfo, 10212 Context: params.Context, 10213 Client: params.HTTPClient, 10214 } 10215 for _, opt := range opts { 10216 opt(op) 10217 } 10218 10219 result, err := a.transport.Submit(op) 10220 if err != nil { 10221 return nil, err 10222 } 10223 success, ok := result.(*DcimRackRolesReadOK) 10224 if ok { 10225 return success, nil 10226 } 10227 // unexpected success response 10228 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10229 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10230 panic(msg) 10231 } 10232 10233 /* 10234 DcimRackRolesUpdate dcim rack roles update API 10235 */ 10236 func (a *Client) DcimRackRolesUpdate(params *DcimRackRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRackRolesUpdateOK, error) { 10237 // TODO: Validate the params before sending 10238 if params == nil { 10239 params = NewDcimRackRolesUpdateParams() 10240 } 10241 op := &runtime.ClientOperation{ 10242 ID: "dcim_rack-roles_update", 10243 Method: "PUT", 10244 PathPattern: "/dcim/rack-roles/{id}/", 10245 ProducesMediaTypes: []string{"application/json"}, 10246 ConsumesMediaTypes: []string{"application/json"}, 10247 Schemes: []string{"http"}, 10248 Params: params, 10249 Reader: &DcimRackRolesUpdateReader{formats: a.formats}, 10250 AuthInfo: authInfo, 10251 Context: params.Context, 10252 Client: params.HTTPClient, 10253 } 10254 for _, opt := range opts { 10255 opt(op) 10256 } 10257 10258 result, err := a.transport.Submit(op) 10259 if err != nil { 10260 return nil, err 10261 } 10262 success, ok := result.(*DcimRackRolesUpdateOK) 10263 if ok { 10264 return success, nil 10265 } 10266 // unexpected success response 10267 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10268 msg := fmt.Sprintf("unexpected success response for dcim_rack-roles_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10269 panic(msg) 10270 } 10271 10272 /* 10273 DcimRacksBulkDelete dcim racks bulk delete API 10274 */ 10275 func (a *Client) DcimRacksBulkDelete(params *DcimRacksBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksBulkDeleteNoContent, error) { 10276 // TODO: Validate the params before sending 10277 if params == nil { 10278 params = NewDcimRacksBulkDeleteParams() 10279 } 10280 op := &runtime.ClientOperation{ 10281 ID: "dcim_racks_bulk_delete", 10282 Method: "DELETE", 10283 PathPattern: "/dcim/racks/", 10284 ProducesMediaTypes: []string{"application/json"}, 10285 ConsumesMediaTypes: []string{"application/json"}, 10286 Schemes: []string{"http"}, 10287 Params: params, 10288 Reader: &DcimRacksBulkDeleteReader{formats: a.formats}, 10289 AuthInfo: authInfo, 10290 Context: params.Context, 10291 Client: params.HTTPClient, 10292 } 10293 for _, opt := range opts { 10294 opt(op) 10295 } 10296 10297 result, err := a.transport.Submit(op) 10298 if err != nil { 10299 return nil, err 10300 } 10301 success, ok := result.(*DcimRacksBulkDeleteNoContent) 10302 if ok { 10303 return success, nil 10304 } 10305 // unexpected success response 10306 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10307 msg := fmt.Sprintf("unexpected success response for dcim_racks_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10308 panic(msg) 10309 } 10310 10311 /* 10312 DcimRacksBulkPartialUpdate dcim racks bulk partial update API 10313 */ 10314 func (a *Client) DcimRacksBulkPartialUpdate(params *DcimRacksBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksBulkPartialUpdateOK, error) { 10315 // TODO: Validate the params before sending 10316 if params == nil { 10317 params = NewDcimRacksBulkPartialUpdateParams() 10318 } 10319 op := &runtime.ClientOperation{ 10320 ID: "dcim_racks_bulk_partial_update", 10321 Method: "PATCH", 10322 PathPattern: "/dcim/racks/", 10323 ProducesMediaTypes: []string{"application/json"}, 10324 ConsumesMediaTypes: []string{"application/json"}, 10325 Schemes: []string{"http"}, 10326 Params: params, 10327 Reader: &DcimRacksBulkPartialUpdateReader{formats: a.formats}, 10328 AuthInfo: authInfo, 10329 Context: params.Context, 10330 Client: params.HTTPClient, 10331 } 10332 for _, opt := range opts { 10333 opt(op) 10334 } 10335 10336 result, err := a.transport.Submit(op) 10337 if err != nil { 10338 return nil, err 10339 } 10340 success, ok := result.(*DcimRacksBulkPartialUpdateOK) 10341 if ok { 10342 return success, nil 10343 } 10344 // unexpected success response 10345 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10346 msg := fmt.Sprintf("unexpected success response for dcim_racks_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10347 panic(msg) 10348 } 10349 10350 /* 10351 DcimRacksBulkUpdate dcim racks bulk update API 10352 */ 10353 func (a *Client) DcimRacksBulkUpdate(params *DcimRacksBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksBulkUpdateOK, error) { 10354 // TODO: Validate the params before sending 10355 if params == nil { 10356 params = NewDcimRacksBulkUpdateParams() 10357 } 10358 op := &runtime.ClientOperation{ 10359 ID: "dcim_racks_bulk_update", 10360 Method: "PUT", 10361 PathPattern: "/dcim/racks/", 10362 ProducesMediaTypes: []string{"application/json"}, 10363 ConsumesMediaTypes: []string{"application/json"}, 10364 Schemes: []string{"http"}, 10365 Params: params, 10366 Reader: &DcimRacksBulkUpdateReader{formats: a.formats}, 10367 AuthInfo: authInfo, 10368 Context: params.Context, 10369 Client: params.HTTPClient, 10370 } 10371 for _, opt := range opts { 10372 opt(op) 10373 } 10374 10375 result, err := a.transport.Submit(op) 10376 if err != nil { 10377 return nil, err 10378 } 10379 success, ok := result.(*DcimRacksBulkUpdateOK) 10380 if ok { 10381 return success, nil 10382 } 10383 // unexpected success response 10384 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10385 msg := fmt.Sprintf("unexpected success response for dcim_racks_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10386 panic(msg) 10387 } 10388 10389 /* 10390 DcimRacksCreate dcim racks create API 10391 */ 10392 func (a *Client) DcimRacksCreate(params *DcimRacksCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksCreateCreated, error) { 10393 // TODO: Validate the params before sending 10394 if params == nil { 10395 params = NewDcimRacksCreateParams() 10396 } 10397 op := &runtime.ClientOperation{ 10398 ID: "dcim_racks_create", 10399 Method: "POST", 10400 PathPattern: "/dcim/racks/", 10401 ProducesMediaTypes: []string{"application/json"}, 10402 ConsumesMediaTypes: []string{"application/json"}, 10403 Schemes: []string{"http"}, 10404 Params: params, 10405 Reader: &DcimRacksCreateReader{formats: a.formats}, 10406 AuthInfo: authInfo, 10407 Context: params.Context, 10408 Client: params.HTTPClient, 10409 } 10410 for _, opt := range opts { 10411 opt(op) 10412 } 10413 10414 result, err := a.transport.Submit(op) 10415 if err != nil { 10416 return nil, err 10417 } 10418 success, ok := result.(*DcimRacksCreateCreated) 10419 if ok { 10420 return success, nil 10421 } 10422 // unexpected success response 10423 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10424 msg := fmt.Sprintf("unexpected success response for dcim_racks_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10425 panic(msg) 10426 } 10427 10428 /* 10429 DcimRacksDelete dcim racks delete API 10430 */ 10431 func (a *Client) DcimRacksDelete(params *DcimRacksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksDeleteNoContent, error) { 10432 // TODO: Validate the params before sending 10433 if params == nil { 10434 params = NewDcimRacksDeleteParams() 10435 } 10436 op := &runtime.ClientOperation{ 10437 ID: "dcim_racks_delete", 10438 Method: "DELETE", 10439 PathPattern: "/dcim/racks/{id}/", 10440 ProducesMediaTypes: []string{"application/json"}, 10441 ConsumesMediaTypes: []string{"application/json"}, 10442 Schemes: []string{"http"}, 10443 Params: params, 10444 Reader: &DcimRacksDeleteReader{formats: a.formats}, 10445 AuthInfo: authInfo, 10446 Context: params.Context, 10447 Client: params.HTTPClient, 10448 } 10449 for _, opt := range opts { 10450 opt(op) 10451 } 10452 10453 result, err := a.transport.Submit(op) 10454 if err != nil { 10455 return nil, err 10456 } 10457 success, ok := result.(*DcimRacksDeleteNoContent) 10458 if ok { 10459 return success, nil 10460 } 10461 // unexpected success response 10462 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10463 msg := fmt.Sprintf("unexpected success response for dcim_racks_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10464 panic(msg) 10465 } 10466 10467 /* 10468 DcimRacksElevation Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG. 10469 */ 10470 func (a *Client) DcimRacksElevation(params *DcimRacksElevationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksElevationOK, error) { 10471 // TODO: Validate the params before sending 10472 if params == nil { 10473 params = NewDcimRacksElevationParams() 10474 } 10475 op := &runtime.ClientOperation{ 10476 ID: "dcim_racks_elevation", 10477 Method: "GET", 10478 PathPattern: "/dcim/racks/{id}/elevation/", 10479 ProducesMediaTypes: []string{"application/json"}, 10480 ConsumesMediaTypes: []string{"application/json"}, 10481 Schemes: []string{"http"}, 10482 Params: params, 10483 Reader: &DcimRacksElevationReader{formats: a.formats}, 10484 AuthInfo: authInfo, 10485 Context: params.Context, 10486 Client: params.HTTPClient, 10487 } 10488 for _, opt := range opts { 10489 opt(op) 10490 } 10491 10492 result, err := a.transport.Submit(op) 10493 if err != nil { 10494 return nil, err 10495 } 10496 success, ok := result.(*DcimRacksElevationOK) 10497 if ok { 10498 return success, nil 10499 } 10500 // unexpected success response 10501 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10502 msg := fmt.Sprintf("unexpected success response for dcim_racks_elevation: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10503 panic(msg) 10504 } 10505 10506 /* 10507 DcimRacksList dcim racks list API 10508 */ 10509 func (a *Client) DcimRacksList(params *DcimRacksListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksListOK, error) { 10510 // TODO: Validate the params before sending 10511 if params == nil { 10512 params = NewDcimRacksListParams() 10513 } 10514 op := &runtime.ClientOperation{ 10515 ID: "dcim_racks_list", 10516 Method: "GET", 10517 PathPattern: "/dcim/racks/", 10518 ProducesMediaTypes: []string{"application/json"}, 10519 ConsumesMediaTypes: []string{"application/json"}, 10520 Schemes: []string{"http"}, 10521 Params: params, 10522 Reader: &DcimRacksListReader{formats: a.formats}, 10523 AuthInfo: authInfo, 10524 Context: params.Context, 10525 Client: params.HTTPClient, 10526 } 10527 for _, opt := range opts { 10528 opt(op) 10529 } 10530 10531 result, err := a.transport.Submit(op) 10532 if err != nil { 10533 return nil, err 10534 } 10535 success, ok := result.(*DcimRacksListOK) 10536 if ok { 10537 return success, nil 10538 } 10539 // unexpected success response 10540 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10541 msg := fmt.Sprintf("unexpected success response for dcim_racks_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10542 panic(msg) 10543 } 10544 10545 /* 10546 DcimRacksPartialUpdate dcim racks partial update API 10547 */ 10548 func (a *Client) DcimRacksPartialUpdate(params *DcimRacksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksPartialUpdateOK, error) { 10549 // TODO: Validate the params before sending 10550 if params == nil { 10551 params = NewDcimRacksPartialUpdateParams() 10552 } 10553 op := &runtime.ClientOperation{ 10554 ID: "dcim_racks_partial_update", 10555 Method: "PATCH", 10556 PathPattern: "/dcim/racks/{id}/", 10557 ProducesMediaTypes: []string{"application/json"}, 10558 ConsumesMediaTypes: []string{"application/json"}, 10559 Schemes: []string{"http"}, 10560 Params: params, 10561 Reader: &DcimRacksPartialUpdateReader{formats: a.formats}, 10562 AuthInfo: authInfo, 10563 Context: params.Context, 10564 Client: params.HTTPClient, 10565 } 10566 for _, opt := range opts { 10567 opt(op) 10568 } 10569 10570 result, err := a.transport.Submit(op) 10571 if err != nil { 10572 return nil, err 10573 } 10574 success, ok := result.(*DcimRacksPartialUpdateOK) 10575 if ok { 10576 return success, nil 10577 } 10578 // unexpected success response 10579 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10580 msg := fmt.Sprintf("unexpected success response for dcim_racks_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10581 panic(msg) 10582 } 10583 10584 /* 10585 DcimRacksRead dcim racks read API 10586 */ 10587 func (a *Client) DcimRacksRead(params *DcimRacksReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksReadOK, error) { 10588 // TODO: Validate the params before sending 10589 if params == nil { 10590 params = NewDcimRacksReadParams() 10591 } 10592 op := &runtime.ClientOperation{ 10593 ID: "dcim_racks_read", 10594 Method: "GET", 10595 PathPattern: "/dcim/racks/{id}/", 10596 ProducesMediaTypes: []string{"application/json"}, 10597 ConsumesMediaTypes: []string{"application/json"}, 10598 Schemes: []string{"http"}, 10599 Params: params, 10600 Reader: &DcimRacksReadReader{formats: a.formats}, 10601 AuthInfo: authInfo, 10602 Context: params.Context, 10603 Client: params.HTTPClient, 10604 } 10605 for _, opt := range opts { 10606 opt(op) 10607 } 10608 10609 result, err := a.transport.Submit(op) 10610 if err != nil { 10611 return nil, err 10612 } 10613 success, ok := result.(*DcimRacksReadOK) 10614 if ok { 10615 return success, nil 10616 } 10617 // unexpected success response 10618 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10619 msg := fmt.Sprintf("unexpected success response for dcim_racks_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10620 panic(msg) 10621 } 10622 10623 /* 10624 DcimRacksUpdate dcim racks update API 10625 */ 10626 func (a *Client) DcimRacksUpdate(params *DcimRacksUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRacksUpdateOK, error) { 10627 // TODO: Validate the params before sending 10628 if params == nil { 10629 params = NewDcimRacksUpdateParams() 10630 } 10631 op := &runtime.ClientOperation{ 10632 ID: "dcim_racks_update", 10633 Method: "PUT", 10634 PathPattern: "/dcim/racks/{id}/", 10635 ProducesMediaTypes: []string{"application/json"}, 10636 ConsumesMediaTypes: []string{"application/json"}, 10637 Schemes: []string{"http"}, 10638 Params: params, 10639 Reader: &DcimRacksUpdateReader{formats: a.formats}, 10640 AuthInfo: authInfo, 10641 Context: params.Context, 10642 Client: params.HTTPClient, 10643 } 10644 for _, opt := range opts { 10645 opt(op) 10646 } 10647 10648 result, err := a.transport.Submit(op) 10649 if err != nil { 10650 return nil, err 10651 } 10652 success, ok := result.(*DcimRacksUpdateOK) 10653 if ok { 10654 return success, nil 10655 } 10656 // unexpected success response 10657 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10658 msg := fmt.Sprintf("unexpected success response for dcim_racks_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10659 panic(msg) 10660 } 10661 10662 /* 10663 DcimRearPortTemplatesBulkDelete dcim rear port templates bulk delete API 10664 */ 10665 func (a *Client) DcimRearPortTemplatesBulkDelete(params *DcimRearPortTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesBulkDeleteNoContent, error) { 10666 // TODO: Validate the params before sending 10667 if params == nil { 10668 params = NewDcimRearPortTemplatesBulkDeleteParams() 10669 } 10670 op := &runtime.ClientOperation{ 10671 ID: "dcim_rear-port-templates_bulk_delete", 10672 Method: "DELETE", 10673 PathPattern: "/dcim/rear-port-templates/", 10674 ProducesMediaTypes: []string{"application/json"}, 10675 ConsumesMediaTypes: []string{"application/json"}, 10676 Schemes: []string{"http"}, 10677 Params: params, 10678 Reader: &DcimRearPortTemplatesBulkDeleteReader{formats: a.formats}, 10679 AuthInfo: authInfo, 10680 Context: params.Context, 10681 Client: params.HTTPClient, 10682 } 10683 for _, opt := range opts { 10684 opt(op) 10685 } 10686 10687 result, err := a.transport.Submit(op) 10688 if err != nil { 10689 return nil, err 10690 } 10691 success, ok := result.(*DcimRearPortTemplatesBulkDeleteNoContent) 10692 if ok { 10693 return success, nil 10694 } 10695 // unexpected success response 10696 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10697 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10698 panic(msg) 10699 } 10700 10701 /* 10702 DcimRearPortTemplatesBulkPartialUpdate dcim rear port templates bulk partial update API 10703 */ 10704 func (a *Client) DcimRearPortTemplatesBulkPartialUpdate(params *DcimRearPortTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesBulkPartialUpdateOK, error) { 10705 // TODO: Validate the params before sending 10706 if params == nil { 10707 params = NewDcimRearPortTemplatesBulkPartialUpdateParams() 10708 } 10709 op := &runtime.ClientOperation{ 10710 ID: "dcim_rear-port-templates_bulk_partial_update", 10711 Method: "PATCH", 10712 PathPattern: "/dcim/rear-port-templates/", 10713 ProducesMediaTypes: []string{"application/json"}, 10714 ConsumesMediaTypes: []string{"application/json"}, 10715 Schemes: []string{"http"}, 10716 Params: params, 10717 Reader: &DcimRearPortTemplatesBulkPartialUpdateReader{formats: a.formats}, 10718 AuthInfo: authInfo, 10719 Context: params.Context, 10720 Client: params.HTTPClient, 10721 } 10722 for _, opt := range opts { 10723 opt(op) 10724 } 10725 10726 result, err := a.transport.Submit(op) 10727 if err != nil { 10728 return nil, err 10729 } 10730 success, ok := result.(*DcimRearPortTemplatesBulkPartialUpdateOK) 10731 if ok { 10732 return success, nil 10733 } 10734 // unexpected success response 10735 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10736 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10737 panic(msg) 10738 } 10739 10740 /* 10741 DcimRearPortTemplatesBulkUpdate dcim rear port templates bulk update API 10742 */ 10743 func (a *Client) DcimRearPortTemplatesBulkUpdate(params *DcimRearPortTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesBulkUpdateOK, error) { 10744 // TODO: Validate the params before sending 10745 if params == nil { 10746 params = NewDcimRearPortTemplatesBulkUpdateParams() 10747 } 10748 op := &runtime.ClientOperation{ 10749 ID: "dcim_rear-port-templates_bulk_update", 10750 Method: "PUT", 10751 PathPattern: "/dcim/rear-port-templates/", 10752 ProducesMediaTypes: []string{"application/json"}, 10753 ConsumesMediaTypes: []string{"application/json"}, 10754 Schemes: []string{"http"}, 10755 Params: params, 10756 Reader: &DcimRearPortTemplatesBulkUpdateReader{formats: a.formats}, 10757 AuthInfo: authInfo, 10758 Context: params.Context, 10759 Client: params.HTTPClient, 10760 } 10761 for _, opt := range opts { 10762 opt(op) 10763 } 10764 10765 result, err := a.transport.Submit(op) 10766 if err != nil { 10767 return nil, err 10768 } 10769 success, ok := result.(*DcimRearPortTemplatesBulkUpdateOK) 10770 if ok { 10771 return success, nil 10772 } 10773 // unexpected success response 10774 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10775 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10776 panic(msg) 10777 } 10778 10779 /* 10780 DcimRearPortTemplatesCreate dcim rear port templates create API 10781 */ 10782 func (a *Client) DcimRearPortTemplatesCreate(params *DcimRearPortTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesCreateCreated, error) { 10783 // TODO: Validate the params before sending 10784 if params == nil { 10785 params = NewDcimRearPortTemplatesCreateParams() 10786 } 10787 op := &runtime.ClientOperation{ 10788 ID: "dcim_rear-port-templates_create", 10789 Method: "POST", 10790 PathPattern: "/dcim/rear-port-templates/", 10791 ProducesMediaTypes: []string{"application/json"}, 10792 ConsumesMediaTypes: []string{"application/json"}, 10793 Schemes: []string{"http"}, 10794 Params: params, 10795 Reader: &DcimRearPortTemplatesCreateReader{formats: a.formats}, 10796 AuthInfo: authInfo, 10797 Context: params.Context, 10798 Client: params.HTTPClient, 10799 } 10800 for _, opt := range opts { 10801 opt(op) 10802 } 10803 10804 result, err := a.transport.Submit(op) 10805 if err != nil { 10806 return nil, err 10807 } 10808 success, ok := result.(*DcimRearPortTemplatesCreateCreated) 10809 if ok { 10810 return success, nil 10811 } 10812 // unexpected success response 10813 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10814 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10815 panic(msg) 10816 } 10817 10818 /* 10819 DcimRearPortTemplatesDelete dcim rear port templates delete API 10820 */ 10821 func (a *Client) DcimRearPortTemplatesDelete(params *DcimRearPortTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesDeleteNoContent, error) { 10822 // TODO: Validate the params before sending 10823 if params == nil { 10824 params = NewDcimRearPortTemplatesDeleteParams() 10825 } 10826 op := &runtime.ClientOperation{ 10827 ID: "dcim_rear-port-templates_delete", 10828 Method: "DELETE", 10829 PathPattern: "/dcim/rear-port-templates/{id}/", 10830 ProducesMediaTypes: []string{"application/json"}, 10831 ConsumesMediaTypes: []string{"application/json"}, 10832 Schemes: []string{"http"}, 10833 Params: params, 10834 Reader: &DcimRearPortTemplatesDeleteReader{formats: a.formats}, 10835 AuthInfo: authInfo, 10836 Context: params.Context, 10837 Client: params.HTTPClient, 10838 } 10839 for _, opt := range opts { 10840 opt(op) 10841 } 10842 10843 result, err := a.transport.Submit(op) 10844 if err != nil { 10845 return nil, err 10846 } 10847 success, ok := result.(*DcimRearPortTemplatesDeleteNoContent) 10848 if ok { 10849 return success, nil 10850 } 10851 // unexpected success response 10852 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10853 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10854 panic(msg) 10855 } 10856 10857 /* 10858 DcimRearPortTemplatesList dcim rear port templates list API 10859 */ 10860 func (a *Client) DcimRearPortTemplatesList(params *DcimRearPortTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesListOK, error) { 10861 // TODO: Validate the params before sending 10862 if params == nil { 10863 params = NewDcimRearPortTemplatesListParams() 10864 } 10865 op := &runtime.ClientOperation{ 10866 ID: "dcim_rear-port-templates_list", 10867 Method: "GET", 10868 PathPattern: "/dcim/rear-port-templates/", 10869 ProducesMediaTypes: []string{"application/json"}, 10870 ConsumesMediaTypes: []string{"application/json"}, 10871 Schemes: []string{"http"}, 10872 Params: params, 10873 Reader: &DcimRearPortTemplatesListReader{formats: a.formats}, 10874 AuthInfo: authInfo, 10875 Context: params.Context, 10876 Client: params.HTTPClient, 10877 } 10878 for _, opt := range opts { 10879 opt(op) 10880 } 10881 10882 result, err := a.transport.Submit(op) 10883 if err != nil { 10884 return nil, err 10885 } 10886 success, ok := result.(*DcimRearPortTemplatesListOK) 10887 if ok { 10888 return success, nil 10889 } 10890 // unexpected success response 10891 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10892 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10893 panic(msg) 10894 } 10895 10896 /* 10897 DcimRearPortTemplatesPartialUpdate dcim rear port templates partial update API 10898 */ 10899 func (a *Client) DcimRearPortTemplatesPartialUpdate(params *DcimRearPortTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesPartialUpdateOK, error) { 10900 // TODO: Validate the params before sending 10901 if params == nil { 10902 params = NewDcimRearPortTemplatesPartialUpdateParams() 10903 } 10904 op := &runtime.ClientOperation{ 10905 ID: "dcim_rear-port-templates_partial_update", 10906 Method: "PATCH", 10907 PathPattern: "/dcim/rear-port-templates/{id}/", 10908 ProducesMediaTypes: []string{"application/json"}, 10909 ConsumesMediaTypes: []string{"application/json"}, 10910 Schemes: []string{"http"}, 10911 Params: params, 10912 Reader: &DcimRearPortTemplatesPartialUpdateReader{formats: a.formats}, 10913 AuthInfo: authInfo, 10914 Context: params.Context, 10915 Client: params.HTTPClient, 10916 } 10917 for _, opt := range opts { 10918 opt(op) 10919 } 10920 10921 result, err := a.transport.Submit(op) 10922 if err != nil { 10923 return nil, err 10924 } 10925 success, ok := result.(*DcimRearPortTemplatesPartialUpdateOK) 10926 if ok { 10927 return success, nil 10928 } 10929 // unexpected success response 10930 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10931 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10932 panic(msg) 10933 } 10934 10935 /* 10936 DcimRearPortTemplatesRead dcim rear port templates read API 10937 */ 10938 func (a *Client) DcimRearPortTemplatesRead(params *DcimRearPortTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesReadOK, error) { 10939 // TODO: Validate the params before sending 10940 if params == nil { 10941 params = NewDcimRearPortTemplatesReadParams() 10942 } 10943 op := &runtime.ClientOperation{ 10944 ID: "dcim_rear-port-templates_read", 10945 Method: "GET", 10946 PathPattern: "/dcim/rear-port-templates/{id}/", 10947 ProducesMediaTypes: []string{"application/json"}, 10948 ConsumesMediaTypes: []string{"application/json"}, 10949 Schemes: []string{"http"}, 10950 Params: params, 10951 Reader: &DcimRearPortTemplatesReadReader{formats: a.formats}, 10952 AuthInfo: authInfo, 10953 Context: params.Context, 10954 Client: params.HTTPClient, 10955 } 10956 for _, opt := range opts { 10957 opt(op) 10958 } 10959 10960 result, err := a.transport.Submit(op) 10961 if err != nil { 10962 return nil, err 10963 } 10964 success, ok := result.(*DcimRearPortTemplatesReadOK) 10965 if ok { 10966 return success, nil 10967 } 10968 // unexpected success response 10969 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 10970 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 10971 panic(msg) 10972 } 10973 10974 /* 10975 DcimRearPortTemplatesUpdate dcim rear port templates update API 10976 */ 10977 func (a *Client) DcimRearPortTemplatesUpdate(params *DcimRearPortTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortTemplatesUpdateOK, error) { 10978 // TODO: Validate the params before sending 10979 if params == nil { 10980 params = NewDcimRearPortTemplatesUpdateParams() 10981 } 10982 op := &runtime.ClientOperation{ 10983 ID: "dcim_rear-port-templates_update", 10984 Method: "PUT", 10985 PathPattern: "/dcim/rear-port-templates/{id}/", 10986 ProducesMediaTypes: []string{"application/json"}, 10987 ConsumesMediaTypes: []string{"application/json"}, 10988 Schemes: []string{"http"}, 10989 Params: params, 10990 Reader: &DcimRearPortTemplatesUpdateReader{formats: a.formats}, 10991 AuthInfo: authInfo, 10992 Context: params.Context, 10993 Client: params.HTTPClient, 10994 } 10995 for _, opt := range opts { 10996 opt(op) 10997 } 10998 10999 result, err := a.transport.Submit(op) 11000 if err != nil { 11001 return nil, err 11002 } 11003 success, ok := result.(*DcimRearPortTemplatesUpdateOK) 11004 if ok { 11005 return success, nil 11006 } 11007 // unexpected success response 11008 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11009 msg := fmt.Sprintf("unexpected success response for dcim_rear-port-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11010 panic(msg) 11011 } 11012 11013 /* 11014 DcimRearPortsBulkDelete dcim rear ports bulk delete API 11015 */ 11016 func (a *Client) DcimRearPortsBulkDelete(params *DcimRearPortsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsBulkDeleteNoContent, error) { 11017 // TODO: Validate the params before sending 11018 if params == nil { 11019 params = NewDcimRearPortsBulkDeleteParams() 11020 } 11021 op := &runtime.ClientOperation{ 11022 ID: "dcim_rear-ports_bulk_delete", 11023 Method: "DELETE", 11024 PathPattern: "/dcim/rear-ports/", 11025 ProducesMediaTypes: []string{"application/json"}, 11026 ConsumesMediaTypes: []string{"application/json"}, 11027 Schemes: []string{"http"}, 11028 Params: params, 11029 Reader: &DcimRearPortsBulkDeleteReader{formats: a.formats}, 11030 AuthInfo: authInfo, 11031 Context: params.Context, 11032 Client: params.HTTPClient, 11033 } 11034 for _, opt := range opts { 11035 opt(op) 11036 } 11037 11038 result, err := a.transport.Submit(op) 11039 if err != nil { 11040 return nil, err 11041 } 11042 success, ok := result.(*DcimRearPortsBulkDeleteNoContent) 11043 if ok { 11044 return success, nil 11045 } 11046 // unexpected success response 11047 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11048 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11049 panic(msg) 11050 } 11051 11052 /* 11053 DcimRearPortsBulkPartialUpdate dcim rear ports bulk partial update API 11054 */ 11055 func (a *Client) DcimRearPortsBulkPartialUpdate(params *DcimRearPortsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsBulkPartialUpdateOK, error) { 11056 // TODO: Validate the params before sending 11057 if params == nil { 11058 params = NewDcimRearPortsBulkPartialUpdateParams() 11059 } 11060 op := &runtime.ClientOperation{ 11061 ID: "dcim_rear-ports_bulk_partial_update", 11062 Method: "PATCH", 11063 PathPattern: "/dcim/rear-ports/", 11064 ProducesMediaTypes: []string{"application/json"}, 11065 ConsumesMediaTypes: []string{"application/json"}, 11066 Schemes: []string{"http"}, 11067 Params: params, 11068 Reader: &DcimRearPortsBulkPartialUpdateReader{formats: a.formats}, 11069 AuthInfo: authInfo, 11070 Context: params.Context, 11071 Client: params.HTTPClient, 11072 } 11073 for _, opt := range opts { 11074 opt(op) 11075 } 11076 11077 result, err := a.transport.Submit(op) 11078 if err != nil { 11079 return nil, err 11080 } 11081 success, ok := result.(*DcimRearPortsBulkPartialUpdateOK) 11082 if ok { 11083 return success, nil 11084 } 11085 // unexpected success response 11086 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11087 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11088 panic(msg) 11089 } 11090 11091 /* 11092 DcimRearPortsBulkUpdate dcim rear ports bulk update API 11093 */ 11094 func (a *Client) DcimRearPortsBulkUpdate(params *DcimRearPortsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsBulkUpdateOK, error) { 11095 // TODO: Validate the params before sending 11096 if params == nil { 11097 params = NewDcimRearPortsBulkUpdateParams() 11098 } 11099 op := &runtime.ClientOperation{ 11100 ID: "dcim_rear-ports_bulk_update", 11101 Method: "PUT", 11102 PathPattern: "/dcim/rear-ports/", 11103 ProducesMediaTypes: []string{"application/json"}, 11104 ConsumesMediaTypes: []string{"application/json"}, 11105 Schemes: []string{"http"}, 11106 Params: params, 11107 Reader: &DcimRearPortsBulkUpdateReader{formats: a.formats}, 11108 AuthInfo: authInfo, 11109 Context: params.Context, 11110 Client: params.HTTPClient, 11111 } 11112 for _, opt := range opts { 11113 opt(op) 11114 } 11115 11116 result, err := a.transport.Submit(op) 11117 if err != nil { 11118 return nil, err 11119 } 11120 success, ok := result.(*DcimRearPortsBulkUpdateOK) 11121 if ok { 11122 return success, nil 11123 } 11124 // unexpected success response 11125 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11126 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11127 panic(msg) 11128 } 11129 11130 /* 11131 DcimRearPortsCreate dcim rear ports create API 11132 */ 11133 func (a *Client) DcimRearPortsCreate(params *DcimRearPortsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsCreateCreated, error) { 11134 // TODO: Validate the params before sending 11135 if params == nil { 11136 params = NewDcimRearPortsCreateParams() 11137 } 11138 op := &runtime.ClientOperation{ 11139 ID: "dcim_rear-ports_create", 11140 Method: "POST", 11141 PathPattern: "/dcim/rear-ports/", 11142 ProducesMediaTypes: []string{"application/json"}, 11143 ConsumesMediaTypes: []string{"application/json"}, 11144 Schemes: []string{"http"}, 11145 Params: params, 11146 Reader: &DcimRearPortsCreateReader{formats: a.formats}, 11147 AuthInfo: authInfo, 11148 Context: params.Context, 11149 Client: params.HTTPClient, 11150 } 11151 for _, opt := range opts { 11152 opt(op) 11153 } 11154 11155 result, err := a.transport.Submit(op) 11156 if err != nil { 11157 return nil, err 11158 } 11159 success, ok := result.(*DcimRearPortsCreateCreated) 11160 if ok { 11161 return success, nil 11162 } 11163 // unexpected success response 11164 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11165 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11166 panic(msg) 11167 } 11168 11169 /* 11170 DcimRearPortsDelete dcim rear ports delete API 11171 */ 11172 func (a *Client) DcimRearPortsDelete(params *DcimRearPortsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsDeleteNoContent, error) { 11173 // TODO: Validate the params before sending 11174 if params == nil { 11175 params = NewDcimRearPortsDeleteParams() 11176 } 11177 op := &runtime.ClientOperation{ 11178 ID: "dcim_rear-ports_delete", 11179 Method: "DELETE", 11180 PathPattern: "/dcim/rear-ports/{id}/", 11181 ProducesMediaTypes: []string{"application/json"}, 11182 ConsumesMediaTypes: []string{"application/json"}, 11183 Schemes: []string{"http"}, 11184 Params: params, 11185 Reader: &DcimRearPortsDeleteReader{formats: a.formats}, 11186 AuthInfo: authInfo, 11187 Context: params.Context, 11188 Client: params.HTTPClient, 11189 } 11190 for _, opt := range opts { 11191 opt(op) 11192 } 11193 11194 result, err := a.transport.Submit(op) 11195 if err != nil { 11196 return nil, err 11197 } 11198 success, ok := result.(*DcimRearPortsDeleteNoContent) 11199 if ok { 11200 return success, nil 11201 } 11202 // unexpected success response 11203 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11204 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11205 panic(msg) 11206 } 11207 11208 /* 11209 DcimRearPortsList dcim rear ports list API 11210 */ 11211 func (a *Client) DcimRearPortsList(params *DcimRearPortsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsListOK, error) { 11212 // TODO: Validate the params before sending 11213 if params == nil { 11214 params = NewDcimRearPortsListParams() 11215 } 11216 op := &runtime.ClientOperation{ 11217 ID: "dcim_rear-ports_list", 11218 Method: "GET", 11219 PathPattern: "/dcim/rear-ports/", 11220 ProducesMediaTypes: []string{"application/json"}, 11221 ConsumesMediaTypes: []string{"application/json"}, 11222 Schemes: []string{"http"}, 11223 Params: params, 11224 Reader: &DcimRearPortsListReader{formats: a.formats}, 11225 AuthInfo: authInfo, 11226 Context: params.Context, 11227 Client: params.HTTPClient, 11228 } 11229 for _, opt := range opts { 11230 opt(op) 11231 } 11232 11233 result, err := a.transport.Submit(op) 11234 if err != nil { 11235 return nil, err 11236 } 11237 success, ok := result.(*DcimRearPortsListOK) 11238 if ok { 11239 return success, nil 11240 } 11241 // unexpected success response 11242 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11243 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11244 panic(msg) 11245 } 11246 11247 /* 11248 DcimRearPortsPartialUpdate dcim rear ports partial update API 11249 */ 11250 func (a *Client) DcimRearPortsPartialUpdate(params *DcimRearPortsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsPartialUpdateOK, error) { 11251 // TODO: Validate the params before sending 11252 if params == nil { 11253 params = NewDcimRearPortsPartialUpdateParams() 11254 } 11255 op := &runtime.ClientOperation{ 11256 ID: "dcim_rear-ports_partial_update", 11257 Method: "PATCH", 11258 PathPattern: "/dcim/rear-ports/{id}/", 11259 ProducesMediaTypes: []string{"application/json"}, 11260 ConsumesMediaTypes: []string{"application/json"}, 11261 Schemes: []string{"http"}, 11262 Params: params, 11263 Reader: &DcimRearPortsPartialUpdateReader{formats: a.formats}, 11264 AuthInfo: authInfo, 11265 Context: params.Context, 11266 Client: params.HTTPClient, 11267 } 11268 for _, opt := range opts { 11269 opt(op) 11270 } 11271 11272 result, err := a.transport.Submit(op) 11273 if err != nil { 11274 return nil, err 11275 } 11276 success, ok := result.(*DcimRearPortsPartialUpdateOK) 11277 if ok { 11278 return success, nil 11279 } 11280 // unexpected success response 11281 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11282 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11283 panic(msg) 11284 } 11285 11286 /* 11287 DcimRearPortsPaths Return all CablePaths which traverse a given pass-through port. 11288 */ 11289 func (a *Client) DcimRearPortsPaths(params *DcimRearPortsPathsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsPathsOK, error) { 11290 // TODO: Validate the params before sending 11291 if params == nil { 11292 params = NewDcimRearPortsPathsParams() 11293 } 11294 op := &runtime.ClientOperation{ 11295 ID: "dcim_rear-ports_paths", 11296 Method: "GET", 11297 PathPattern: "/dcim/rear-ports/{id}/paths/", 11298 ProducesMediaTypes: []string{"application/json"}, 11299 ConsumesMediaTypes: []string{"application/json"}, 11300 Schemes: []string{"http"}, 11301 Params: params, 11302 Reader: &DcimRearPortsPathsReader{formats: a.formats}, 11303 AuthInfo: authInfo, 11304 Context: params.Context, 11305 Client: params.HTTPClient, 11306 } 11307 for _, opt := range opts { 11308 opt(op) 11309 } 11310 11311 result, err := a.transport.Submit(op) 11312 if err != nil { 11313 return nil, err 11314 } 11315 success, ok := result.(*DcimRearPortsPathsOK) 11316 if ok { 11317 return success, nil 11318 } 11319 // unexpected success response 11320 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11321 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_paths: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11322 panic(msg) 11323 } 11324 11325 /* 11326 DcimRearPortsRead dcim rear ports read API 11327 */ 11328 func (a *Client) DcimRearPortsRead(params *DcimRearPortsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsReadOK, error) { 11329 // TODO: Validate the params before sending 11330 if params == nil { 11331 params = NewDcimRearPortsReadParams() 11332 } 11333 op := &runtime.ClientOperation{ 11334 ID: "dcim_rear-ports_read", 11335 Method: "GET", 11336 PathPattern: "/dcim/rear-ports/{id}/", 11337 ProducesMediaTypes: []string{"application/json"}, 11338 ConsumesMediaTypes: []string{"application/json"}, 11339 Schemes: []string{"http"}, 11340 Params: params, 11341 Reader: &DcimRearPortsReadReader{formats: a.formats}, 11342 AuthInfo: authInfo, 11343 Context: params.Context, 11344 Client: params.HTTPClient, 11345 } 11346 for _, opt := range opts { 11347 opt(op) 11348 } 11349 11350 result, err := a.transport.Submit(op) 11351 if err != nil { 11352 return nil, err 11353 } 11354 success, ok := result.(*DcimRearPortsReadOK) 11355 if ok { 11356 return success, nil 11357 } 11358 // unexpected success response 11359 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11360 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11361 panic(msg) 11362 } 11363 11364 /* 11365 DcimRearPortsUpdate dcim rear ports update API 11366 */ 11367 func (a *Client) DcimRearPortsUpdate(params *DcimRearPortsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRearPortsUpdateOK, error) { 11368 // TODO: Validate the params before sending 11369 if params == nil { 11370 params = NewDcimRearPortsUpdateParams() 11371 } 11372 op := &runtime.ClientOperation{ 11373 ID: "dcim_rear-ports_update", 11374 Method: "PUT", 11375 PathPattern: "/dcim/rear-ports/{id}/", 11376 ProducesMediaTypes: []string{"application/json"}, 11377 ConsumesMediaTypes: []string{"application/json"}, 11378 Schemes: []string{"http"}, 11379 Params: params, 11380 Reader: &DcimRearPortsUpdateReader{formats: a.formats}, 11381 AuthInfo: authInfo, 11382 Context: params.Context, 11383 Client: params.HTTPClient, 11384 } 11385 for _, opt := range opts { 11386 opt(op) 11387 } 11388 11389 result, err := a.transport.Submit(op) 11390 if err != nil { 11391 return nil, err 11392 } 11393 success, ok := result.(*DcimRearPortsUpdateOK) 11394 if ok { 11395 return success, nil 11396 } 11397 // unexpected success response 11398 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11399 msg := fmt.Sprintf("unexpected success response for dcim_rear-ports_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11400 panic(msg) 11401 } 11402 11403 /* 11404 DcimRegionsBulkDelete dcim regions bulk delete API 11405 */ 11406 func (a *Client) DcimRegionsBulkDelete(params *DcimRegionsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsBulkDeleteNoContent, error) { 11407 // TODO: Validate the params before sending 11408 if params == nil { 11409 params = NewDcimRegionsBulkDeleteParams() 11410 } 11411 op := &runtime.ClientOperation{ 11412 ID: "dcim_regions_bulk_delete", 11413 Method: "DELETE", 11414 PathPattern: "/dcim/regions/", 11415 ProducesMediaTypes: []string{"application/json"}, 11416 ConsumesMediaTypes: []string{"application/json"}, 11417 Schemes: []string{"http"}, 11418 Params: params, 11419 Reader: &DcimRegionsBulkDeleteReader{formats: a.formats}, 11420 AuthInfo: authInfo, 11421 Context: params.Context, 11422 Client: params.HTTPClient, 11423 } 11424 for _, opt := range opts { 11425 opt(op) 11426 } 11427 11428 result, err := a.transport.Submit(op) 11429 if err != nil { 11430 return nil, err 11431 } 11432 success, ok := result.(*DcimRegionsBulkDeleteNoContent) 11433 if ok { 11434 return success, nil 11435 } 11436 // unexpected success response 11437 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11438 msg := fmt.Sprintf("unexpected success response for dcim_regions_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11439 panic(msg) 11440 } 11441 11442 /* 11443 DcimRegionsBulkPartialUpdate dcim regions bulk partial update API 11444 */ 11445 func (a *Client) DcimRegionsBulkPartialUpdate(params *DcimRegionsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsBulkPartialUpdateOK, error) { 11446 // TODO: Validate the params before sending 11447 if params == nil { 11448 params = NewDcimRegionsBulkPartialUpdateParams() 11449 } 11450 op := &runtime.ClientOperation{ 11451 ID: "dcim_regions_bulk_partial_update", 11452 Method: "PATCH", 11453 PathPattern: "/dcim/regions/", 11454 ProducesMediaTypes: []string{"application/json"}, 11455 ConsumesMediaTypes: []string{"application/json"}, 11456 Schemes: []string{"http"}, 11457 Params: params, 11458 Reader: &DcimRegionsBulkPartialUpdateReader{formats: a.formats}, 11459 AuthInfo: authInfo, 11460 Context: params.Context, 11461 Client: params.HTTPClient, 11462 } 11463 for _, opt := range opts { 11464 opt(op) 11465 } 11466 11467 result, err := a.transport.Submit(op) 11468 if err != nil { 11469 return nil, err 11470 } 11471 success, ok := result.(*DcimRegionsBulkPartialUpdateOK) 11472 if ok { 11473 return success, nil 11474 } 11475 // unexpected success response 11476 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11477 msg := fmt.Sprintf("unexpected success response for dcim_regions_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11478 panic(msg) 11479 } 11480 11481 /* 11482 DcimRegionsBulkUpdate dcim regions bulk update API 11483 */ 11484 func (a *Client) DcimRegionsBulkUpdate(params *DcimRegionsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsBulkUpdateOK, error) { 11485 // TODO: Validate the params before sending 11486 if params == nil { 11487 params = NewDcimRegionsBulkUpdateParams() 11488 } 11489 op := &runtime.ClientOperation{ 11490 ID: "dcim_regions_bulk_update", 11491 Method: "PUT", 11492 PathPattern: "/dcim/regions/", 11493 ProducesMediaTypes: []string{"application/json"}, 11494 ConsumesMediaTypes: []string{"application/json"}, 11495 Schemes: []string{"http"}, 11496 Params: params, 11497 Reader: &DcimRegionsBulkUpdateReader{formats: a.formats}, 11498 AuthInfo: authInfo, 11499 Context: params.Context, 11500 Client: params.HTTPClient, 11501 } 11502 for _, opt := range opts { 11503 opt(op) 11504 } 11505 11506 result, err := a.transport.Submit(op) 11507 if err != nil { 11508 return nil, err 11509 } 11510 success, ok := result.(*DcimRegionsBulkUpdateOK) 11511 if ok { 11512 return success, nil 11513 } 11514 // unexpected success response 11515 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11516 msg := fmt.Sprintf("unexpected success response for dcim_regions_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11517 panic(msg) 11518 } 11519 11520 /* 11521 DcimRegionsCreate dcim regions create API 11522 */ 11523 func (a *Client) DcimRegionsCreate(params *DcimRegionsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsCreateCreated, error) { 11524 // TODO: Validate the params before sending 11525 if params == nil { 11526 params = NewDcimRegionsCreateParams() 11527 } 11528 op := &runtime.ClientOperation{ 11529 ID: "dcim_regions_create", 11530 Method: "POST", 11531 PathPattern: "/dcim/regions/", 11532 ProducesMediaTypes: []string{"application/json"}, 11533 ConsumesMediaTypes: []string{"application/json"}, 11534 Schemes: []string{"http"}, 11535 Params: params, 11536 Reader: &DcimRegionsCreateReader{formats: a.formats}, 11537 AuthInfo: authInfo, 11538 Context: params.Context, 11539 Client: params.HTTPClient, 11540 } 11541 for _, opt := range opts { 11542 opt(op) 11543 } 11544 11545 result, err := a.transport.Submit(op) 11546 if err != nil { 11547 return nil, err 11548 } 11549 success, ok := result.(*DcimRegionsCreateCreated) 11550 if ok { 11551 return success, nil 11552 } 11553 // unexpected success response 11554 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11555 msg := fmt.Sprintf("unexpected success response for dcim_regions_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11556 panic(msg) 11557 } 11558 11559 /* 11560 DcimRegionsDelete dcim regions delete API 11561 */ 11562 func (a *Client) DcimRegionsDelete(params *DcimRegionsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsDeleteNoContent, error) { 11563 // TODO: Validate the params before sending 11564 if params == nil { 11565 params = NewDcimRegionsDeleteParams() 11566 } 11567 op := &runtime.ClientOperation{ 11568 ID: "dcim_regions_delete", 11569 Method: "DELETE", 11570 PathPattern: "/dcim/regions/{id}/", 11571 ProducesMediaTypes: []string{"application/json"}, 11572 ConsumesMediaTypes: []string{"application/json"}, 11573 Schemes: []string{"http"}, 11574 Params: params, 11575 Reader: &DcimRegionsDeleteReader{formats: a.formats}, 11576 AuthInfo: authInfo, 11577 Context: params.Context, 11578 Client: params.HTTPClient, 11579 } 11580 for _, opt := range opts { 11581 opt(op) 11582 } 11583 11584 result, err := a.transport.Submit(op) 11585 if err != nil { 11586 return nil, err 11587 } 11588 success, ok := result.(*DcimRegionsDeleteNoContent) 11589 if ok { 11590 return success, nil 11591 } 11592 // unexpected success response 11593 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11594 msg := fmt.Sprintf("unexpected success response for dcim_regions_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11595 panic(msg) 11596 } 11597 11598 /* 11599 DcimRegionsList dcim regions list API 11600 */ 11601 func (a *Client) DcimRegionsList(params *DcimRegionsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsListOK, error) { 11602 // TODO: Validate the params before sending 11603 if params == nil { 11604 params = NewDcimRegionsListParams() 11605 } 11606 op := &runtime.ClientOperation{ 11607 ID: "dcim_regions_list", 11608 Method: "GET", 11609 PathPattern: "/dcim/regions/", 11610 ProducesMediaTypes: []string{"application/json"}, 11611 ConsumesMediaTypes: []string{"application/json"}, 11612 Schemes: []string{"http"}, 11613 Params: params, 11614 Reader: &DcimRegionsListReader{formats: a.formats}, 11615 AuthInfo: authInfo, 11616 Context: params.Context, 11617 Client: params.HTTPClient, 11618 } 11619 for _, opt := range opts { 11620 opt(op) 11621 } 11622 11623 result, err := a.transport.Submit(op) 11624 if err != nil { 11625 return nil, err 11626 } 11627 success, ok := result.(*DcimRegionsListOK) 11628 if ok { 11629 return success, nil 11630 } 11631 // unexpected success response 11632 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11633 msg := fmt.Sprintf("unexpected success response for dcim_regions_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11634 panic(msg) 11635 } 11636 11637 /* 11638 DcimRegionsPartialUpdate dcim regions partial update API 11639 */ 11640 func (a *Client) DcimRegionsPartialUpdate(params *DcimRegionsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsPartialUpdateOK, error) { 11641 // TODO: Validate the params before sending 11642 if params == nil { 11643 params = NewDcimRegionsPartialUpdateParams() 11644 } 11645 op := &runtime.ClientOperation{ 11646 ID: "dcim_regions_partial_update", 11647 Method: "PATCH", 11648 PathPattern: "/dcim/regions/{id}/", 11649 ProducesMediaTypes: []string{"application/json"}, 11650 ConsumesMediaTypes: []string{"application/json"}, 11651 Schemes: []string{"http"}, 11652 Params: params, 11653 Reader: &DcimRegionsPartialUpdateReader{formats: a.formats}, 11654 AuthInfo: authInfo, 11655 Context: params.Context, 11656 Client: params.HTTPClient, 11657 } 11658 for _, opt := range opts { 11659 opt(op) 11660 } 11661 11662 result, err := a.transport.Submit(op) 11663 if err != nil { 11664 return nil, err 11665 } 11666 success, ok := result.(*DcimRegionsPartialUpdateOK) 11667 if ok { 11668 return success, nil 11669 } 11670 // unexpected success response 11671 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11672 msg := fmt.Sprintf("unexpected success response for dcim_regions_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11673 panic(msg) 11674 } 11675 11676 /* 11677 DcimRegionsRead dcim regions read API 11678 */ 11679 func (a *Client) DcimRegionsRead(params *DcimRegionsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsReadOK, error) { 11680 // TODO: Validate the params before sending 11681 if params == nil { 11682 params = NewDcimRegionsReadParams() 11683 } 11684 op := &runtime.ClientOperation{ 11685 ID: "dcim_regions_read", 11686 Method: "GET", 11687 PathPattern: "/dcim/regions/{id}/", 11688 ProducesMediaTypes: []string{"application/json"}, 11689 ConsumesMediaTypes: []string{"application/json"}, 11690 Schemes: []string{"http"}, 11691 Params: params, 11692 Reader: &DcimRegionsReadReader{formats: a.formats}, 11693 AuthInfo: authInfo, 11694 Context: params.Context, 11695 Client: params.HTTPClient, 11696 } 11697 for _, opt := range opts { 11698 opt(op) 11699 } 11700 11701 result, err := a.transport.Submit(op) 11702 if err != nil { 11703 return nil, err 11704 } 11705 success, ok := result.(*DcimRegionsReadOK) 11706 if ok { 11707 return success, nil 11708 } 11709 // unexpected success response 11710 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11711 msg := fmt.Sprintf("unexpected success response for dcim_regions_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11712 panic(msg) 11713 } 11714 11715 /* 11716 DcimRegionsUpdate dcim regions update API 11717 */ 11718 func (a *Client) DcimRegionsUpdate(params *DcimRegionsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimRegionsUpdateOK, error) { 11719 // TODO: Validate the params before sending 11720 if params == nil { 11721 params = NewDcimRegionsUpdateParams() 11722 } 11723 op := &runtime.ClientOperation{ 11724 ID: "dcim_regions_update", 11725 Method: "PUT", 11726 PathPattern: "/dcim/regions/{id}/", 11727 ProducesMediaTypes: []string{"application/json"}, 11728 ConsumesMediaTypes: []string{"application/json"}, 11729 Schemes: []string{"http"}, 11730 Params: params, 11731 Reader: &DcimRegionsUpdateReader{formats: a.formats}, 11732 AuthInfo: authInfo, 11733 Context: params.Context, 11734 Client: params.HTTPClient, 11735 } 11736 for _, opt := range opts { 11737 opt(op) 11738 } 11739 11740 result, err := a.transport.Submit(op) 11741 if err != nil { 11742 return nil, err 11743 } 11744 success, ok := result.(*DcimRegionsUpdateOK) 11745 if ok { 11746 return success, nil 11747 } 11748 // unexpected success response 11749 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11750 msg := fmt.Sprintf("unexpected success response for dcim_regions_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11751 panic(msg) 11752 } 11753 11754 /* 11755 DcimSiteGroupsBulkDelete dcim site groups bulk delete API 11756 */ 11757 func (a *Client) DcimSiteGroupsBulkDelete(params *DcimSiteGroupsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsBulkDeleteNoContent, error) { 11758 // TODO: Validate the params before sending 11759 if params == nil { 11760 params = NewDcimSiteGroupsBulkDeleteParams() 11761 } 11762 op := &runtime.ClientOperation{ 11763 ID: "dcim_site-groups_bulk_delete", 11764 Method: "DELETE", 11765 PathPattern: "/dcim/site-groups/", 11766 ProducesMediaTypes: []string{"application/json"}, 11767 ConsumesMediaTypes: []string{"application/json"}, 11768 Schemes: []string{"http"}, 11769 Params: params, 11770 Reader: &DcimSiteGroupsBulkDeleteReader{formats: a.formats}, 11771 AuthInfo: authInfo, 11772 Context: params.Context, 11773 Client: params.HTTPClient, 11774 } 11775 for _, opt := range opts { 11776 opt(op) 11777 } 11778 11779 result, err := a.transport.Submit(op) 11780 if err != nil { 11781 return nil, err 11782 } 11783 success, ok := result.(*DcimSiteGroupsBulkDeleteNoContent) 11784 if ok { 11785 return success, nil 11786 } 11787 // unexpected success response 11788 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11789 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11790 panic(msg) 11791 } 11792 11793 /* 11794 DcimSiteGroupsBulkPartialUpdate dcim site groups bulk partial update API 11795 */ 11796 func (a *Client) DcimSiteGroupsBulkPartialUpdate(params *DcimSiteGroupsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsBulkPartialUpdateOK, error) { 11797 // TODO: Validate the params before sending 11798 if params == nil { 11799 params = NewDcimSiteGroupsBulkPartialUpdateParams() 11800 } 11801 op := &runtime.ClientOperation{ 11802 ID: "dcim_site-groups_bulk_partial_update", 11803 Method: "PATCH", 11804 PathPattern: "/dcim/site-groups/", 11805 ProducesMediaTypes: []string{"application/json"}, 11806 ConsumesMediaTypes: []string{"application/json"}, 11807 Schemes: []string{"http"}, 11808 Params: params, 11809 Reader: &DcimSiteGroupsBulkPartialUpdateReader{formats: a.formats}, 11810 AuthInfo: authInfo, 11811 Context: params.Context, 11812 Client: params.HTTPClient, 11813 } 11814 for _, opt := range opts { 11815 opt(op) 11816 } 11817 11818 result, err := a.transport.Submit(op) 11819 if err != nil { 11820 return nil, err 11821 } 11822 success, ok := result.(*DcimSiteGroupsBulkPartialUpdateOK) 11823 if ok { 11824 return success, nil 11825 } 11826 // unexpected success response 11827 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11828 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11829 panic(msg) 11830 } 11831 11832 /* 11833 DcimSiteGroupsBulkUpdate dcim site groups bulk update API 11834 */ 11835 func (a *Client) DcimSiteGroupsBulkUpdate(params *DcimSiteGroupsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsBulkUpdateOK, error) { 11836 // TODO: Validate the params before sending 11837 if params == nil { 11838 params = NewDcimSiteGroupsBulkUpdateParams() 11839 } 11840 op := &runtime.ClientOperation{ 11841 ID: "dcim_site-groups_bulk_update", 11842 Method: "PUT", 11843 PathPattern: "/dcim/site-groups/", 11844 ProducesMediaTypes: []string{"application/json"}, 11845 ConsumesMediaTypes: []string{"application/json"}, 11846 Schemes: []string{"http"}, 11847 Params: params, 11848 Reader: &DcimSiteGroupsBulkUpdateReader{formats: a.formats}, 11849 AuthInfo: authInfo, 11850 Context: params.Context, 11851 Client: params.HTTPClient, 11852 } 11853 for _, opt := range opts { 11854 opt(op) 11855 } 11856 11857 result, err := a.transport.Submit(op) 11858 if err != nil { 11859 return nil, err 11860 } 11861 success, ok := result.(*DcimSiteGroupsBulkUpdateOK) 11862 if ok { 11863 return success, nil 11864 } 11865 // unexpected success response 11866 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11867 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11868 panic(msg) 11869 } 11870 11871 /* 11872 DcimSiteGroupsCreate dcim site groups create API 11873 */ 11874 func (a *Client) DcimSiteGroupsCreate(params *DcimSiteGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsCreateCreated, error) { 11875 // TODO: Validate the params before sending 11876 if params == nil { 11877 params = NewDcimSiteGroupsCreateParams() 11878 } 11879 op := &runtime.ClientOperation{ 11880 ID: "dcim_site-groups_create", 11881 Method: "POST", 11882 PathPattern: "/dcim/site-groups/", 11883 ProducesMediaTypes: []string{"application/json"}, 11884 ConsumesMediaTypes: []string{"application/json"}, 11885 Schemes: []string{"http"}, 11886 Params: params, 11887 Reader: &DcimSiteGroupsCreateReader{formats: a.formats}, 11888 AuthInfo: authInfo, 11889 Context: params.Context, 11890 Client: params.HTTPClient, 11891 } 11892 for _, opt := range opts { 11893 opt(op) 11894 } 11895 11896 result, err := a.transport.Submit(op) 11897 if err != nil { 11898 return nil, err 11899 } 11900 success, ok := result.(*DcimSiteGroupsCreateCreated) 11901 if ok { 11902 return success, nil 11903 } 11904 // unexpected success response 11905 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11906 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11907 panic(msg) 11908 } 11909 11910 /* 11911 DcimSiteGroupsDelete dcim site groups delete API 11912 */ 11913 func (a *Client) DcimSiteGroupsDelete(params *DcimSiteGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsDeleteNoContent, error) { 11914 // TODO: Validate the params before sending 11915 if params == nil { 11916 params = NewDcimSiteGroupsDeleteParams() 11917 } 11918 op := &runtime.ClientOperation{ 11919 ID: "dcim_site-groups_delete", 11920 Method: "DELETE", 11921 PathPattern: "/dcim/site-groups/{id}/", 11922 ProducesMediaTypes: []string{"application/json"}, 11923 ConsumesMediaTypes: []string{"application/json"}, 11924 Schemes: []string{"http"}, 11925 Params: params, 11926 Reader: &DcimSiteGroupsDeleteReader{formats: a.formats}, 11927 AuthInfo: authInfo, 11928 Context: params.Context, 11929 Client: params.HTTPClient, 11930 } 11931 for _, opt := range opts { 11932 opt(op) 11933 } 11934 11935 result, err := a.transport.Submit(op) 11936 if err != nil { 11937 return nil, err 11938 } 11939 success, ok := result.(*DcimSiteGroupsDeleteNoContent) 11940 if ok { 11941 return success, nil 11942 } 11943 // unexpected success response 11944 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11945 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11946 panic(msg) 11947 } 11948 11949 /* 11950 DcimSiteGroupsList dcim site groups list API 11951 */ 11952 func (a *Client) DcimSiteGroupsList(params *DcimSiteGroupsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsListOK, error) { 11953 // TODO: Validate the params before sending 11954 if params == nil { 11955 params = NewDcimSiteGroupsListParams() 11956 } 11957 op := &runtime.ClientOperation{ 11958 ID: "dcim_site-groups_list", 11959 Method: "GET", 11960 PathPattern: "/dcim/site-groups/", 11961 ProducesMediaTypes: []string{"application/json"}, 11962 ConsumesMediaTypes: []string{"application/json"}, 11963 Schemes: []string{"http"}, 11964 Params: params, 11965 Reader: &DcimSiteGroupsListReader{formats: a.formats}, 11966 AuthInfo: authInfo, 11967 Context: params.Context, 11968 Client: params.HTTPClient, 11969 } 11970 for _, opt := range opts { 11971 opt(op) 11972 } 11973 11974 result, err := a.transport.Submit(op) 11975 if err != nil { 11976 return nil, err 11977 } 11978 success, ok := result.(*DcimSiteGroupsListOK) 11979 if ok { 11980 return success, nil 11981 } 11982 // unexpected success response 11983 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 11984 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 11985 panic(msg) 11986 } 11987 11988 /* 11989 DcimSiteGroupsPartialUpdate dcim site groups partial update API 11990 */ 11991 func (a *Client) DcimSiteGroupsPartialUpdate(params *DcimSiteGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsPartialUpdateOK, error) { 11992 // TODO: Validate the params before sending 11993 if params == nil { 11994 params = NewDcimSiteGroupsPartialUpdateParams() 11995 } 11996 op := &runtime.ClientOperation{ 11997 ID: "dcim_site-groups_partial_update", 11998 Method: "PATCH", 11999 PathPattern: "/dcim/site-groups/{id}/", 12000 ProducesMediaTypes: []string{"application/json"}, 12001 ConsumesMediaTypes: []string{"application/json"}, 12002 Schemes: []string{"http"}, 12003 Params: params, 12004 Reader: &DcimSiteGroupsPartialUpdateReader{formats: a.formats}, 12005 AuthInfo: authInfo, 12006 Context: params.Context, 12007 Client: params.HTTPClient, 12008 } 12009 for _, opt := range opts { 12010 opt(op) 12011 } 12012 12013 result, err := a.transport.Submit(op) 12014 if err != nil { 12015 return nil, err 12016 } 12017 success, ok := result.(*DcimSiteGroupsPartialUpdateOK) 12018 if ok { 12019 return success, nil 12020 } 12021 // unexpected success response 12022 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12023 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12024 panic(msg) 12025 } 12026 12027 /* 12028 DcimSiteGroupsRead dcim site groups read API 12029 */ 12030 func (a *Client) DcimSiteGroupsRead(params *DcimSiteGroupsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsReadOK, error) { 12031 // TODO: Validate the params before sending 12032 if params == nil { 12033 params = NewDcimSiteGroupsReadParams() 12034 } 12035 op := &runtime.ClientOperation{ 12036 ID: "dcim_site-groups_read", 12037 Method: "GET", 12038 PathPattern: "/dcim/site-groups/{id}/", 12039 ProducesMediaTypes: []string{"application/json"}, 12040 ConsumesMediaTypes: []string{"application/json"}, 12041 Schemes: []string{"http"}, 12042 Params: params, 12043 Reader: &DcimSiteGroupsReadReader{formats: a.formats}, 12044 AuthInfo: authInfo, 12045 Context: params.Context, 12046 Client: params.HTTPClient, 12047 } 12048 for _, opt := range opts { 12049 opt(op) 12050 } 12051 12052 result, err := a.transport.Submit(op) 12053 if err != nil { 12054 return nil, err 12055 } 12056 success, ok := result.(*DcimSiteGroupsReadOK) 12057 if ok { 12058 return success, nil 12059 } 12060 // unexpected success response 12061 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12062 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12063 panic(msg) 12064 } 12065 12066 /* 12067 DcimSiteGroupsUpdate dcim site groups update API 12068 */ 12069 func (a *Client) DcimSiteGroupsUpdate(params *DcimSiteGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSiteGroupsUpdateOK, error) { 12070 // TODO: Validate the params before sending 12071 if params == nil { 12072 params = NewDcimSiteGroupsUpdateParams() 12073 } 12074 op := &runtime.ClientOperation{ 12075 ID: "dcim_site-groups_update", 12076 Method: "PUT", 12077 PathPattern: "/dcim/site-groups/{id}/", 12078 ProducesMediaTypes: []string{"application/json"}, 12079 ConsumesMediaTypes: []string{"application/json"}, 12080 Schemes: []string{"http"}, 12081 Params: params, 12082 Reader: &DcimSiteGroupsUpdateReader{formats: a.formats}, 12083 AuthInfo: authInfo, 12084 Context: params.Context, 12085 Client: params.HTTPClient, 12086 } 12087 for _, opt := range opts { 12088 opt(op) 12089 } 12090 12091 result, err := a.transport.Submit(op) 12092 if err != nil { 12093 return nil, err 12094 } 12095 success, ok := result.(*DcimSiteGroupsUpdateOK) 12096 if ok { 12097 return success, nil 12098 } 12099 // unexpected success response 12100 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12101 msg := fmt.Sprintf("unexpected success response for dcim_site-groups_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12102 panic(msg) 12103 } 12104 12105 /* 12106 DcimSitesBulkDelete dcim sites bulk delete API 12107 */ 12108 func (a *Client) DcimSitesBulkDelete(params *DcimSitesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesBulkDeleteNoContent, error) { 12109 // TODO: Validate the params before sending 12110 if params == nil { 12111 params = NewDcimSitesBulkDeleteParams() 12112 } 12113 op := &runtime.ClientOperation{ 12114 ID: "dcim_sites_bulk_delete", 12115 Method: "DELETE", 12116 PathPattern: "/dcim/sites/", 12117 ProducesMediaTypes: []string{"application/json"}, 12118 ConsumesMediaTypes: []string{"application/json"}, 12119 Schemes: []string{"http"}, 12120 Params: params, 12121 Reader: &DcimSitesBulkDeleteReader{formats: a.formats}, 12122 AuthInfo: authInfo, 12123 Context: params.Context, 12124 Client: params.HTTPClient, 12125 } 12126 for _, opt := range opts { 12127 opt(op) 12128 } 12129 12130 result, err := a.transport.Submit(op) 12131 if err != nil { 12132 return nil, err 12133 } 12134 success, ok := result.(*DcimSitesBulkDeleteNoContent) 12135 if ok { 12136 return success, nil 12137 } 12138 // unexpected success response 12139 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12140 msg := fmt.Sprintf("unexpected success response for dcim_sites_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12141 panic(msg) 12142 } 12143 12144 /* 12145 DcimSitesBulkPartialUpdate dcim sites bulk partial update API 12146 */ 12147 func (a *Client) DcimSitesBulkPartialUpdate(params *DcimSitesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesBulkPartialUpdateOK, error) { 12148 // TODO: Validate the params before sending 12149 if params == nil { 12150 params = NewDcimSitesBulkPartialUpdateParams() 12151 } 12152 op := &runtime.ClientOperation{ 12153 ID: "dcim_sites_bulk_partial_update", 12154 Method: "PATCH", 12155 PathPattern: "/dcim/sites/", 12156 ProducesMediaTypes: []string{"application/json"}, 12157 ConsumesMediaTypes: []string{"application/json"}, 12158 Schemes: []string{"http"}, 12159 Params: params, 12160 Reader: &DcimSitesBulkPartialUpdateReader{formats: a.formats}, 12161 AuthInfo: authInfo, 12162 Context: params.Context, 12163 Client: params.HTTPClient, 12164 } 12165 for _, opt := range opts { 12166 opt(op) 12167 } 12168 12169 result, err := a.transport.Submit(op) 12170 if err != nil { 12171 return nil, err 12172 } 12173 success, ok := result.(*DcimSitesBulkPartialUpdateOK) 12174 if ok { 12175 return success, nil 12176 } 12177 // unexpected success response 12178 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12179 msg := fmt.Sprintf("unexpected success response for dcim_sites_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12180 panic(msg) 12181 } 12182 12183 /* 12184 DcimSitesBulkUpdate dcim sites bulk update API 12185 */ 12186 func (a *Client) DcimSitesBulkUpdate(params *DcimSitesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesBulkUpdateOK, error) { 12187 // TODO: Validate the params before sending 12188 if params == nil { 12189 params = NewDcimSitesBulkUpdateParams() 12190 } 12191 op := &runtime.ClientOperation{ 12192 ID: "dcim_sites_bulk_update", 12193 Method: "PUT", 12194 PathPattern: "/dcim/sites/", 12195 ProducesMediaTypes: []string{"application/json"}, 12196 ConsumesMediaTypes: []string{"application/json"}, 12197 Schemes: []string{"http"}, 12198 Params: params, 12199 Reader: &DcimSitesBulkUpdateReader{formats: a.formats}, 12200 AuthInfo: authInfo, 12201 Context: params.Context, 12202 Client: params.HTTPClient, 12203 } 12204 for _, opt := range opts { 12205 opt(op) 12206 } 12207 12208 result, err := a.transport.Submit(op) 12209 if err != nil { 12210 return nil, err 12211 } 12212 success, ok := result.(*DcimSitesBulkUpdateOK) 12213 if ok { 12214 return success, nil 12215 } 12216 // unexpected success response 12217 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12218 msg := fmt.Sprintf("unexpected success response for dcim_sites_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12219 panic(msg) 12220 } 12221 12222 /* 12223 DcimSitesCreate dcim sites create API 12224 */ 12225 func (a *Client) DcimSitesCreate(params *DcimSitesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesCreateCreated, error) { 12226 // TODO: Validate the params before sending 12227 if params == nil { 12228 params = NewDcimSitesCreateParams() 12229 } 12230 op := &runtime.ClientOperation{ 12231 ID: "dcim_sites_create", 12232 Method: "POST", 12233 PathPattern: "/dcim/sites/", 12234 ProducesMediaTypes: []string{"application/json"}, 12235 ConsumesMediaTypes: []string{"application/json"}, 12236 Schemes: []string{"http"}, 12237 Params: params, 12238 Reader: &DcimSitesCreateReader{formats: a.formats}, 12239 AuthInfo: authInfo, 12240 Context: params.Context, 12241 Client: params.HTTPClient, 12242 } 12243 for _, opt := range opts { 12244 opt(op) 12245 } 12246 12247 result, err := a.transport.Submit(op) 12248 if err != nil { 12249 return nil, err 12250 } 12251 success, ok := result.(*DcimSitesCreateCreated) 12252 if ok { 12253 return success, nil 12254 } 12255 // unexpected success response 12256 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12257 msg := fmt.Sprintf("unexpected success response for dcim_sites_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12258 panic(msg) 12259 } 12260 12261 /* 12262 DcimSitesDelete dcim sites delete API 12263 */ 12264 func (a *Client) DcimSitesDelete(params *DcimSitesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesDeleteNoContent, error) { 12265 // TODO: Validate the params before sending 12266 if params == nil { 12267 params = NewDcimSitesDeleteParams() 12268 } 12269 op := &runtime.ClientOperation{ 12270 ID: "dcim_sites_delete", 12271 Method: "DELETE", 12272 PathPattern: "/dcim/sites/{id}/", 12273 ProducesMediaTypes: []string{"application/json"}, 12274 ConsumesMediaTypes: []string{"application/json"}, 12275 Schemes: []string{"http"}, 12276 Params: params, 12277 Reader: &DcimSitesDeleteReader{formats: a.formats}, 12278 AuthInfo: authInfo, 12279 Context: params.Context, 12280 Client: params.HTTPClient, 12281 } 12282 for _, opt := range opts { 12283 opt(op) 12284 } 12285 12286 result, err := a.transport.Submit(op) 12287 if err != nil { 12288 return nil, err 12289 } 12290 success, ok := result.(*DcimSitesDeleteNoContent) 12291 if ok { 12292 return success, nil 12293 } 12294 // unexpected success response 12295 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12296 msg := fmt.Sprintf("unexpected success response for dcim_sites_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12297 panic(msg) 12298 } 12299 12300 /* 12301 DcimSitesList dcim sites list API 12302 */ 12303 func (a *Client) DcimSitesList(params *DcimSitesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesListOK, error) { 12304 // TODO: Validate the params before sending 12305 if params == nil { 12306 params = NewDcimSitesListParams() 12307 } 12308 op := &runtime.ClientOperation{ 12309 ID: "dcim_sites_list", 12310 Method: "GET", 12311 PathPattern: "/dcim/sites/", 12312 ProducesMediaTypes: []string{"application/json"}, 12313 ConsumesMediaTypes: []string{"application/json"}, 12314 Schemes: []string{"http"}, 12315 Params: params, 12316 Reader: &DcimSitesListReader{formats: a.formats}, 12317 AuthInfo: authInfo, 12318 Context: params.Context, 12319 Client: params.HTTPClient, 12320 } 12321 for _, opt := range opts { 12322 opt(op) 12323 } 12324 12325 result, err := a.transport.Submit(op) 12326 if err != nil { 12327 return nil, err 12328 } 12329 success, ok := result.(*DcimSitesListOK) 12330 if ok { 12331 return success, nil 12332 } 12333 // unexpected success response 12334 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12335 msg := fmt.Sprintf("unexpected success response for dcim_sites_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12336 panic(msg) 12337 } 12338 12339 /* 12340 DcimSitesPartialUpdate dcim sites partial update API 12341 */ 12342 func (a *Client) DcimSitesPartialUpdate(params *DcimSitesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesPartialUpdateOK, error) { 12343 // TODO: Validate the params before sending 12344 if params == nil { 12345 params = NewDcimSitesPartialUpdateParams() 12346 } 12347 op := &runtime.ClientOperation{ 12348 ID: "dcim_sites_partial_update", 12349 Method: "PATCH", 12350 PathPattern: "/dcim/sites/{id}/", 12351 ProducesMediaTypes: []string{"application/json"}, 12352 ConsumesMediaTypes: []string{"application/json"}, 12353 Schemes: []string{"http"}, 12354 Params: params, 12355 Reader: &DcimSitesPartialUpdateReader{formats: a.formats}, 12356 AuthInfo: authInfo, 12357 Context: params.Context, 12358 Client: params.HTTPClient, 12359 } 12360 for _, opt := range opts { 12361 opt(op) 12362 } 12363 12364 result, err := a.transport.Submit(op) 12365 if err != nil { 12366 return nil, err 12367 } 12368 success, ok := result.(*DcimSitesPartialUpdateOK) 12369 if ok { 12370 return success, nil 12371 } 12372 // unexpected success response 12373 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12374 msg := fmt.Sprintf("unexpected success response for dcim_sites_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12375 panic(msg) 12376 } 12377 12378 /* 12379 DcimSitesRead dcim sites read API 12380 */ 12381 func (a *Client) DcimSitesRead(params *DcimSitesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesReadOK, error) { 12382 // TODO: Validate the params before sending 12383 if params == nil { 12384 params = NewDcimSitesReadParams() 12385 } 12386 op := &runtime.ClientOperation{ 12387 ID: "dcim_sites_read", 12388 Method: "GET", 12389 PathPattern: "/dcim/sites/{id}/", 12390 ProducesMediaTypes: []string{"application/json"}, 12391 ConsumesMediaTypes: []string{"application/json"}, 12392 Schemes: []string{"http"}, 12393 Params: params, 12394 Reader: &DcimSitesReadReader{formats: a.formats}, 12395 AuthInfo: authInfo, 12396 Context: params.Context, 12397 Client: params.HTTPClient, 12398 } 12399 for _, opt := range opts { 12400 opt(op) 12401 } 12402 12403 result, err := a.transport.Submit(op) 12404 if err != nil { 12405 return nil, err 12406 } 12407 success, ok := result.(*DcimSitesReadOK) 12408 if ok { 12409 return success, nil 12410 } 12411 // unexpected success response 12412 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12413 msg := fmt.Sprintf("unexpected success response for dcim_sites_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12414 panic(msg) 12415 } 12416 12417 /* 12418 DcimSitesUpdate dcim sites update API 12419 */ 12420 func (a *Client) DcimSitesUpdate(params *DcimSitesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimSitesUpdateOK, error) { 12421 // TODO: Validate the params before sending 12422 if params == nil { 12423 params = NewDcimSitesUpdateParams() 12424 } 12425 op := &runtime.ClientOperation{ 12426 ID: "dcim_sites_update", 12427 Method: "PUT", 12428 PathPattern: "/dcim/sites/{id}/", 12429 ProducesMediaTypes: []string{"application/json"}, 12430 ConsumesMediaTypes: []string{"application/json"}, 12431 Schemes: []string{"http"}, 12432 Params: params, 12433 Reader: &DcimSitesUpdateReader{formats: a.formats}, 12434 AuthInfo: authInfo, 12435 Context: params.Context, 12436 Client: params.HTTPClient, 12437 } 12438 for _, opt := range opts { 12439 opt(op) 12440 } 12441 12442 result, err := a.transport.Submit(op) 12443 if err != nil { 12444 return nil, err 12445 } 12446 success, ok := result.(*DcimSitesUpdateOK) 12447 if ok { 12448 return success, nil 12449 } 12450 // unexpected success response 12451 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12452 msg := fmt.Sprintf("unexpected success response for dcim_sites_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12453 panic(msg) 12454 } 12455 12456 /* 12457 DcimVirtualChassisBulkDelete dcim virtual chassis bulk delete API 12458 */ 12459 func (a *Client) DcimVirtualChassisBulkDelete(params *DcimVirtualChassisBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisBulkDeleteNoContent, error) { 12460 // TODO: Validate the params before sending 12461 if params == nil { 12462 params = NewDcimVirtualChassisBulkDeleteParams() 12463 } 12464 op := &runtime.ClientOperation{ 12465 ID: "dcim_virtual-chassis_bulk_delete", 12466 Method: "DELETE", 12467 PathPattern: "/dcim/virtual-chassis/", 12468 ProducesMediaTypes: []string{"application/json"}, 12469 ConsumesMediaTypes: []string{"application/json"}, 12470 Schemes: []string{"http"}, 12471 Params: params, 12472 Reader: &DcimVirtualChassisBulkDeleteReader{formats: a.formats}, 12473 AuthInfo: authInfo, 12474 Context: params.Context, 12475 Client: params.HTTPClient, 12476 } 12477 for _, opt := range opts { 12478 opt(op) 12479 } 12480 12481 result, err := a.transport.Submit(op) 12482 if err != nil { 12483 return nil, err 12484 } 12485 success, ok := result.(*DcimVirtualChassisBulkDeleteNoContent) 12486 if ok { 12487 return success, nil 12488 } 12489 // unexpected success response 12490 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12491 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12492 panic(msg) 12493 } 12494 12495 /* 12496 DcimVirtualChassisBulkPartialUpdate dcim virtual chassis bulk partial update API 12497 */ 12498 func (a *Client) DcimVirtualChassisBulkPartialUpdate(params *DcimVirtualChassisBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisBulkPartialUpdateOK, error) { 12499 // TODO: Validate the params before sending 12500 if params == nil { 12501 params = NewDcimVirtualChassisBulkPartialUpdateParams() 12502 } 12503 op := &runtime.ClientOperation{ 12504 ID: "dcim_virtual-chassis_bulk_partial_update", 12505 Method: "PATCH", 12506 PathPattern: "/dcim/virtual-chassis/", 12507 ProducesMediaTypes: []string{"application/json"}, 12508 ConsumesMediaTypes: []string{"application/json"}, 12509 Schemes: []string{"http"}, 12510 Params: params, 12511 Reader: &DcimVirtualChassisBulkPartialUpdateReader{formats: a.formats}, 12512 AuthInfo: authInfo, 12513 Context: params.Context, 12514 Client: params.HTTPClient, 12515 } 12516 for _, opt := range opts { 12517 opt(op) 12518 } 12519 12520 result, err := a.transport.Submit(op) 12521 if err != nil { 12522 return nil, err 12523 } 12524 success, ok := result.(*DcimVirtualChassisBulkPartialUpdateOK) 12525 if ok { 12526 return success, nil 12527 } 12528 // unexpected success response 12529 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12530 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12531 panic(msg) 12532 } 12533 12534 /* 12535 DcimVirtualChassisBulkUpdate dcim virtual chassis bulk update API 12536 */ 12537 func (a *Client) DcimVirtualChassisBulkUpdate(params *DcimVirtualChassisBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisBulkUpdateOK, error) { 12538 // TODO: Validate the params before sending 12539 if params == nil { 12540 params = NewDcimVirtualChassisBulkUpdateParams() 12541 } 12542 op := &runtime.ClientOperation{ 12543 ID: "dcim_virtual-chassis_bulk_update", 12544 Method: "PUT", 12545 PathPattern: "/dcim/virtual-chassis/", 12546 ProducesMediaTypes: []string{"application/json"}, 12547 ConsumesMediaTypes: []string{"application/json"}, 12548 Schemes: []string{"http"}, 12549 Params: params, 12550 Reader: &DcimVirtualChassisBulkUpdateReader{formats: a.formats}, 12551 AuthInfo: authInfo, 12552 Context: params.Context, 12553 Client: params.HTTPClient, 12554 } 12555 for _, opt := range opts { 12556 opt(op) 12557 } 12558 12559 result, err := a.transport.Submit(op) 12560 if err != nil { 12561 return nil, err 12562 } 12563 success, ok := result.(*DcimVirtualChassisBulkUpdateOK) 12564 if ok { 12565 return success, nil 12566 } 12567 // unexpected success response 12568 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12569 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12570 panic(msg) 12571 } 12572 12573 /* 12574 DcimVirtualChassisCreate dcim virtual chassis create API 12575 */ 12576 func (a *Client) DcimVirtualChassisCreate(params *DcimVirtualChassisCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisCreateCreated, error) { 12577 // TODO: Validate the params before sending 12578 if params == nil { 12579 params = NewDcimVirtualChassisCreateParams() 12580 } 12581 op := &runtime.ClientOperation{ 12582 ID: "dcim_virtual-chassis_create", 12583 Method: "POST", 12584 PathPattern: "/dcim/virtual-chassis/", 12585 ProducesMediaTypes: []string{"application/json"}, 12586 ConsumesMediaTypes: []string{"application/json"}, 12587 Schemes: []string{"http"}, 12588 Params: params, 12589 Reader: &DcimVirtualChassisCreateReader{formats: a.formats}, 12590 AuthInfo: authInfo, 12591 Context: params.Context, 12592 Client: params.HTTPClient, 12593 } 12594 for _, opt := range opts { 12595 opt(op) 12596 } 12597 12598 result, err := a.transport.Submit(op) 12599 if err != nil { 12600 return nil, err 12601 } 12602 success, ok := result.(*DcimVirtualChassisCreateCreated) 12603 if ok { 12604 return success, nil 12605 } 12606 // unexpected success response 12607 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12608 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12609 panic(msg) 12610 } 12611 12612 /* 12613 DcimVirtualChassisDelete dcim virtual chassis delete API 12614 */ 12615 func (a *Client) DcimVirtualChassisDelete(params *DcimVirtualChassisDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisDeleteNoContent, error) { 12616 // TODO: Validate the params before sending 12617 if params == nil { 12618 params = NewDcimVirtualChassisDeleteParams() 12619 } 12620 op := &runtime.ClientOperation{ 12621 ID: "dcim_virtual-chassis_delete", 12622 Method: "DELETE", 12623 PathPattern: "/dcim/virtual-chassis/{id}/", 12624 ProducesMediaTypes: []string{"application/json"}, 12625 ConsumesMediaTypes: []string{"application/json"}, 12626 Schemes: []string{"http"}, 12627 Params: params, 12628 Reader: &DcimVirtualChassisDeleteReader{formats: a.formats}, 12629 AuthInfo: authInfo, 12630 Context: params.Context, 12631 Client: params.HTTPClient, 12632 } 12633 for _, opt := range opts { 12634 opt(op) 12635 } 12636 12637 result, err := a.transport.Submit(op) 12638 if err != nil { 12639 return nil, err 12640 } 12641 success, ok := result.(*DcimVirtualChassisDeleteNoContent) 12642 if ok { 12643 return success, nil 12644 } 12645 // unexpected success response 12646 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12647 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12648 panic(msg) 12649 } 12650 12651 /* 12652 DcimVirtualChassisList dcim virtual chassis list API 12653 */ 12654 func (a *Client) DcimVirtualChassisList(params *DcimVirtualChassisListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisListOK, error) { 12655 // TODO: Validate the params before sending 12656 if params == nil { 12657 params = NewDcimVirtualChassisListParams() 12658 } 12659 op := &runtime.ClientOperation{ 12660 ID: "dcim_virtual-chassis_list", 12661 Method: "GET", 12662 PathPattern: "/dcim/virtual-chassis/", 12663 ProducesMediaTypes: []string{"application/json"}, 12664 ConsumesMediaTypes: []string{"application/json"}, 12665 Schemes: []string{"http"}, 12666 Params: params, 12667 Reader: &DcimVirtualChassisListReader{formats: a.formats}, 12668 AuthInfo: authInfo, 12669 Context: params.Context, 12670 Client: params.HTTPClient, 12671 } 12672 for _, opt := range opts { 12673 opt(op) 12674 } 12675 12676 result, err := a.transport.Submit(op) 12677 if err != nil { 12678 return nil, err 12679 } 12680 success, ok := result.(*DcimVirtualChassisListOK) 12681 if ok { 12682 return success, nil 12683 } 12684 // unexpected success response 12685 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12686 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12687 panic(msg) 12688 } 12689 12690 /* 12691 DcimVirtualChassisPartialUpdate dcim virtual chassis partial update API 12692 */ 12693 func (a *Client) DcimVirtualChassisPartialUpdate(params *DcimVirtualChassisPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisPartialUpdateOK, error) { 12694 // TODO: Validate the params before sending 12695 if params == nil { 12696 params = NewDcimVirtualChassisPartialUpdateParams() 12697 } 12698 op := &runtime.ClientOperation{ 12699 ID: "dcim_virtual-chassis_partial_update", 12700 Method: "PATCH", 12701 PathPattern: "/dcim/virtual-chassis/{id}/", 12702 ProducesMediaTypes: []string{"application/json"}, 12703 ConsumesMediaTypes: []string{"application/json"}, 12704 Schemes: []string{"http"}, 12705 Params: params, 12706 Reader: &DcimVirtualChassisPartialUpdateReader{formats: a.formats}, 12707 AuthInfo: authInfo, 12708 Context: params.Context, 12709 Client: params.HTTPClient, 12710 } 12711 for _, opt := range opts { 12712 opt(op) 12713 } 12714 12715 result, err := a.transport.Submit(op) 12716 if err != nil { 12717 return nil, err 12718 } 12719 success, ok := result.(*DcimVirtualChassisPartialUpdateOK) 12720 if ok { 12721 return success, nil 12722 } 12723 // unexpected success response 12724 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12725 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12726 panic(msg) 12727 } 12728 12729 /* 12730 DcimVirtualChassisRead dcim virtual chassis read API 12731 */ 12732 func (a *Client) DcimVirtualChassisRead(params *DcimVirtualChassisReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisReadOK, error) { 12733 // TODO: Validate the params before sending 12734 if params == nil { 12735 params = NewDcimVirtualChassisReadParams() 12736 } 12737 op := &runtime.ClientOperation{ 12738 ID: "dcim_virtual-chassis_read", 12739 Method: "GET", 12740 PathPattern: "/dcim/virtual-chassis/{id}/", 12741 ProducesMediaTypes: []string{"application/json"}, 12742 ConsumesMediaTypes: []string{"application/json"}, 12743 Schemes: []string{"http"}, 12744 Params: params, 12745 Reader: &DcimVirtualChassisReadReader{formats: a.formats}, 12746 AuthInfo: authInfo, 12747 Context: params.Context, 12748 Client: params.HTTPClient, 12749 } 12750 for _, opt := range opts { 12751 opt(op) 12752 } 12753 12754 result, err := a.transport.Submit(op) 12755 if err != nil { 12756 return nil, err 12757 } 12758 success, ok := result.(*DcimVirtualChassisReadOK) 12759 if ok { 12760 return success, nil 12761 } 12762 // unexpected success response 12763 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12764 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12765 panic(msg) 12766 } 12767 12768 /* 12769 DcimVirtualChassisUpdate dcim virtual chassis update API 12770 */ 12771 func (a *Client) DcimVirtualChassisUpdate(params *DcimVirtualChassisUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DcimVirtualChassisUpdateOK, error) { 12772 // TODO: Validate the params before sending 12773 if params == nil { 12774 params = NewDcimVirtualChassisUpdateParams() 12775 } 12776 op := &runtime.ClientOperation{ 12777 ID: "dcim_virtual-chassis_update", 12778 Method: "PUT", 12779 PathPattern: "/dcim/virtual-chassis/{id}/", 12780 ProducesMediaTypes: []string{"application/json"}, 12781 ConsumesMediaTypes: []string{"application/json"}, 12782 Schemes: []string{"http"}, 12783 Params: params, 12784 Reader: &DcimVirtualChassisUpdateReader{formats: a.formats}, 12785 AuthInfo: authInfo, 12786 Context: params.Context, 12787 Client: params.HTTPClient, 12788 } 12789 for _, opt := range opts { 12790 opt(op) 12791 } 12792 12793 result, err := a.transport.Submit(op) 12794 if err != nil { 12795 return nil, err 12796 } 12797 success, ok := result.(*DcimVirtualChassisUpdateOK) 12798 if ok { 12799 return success, nil 12800 } 12801 // unexpected success response 12802 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 12803 msg := fmt.Sprintf("unexpected success response for dcim_virtual-chassis_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 12804 panic(msg) 12805 } 12806 12807 // SetTransport changes the transport on the client 12808 func (a *Client) SetTransport(transport runtime.ClientTransport) { 12809 a.transport = transport 12810 }