github.com/digitalocean/go-netbox@v0.0.2/netbox/client/ipam/ipam_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 ipam 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 ipam 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 ipam 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 IpamAggregatesBulkDelete(params *IpamAggregatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesBulkDeleteNoContent, error) 49 50 IpamAggregatesBulkPartialUpdate(params *IpamAggregatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesBulkPartialUpdateOK, error) 51 52 IpamAggregatesBulkUpdate(params *IpamAggregatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesBulkUpdateOK, error) 53 54 IpamAggregatesCreate(params *IpamAggregatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesCreateCreated, error) 55 56 IpamAggregatesDelete(params *IpamAggregatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesDeleteNoContent, error) 57 58 IpamAggregatesList(params *IpamAggregatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesListOK, error) 59 60 IpamAggregatesPartialUpdate(params *IpamAggregatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesPartialUpdateOK, error) 61 62 IpamAggregatesRead(params *IpamAggregatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesReadOK, error) 63 64 IpamAggregatesUpdate(params *IpamAggregatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesUpdateOK, error) 65 66 IpamIPAddressesBulkDelete(params *IpamIPAddressesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesBulkDeleteNoContent, error) 67 68 IpamIPAddressesBulkPartialUpdate(params *IpamIPAddressesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesBulkPartialUpdateOK, error) 69 70 IpamIPAddressesBulkUpdate(params *IpamIPAddressesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesBulkUpdateOK, error) 71 72 IpamIPAddressesCreate(params *IpamIPAddressesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesCreateCreated, error) 73 74 IpamIPAddressesDelete(params *IpamIPAddressesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesDeleteNoContent, error) 75 76 IpamIPAddressesList(params *IpamIPAddressesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesListOK, error) 77 78 IpamIPAddressesPartialUpdate(params *IpamIPAddressesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesPartialUpdateOK, error) 79 80 IpamIPAddressesRead(params *IpamIPAddressesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesReadOK, error) 81 82 IpamIPAddressesUpdate(params *IpamIPAddressesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesUpdateOK, error) 83 84 IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIpsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailableIpsCreateCreated, error) 85 86 IpamPrefixesAvailableIpsRead(params *IpamPrefixesAvailableIpsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailableIpsReadOK, error) 87 88 IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailablePrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailablePrefixesCreateCreated, error) 89 90 IpamPrefixesAvailablePrefixesRead(params *IpamPrefixesAvailablePrefixesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailablePrefixesReadOK, error) 91 92 IpamPrefixesBulkDelete(params *IpamPrefixesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesBulkDeleteNoContent, error) 93 94 IpamPrefixesBulkPartialUpdate(params *IpamPrefixesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesBulkPartialUpdateOK, error) 95 96 IpamPrefixesBulkUpdate(params *IpamPrefixesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesBulkUpdateOK, error) 97 98 IpamPrefixesCreate(params *IpamPrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesCreateCreated, error) 99 100 IpamPrefixesDelete(params *IpamPrefixesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesDeleteNoContent, error) 101 102 IpamPrefixesList(params *IpamPrefixesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesListOK, error) 103 104 IpamPrefixesPartialUpdate(params *IpamPrefixesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesPartialUpdateOK, error) 105 106 IpamPrefixesRead(params *IpamPrefixesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesReadOK, error) 107 108 IpamPrefixesUpdate(params *IpamPrefixesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesUpdateOK, error) 109 110 IpamRirsBulkDelete(params *IpamRirsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsBulkDeleteNoContent, error) 111 112 IpamRirsBulkPartialUpdate(params *IpamRirsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsBulkPartialUpdateOK, error) 113 114 IpamRirsBulkUpdate(params *IpamRirsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsBulkUpdateOK, error) 115 116 IpamRirsCreate(params *IpamRirsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsCreateCreated, error) 117 118 IpamRirsDelete(params *IpamRirsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsDeleteNoContent, error) 119 120 IpamRirsList(params *IpamRirsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsListOK, error) 121 122 IpamRirsPartialUpdate(params *IpamRirsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsPartialUpdateOK, error) 123 124 IpamRirsRead(params *IpamRirsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsReadOK, error) 125 126 IpamRirsUpdate(params *IpamRirsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsUpdateOK, error) 127 128 IpamRolesBulkDelete(params *IpamRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesBulkDeleteNoContent, error) 129 130 IpamRolesBulkPartialUpdate(params *IpamRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesBulkPartialUpdateOK, error) 131 132 IpamRolesBulkUpdate(params *IpamRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesBulkUpdateOK, error) 133 134 IpamRolesCreate(params *IpamRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesCreateCreated, error) 135 136 IpamRolesDelete(params *IpamRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesDeleteNoContent, error) 137 138 IpamRolesList(params *IpamRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesListOK, error) 139 140 IpamRolesPartialUpdate(params *IpamRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesPartialUpdateOK, error) 141 142 IpamRolesRead(params *IpamRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesReadOK, error) 143 144 IpamRolesUpdate(params *IpamRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesUpdateOK, error) 145 146 IpamRouteTargetsBulkDelete(params *IpamRouteTargetsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsBulkDeleteNoContent, error) 147 148 IpamRouteTargetsBulkPartialUpdate(params *IpamRouteTargetsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsBulkPartialUpdateOK, error) 149 150 IpamRouteTargetsBulkUpdate(params *IpamRouteTargetsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsBulkUpdateOK, error) 151 152 IpamRouteTargetsCreate(params *IpamRouteTargetsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsCreateCreated, error) 153 154 IpamRouteTargetsDelete(params *IpamRouteTargetsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsDeleteNoContent, error) 155 156 IpamRouteTargetsList(params *IpamRouteTargetsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsListOK, error) 157 158 IpamRouteTargetsPartialUpdate(params *IpamRouteTargetsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsPartialUpdateOK, error) 159 160 IpamRouteTargetsRead(params *IpamRouteTargetsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsReadOK, error) 161 162 IpamRouteTargetsUpdate(params *IpamRouteTargetsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsUpdateOK, error) 163 164 IpamServicesBulkDelete(params *IpamServicesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkDeleteNoContent, error) 165 166 IpamServicesBulkPartialUpdate(params *IpamServicesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkPartialUpdateOK, error) 167 168 IpamServicesBulkUpdate(params *IpamServicesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkUpdateOK, error) 169 170 IpamServicesCreate(params *IpamServicesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesCreateCreated, error) 171 172 IpamServicesDelete(params *IpamServicesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesDeleteNoContent, error) 173 174 IpamServicesList(params *IpamServicesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesListOK, error) 175 176 IpamServicesPartialUpdate(params *IpamServicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesPartialUpdateOK, error) 177 178 IpamServicesRead(params *IpamServicesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesReadOK, error) 179 180 IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesUpdateOK, error) 181 182 IpamVlanGroupsBulkDelete(params *IpamVlanGroupsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkDeleteNoContent, error) 183 184 IpamVlanGroupsBulkPartialUpdate(params *IpamVlanGroupsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkPartialUpdateOK, error) 185 186 IpamVlanGroupsBulkUpdate(params *IpamVlanGroupsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkUpdateOK, error) 187 188 IpamVlanGroupsCreate(params *IpamVlanGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsCreateCreated, error) 189 190 IpamVlanGroupsDelete(params *IpamVlanGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsDeleteNoContent, error) 191 192 IpamVlanGroupsList(params *IpamVlanGroupsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsListOK, error) 193 194 IpamVlanGroupsPartialUpdate(params *IpamVlanGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsPartialUpdateOK, error) 195 196 IpamVlanGroupsRead(params *IpamVlanGroupsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsReadOK, error) 197 198 IpamVlanGroupsUpdate(params *IpamVlanGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsUpdateOK, error) 199 200 IpamVlansBulkDelete(params *IpamVlansBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansBulkDeleteNoContent, error) 201 202 IpamVlansBulkPartialUpdate(params *IpamVlansBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansBulkPartialUpdateOK, error) 203 204 IpamVlansBulkUpdate(params *IpamVlansBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansBulkUpdateOK, error) 205 206 IpamVlansCreate(params *IpamVlansCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansCreateCreated, error) 207 208 IpamVlansDelete(params *IpamVlansDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansDeleteNoContent, error) 209 210 IpamVlansList(params *IpamVlansListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansListOK, error) 211 212 IpamVlansPartialUpdate(params *IpamVlansPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansPartialUpdateOK, error) 213 214 IpamVlansRead(params *IpamVlansReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansReadOK, error) 215 216 IpamVlansUpdate(params *IpamVlansUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansUpdateOK, error) 217 218 IpamVrfsBulkDelete(params *IpamVrfsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsBulkDeleteNoContent, error) 219 220 IpamVrfsBulkPartialUpdate(params *IpamVrfsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsBulkPartialUpdateOK, error) 221 222 IpamVrfsBulkUpdate(params *IpamVrfsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsBulkUpdateOK, error) 223 224 IpamVrfsCreate(params *IpamVrfsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsCreateCreated, error) 225 226 IpamVrfsDelete(params *IpamVrfsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsDeleteNoContent, error) 227 228 IpamVrfsList(params *IpamVrfsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsListOK, error) 229 230 IpamVrfsPartialUpdate(params *IpamVrfsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsPartialUpdateOK, error) 231 232 IpamVrfsRead(params *IpamVrfsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsReadOK, error) 233 234 IpamVrfsUpdate(params *IpamVrfsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsUpdateOK, error) 235 236 SetTransport(transport runtime.ClientTransport) 237 } 238 239 /* 240 IpamAggregatesBulkDelete ipam aggregates bulk delete API 241 */ 242 func (a *Client) IpamAggregatesBulkDelete(params *IpamAggregatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesBulkDeleteNoContent, error) { 243 // TODO: Validate the params before sending 244 if params == nil { 245 params = NewIpamAggregatesBulkDeleteParams() 246 } 247 op := &runtime.ClientOperation{ 248 ID: "ipam_aggregates_bulk_delete", 249 Method: "DELETE", 250 PathPattern: "/ipam/aggregates/", 251 ProducesMediaTypes: []string{"application/json"}, 252 ConsumesMediaTypes: []string{"application/json"}, 253 Schemes: []string{"http"}, 254 Params: params, 255 Reader: &IpamAggregatesBulkDeleteReader{formats: a.formats}, 256 AuthInfo: authInfo, 257 Context: params.Context, 258 Client: params.HTTPClient, 259 } 260 for _, opt := range opts { 261 opt(op) 262 } 263 264 result, err := a.transport.Submit(op) 265 if err != nil { 266 return nil, err 267 } 268 success, ok := result.(*IpamAggregatesBulkDeleteNoContent) 269 if ok { 270 return success, nil 271 } 272 // unexpected success response 273 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 274 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 275 panic(msg) 276 } 277 278 /* 279 IpamAggregatesBulkPartialUpdate ipam aggregates bulk partial update API 280 */ 281 func (a *Client) IpamAggregatesBulkPartialUpdate(params *IpamAggregatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesBulkPartialUpdateOK, error) { 282 // TODO: Validate the params before sending 283 if params == nil { 284 params = NewIpamAggregatesBulkPartialUpdateParams() 285 } 286 op := &runtime.ClientOperation{ 287 ID: "ipam_aggregates_bulk_partial_update", 288 Method: "PATCH", 289 PathPattern: "/ipam/aggregates/", 290 ProducesMediaTypes: []string{"application/json"}, 291 ConsumesMediaTypes: []string{"application/json"}, 292 Schemes: []string{"http"}, 293 Params: params, 294 Reader: &IpamAggregatesBulkPartialUpdateReader{formats: a.formats}, 295 AuthInfo: authInfo, 296 Context: params.Context, 297 Client: params.HTTPClient, 298 } 299 for _, opt := range opts { 300 opt(op) 301 } 302 303 result, err := a.transport.Submit(op) 304 if err != nil { 305 return nil, err 306 } 307 success, ok := result.(*IpamAggregatesBulkPartialUpdateOK) 308 if ok { 309 return success, nil 310 } 311 // unexpected success response 312 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 313 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 314 panic(msg) 315 } 316 317 /* 318 IpamAggregatesBulkUpdate ipam aggregates bulk update API 319 */ 320 func (a *Client) IpamAggregatesBulkUpdate(params *IpamAggregatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesBulkUpdateOK, error) { 321 // TODO: Validate the params before sending 322 if params == nil { 323 params = NewIpamAggregatesBulkUpdateParams() 324 } 325 op := &runtime.ClientOperation{ 326 ID: "ipam_aggregates_bulk_update", 327 Method: "PUT", 328 PathPattern: "/ipam/aggregates/", 329 ProducesMediaTypes: []string{"application/json"}, 330 ConsumesMediaTypes: []string{"application/json"}, 331 Schemes: []string{"http"}, 332 Params: params, 333 Reader: &IpamAggregatesBulkUpdateReader{formats: a.formats}, 334 AuthInfo: authInfo, 335 Context: params.Context, 336 Client: params.HTTPClient, 337 } 338 for _, opt := range opts { 339 opt(op) 340 } 341 342 result, err := a.transport.Submit(op) 343 if err != nil { 344 return nil, err 345 } 346 success, ok := result.(*IpamAggregatesBulkUpdateOK) 347 if ok { 348 return success, nil 349 } 350 // unexpected success response 351 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 352 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 353 panic(msg) 354 } 355 356 /* 357 IpamAggregatesCreate ipam aggregates create API 358 */ 359 func (a *Client) IpamAggregatesCreate(params *IpamAggregatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesCreateCreated, error) { 360 // TODO: Validate the params before sending 361 if params == nil { 362 params = NewIpamAggregatesCreateParams() 363 } 364 op := &runtime.ClientOperation{ 365 ID: "ipam_aggregates_create", 366 Method: "POST", 367 PathPattern: "/ipam/aggregates/", 368 ProducesMediaTypes: []string{"application/json"}, 369 ConsumesMediaTypes: []string{"application/json"}, 370 Schemes: []string{"http"}, 371 Params: params, 372 Reader: &IpamAggregatesCreateReader{formats: a.formats}, 373 AuthInfo: authInfo, 374 Context: params.Context, 375 Client: params.HTTPClient, 376 } 377 for _, opt := range opts { 378 opt(op) 379 } 380 381 result, err := a.transport.Submit(op) 382 if err != nil { 383 return nil, err 384 } 385 success, ok := result.(*IpamAggregatesCreateCreated) 386 if ok { 387 return success, nil 388 } 389 // unexpected success response 390 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 391 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 392 panic(msg) 393 } 394 395 /* 396 IpamAggregatesDelete ipam aggregates delete API 397 */ 398 func (a *Client) IpamAggregatesDelete(params *IpamAggregatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesDeleteNoContent, error) { 399 // TODO: Validate the params before sending 400 if params == nil { 401 params = NewIpamAggregatesDeleteParams() 402 } 403 op := &runtime.ClientOperation{ 404 ID: "ipam_aggregates_delete", 405 Method: "DELETE", 406 PathPattern: "/ipam/aggregates/{id}/", 407 ProducesMediaTypes: []string{"application/json"}, 408 ConsumesMediaTypes: []string{"application/json"}, 409 Schemes: []string{"http"}, 410 Params: params, 411 Reader: &IpamAggregatesDeleteReader{formats: a.formats}, 412 AuthInfo: authInfo, 413 Context: params.Context, 414 Client: params.HTTPClient, 415 } 416 for _, opt := range opts { 417 opt(op) 418 } 419 420 result, err := a.transport.Submit(op) 421 if err != nil { 422 return nil, err 423 } 424 success, ok := result.(*IpamAggregatesDeleteNoContent) 425 if ok { 426 return success, nil 427 } 428 // unexpected success response 429 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 430 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 431 panic(msg) 432 } 433 434 /* 435 IpamAggregatesList ipam aggregates list API 436 */ 437 func (a *Client) IpamAggregatesList(params *IpamAggregatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesListOK, error) { 438 // TODO: Validate the params before sending 439 if params == nil { 440 params = NewIpamAggregatesListParams() 441 } 442 op := &runtime.ClientOperation{ 443 ID: "ipam_aggregates_list", 444 Method: "GET", 445 PathPattern: "/ipam/aggregates/", 446 ProducesMediaTypes: []string{"application/json"}, 447 ConsumesMediaTypes: []string{"application/json"}, 448 Schemes: []string{"http"}, 449 Params: params, 450 Reader: &IpamAggregatesListReader{formats: a.formats}, 451 AuthInfo: authInfo, 452 Context: params.Context, 453 Client: params.HTTPClient, 454 } 455 for _, opt := range opts { 456 opt(op) 457 } 458 459 result, err := a.transport.Submit(op) 460 if err != nil { 461 return nil, err 462 } 463 success, ok := result.(*IpamAggregatesListOK) 464 if ok { 465 return success, nil 466 } 467 // unexpected success response 468 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 469 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 470 panic(msg) 471 } 472 473 /* 474 IpamAggregatesPartialUpdate ipam aggregates partial update API 475 */ 476 func (a *Client) IpamAggregatesPartialUpdate(params *IpamAggregatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesPartialUpdateOK, error) { 477 // TODO: Validate the params before sending 478 if params == nil { 479 params = NewIpamAggregatesPartialUpdateParams() 480 } 481 op := &runtime.ClientOperation{ 482 ID: "ipam_aggregates_partial_update", 483 Method: "PATCH", 484 PathPattern: "/ipam/aggregates/{id}/", 485 ProducesMediaTypes: []string{"application/json"}, 486 ConsumesMediaTypes: []string{"application/json"}, 487 Schemes: []string{"http"}, 488 Params: params, 489 Reader: &IpamAggregatesPartialUpdateReader{formats: a.formats}, 490 AuthInfo: authInfo, 491 Context: params.Context, 492 Client: params.HTTPClient, 493 } 494 for _, opt := range opts { 495 opt(op) 496 } 497 498 result, err := a.transport.Submit(op) 499 if err != nil { 500 return nil, err 501 } 502 success, ok := result.(*IpamAggregatesPartialUpdateOK) 503 if ok { 504 return success, nil 505 } 506 // unexpected success response 507 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 508 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 509 panic(msg) 510 } 511 512 /* 513 IpamAggregatesRead ipam aggregates read API 514 */ 515 func (a *Client) IpamAggregatesRead(params *IpamAggregatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesReadOK, error) { 516 // TODO: Validate the params before sending 517 if params == nil { 518 params = NewIpamAggregatesReadParams() 519 } 520 op := &runtime.ClientOperation{ 521 ID: "ipam_aggregates_read", 522 Method: "GET", 523 PathPattern: "/ipam/aggregates/{id}/", 524 ProducesMediaTypes: []string{"application/json"}, 525 ConsumesMediaTypes: []string{"application/json"}, 526 Schemes: []string{"http"}, 527 Params: params, 528 Reader: &IpamAggregatesReadReader{formats: a.formats}, 529 AuthInfo: authInfo, 530 Context: params.Context, 531 Client: params.HTTPClient, 532 } 533 for _, opt := range opts { 534 opt(op) 535 } 536 537 result, err := a.transport.Submit(op) 538 if err != nil { 539 return nil, err 540 } 541 success, ok := result.(*IpamAggregatesReadOK) 542 if ok { 543 return success, nil 544 } 545 // unexpected success response 546 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 547 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 548 panic(msg) 549 } 550 551 /* 552 IpamAggregatesUpdate ipam aggregates update API 553 */ 554 func (a *Client) IpamAggregatesUpdate(params *IpamAggregatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamAggregatesUpdateOK, error) { 555 // TODO: Validate the params before sending 556 if params == nil { 557 params = NewIpamAggregatesUpdateParams() 558 } 559 op := &runtime.ClientOperation{ 560 ID: "ipam_aggregates_update", 561 Method: "PUT", 562 PathPattern: "/ipam/aggregates/{id}/", 563 ProducesMediaTypes: []string{"application/json"}, 564 ConsumesMediaTypes: []string{"application/json"}, 565 Schemes: []string{"http"}, 566 Params: params, 567 Reader: &IpamAggregatesUpdateReader{formats: a.formats}, 568 AuthInfo: authInfo, 569 Context: params.Context, 570 Client: params.HTTPClient, 571 } 572 for _, opt := range opts { 573 opt(op) 574 } 575 576 result, err := a.transport.Submit(op) 577 if err != nil { 578 return nil, err 579 } 580 success, ok := result.(*IpamAggregatesUpdateOK) 581 if ok { 582 return success, nil 583 } 584 // unexpected success response 585 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 586 msg := fmt.Sprintf("unexpected success response for ipam_aggregates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 587 panic(msg) 588 } 589 590 /* 591 IpamIPAddressesBulkDelete ipam ip addresses bulk delete API 592 */ 593 func (a *Client) IpamIPAddressesBulkDelete(params *IpamIPAddressesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesBulkDeleteNoContent, error) { 594 // TODO: Validate the params before sending 595 if params == nil { 596 params = NewIpamIPAddressesBulkDeleteParams() 597 } 598 op := &runtime.ClientOperation{ 599 ID: "ipam_ip-addresses_bulk_delete", 600 Method: "DELETE", 601 PathPattern: "/ipam/ip-addresses/", 602 ProducesMediaTypes: []string{"application/json"}, 603 ConsumesMediaTypes: []string{"application/json"}, 604 Schemes: []string{"http"}, 605 Params: params, 606 Reader: &IpamIPAddressesBulkDeleteReader{formats: a.formats}, 607 AuthInfo: authInfo, 608 Context: params.Context, 609 Client: params.HTTPClient, 610 } 611 for _, opt := range opts { 612 opt(op) 613 } 614 615 result, err := a.transport.Submit(op) 616 if err != nil { 617 return nil, err 618 } 619 success, ok := result.(*IpamIPAddressesBulkDeleteNoContent) 620 if ok { 621 return success, nil 622 } 623 // unexpected success response 624 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 625 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 626 panic(msg) 627 } 628 629 /* 630 IpamIPAddressesBulkPartialUpdate ipam ip addresses bulk partial update API 631 */ 632 func (a *Client) IpamIPAddressesBulkPartialUpdate(params *IpamIPAddressesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesBulkPartialUpdateOK, error) { 633 // TODO: Validate the params before sending 634 if params == nil { 635 params = NewIpamIPAddressesBulkPartialUpdateParams() 636 } 637 op := &runtime.ClientOperation{ 638 ID: "ipam_ip-addresses_bulk_partial_update", 639 Method: "PATCH", 640 PathPattern: "/ipam/ip-addresses/", 641 ProducesMediaTypes: []string{"application/json"}, 642 ConsumesMediaTypes: []string{"application/json"}, 643 Schemes: []string{"http"}, 644 Params: params, 645 Reader: &IpamIPAddressesBulkPartialUpdateReader{formats: a.formats}, 646 AuthInfo: authInfo, 647 Context: params.Context, 648 Client: params.HTTPClient, 649 } 650 for _, opt := range opts { 651 opt(op) 652 } 653 654 result, err := a.transport.Submit(op) 655 if err != nil { 656 return nil, err 657 } 658 success, ok := result.(*IpamIPAddressesBulkPartialUpdateOK) 659 if ok { 660 return success, nil 661 } 662 // unexpected success response 663 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 664 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 665 panic(msg) 666 } 667 668 /* 669 IpamIPAddressesBulkUpdate ipam ip addresses bulk update API 670 */ 671 func (a *Client) IpamIPAddressesBulkUpdate(params *IpamIPAddressesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesBulkUpdateOK, error) { 672 // TODO: Validate the params before sending 673 if params == nil { 674 params = NewIpamIPAddressesBulkUpdateParams() 675 } 676 op := &runtime.ClientOperation{ 677 ID: "ipam_ip-addresses_bulk_update", 678 Method: "PUT", 679 PathPattern: "/ipam/ip-addresses/", 680 ProducesMediaTypes: []string{"application/json"}, 681 ConsumesMediaTypes: []string{"application/json"}, 682 Schemes: []string{"http"}, 683 Params: params, 684 Reader: &IpamIPAddressesBulkUpdateReader{formats: a.formats}, 685 AuthInfo: authInfo, 686 Context: params.Context, 687 Client: params.HTTPClient, 688 } 689 for _, opt := range opts { 690 opt(op) 691 } 692 693 result, err := a.transport.Submit(op) 694 if err != nil { 695 return nil, err 696 } 697 success, ok := result.(*IpamIPAddressesBulkUpdateOK) 698 if ok { 699 return success, nil 700 } 701 // unexpected success response 702 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 703 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 704 panic(msg) 705 } 706 707 /* 708 IpamIPAddressesCreate ipam ip addresses create API 709 */ 710 func (a *Client) IpamIPAddressesCreate(params *IpamIPAddressesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesCreateCreated, error) { 711 // TODO: Validate the params before sending 712 if params == nil { 713 params = NewIpamIPAddressesCreateParams() 714 } 715 op := &runtime.ClientOperation{ 716 ID: "ipam_ip-addresses_create", 717 Method: "POST", 718 PathPattern: "/ipam/ip-addresses/", 719 ProducesMediaTypes: []string{"application/json"}, 720 ConsumesMediaTypes: []string{"application/json"}, 721 Schemes: []string{"http"}, 722 Params: params, 723 Reader: &IpamIPAddressesCreateReader{formats: a.formats}, 724 AuthInfo: authInfo, 725 Context: params.Context, 726 Client: params.HTTPClient, 727 } 728 for _, opt := range opts { 729 opt(op) 730 } 731 732 result, err := a.transport.Submit(op) 733 if err != nil { 734 return nil, err 735 } 736 success, ok := result.(*IpamIPAddressesCreateCreated) 737 if ok { 738 return success, nil 739 } 740 // unexpected success response 741 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 742 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 743 panic(msg) 744 } 745 746 /* 747 IpamIPAddressesDelete ipam ip addresses delete API 748 */ 749 func (a *Client) IpamIPAddressesDelete(params *IpamIPAddressesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesDeleteNoContent, error) { 750 // TODO: Validate the params before sending 751 if params == nil { 752 params = NewIpamIPAddressesDeleteParams() 753 } 754 op := &runtime.ClientOperation{ 755 ID: "ipam_ip-addresses_delete", 756 Method: "DELETE", 757 PathPattern: "/ipam/ip-addresses/{id}/", 758 ProducesMediaTypes: []string{"application/json"}, 759 ConsumesMediaTypes: []string{"application/json"}, 760 Schemes: []string{"http"}, 761 Params: params, 762 Reader: &IpamIPAddressesDeleteReader{formats: a.formats}, 763 AuthInfo: authInfo, 764 Context: params.Context, 765 Client: params.HTTPClient, 766 } 767 for _, opt := range opts { 768 opt(op) 769 } 770 771 result, err := a.transport.Submit(op) 772 if err != nil { 773 return nil, err 774 } 775 success, ok := result.(*IpamIPAddressesDeleteNoContent) 776 if ok { 777 return success, nil 778 } 779 // unexpected success response 780 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 781 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 782 panic(msg) 783 } 784 785 /* 786 IpamIPAddressesList ipam ip addresses list API 787 */ 788 func (a *Client) IpamIPAddressesList(params *IpamIPAddressesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesListOK, error) { 789 // TODO: Validate the params before sending 790 if params == nil { 791 params = NewIpamIPAddressesListParams() 792 } 793 op := &runtime.ClientOperation{ 794 ID: "ipam_ip-addresses_list", 795 Method: "GET", 796 PathPattern: "/ipam/ip-addresses/", 797 ProducesMediaTypes: []string{"application/json"}, 798 ConsumesMediaTypes: []string{"application/json"}, 799 Schemes: []string{"http"}, 800 Params: params, 801 Reader: &IpamIPAddressesListReader{formats: a.formats}, 802 AuthInfo: authInfo, 803 Context: params.Context, 804 Client: params.HTTPClient, 805 } 806 for _, opt := range opts { 807 opt(op) 808 } 809 810 result, err := a.transport.Submit(op) 811 if err != nil { 812 return nil, err 813 } 814 success, ok := result.(*IpamIPAddressesListOK) 815 if ok { 816 return success, nil 817 } 818 // unexpected success response 819 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 820 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 821 panic(msg) 822 } 823 824 /* 825 IpamIPAddressesPartialUpdate ipam ip addresses partial update API 826 */ 827 func (a *Client) IpamIPAddressesPartialUpdate(params *IpamIPAddressesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesPartialUpdateOK, error) { 828 // TODO: Validate the params before sending 829 if params == nil { 830 params = NewIpamIPAddressesPartialUpdateParams() 831 } 832 op := &runtime.ClientOperation{ 833 ID: "ipam_ip-addresses_partial_update", 834 Method: "PATCH", 835 PathPattern: "/ipam/ip-addresses/{id}/", 836 ProducesMediaTypes: []string{"application/json"}, 837 ConsumesMediaTypes: []string{"application/json"}, 838 Schemes: []string{"http"}, 839 Params: params, 840 Reader: &IpamIPAddressesPartialUpdateReader{formats: a.formats}, 841 AuthInfo: authInfo, 842 Context: params.Context, 843 Client: params.HTTPClient, 844 } 845 for _, opt := range opts { 846 opt(op) 847 } 848 849 result, err := a.transport.Submit(op) 850 if err != nil { 851 return nil, err 852 } 853 success, ok := result.(*IpamIPAddressesPartialUpdateOK) 854 if ok { 855 return success, nil 856 } 857 // unexpected success response 858 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 859 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 860 panic(msg) 861 } 862 863 /* 864 IpamIPAddressesRead ipam ip addresses read API 865 */ 866 func (a *Client) IpamIPAddressesRead(params *IpamIPAddressesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesReadOK, error) { 867 // TODO: Validate the params before sending 868 if params == nil { 869 params = NewIpamIPAddressesReadParams() 870 } 871 op := &runtime.ClientOperation{ 872 ID: "ipam_ip-addresses_read", 873 Method: "GET", 874 PathPattern: "/ipam/ip-addresses/{id}/", 875 ProducesMediaTypes: []string{"application/json"}, 876 ConsumesMediaTypes: []string{"application/json"}, 877 Schemes: []string{"http"}, 878 Params: params, 879 Reader: &IpamIPAddressesReadReader{formats: a.formats}, 880 AuthInfo: authInfo, 881 Context: params.Context, 882 Client: params.HTTPClient, 883 } 884 for _, opt := range opts { 885 opt(op) 886 } 887 888 result, err := a.transport.Submit(op) 889 if err != nil { 890 return nil, err 891 } 892 success, ok := result.(*IpamIPAddressesReadOK) 893 if ok { 894 return success, nil 895 } 896 // unexpected success response 897 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 898 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 899 panic(msg) 900 } 901 902 /* 903 IpamIPAddressesUpdate ipam ip addresses update API 904 */ 905 func (a *Client) IpamIPAddressesUpdate(params *IpamIPAddressesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamIPAddressesUpdateOK, error) { 906 // TODO: Validate the params before sending 907 if params == nil { 908 params = NewIpamIPAddressesUpdateParams() 909 } 910 op := &runtime.ClientOperation{ 911 ID: "ipam_ip-addresses_update", 912 Method: "PUT", 913 PathPattern: "/ipam/ip-addresses/{id}/", 914 ProducesMediaTypes: []string{"application/json"}, 915 ConsumesMediaTypes: []string{"application/json"}, 916 Schemes: []string{"http"}, 917 Params: params, 918 Reader: &IpamIPAddressesUpdateReader{formats: a.formats}, 919 AuthInfo: authInfo, 920 Context: params.Context, 921 Client: params.HTTPClient, 922 } 923 for _, opt := range opts { 924 opt(op) 925 } 926 927 result, err := a.transport.Submit(op) 928 if err != nil { 929 return nil, err 930 } 931 success, ok := result.(*IpamIPAddressesUpdateOK) 932 if ok { 933 return success, nil 934 } 935 // unexpected success response 936 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 937 msg := fmt.Sprintf("unexpected success response for ipam_ip-addresses_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 938 panic(msg) 939 } 940 941 /* 942 IpamPrefixesAvailableIpsCreate A convenience method for returning available IP addresses within a prefix. By default, the number of IPs 943 returned will be equivalent to PAGINATE_COUNT. An arbitrary limit (up to MAX_PAGE_SIZE, if set) may be passed, 944 however results will not be paginated. 945 946 The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being 947 invoked in parallel, which results in a race condition where multiple insertions can occur. 948 */ 949 func (a *Client) IpamPrefixesAvailableIpsCreate(params *IpamPrefixesAvailableIpsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailableIpsCreateCreated, error) { 950 // TODO: Validate the params before sending 951 if params == nil { 952 params = NewIpamPrefixesAvailableIpsCreateParams() 953 } 954 op := &runtime.ClientOperation{ 955 ID: "ipam_prefixes_available-ips_create", 956 Method: "POST", 957 PathPattern: "/ipam/prefixes/{id}/available-ips/", 958 ProducesMediaTypes: []string{"application/json"}, 959 ConsumesMediaTypes: []string{"application/json"}, 960 Schemes: []string{"http"}, 961 Params: params, 962 Reader: &IpamPrefixesAvailableIpsCreateReader{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.(*IpamPrefixesAvailableIpsCreateCreated) 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 ipam_prefixes_available-ips_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 982 panic(msg) 983 } 984 985 /* 986 IpamPrefixesAvailableIpsRead A convenience method for returning available IP addresses within a prefix. By default, the number of IPs 987 returned will be equivalent to PAGINATE_COUNT. An arbitrary limit (up to MAX_PAGE_SIZE, if set) may be passed, 988 however results will not be paginated. 989 990 The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being 991 invoked in parallel, which results in a race condition where multiple insertions can occur. 992 */ 993 func (a *Client) IpamPrefixesAvailableIpsRead(params *IpamPrefixesAvailableIpsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailableIpsReadOK, error) { 994 // TODO: Validate the params before sending 995 if params == nil { 996 params = NewIpamPrefixesAvailableIpsReadParams() 997 } 998 op := &runtime.ClientOperation{ 999 ID: "ipam_prefixes_available-ips_read", 1000 Method: "GET", 1001 PathPattern: "/ipam/prefixes/{id}/available-ips/", 1002 ProducesMediaTypes: []string{"application/json"}, 1003 ConsumesMediaTypes: []string{"application/json"}, 1004 Schemes: []string{"http"}, 1005 Params: params, 1006 Reader: &IpamPrefixesAvailableIpsReadReader{formats: a.formats}, 1007 AuthInfo: authInfo, 1008 Context: params.Context, 1009 Client: params.HTTPClient, 1010 } 1011 for _, opt := range opts { 1012 opt(op) 1013 } 1014 1015 result, err := a.transport.Submit(op) 1016 if err != nil { 1017 return nil, err 1018 } 1019 success, ok := result.(*IpamPrefixesAvailableIpsReadOK) 1020 if ok { 1021 return success, nil 1022 } 1023 // unexpected success response 1024 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1025 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_available-ips_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1026 panic(msg) 1027 } 1028 1029 /* 1030 IpamPrefixesAvailablePrefixesCreate as convenience method for returning available child prefixes within a parent 1031 1032 The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being 1033 invoked in parallel, which results in a race condition where multiple insertions can occur. 1034 */ 1035 func (a *Client) IpamPrefixesAvailablePrefixesCreate(params *IpamPrefixesAvailablePrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailablePrefixesCreateCreated, error) { 1036 // TODO: Validate the params before sending 1037 if params == nil { 1038 params = NewIpamPrefixesAvailablePrefixesCreateParams() 1039 } 1040 op := &runtime.ClientOperation{ 1041 ID: "ipam_prefixes_available-prefixes_create", 1042 Method: "POST", 1043 PathPattern: "/ipam/prefixes/{id}/available-prefixes/", 1044 ProducesMediaTypes: []string{"application/json"}, 1045 ConsumesMediaTypes: []string{"application/json"}, 1046 Schemes: []string{"http"}, 1047 Params: params, 1048 Reader: &IpamPrefixesAvailablePrefixesCreateReader{formats: a.formats}, 1049 AuthInfo: authInfo, 1050 Context: params.Context, 1051 Client: params.HTTPClient, 1052 } 1053 for _, opt := range opts { 1054 opt(op) 1055 } 1056 1057 result, err := a.transport.Submit(op) 1058 if err != nil { 1059 return nil, err 1060 } 1061 success, ok := result.(*IpamPrefixesAvailablePrefixesCreateCreated) 1062 if ok { 1063 return success, nil 1064 } 1065 // unexpected success response 1066 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1067 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_available-prefixes_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1068 panic(msg) 1069 } 1070 1071 /* 1072 IpamPrefixesAvailablePrefixesRead as convenience method for returning available child prefixes within a parent 1073 1074 The advisory lock decorator uses a PostgreSQL advisory lock to prevent this API from being 1075 invoked in parallel, which results in a race condition where multiple insertions can occur. 1076 */ 1077 func (a *Client) IpamPrefixesAvailablePrefixesRead(params *IpamPrefixesAvailablePrefixesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesAvailablePrefixesReadOK, error) { 1078 // TODO: Validate the params before sending 1079 if params == nil { 1080 params = NewIpamPrefixesAvailablePrefixesReadParams() 1081 } 1082 op := &runtime.ClientOperation{ 1083 ID: "ipam_prefixes_available-prefixes_read", 1084 Method: "GET", 1085 PathPattern: "/ipam/prefixes/{id}/available-prefixes/", 1086 ProducesMediaTypes: []string{"application/json"}, 1087 ConsumesMediaTypes: []string{"application/json"}, 1088 Schemes: []string{"http"}, 1089 Params: params, 1090 Reader: &IpamPrefixesAvailablePrefixesReadReader{formats: a.formats}, 1091 AuthInfo: authInfo, 1092 Context: params.Context, 1093 Client: params.HTTPClient, 1094 } 1095 for _, opt := range opts { 1096 opt(op) 1097 } 1098 1099 result, err := a.transport.Submit(op) 1100 if err != nil { 1101 return nil, err 1102 } 1103 success, ok := result.(*IpamPrefixesAvailablePrefixesReadOK) 1104 if ok { 1105 return success, nil 1106 } 1107 // unexpected success response 1108 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1109 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_available-prefixes_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1110 panic(msg) 1111 } 1112 1113 /* 1114 IpamPrefixesBulkDelete ipam prefixes bulk delete API 1115 */ 1116 func (a *Client) IpamPrefixesBulkDelete(params *IpamPrefixesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesBulkDeleteNoContent, error) { 1117 // TODO: Validate the params before sending 1118 if params == nil { 1119 params = NewIpamPrefixesBulkDeleteParams() 1120 } 1121 op := &runtime.ClientOperation{ 1122 ID: "ipam_prefixes_bulk_delete", 1123 Method: "DELETE", 1124 PathPattern: "/ipam/prefixes/", 1125 ProducesMediaTypes: []string{"application/json"}, 1126 ConsumesMediaTypes: []string{"application/json"}, 1127 Schemes: []string{"http"}, 1128 Params: params, 1129 Reader: &IpamPrefixesBulkDeleteReader{formats: a.formats}, 1130 AuthInfo: authInfo, 1131 Context: params.Context, 1132 Client: params.HTTPClient, 1133 } 1134 for _, opt := range opts { 1135 opt(op) 1136 } 1137 1138 result, err := a.transport.Submit(op) 1139 if err != nil { 1140 return nil, err 1141 } 1142 success, ok := result.(*IpamPrefixesBulkDeleteNoContent) 1143 if ok { 1144 return success, nil 1145 } 1146 // unexpected success response 1147 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1148 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1149 panic(msg) 1150 } 1151 1152 /* 1153 IpamPrefixesBulkPartialUpdate ipam prefixes bulk partial update API 1154 */ 1155 func (a *Client) IpamPrefixesBulkPartialUpdate(params *IpamPrefixesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesBulkPartialUpdateOK, error) { 1156 // TODO: Validate the params before sending 1157 if params == nil { 1158 params = NewIpamPrefixesBulkPartialUpdateParams() 1159 } 1160 op := &runtime.ClientOperation{ 1161 ID: "ipam_prefixes_bulk_partial_update", 1162 Method: "PATCH", 1163 PathPattern: "/ipam/prefixes/", 1164 ProducesMediaTypes: []string{"application/json"}, 1165 ConsumesMediaTypes: []string{"application/json"}, 1166 Schemes: []string{"http"}, 1167 Params: params, 1168 Reader: &IpamPrefixesBulkPartialUpdateReader{formats: a.formats}, 1169 AuthInfo: authInfo, 1170 Context: params.Context, 1171 Client: params.HTTPClient, 1172 } 1173 for _, opt := range opts { 1174 opt(op) 1175 } 1176 1177 result, err := a.transport.Submit(op) 1178 if err != nil { 1179 return nil, err 1180 } 1181 success, ok := result.(*IpamPrefixesBulkPartialUpdateOK) 1182 if ok { 1183 return success, nil 1184 } 1185 // unexpected success response 1186 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1187 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1188 panic(msg) 1189 } 1190 1191 /* 1192 IpamPrefixesBulkUpdate ipam prefixes bulk update API 1193 */ 1194 func (a *Client) IpamPrefixesBulkUpdate(params *IpamPrefixesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesBulkUpdateOK, error) { 1195 // TODO: Validate the params before sending 1196 if params == nil { 1197 params = NewIpamPrefixesBulkUpdateParams() 1198 } 1199 op := &runtime.ClientOperation{ 1200 ID: "ipam_prefixes_bulk_update", 1201 Method: "PUT", 1202 PathPattern: "/ipam/prefixes/", 1203 ProducesMediaTypes: []string{"application/json"}, 1204 ConsumesMediaTypes: []string{"application/json"}, 1205 Schemes: []string{"http"}, 1206 Params: params, 1207 Reader: &IpamPrefixesBulkUpdateReader{formats: a.formats}, 1208 AuthInfo: authInfo, 1209 Context: params.Context, 1210 Client: params.HTTPClient, 1211 } 1212 for _, opt := range opts { 1213 opt(op) 1214 } 1215 1216 result, err := a.transport.Submit(op) 1217 if err != nil { 1218 return nil, err 1219 } 1220 success, ok := result.(*IpamPrefixesBulkUpdateOK) 1221 if ok { 1222 return success, nil 1223 } 1224 // unexpected success response 1225 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1226 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1227 panic(msg) 1228 } 1229 1230 /* 1231 IpamPrefixesCreate ipam prefixes create API 1232 */ 1233 func (a *Client) IpamPrefixesCreate(params *IpamPrefixesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesCreateCreated, error) { 1234 // TODO: Validate the params before sending 1235 if params == nil { 1236 params = NewIpamPrefixesCreateParams() 1237 } 1238 op := &runtime.ClientOperation{ 1239 ID: "ipam_prefixes_create", 1240 Method: "POST", 1241 PathPattern: "/ipam/prefixes/", 1242 ProducesMediaTypes: []string{"application/json"}, 1243 ConsumesMediaTypes: []string{"application/json"}, 1244 Schemes: []string{"http"}, 1245 Params: params, 1246 Reader: &IpamPrefixesCreateReader{formats: a.formats}, 1247 AuthInfo: authInfo, 1248 Context: params.Context, 1249 Client: params.HTTPClient, 1250 } 1251 for _, opt := range opts { 1252 opt(op) 1253 } 1254 1255 result, err := a.transport.Submit(op) 1256 if err != nil { 1257 return nil, err 1258 } 1259 success, ok := result.(*IpamPrefixesCreateCreated) 1260 if ok { 1261 return success, nil 1262 } 1263 // unexpected success response 1264 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1265 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1266 panic(msg) 1267 } 1268 1269 /* 1270 IpamPrefixesDelete ipam prefixes delete API 1271 */ 1272 func (a *Client) IpamPrefixesDelete(params *IpamPrefixesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesDeleteNoContent, error) { 1273 // TODO: Validate the params before sending 1274 if params == nil { 1275 params = NewIpamPrefixesDeleteParams() 1276 } 1277 op := &runtime.ClientOperation{ 1278 ID: "ipam_prefixes_delete", 1279 Method: "DELETE", 1280 PathPattern: "/ipam/prefixes/{id}/", 1281 ProducesMediaTypes: []string{"application/json"}, 1282 ConsumesMediaTypes: []string{"application/json"}, 1283 Schemes: []string{"http"}, 1284 Params: params, 1285 Reader: &IpamPrefixesDeleteReader{formats: a.formats}, 1286 AuthInfo: authInfo, 1287 Context: params.Context, 1288 Client: params.HTTPClient, 1289 } 1290 for _, opt := range opts { 1291 opt(op) 1292 } 1293 1294 result, err := a.transport.Submit(op) 1295 if err != nil { 1296 return nil, err 1297 } 1298 success, ok := result.(*IpamPrefixesDeleteNoContent) 1299 if ok { 1300 return success, nil 1301 } 1302 // unexpected success response 1303 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1304 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1305 panic(msg) 1306 } 1307 1308 /* 1309 IpamPrefixesList ipam prefixes list API 1310 */ 1311 func (a *Client) IpamPrefixesList(params *IpamPrefixesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesListOK, error) { 1312 // TODO: Validate the params before sending 1313 if params == nil { 1314 params = NewIpamPrefixesListParams() 1315 } 1316 op := &runtime.ClientOperation{ 1317 ID: "ipam_prefixes_list", 1318 Method: "GET", 1319 PathPattern: "/ipam/prefixes/", 1320 ProducesMediaTypes: []string{"application/json"}, 1321 ConsumesMediaTypes: []string{"application/json"}, 1322 Schemes: []string{"http"}, 1323 Params: params, 1324 Reader: &IpamPrefixesListReader{formats: a.formats}, 1325 AuthInfo: authInfo, 1326 Context: params.Context, 1327 Client: params.HTTPClient, 1328 } 1329 for _, opt := range opts { 1330 opt(op) 1331 } 1332 1333 result, err := a.transport.Submit(op) 1334 if err != nil { 1335 return nil, err 1336 } 1337 success, ok := result.(*IpamPrefixesListOK) 1338 if ok { 1339 return success, nil 1340 } 1341 // unexpected success response 1342 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1343 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1344 panic(msg) 1345 } 1346 1347 /* 1348 IpamPrefixesPartialUpdate ipam prefixes partial update API 1349 */ 1350 func (a *Client) IpamPrefixesPartialUpdate(params *IpamPrefixesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesPartialUpdateOK, error) { 1351 // TODO: Validate the params before sending 1352 if params == nil { 1353 params = NewIpamPrefixesPartialUpdateParams() 1354 } 1355 op := &runtime.ClientOperation{ 1356 ID: "ipam_prefixes_partial_update", 1357 Method: "PATCH", 1358 PathPattern: "/ipam/prefixes/{id}/", 1359 ProducesMediaTypes: []string{"application/json"}, 1360 ConsumesMediaTypes: []string{"application/json"}, 1361 Schemes: []string{"http"}, 1362 Params: params, 1363 Reader: &IpamPrefixesPartialUpdateReader{formats: a.formats}, 1364 AuthInfo: authInfo, 1365 Context: params.Context, 1366 Client: params.HTTPClient, 1367 } 1368 for _, opt := range opts { 1369 opt(op) 1370 } 1371 1372 result, err := a.transport.Submit(op) 1373 if err != nil { 1374 return nil, err 1375 } 1376 success, ok := result.(*IpamPrefixesPartialUpdateOK) 1377 if ok { 1378 return success, nil 1379 } 1380 // unexpected success response 1381 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1382 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1383 panic(msg) 1384 } 1385 1386 /* 1387 IpamPrefixesRead ipam prefixes read API 1388 */ 1389 func (a *Client) IpamPrefixesRead(params *IpamPrefixesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesReadOK, error) { 1390 // TODO: Validate the params before sending 1391 if params == nil { 1392 params = NewIpamPrefixesReadParams() 1393 } 1394 op := &runtime.ClientOperation{ 1395 ID: "ipam_prefixes_read", 1396 Method: "GET", 1397 PathPattern: "/ipam/prefixes/{id}/", 1398 ProducesMediaTypes: []string{"application/json"}, 1399 ConsumesMediaTypes: []string{"application/json"}, 1400 Schemes: []string{"http"}, 1401 Params: params, 1402 Reader: &IpamPrefixesReadReader{formats: a.formats}, 1403 AuthInfo: authInfo, 1404 Context: params.Context, 1405 Client: params.HTTPClient, 1406 } 1407 for _, opt := range opts { 1408 opt(op) 1409 } 1410 1411 result, err := a.transport.Submit(op) 1412 if err != nil { 1413 return nil, err 1414 } 1415 success, ok := result.(*IpamPrefixesReadOK) 1416 if ok { 1417 return success, nil 1418 } 1419 // unexpected success response 1420 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1421 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1422 panic(msg) 1423 } 1424 1425 /* 1426 IpamPrefixesUpdate ipam prefixes update API 1427 */ 1428 func (a *Client) IpamPrefixesUpdate(params *IpamPrefixesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamPrefixesUpdateOK, error) { 1429 // TODO: Validate the params before sending 1430 if params == nil { 1431 params = NewIpamPrefixesUpdateParams() 1432 } 1433 op := &runtime.ClientOperation{ 1434 ID: "ipam_prefixes_update", 1435 Method: "PUT", 1436 PathPattern: "/ipam/prefixes/{id}/", 1437 ProducesMediaTypes: []string{"application/json"}, 1438 ConsumesMediaTypes: []string{"application/json"}, 1439 Schemes: []string{"http"}, 1440 Params: params, 1441 Reader: &IpamPrefixesUpdateReader{formats: a.formats}, 1442 AuthInfo: authInfo, 1443 Context: params.Context, 1444 Client: params.HTTPClient, 1445 } 1446 for _, opt := range opts { 1447 opt(op) 1448 } 1449 1450 result, err := a.transport.Submit(op) 1451 if err != nil { 1452 return nil, err 1453 } 1454 success, ok := result.(*IpamPrefixesUpdateOK) 1455 if ok { 1456 return success, nil 1457 } 1458 // unexpected success response 1459 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1460 msg := fmt.Sprintf("unexpected success response for ipam_prefixes_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1461 panic(msg) 1462 } 1463 1464 /* 1465 IpamRirsBulkDelete ipam rirs bulk delete API 1466 */ 1467 func (a *Client) IpamRirsBulkDelete(params *IpamRirsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsBulkDeleteNoContent, error) { 1468 // TODO: Validate the params before sending 1469 if params == nil { 1470 params = NewIpamRirsBulkDeleteParams() 1471 } 1472 op := &runtime.ClientOperation{ 1473 ID: "ipam_rirs_bulk_delete", 1474 Method: "DELETE", 1475 PathPattern: "/ipam/rirs/", 1476 ProducesMediaTypes: []string{"application/json"}, 1477 ConsumesMediaTypes: []string{"application/json"}, 1478 Schemes: []string{"http"}, 1479 Params: params, 1480 Reader: &IpamRirsBulkDeleteReader{formats: a.formats}, 1481 AuthInfo: authInfo, 1482 Context: params.Context, 1483 Client: params.HTTPClient, 1484 } 1485 for _, opt := range opts { 1486 opt(op) 1487 } 1488 1489 result, err := a.transport.Submit(op) 1490 if err != nil { 1491 return nil, err 1492 } 1493 success, ok := result.(*IpamRirsBulkDeleteNoContent) 1494 if ok { 1495 return success, nil 1496 } 1497 // unexpected success response 1498 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1499 msg := fmt.Sprintf("unexpected success response for ipam_rirs_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1500 panic(msg) 1501 } 1502 1503 /* 1504 IpamRirsBulkPartialUpdate ipam rirs bulk partial update API 1505 */ 1506 func (a *Client) IpamRirsBulkPartialUpdate(params *IpamRirsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsBulkPartialUpdateOK, error) { 1507 // TODO: Validate the params before sending 1508 if params == nil { 1509 params = NewIpamRirsBulkPartialUpdateParams() 1510 } 1511 op := &runtime.ClientOperation{ 1512 ID: "ipam_rirs_bulk_partial_update", 1513 Method: "PATCH", 1514 PathPattern: "/ipam/rirs/", 1515 ProducesMediaTypes: []string{"application/json"}, 1516 ConsumesMediaTypes: []string{"application/json"}, 1517 Schemes: []string{"http"}, 1518 Params: params, 1519 Reader: &IpamRirsBulkPartialUpdateReader{formats: a.formats}, 1520 AuthInfo: authInfo, 1521 Context: params.Context, 1522 Client: params.HTTPClient, 1523 } 1524 for _, opt := range opts { 1525 opt(op) 1526 } 1527 1528 result, err := a.transport.Submit(op) 1529 if err != nil { 1530 return nil, err 1531 } 1532 success, ok := result.(*IpamRirsBulkPartialUpdateOK) 1533 if ok { 1534 return success, nil 1535 } 1536 // unexpected success response 1537 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1538 msg := fmt.Sprintf("unexpected success response for ipam_rirs_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1539 panic(msg) 1540 } 1541 1542 /* 1543 IpamRirsBulkUpdate ipam rirs bulk update API 1544 */ 1545 func (a *Client) IpamRirsBulkUpdate(params *IpamRirsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsBulkUpdateOK, error) { 1546 // TODO: Validate the params before sending 1547 if params == nil { 1548 params = NewIpamRirsBulkUpdateParams() 1549 } 1550 op := &runtime.ClientOperation{ 1551 ID: "ipam_rirs_bulk_update", 1552 Method: "PUT", 1553 PathPattern: "/ipam/rirs/", 1554 ProducesMediaTypes: []string{"application/json"}, 1555 ConsumesMediaTypes: []string{"application/json"}, 1556 Schemes: []string{"http"}, 1557 Params: params, 1558 Reader: &IpamRirsBulkUpdateReader{formats: a.formats}, 1559 AuthInfo: authInfo, 1560 Context: params.Context, 1561 Client: params.HTTPClient, 1562 } 1563 for _, opt := range opts { 1564 opt(op) 1565 } 1566 1567 result, err := a.transport.Submit(op) 1568 if err != nil { 1569 return nil, err 1570 } 1571 success, ok := result.(*IpamRirsBulkUpdateOK) 1572 if ok { 1573 return success, nil 1574 } 1575 // unexpected success response 1576 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1577 msg := fmt.Sprintf("unexpected success response for ipam_rirs_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1578 panic(msg) 1579 } 1580 1581 /* 1582 IpamRirsCreate ipam rirs create API 1583 */ 1584 func (a *Client) IpamRirsCreate(params *IpamRirsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsCreateCreated, error) { 1585 // TODO: Validate the params before sending 1586 if params == nil { 1587 params = NewIpamRirsCreateParams() 1588 } 1589 op := &runtime.ClientOperation{ 1590 ID: "ipam_rirs_create", 1591 Method: "POST", 1592 PathPattern: "/ipam/rirs/", 1593 ProducesMediaTypes: []string{"application/json"}, 1594 ConsumesMediaTypes: []string{"application/json"}, 1595 Schemes: []string{"http"}, 1596 Params: params, 1597 Reader: &IpamRirsCreateReader{formats: a.formats}, 1598 AuthInfo: authInfo, 1599 Context: params.Context, 1600 Client: params.HTTPClient, 1601 } 1602 for _, opt := range opts { 1603 opt(op) 1604 } 1605 1606 result, err := a.transport.Submit(op) 1607 if err != nil { 1608 return nil, err 1609 } 1610 success, ok := result.(*IpamRirsCreateCreated) 1611 if ok { 1612 return success, nil 1613 } 1614 // unexpected success response 1615 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1616 msg := fmt.Sprintf("unexpected success response for ipam_rirs_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1617 panic(msg) 1618 } 1619 1620 /* 1621 IpamRirsDelete ipam rirs delete API 1622 */ 1623 func (a *Client) IpamRirsDelete(params *IpamRirsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsDeleteNoContent, error) { 1624 // TODO: Validate the params before sending 1625 if params == nil { 1626 params = NewIpamRirsDeleteParams() 1627 } 1628 op := &runtime.ClientOperation{ 1629 ID: "ipam_rirs_delete", 1630 Method: "DELETE", 1631 PathPattern: "/ipam/rirs/{id}/", 1632 ProducesMediaTypes: []string{"application/json"}, 1633 ConsumesMediaTypes: []string{"application/json"}, 1634 Schemes: []string{"http"}, 1635 Params: params, 1636 Reader: &IpamRirsDeleteReader{formats: a.formats}, 1637 AuthInfo: authInfo, 1638 Context: params.Context, 1639 Client: params.HTTPClient, 1640 } 1641 for _, opt := range opts { 1642 opt(op) 1643 } 1644 1645 result, err := a.transport.Submit(op) 1646 if err != nil { 1647 return nil, err 1648 } 1649 success, ok := result.(*IpamRirsDeleteNoContent) 1650 if ok { 1651 return success, nil 1652 } 1653 // unexpected success response 1654 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1655 msg := fmt.Sprintf("unexpected success response for ipam_rirs_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1656 panic(msg) 1657 } 1658 1659 /* 1660 IpamRirsList ipam rirs list API 1661 */ 1662 func (a *Client) IpamRirsList(params *IpamRirsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsListOK, error) { 1663 // TODO: Validate the params before sending 1664 if params == nil { 1665 params = NewIpamRirsListParams() 1666 } 1667 op := &runtime.ClientOperation{ 1668 ID: "ipam_rirs_list", 1669 Method: "GET", 1670 PathPattern: "/ipam/rirs/", 1671 ProducesMediaTypes: []string{"application/json"}, 1672 ConsumesMediaTypes: []string{"application/json"}, 1673 Schemes: []string{"http"}, 1674 Params: params, 1675 Reader: &IpamRirsListReader{formats: a.formats}, 1676 AuthInfo: authInfo, 1677 Context: params.Context, 1678 Client: params.HTTPClient, 1679 } 1680 for _, opt := range opts { 1681 opt(op) 1682 } 1683 1684 result, err := a.transport.Submit(op) 1685 if err != nil { 1686 return nil, err 1687 } 1688 success, ok := result.(*IpamRirsListOK) 1689 if ok { 1690 return success, nil 1691 } 1692 // unexpected success response 1693 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1694 msg := fmt.Sprintf("unexpected success response for ipam_rirs_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1695 panic(msg) 1696 } 1697 1698 /* 1699 IpamRirsPartialUpdate ipam rirs partial update API 1700 */ 1701 func (a *Client) IpamRirsPartialUpdate(params *IpamRirsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsPartialUpdateOK, error) { 1702 // TODO: Validate the params before sending 1703 if params == nil { 1704 params = NewIpamRirsPartialUpdateParams() 1705 } 1706 op := &runtime.ClientOperation{ 1707 ID: "ipam_rirs_partial_update", 1708 Method: "PATCH", 1709 PathPattern: "/ipam/rirs/{id}/", 1710 ProducesMediaTypes: []string{"application/json"}, 1711 ConsumesMediaTypes: []string{"application/json"}, 1712 Schemes: []string{"http"}, 1713 Params: params, 1714 Reader: &IpamRirsPartialUpdateReader{formats: a.formats}, 1715 AuthInfo: authInfo, 1716 Context: params.Context, 1717 Client: params.HTTPClient, 1718 } 1719 for _, opt := range opts { 1720 opt(op) 1721 } 1722 1723 result, err := a.transport.Submit(op) 1724 if err != nil { 1725 return nil, err 1726 } 1727 success, ok := result.(*IpamRirsPartialUpdateOK) 1728 if ok { 1729 return success, nil 1730 } 1731 // unexpected success response 1732 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1733 msg := fmt.Sprintf("unexpected success response for ipam_rirs_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1734 panic(msg) 1735 } 1736 1737 /* 1738 IpamRirsRead ipam rirs read API 1739 */ 1740 func (a *Client) IpamRirsRead(params *IpamRirsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsReadOK, error) { 1741 // TODO: Validate the params before sending 1742 if params == nil { 1743 params = NewIpamRirsReadParams() 1744 } 1745 op := &runtime.ClientOperation{ 1746 ID: "ipam_rirs_read", 1747 Method: "GET", 1748 PathPattern: "/ipam/rirs/{id}/", 1749 ProducesMediaTypes: []string{"application/json"}, 1750 ConsumesMediaTypes: []string{"application/json"}, 1751 Schemes: []string{"http"}, 1752 Params: params, 1753 Reader: &IpamRirsReadReader{formats: a.formats}, 1754 AuthInfo: authInfo, 1755 Context: params.Context, 1756 Client: params.HTTPClient, 1757 } 1758 for _, opt := range opts { 1759 opt(op) 1760 } 1761 1762 result, err := a.transport.Submit(op) 1763 if err != nil { 1764 return nil, err 1765 } 1766 success, ok := result.(*IpamRirsReadOK) 1767 if ok { 1768 return success, nil 1769 } 1770 // unexpected success response 1771 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1772 msg := fmt.Sprintf("unexpected success response for ipam_rirs_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1773 panic(msg) 1774 } 1775 1776 /* 1777 IpamRirsUpdate ipam rirs update API 1778 */ 1779 func (a *Client) IpamRirsUpdate(params *IpamRirsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRirsUpdateOK, error) { 1780 // TODO: Validate the params before sending 1781 if params == nil { 1782 params = NewIpamRirsUpdateParams() 1783 } 1784 op := &runtime.ClientOperation{ 1785 ID: "ipam_rirs_update", 1786 Method: "PUT", 1787 PathPattern: "/ipam/rirs/{id}/", 1788 ProducesMediaTypes: []string{"application/json"}, 1789 ConsumesMediaTypes: []string{"application/json"}, 1790 Schemes: []string{"http"}, 1791 Params: params, 1792 Reader: &IpamRirsUpdateReader{formats: a.formats}, 1793 AuthInfo: authInfo, 1794 Context: params.Context, 1795 Client: params.HTTPClient, 1796 } 1797 for _, opt := range opts { 1798 opt(op) 1799 } 1800 1801 result, err := a.transport.Submit(op) 1802 if err != nil { 1803 return nil, err 1804 } 1805 success, ok := result.(*IpamRirsUpdateOK) 1806 if ok { 1807 return success, nil 1808 } 1809 // unexpected success response 1810 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1811 msg := fmt.Sprintf("unexpected success response for ipam_rirs_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1812 panic(msg) 1813 } 1814 1815 /* 1816 IpamRolesBulkDelete ipam roles bulk delete API 1817 */ 1818 func (a *Client) IpamRolesBulkDelete(params *IpamRolesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesBulkDeleteNoContent, error) { 1819 // TODO: Validate the params before sending 1820 if params == nil { 1821 params = NewIpamRolesBulkDeleteParams() 1822 } 1823 op := &runtime.ClientOperation{ 1824 ID: "ipam_roles_bulk_delete", 1825 Method: "DELETE", 1826 PathPattern: "/ipam/roles/", 1827 ProducesMediaTypes: []string{"application/json"}, 1828 ConsumesMediaTypes: []string{"application/json"}, 1829 Schemes: []string{"http"}, 1830 Params: params, 1831 Reader: &IpamRolesBulkDeleteReader{formats: a.formats}, 1832 AuthInfo: authInfo, 1833 Context: params.Context, 1834 Client: params.HTTPClient, 1835 } 1836 for _, opt := range opts { 1837 opt(op) 1838 } 1839 1840 result, err := a.transport.Submit(op) 1841 if err != nil { 1842 return nil, err 1843 } 1844 success, ok := result.(*IpamRolesBulkDeleteNoContent) 1845 if ok { 1846 return success, nil 1847 } 1848 // unexpected success response 1849 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1850 msg := fmt.Sprintf("unexpected success response for ipam_roles_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1851 panic(msg) 1852 } 1853 1854 /* 1855 IpamRolesBulkPartialUpdate ipam roles bulk partial update API 1856 */ 1857 func (a *Client) IpamRolesBulkPartialUpdate(params *IpamRolesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesBulkPartialUpdateOK, error) { 1858 // TODO: Validate the params before sending 1859 if params == nil { 1860 params = NewIpamRolesBulkPartialUpdateParams() 1861 } 1862 op := &runtime.ClientOperation{ 1863 ID: "ipam_roles_bulk_partial_update", 1864 Method: "PATCH", 1865 PathPattern: "/ipam/roles/", 1866 ProducesMediaTypes: []string{"application/json"}, 1867 ConsumesMediaTypes: []string{"application/json"}, 1868 Schemes: []string{"http"}, 1869 Params: params, 1870 Reader: &IpamRolesBulkPartialUpdateReader{formats: a.formats}, 1871 AuthInfo: authInfo, 1872 Context: params.Context, 1873 Client: params.HTTPClient, 1874 } 1875 for _, opt := range opts { 1876 opt(op) 1877 } 1878 1879 result, err := a.transport.Submit(op) 1880 if err != nil { 1881 return nil, err 1882 } 1883 success, ok := result.(*IpamRolesBulkPartialUpdateOK) 1884 if ok { 1885 return success, nil 1886 } 1887 // unexpected success response 1888 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1889 msg := fmt.Sprintf("unexpected success response for ipam_roles_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1890 panic(msg) 1891 } 1892 1893 /* 1894 IpamRolesBulkUpdate ipam roles bulk update API 1895 */ 1896 func (a *Client) IpamRolesBulkUpdate(params *IpamRolesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesBulkUpdateOK, error) { 1897 // TODO: Validate the params before sending 1898 if params == nil { 1899 params = NewIpamRolesBulkUpdateParams() 1900 } 1901 op := &runtime.ClientOperation{ 1902 ID: "ipam_roles_bulk_update", 1903 Method: "PUT", 1904 PathPattern: "/ipam/roles/", 1905 ProducesMediaTypes: []string{"application/json"}, 1906 ConsumesMediaTypes: []string{"application/json"}, 1907 Schemes: []string{"http"}, 1908 Params: params, 1909 Reader: &IpamRolesBulkUpdateReader{formats: a.formats}, 1910 AuthInfo: authInfo, 1911 Context: params.Context, 1912 Client: params.HTTPClient, 1913 } 1914 for _, opt := range opts { 1915 opt(op) 1916 } 1917 1918 result, err := a.transport.Submit(op) 1919 if err != nil { 1920 return nil, err 1921 } 1922 success, ok := result.(*IpamRolesBulkUpdateOK) 1923 if ok { 1924 return success, nil 1925 } 1926 // unexpected success response 1927 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1928 msg := fmt.Sprintf("unexpected success response for ipam_roles_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1929 panic(msg) 1930 } 1931 1932 /* 1933 IpamRolesCreate ipam roles create API 1934 */ 1935 func (a *Client) IpamRolesCreate(params *IpamRolesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesCreateCreated, error) { 1936 // TODO: Validate the params before sending 1937 if params == nil { 1938 params = NewIpamRolesCreateParams() 1939 } 1940 op := &runtime.ClientOperation{ 1941 ID: "ipam_roles_create", 1942 Method: "POST", 1943 PathPattern: "/ipam/roles/", 1944 ProducesMediaTypes: []string{"application/json"}, 1945 ConsumesMediaTypes: []string{"application/json"}, 1946 Schemes: []string{"http"}, 1947 Params: params, 1948 Reader: &IpamRolesCreateReader{formats: a.formats}, 1949 AuthInfo: authInfo, 1950 Context: params.Context, 1951 Client: params.HTTPClient, 1952 } 1953 for _, opt := range opts { 1954 opt(op) 1955 } 1956 1957 result, err := a.transport.Submit(op) 1958 if err != nil { 1959 return nil, err 1960 } 1961 success, ok := result.(*IpamRolesCreateCreated) 1962 if ok { 1963 return success, nil 1964 } 1965 // unexpected success response 1966 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1967 msg := fmt.Sprintf("unexpected success response for ipam_roles_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1968 panic(msg) 1969 } 1970 1971 /* 1972 IpamRolesDelete ipam roles delete API 1973 */ 1974 func (a *Client) IpamRolesDelete(params *IpamRolesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesDeleteNoContent, error) { 1975 // TODO: Validate the params before sending 1976 if params == nil { 1977 params = NewIpamRolesDeleteParams() 1978 } 1979 op := &runtime.ClientOperation{ 1980 ID: "ipam_roles_delete", 1981 Method: "DELETE", 1982 PathPattern: "/ipam/roles/{id}/", 1983 ProducesMediaTypes: []string{"application/json"}, 1984 ConsumesMediaTypes: []string{"application/json"}, 1985 Schemes: []string{"http"}, 1986 Params: params, 1987 Reader: &IpamRolesDeleteReader{formats: a.formats}, 1988 AuthInfo: authInfo, 1989 Context: params.Context, 1990 Client: params.HTTPClient, 1991 } 1992 for _, opt := range opts { 1993 opt(op) 1994 } 1995 1996 result, err := a.transport.Submit(op) 1997 if err != nil { 1998 return nil, err 1999 } 2000 success, ok := result.(*IpamRolesDeleteNoContent) 2001 if ok { 2002 return success, nil 2003 } 2004 // unexpected success response 2005 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2006 msg := fmt.Sprintf("unexpected success response for ipam_roles_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2007 panic(msg) 2008 } 2009 2010 /* 2011 IpamRolesList ipam roles list API 2012 */ 2013 func (a *Client) IpamRolesList(params *IpamRolesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesListOK, error) { 2014 // TODO: Validate the params before sending 2015 if params == nil { 2016 params = NewIpamRolesListParams() 2017 } 2018 op := &runtime.ClientOperation{ 2019 ID: "ipam_roles_list", 2020 Method: "GET", 2021 PathPattern: "/ipam/roles/", 2022 ProducesMediaTypes: []string{"application/json"}, 2023 ConsumesMediaTypes: []string{"application/json"}, 2024 Schemes: []string{"http"}, 2025 Params: params, 2026 Reader: &IpamRolesListReader{formats: a.formats}, 2027 AuthInfo: authInfo, 2028 Context: params.Context, 2029 Client: params.HTTPClient, 2030 } 2031 for _, opt := range opts { 2032 opt(op) 2033 } 2034 2035 result, err := a.transport.Submit(op) 2036 if err != nil { 2037 return nil, err 2038 } 2039 success, ok := result.(*IpamRolesListOK) 2040 if ok { 2041 return success, nil 2042 } 2043 // unexpected success response 2044 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2045 msg := fmt.Sprintf("unexpected success response for ipam_roles_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2046 panic(msg) 2047 } 2048 2049 /* 2050 IpamRolesPartialUpdate ipam roles partial update API 2051 */ 2052 func (a *Client) IpamRolesPartialUpdate(params *IpamRolesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesPartialUpdateOK, error) { 2053 // TODO: Validate the params before sending 2054 if params == nil { 2055 params = NewIpamRolesPartialUpdateParams() 2056 } 2057 op := &runtime.ClientOperation{ 2058 ID: "ipam_roles_partial_update", 2059 Method: "PATCH", 2060 PathPattern: "/ipam/roles/{id}/", 2061 ProducesMediaTypes: []string{"application/json"}, 2062 ConsumesMediaTypes: []string{"application/json"}, 2063 Schemes: []string{"http"}, 2064 Params: params, 2065 Reader: &IpamRolesPartialUpdateReader{formats: a.formats}, 2066 AuthInfo: authInfo, 2067 Context: params.Context, 2068 Client: params.HTTPClient, 2069 } 2070 for _, opt := range opts { 2071 opt(op) 2072 } 2073 2074 result, err := a.transport.Submit(op) 2075 if err != nil { 2076 return nil, err 2077 } 2078 success, ok := result.(*IpamRolesPartialUpdateOK) 2079 if ok { 2080 return success, nil 2081 } 2082 // unexpected success response 2083 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2084 msg := fmt.Sprintf("unexpected success response for ipam_roles_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2085 panic(msg) 2086 } 2087 2088 /* 2089 IpamRolesRead ipam roles read API 2090 */ 2091 func (a *Client) IpamRolesRead(params *IpamRolesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesReadOK, error) { 2092 // TODO: Validate the params before sending 2093 if params == nil { 2094 params = NewIpamRolesReadParams() 2095 } 2096 op := &runtime.ClientOperation{ 2097 ID: "ipam_roles_read", 2098 Method: "GET", 2099 PathPattern: "/ipam/roles/{id}/", 2100 ProducesMediaTypes: []string{"application/json"}, 2101 ConsumesMediaTypes: []string{"application/json"}, 2102 Schemes: []string{"http"}, 2103 Params: params, 2104 Reader: &IpamRolesReadReader{formats: a.formats}, 2105 AuthInfo: authInfo, 2106 Context: params.Context, 2107 Client: params.HTTPClient, 2108 } 2109 for _, opt := range opts { 2110 opt(op) 2111 } 2112 2113 result, err := a.transport.Submit(op) 2114 if err != nil { 2115 return nil, err 2116 } 2117 success, ok := result.(*IpamRolesReadOK) 2118 if ok { 2119 return success, nil 2120 } 2121 // unexpected success response 2122 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2123 msg := fmt.Sprintf("unexpected success response for ipam_roles_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2124 panic(msg) 2125 } 2126 2127 /* 2128 IpamRolesUpdate ipam roles update API 2129 */ 2130 func (a *Client) IpamRolesUpdate(params *IpamRolesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRolesUpdateOK, error) { 2131 // TODO: Validate the params before sending 2132 if params == nil { 2133 params = NewIpamRolesUpdateParams() 2134 } 2135 op := &runtime.ClientOperation{ 2136 ID: "ipam_roles_update", 2137 Method: "PUT", 2138 PathPattern: "/ipam/roles/{id}/", 2139 ProducesMediaTypes: []string{"application/json"}, 2140 ConsumesMediaTypes: []string{"application/json"}, 2141 Schemes: []string{"http"}, 2142 Params: params, 2143 Reader: &IpamRolesUpdateReader{formats: a.formats}, 2144 AuthInfo: authInfo, 2145 Context: params.Context, 2146 Client: params.HTTPClient, 2147 } 2148 for _, opt := range opts { 2149 opt(op) 2150 } 2151 2152 result, err := a.transport.Submit(op) 2153 if err != nil { 2154 return nil, err 2155 } 2156 success, ok := result.(*IpamRolesUpdateOK) 2157 if ok { 2158 return success, nil 2159 } 2160 // unexpected success response 2161 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2162 msg := fmt.Sprintf("unexpected success response for ipam_roles_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2163 panic(msg) 2164 } 2165 2166 /* 2167 IpamRouteTargetsBulkDelete ipam route targets bulk delete API 2168 */ 2169 func (a *Client) IpamRouteTargetsBulkDelete(params *IpamRouteTargetsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsBulkDeleteNoContent, error) { 2170 // TODO: Validate the params before sending 2171 if params == nil { 2172 params = NewIpamRouteTargetsBulkDeleteParams() 2173 } 2174 op := &runtime.ClientOperation{ 2175 ID: "ipam_route-targets_bulk_delete", 2176 Method: "DELETE", 2177 PathPattern: "/ipam/route-targets/", 2178 ProducesMediaTypes: []string{"application/json"}, 2179 ConsumesMediaTypes: []string{"application/json"}, 2180 Schemes: []string{"http"}, 2181 Params: params, 2182 Reader: &IpamRouteTargetsBulkDeleteReader{formats: a.formats}, 2183 AuthInfo: authInfo, 2184 Context: params.Context, 2185 Client: params.HTTPClient, 2186 } 2187 for _, opt := range opts { 2188 opt(op) 2189 } 2190 2191 result, err := a.transport.Submit(op) 2192 if err != nil { 2193 return nil, err 2194 } 2195 success, ok := result.(*IpamRouteTargetsBulkDeleteNoContent) 2196 if ok { 2197 return success, nil 2198 } 2199 // unexpected success response 2200 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2201 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2202 panic(msg) 2203 } 2204 2205 /* 2206 IpamRouteTargetsBulkPartialUpdate ipam route targets bulk partial update API 2207 */ 2208 func (a *Client) IpamRouteTargetsBulkPartialUpdate(params *IpamRouteTargetsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsBulkPartialUpdateOK, error) { 2209 // TODO: Validate the params before sending 2210 if params == nil { 2211 params = NewIpamRouteTargetsBulkPartialUpdateParams() 2212 } 2213 op := &runtime.ClientOperation{ 2214 ID: "ipam_route-targets_bulk_partial_update", 2215 Method: "PATCH", 2216 PathPattern: "/ipam/route-targets/", 2217 ProducesMediaTypes: []string{"application/json"}, 2218 ConsumesMediaTypes: []string{"application/json"}, 2219 Schemes: []string{"http"}, 2220 Params: params, 2221 Reader: &IpamRouteTargetsBulkPartialUpdateReader{formats: a.formats}, 2222 AuthInfo: authInfo, 2223 Context: params.Context, 2224 Client: params.HTTPClient, 2225 } 2226 for _, opt := range opts { 2227 opt(op) 2228 } 2229 2230 result, err := a.transport.Submit(op) 2231 if err != nil { 2232 return nil, err 2233 } 2234 success, ok := result.(*IpamRouteTargetsBulkPartialUpdateOK) 2235 if ok { 2236 return success, nil 2237 } 2238 // unexpected success response 2239 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2240 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2241 panic(msg) 2242 } 2243 2244 /* 2245 IpamRouteTargetsBulkUpdate ipam route targets bulk update API 2246 */ 2247 func (a *Client) IpamRouteTargetsBulkUpdate(params *IpamRouteTargetsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsBulkUpdateOK, error) { 2248 // TODO: Validate the params before sending 2249 if params == nil { 2250 params = NewIpamRouteTargetsBulkUpdateParams() 2251 } 2252 op := &runtime.ClientOperation{ 2253 ID: "ipam_route-targets_bulk_update", 2254 Method: "PUT", 2255 PathPattern: "/ipam/route-targets/", 2256 ProducesMediaTypes: []string{"application/json"}, 2257 ConsumesMediaTypes: []string{"application/json"}, 2258 Schemes: []string{"http"}, 2259 Params: params, 2260 Reader: &IpamRouteTargetsBulkUpdateReader{formats: a.formats}, 2261 AuthInfo: authInfo, 2262 Context: params.Context, 2263 Client: params.HTTPClient, 2264 } 2265 for _, opt := range opts { 2266 opt(op) 2267 } 2268 2269 result, err := a.transport.Submit(op) 2270 if err != nil { 2271 return nil, err 2272 } 2273 success, ok := result.(*IpamRouteTargetsBulkUpdateOK) 2274 if ok { 2275 return success, nil 2276 } 2277 // unexpected success response 2278 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2279 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2280 panic(msg) 2281 } 2282 2283 /* 2284 IpamRouteTargetsCreate ipam route targets create API 2285 */ 2286 func (a *Client) IpamRouteTargetsCreate(params *IpamRouteTargetsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsCreateCreated, error) { 2287 // TODO: Validate the params before sending 2288 if params == nil { 2289 params = NewIpamRouteTargetsCreateParams() 2290 } 2291 op := &runtime.ClientOperation{ 2292 ID: "ipam_route-targets_create", 2293 Method: "POST", 2294 PathPattern: "/ipam/route-targets/", 2295 ProducesMediaTypes: []string{"application/json"}, 2296 ConsumesMediaTypes: []string{"application/json"}, 2297 Schemes: []string{"http"}, 2298 Params: params, 2299 Reader: &IpamRouteTargetsCreateReader{formats: a.formats}, 2300 AuthInfo: authInfo, 2301 Context: params.Context, 2302 Client: params.HTTPClient, 2303 } 2304 for _, opt := range opts { 2305 opt(op) 2306 } 2307 2308 result, err := a.transport.Submit(op) 2309 if err != nil { 2310 return nil, err 2311 } 2312 success, ok := result.(*IpamRouteTargetsCreateCreated) 2313 if ok { 2314 return success, nil 2315 } 2316 // unexpected success response 2317 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2318 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2319 panic(msg) 2320 } 2321 2322 /* 2323 IpamRouteTargetsDelete ipam route targets delete API 2324 */ 2325 func (a *Client) IpamRouteTargetsDelete(params *IpamRouteTargetsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsDeleteNoContent, error) { 2326 // TODO: Validate the params before sending 2327 if params == nil { 2328 params = NewIpamRouteTargetsDeleteParams() 2329 } 2330 op := &runtime.ClientOperation{ 2331 ID: "ipam_route-targets_delete", 2332 Method: "DELETE", 2333 PathPattern: "/ipam/route-targets/{id}/", 2334 ProducesMediaTypes: []string{"application/json"}, 2335 ConsumesMediaTypes: []string{"application/json"}, 2336 Schemes: []string{"http"}, 2337 Params: params, 2338 Reader: &IpamRouteTargetsDeleteReader{formats: a.formats}, 2339 AuthInfo: authInfo, 2340 Context: params.Context, 2341 Client: params.HTTPClient, 2342 } 2343 for _, opt := range opts { 2344 opt(op) 2345 } 2346 2347 result, err := a.transport.Submit(op) 2348 if err != nil { 2349 return nil, err 2350 } 2351 success, ok := result.(*IpamRouteTargetsDeleteNoContent) 2352 if ok { 2353 return success, nil 2354 } 2355 // unexpected success response 2356 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2357 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2358 panic(msg) 2359 } 2360 2361 /* 2362 IpamRouteTargetsList ipam route targets list API 2363 */ 2364 func (a *Client) IpamRouteTargetsList(params *IpamRouteTargetsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsListOK, error) { 2365 // TODO: Validate the params before sending 2366 if params == nil { 2367 params = NewIpamRouteTargetsListParams() 2368 } 2369 op := &runtime.ClientOperation{ 2370 ID: "ipam_route-targets_list", 2371 Method: "GET", 2372 PathPattern: "/ipam/route-targets/", 2373 ProducesMediaTypes: []string{"application/json"}, 2374 ConsumesMediaTypes: []string{"application/json"}, 2375 Schemes: []string{"http"}, 2376 Params: params, 2377 Reader: &IpamRouteTargetsListReader{formats: a.formats}, 2378 AuthInfo: authInfo, 2379 Context: params.Context, 2380 Client: params.HTTPClient, 2381 } 2382 for _, opt := range opts { 2383 opt(op) 2384 } 2385 2386 result, err := a.transport.Submit(op) 2387 if err != nil { 2388 return nil, err 2389 } 2390 success, ok := result.(*IpamRouteTargetsListOK) 2391 if ok { 2392 return success, nil 2393 } 2394 // unexpected success response 2395 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2396 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2397 panic(msg) 2398 } 2399 2400 /* 2401 IpamRouteTargetsPartialUpdate ipam route targets partial update API 2402 */ 2403 func (a *Client) IpamRouteTargetsPartialUpdate(params *IpamRouteTargetsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsPartialUpdateOK, error) { 2404 // TODO: Validate the params before sending 2405 if params == nil { 2406 params = NewIpamRouteTargetsPartialUpdateParams() 2407 } 2408 op := &runtime.ClientOperation{ 2409 ID: "ipam_route-targets_partial_update", 2410 Method: "PATCH", 2411 PathPattern: "/ipam/route-targets/{id}/", 2412 ProducesMediaTypes: []string{"application/json"}, 2413 ConsumesMediaTypes: []string{"application/json"}, 2414 Schemes: []string{"http"}, 2415 Params: params, 2416 Reader: &IpamRouteTargetsPartialUpdateReader{formats: a.formats}, 2417 AuthInfo: authInfo, 2418 Context: params.Context, 2419 Client: params.HTTPClient, 2420 } 2421 for _, opt := range opts { 2422 opt(op) 2423 } 2424 2425 result, err := a.transport.Submit(op) 2426 if err != nil { 2427 return nil, err 2428 } 2429 success, ok := result.(*IpamRouteTargetsPartialUpdateOK) 2430 if ok { 2431 return success, nil 2432 } 2433 // unexpected success response 2434 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2435 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2436 panic(msg) 2437 } 2438 2439 /* 2440 IpamRouteTargetsRead ipam route targets read API 2441 */ 2442 func (a *Client) IpamRouteTargetsRead(params *IpamRouteTargetsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsReadOK, error) { 2443 // TODO: Validate the params before sending 2444 if params == nil { 2445 params = NewIpamRouteTargetsReadParams() 2446 } 2447 op := &runtime.ClientOperation{ 2448 ID: "ipam_route-targets_read", 2449 Method: "GET", 2450 PathPattern: "/ipam/route-targets/{id}/", 2451 ProducesMediaTypes: []string{"application/json"}, 2452 ConsumesMediaTypes: []string{"application/json"}, 2453 Schemes: []string{"http"}, 2454 Params: params, 2455 Reader: &IpamRouteTargetsReadReader{formats: a.formats}, 2456 AuthInfo: authInfo, 2457 Context: params.Context, 2458 Client: params.HTTPClient, 2459 } 2460 for _, opt := range opts { 2461 opt(op) 2462 } 2463 2464 result, err := a.transport.Submit(op) 2465 if err != nil { 2466 return nil, err 2467 } 2468 success, ok := result.(*IpamRouteTargetsReadOK) 2469 if ok { 2470 return success, nil 2471 } 2472 // unexpected success response 2473 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2474 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2475 panic(msg) 2476 } 2477 2478 /* 2479 IpamRouteTargetsUpdate ipam route targets update API 2480 */ 2481 func (a *Client) IpamRouteTargetsUpdate(params *IpamRouteTargetsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamRouteTargetsUpdateOK, error) { 2482 // TODO: Validate the params before sending 2483 if params == nil { 2484 params = NewIpamRouteTargetsUpdateParams() 2485 } 2486 op := &runtime.ClientOperation{ 2487 ID: "ipam_route-targets_update", 2488 Method: "PUT", 2489 PathPattern: "/ipam/route-targets/{id}/", 2490 ProducesMediaTypes: []string{"application/json"}, 2491 ConsumesMediaTypes: []string{"application/json"}, 2492 Schemes: []string{"http"}, 2493 Params: params, 2494 Reader: &IpamRouteTargetsUpdateReader{formats: a.formats}, 2495 AuthInfo: authInfo, 2496 Context: params.Context, 2497 Client: params.HTTPClient, 2498 } 2499 for _, opt := range opts { 2500 opt(op) 2501 } 2502 2503 result, err := a.transport.Submit(op) 2504 if err != nil { 2505 return nil, err 2506 } 2507 success, ok := result.(*IpamRouteTargetsUpdateOK) 2508 if ok { 2509 return success, nil 2510 } 2511 // unexpected success response 2512 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2513 msg := fmt.Sprintf("unexpected success response for ipam_route-targets_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2514 panic(msg) 2515 } 2516 2517 /* 2518 IpamServicesBulkDelete ipam services bulk delete API 2519 */ 2520 func (a *Client) IpamServicesBulkDelete(params *IpamServicesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkDeleteNoContent, error) { 2521 // TODO: Validate the params before sending 2522 if params == nil { 2523 params = NewIpamServicesBulkDeleteParams() 2524 } 2525 op := &runtime.ClientOperation{ 2526 ID: "ipam_services_bulk_delete", 2527 Method: "DELETE", 2528 PathPattern: "/ipam/services/", 2529 ProducesMediaTypes: []string{"application/json"}, 2530 ConsumesMediaTypes: []string{"application/json"}, 2531 Schemes: []string{"http"}, 2532 Params: params, 2533 Reader: &IpamServicesBulkDeleteReader{formats: a.formats}, 2534 AuthInfo: authInfo, 2535 Context: params.Context, 2536 Client: params.HTTPClient, 2537 } 2538 for _, opt := range opts { 2539 opt(op) 2540 } 2541 2542 result, err := a.transport.Submit(op) 2543 if err != nil { 2544 return nil, err 2545 } 2546 success, ok := result.(*IpamServicesBulkDeleteNoContent) 2547 if ok { 2548 return success, nil 2549 } 2550 // unexpected success response 2551 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2552 msg := fmt.Sprintf("unexpected success response for ipam_services_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2553 panic(msg) 2554 } 2555 2556 /* 2557 IpamServicesBulkPartialUpdate ipam services bulk partial update API 2558 */ 2559 func (a *Client) IpamServicesBulkPartialUpdate(params *IpamServicesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkPartialUpdateOK, error) { 2560 // TODO: Validate the params before sending 2561 if params == nil { 2562 params = NewIpamServicesBulkPartialUpdateParams() 2563 } 2564 op := &runtime.ClientOperation{ 2565 ID: "ipam_services_bulk_partial_update", 2566 Method: "PATCH", 2567 PathPattern: "/ipam/services/", 2568 ProducesMediaTypes: []string{"application/json"}, 2569 ConsumesMediaTypes: []string{"application/json"}, 2570 Schemes: []string{"http"}, 2571 Params: params, 2572 Reader: &IpamServicesBulkPartialUpdateReader{formats: a.formats}, 2573 AuthInfo: authInfo, 2574 Context: params.Context, 2575 Client: params.HTTPClient, 2576 } 2577 for _, opt := range opts { 2578 opt(op) 2579 } 2580 2581 result, err := a.transport.Submit(op) 2582 if err != nil { 2583 return nil, err 2584 } 2585 success, ok := result.(*IpamServicesBulkPartialUpdateOK) 2586 if ok { 2587 return success, nil 2588 } 2589 // unexpected success response 2590 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2591 msg := fmt.Sprintf("unexpected success response for ipam_services_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2592 panic(msg) 2593 } 2594 2595 /* 2596 IpamServicesBulkUpdate ipam services bulk update API 2597 */ 2598 func (a *Client) IpamServicesBulkUpdate(params *IpamServicesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesBulkUpdateOK, error) { 2599 // TODO: Validate the params before sending 2600 if params == nil { 2601 params = NewIpamServicesBulkUpdateParams() 2602 } 2603 op := &runtime.ClientOperation{ 2604 ID: "ipam_services_bulk_update", 2605 Method: "PUT", 2606 PathPattern: "/ipam/services/", 2607 ProducesMediaTypes: []string{"application/json"}, 2608 ConsumesMediaTypes: []string{"application/json"}, 2609 Schemes: []string{"http"}, 2610 Params: params, 2611 Reader: &IpamServicesBulkUpdateReader{formats: a.formats}, 2612 AuthInfo: authInfo, 2613 Context: params.Context, 2614 Client: params.HTTPClient, 2615 } 2616 for _, opt := range opts { 2617 opt(op) 2618 } 2619 2620 result, err := a.transport.Submit(op) 2621 if err != nil { 2622 return nil, err 2623 } 2624 success, ok := result.(*IpamServicesBulkUpdateOK) 2625 if ok { 2626 return success, nil 2627 } 2628 // unexpected success response 2629 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2630 msg := fmt.Sprintf("unexpected success response for ipam_services_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2631 panic(msg) 2632 } 2633 2634 /* 2635 IpamServicesCreate ipam services create API 2636 */ 2637 func (a *Client) IpamServicesCreate(params *IpamServicesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesCreateCreated, error) { 2638 // TODO: Validate the params before sending 2639 if params == nil { 2640 params = NewIpamServicesCreateParams() 2641 } 2642 op := &runtime.ClientOperation{ 2643 ID: "ipam_services_create", 2644 Method: "POST", 2645 PathPattern: "/ipam/services/", 2646 ProducesMediaTypes: []string{"application/json"}, 2647 ConsumesMediaTypes: []string{"application/json"}, 2648 Schemes: []string{"http"}, 2649 Params: params, 2650 Reader: &IpamServicesCreateReader{formats: a.formats}, 2651 AuthInfo: authInfo, 2652 Context: params.Context, 2653 Client: params.HTTPClient, 2654 } 2655 for _, opt := range opts { 2656 opt(op) 2657 } 2658 2659 result, err := a.transport.Submit(op) 2660 if err != nil { 2661 return nil, err 2662 } 2663 success, ok := result.(*IpamServicesCreateCreated) 2664 if ok { 2665 return success, nil 2666 } 2667 // unexpected success response 2668 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2669 msg := fmt.Sprintf("unexpected success response for ipam_services_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2670 panic(msg) 2671 } 2672 2673 /* 2674 IpamServicesDelete ipam services delete API 2675 */ 2676 func (a *Client) IpamServicesDelete(params *IpamServicesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesDeleteNoContent, error) { 2677 // TODO: Validate the params before sending 2678 if params == nil { 2679 params = NewIpamServicesDeleteParams() 2680 } 2681 op := &runtime.ClientOperation{ 2682 ID: "ipam_services_delete", 2683 Method: "DELETE", 2684 PathPattern: "/ipam/services/{id}/", 2685 ProducesMediaTypes: []string{"application/json"}, 2686 ConsumesMediaTypes: []string{"application/json"}, 2687 Schemes: []string{"http"}, 2688 Params: params, 2689 Reader: &IpamServicesDeleteReader{formats: a.formats}, 2690 AuthInfo: authInfo, 2691 Context: params.Context, 2692 Client: params.HTTPClient, 2693 } 2694 for _, opt := range opts { 2695 opt(op) 2696 } 2697 2698 result, err := a.transport.Submit(op) 2699 if err != nil { 2700 return nil, err 2701 } 2702 success, ok := result.(*IpamServicesDeleteNoContent) 2703 if ok { 2704 return success, nil 2705 } 2706 // unexpected success response 2707 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2708 msg := fmt.Sprintf("unexpected success response for ipam_services_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2709 panic(msg) 2710 } 2711 2712 /* 2713 IpamServicesList ipam services list API 2714 */ 2715 func (a *Client) IpamServicesList(params *IpamServicesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesListOK, error) { 2716 // TODO: Validate the params before sending 2717 if params == nil { 2718 params = NewIpamServicesListParams() 2719 } 2720 op := &runtime.ClientOperation{ 2721 ID: "ipam_services_list", 2722 Method: "GET", 2723 PathPattern: "/ipam/services/", 2724 ProducesMediaTypes: []string{"application/json"}, 2725 ConsumesMediaTypes: []string{"application/json"}, 2726 Schemes: []string{"http"}, 2727 Params: params, 2728 Reader: &IpamServicesListReader{formats: a.formats}, 2729 AuthInfo: authInfo, 2730 Context: params.Context, 2731 Client: params.HTTPClient, 2732 } 2733 for _, opt := range opts { 2734 opt(op) 2735 } 2736 2737 result, err := a.transport.Submit(op) 2738 if err != nil { 2739 return nil, err 2740 } 2741 success, ok := result.(*IpamServicesListOK) 2742 if ok { 2743 return success, nil 2744 } 2745 // unexpected success response 2746 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2747 msg := fmt.Sprintf("unexpected success response for ipam_services_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2748 panic(msg) 2749 } 2750 2751 /* 2752 IpamServicesPartialUpdate ipam services partial update API 2753 */ 2754 func (a *Client) IpamServicesPartialUpdate(params *IpamServicesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesPartialUpdateOK, error) { 2755 // TODO: Validate the params before sending 2756 if params == nil { 2757 params = NewIpamServicesPartialUpdateParams() 2758 } 2759 op := &runtime.ClientOperation{ 2760 ID: "ipam_services_partial_update", 2761 Method: "PATCH", 2762 PathPattern: "/ipam/services/{id}/", 2763 ProducesMediaTypes: []string{"application/json"}, 2764 ConsumesMediaTypes: []string{"application/json"}, 2765 Schemes: []string{"http"}, 2766 Params: params, 2767 Reader: &IpamServicesPartialUpdateReader{formats: a.formats}, 2768 AuthInfo: authInfo, 2769 Context: params.Context, 2770 Client: params.HTTPClient, 2771 } 2772 for _, opt := range opts { 2773 opt(op) 2774 } 2775 2776 result, err := a.transport.Submit(op) 2777 if err != nil { 2778 return nil, err 2779 } 2780 success, ok := result.(*IpamServicesPartialUpdateOK) 2781 if ok { 2782 return success, nil 2783 } 2784 // unexpected success response 2785 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2786 msg := fmt.Sprintf("unexpected success response for ipam_services_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2787 panic(msg) 2788 } 2789 2790 /* 2791 IpamServicesRead ipam services read API 2792 */ 2793 func (a *Client) IpamServicesRead(params *IpamServicesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesReadOK, error) { 2794 // TODO: Validate the params before sending 2795 if params == nil { 2796 params = NewIpamServicesReadParams() 2797 } 2798 op := &runtime.ClientOperation{ 2799 ID: "ipam_services_read", 2800 Method: "GET", 2801 PathPattern: "/ipam/services/{id}/", 2802 ProducesMediaTypes: []string{"application/json"}, 2803 ConsumesMediaTypes: []string{"application/json"}, 2804 Schemes: []string{"http"}, 2805 Params: params, 2806 Reader: &IpamServicesReadReader{formats: a.formats}, 2807 AuthInfo: authInfo, 2808 Context: params.Context, 2809 Client: params.HTTPClient, 2810 } 2811 for _, opt := range opts { 2812 opt(op) 2813 } 2814 2815 result, err := a.transport.Submit(op) 2816 if err != nil { 2817 return nil, err 2818 } 2819 success, ok := result.(*IpamServicesReadOK) 2820 if ok { 2821 return success, nil 2822 } 2823 // unexpected success response 2824 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2825 msg := fmt.Sprintf("unexpected success response for ipam_services_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2826 panic(msg) 2827 } 2828 2829 /* 2830 IpamServicesUpdate ipam services update API 2831 */ 2832 func (a *Client) IpamServicesUpdate(params *IpamServicesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamServicesUpdateOK, error) { 2833 // TODO: Validate the params before sending 2834 if params == nil { 2835 params = NewIpamServicesUpdateParams() 2836 } 2837 op := &runtime.ClientOperation{ 2838 ID: "ipam_services_update", 2839 Method: "PUT", 2840 PathPattern: "/ipam/services/{id}/", 2841 ProducesMediaTypes: []string{"application/json"}, 2842 ConsumesMediaTypes: []string{"application/json"}, 2843 Schemes: []string{"http"}, 2844 Params: params, 2845 Reader: &IpamServicesUpdateReader{formats: a.formats}, 2846 AuthInfo: authInfo, 2847 Context: params.Context, 2848 Client: params.HTTPClient, 2849 } 2850 for _, opt := range opts { 2851 opt(op) 2852 } 2853 2854 result, err := a.transport.Submit(op) 2855 if err != nil { 2856 return nil, err 2857 } 2858 success, ok := result.(*IpamServicesUpdateOK) 2859 if ok { 2860 return success, nil 2861 } 2862 // unexpected success response 2863 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2864 msg := fmt.Sprintf("unexpected success response for ipam_services_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2865 panic(msg) 2866 } 2867 2868 /* 2869 IpamVlanGroupsBulkDelete ipam vlan groups bulk delete API 2870 */ 2871 func (a *Client) IpamVlanGroupsBulkDelete(params *IpamVlanGroupsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkDeleteNoContent, error) { 2872 // TODO: Validate the params before sending 2873 if params == nil { 2874 params = NewIpamVlanGroupsBulkDeleteParams() 2875 } 2876 op := &runtime.ClientOperation{ 2877 ID: "ipam_vlan-groups_bulk_delete", 2878 Method: "DELETE", 2879 PathPattern: "/ipam/vlan-groups/", 2880 ProducesMediaTypes: []string{"application/json"}, 2881 ConsumesMediaTypes: []string{"application/json"}, 2882 Schemes: []string{"http"}, 2883 Params: params, 2884 Reader: &IpamVlanGroupsBulkDeleteReader{formats: a.formats}, 2885 AuthInfo: authInfo, 2886 Context: params.Context, 2887 Client: params.HTTPClient, 2888 } 2889 for _, opt := range opts { 2890 opt(op) 2891 } 2892 2893 result, err := a.transport.Submit(op) 2894 if err != nil { 2895 return nil, err 2896 } 2897 success, ok := result.(*IpamVlanGroupsBulkDeleteNoContent) 2898 if ok { 2899 return success, nil 2900 } 2901 // unexpected success response 2902 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2903 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2904 panic(msg) 2905 } 2906 2907 /* 2908 IpamVlanGroupsBulkPartialUpdate ipam vlan groups bulk partial update API 2909 */ 2910 func (a *Client) IpamVlanGroupsBulkPartialUpdate(params *IpamVlanGroupsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkPartialUpdateOK, error) { 2911 // TODO: Validate the params before sending 2912 if params == nil { 2913 params = NewIpamVlanGroupsBulkPartialUpdateParams() 2914 } 2915 op := &runtime.ClientOperation{ 2916 ID: "ipam_vlan-groups_bulk_partial_update", 2917 Method: "PATCH", 2918 PathPattern: "/ipam/vlan-groups/", 2919 ProducesMediaTypes: []string{"application/json"}, 2920 ConsumesMediaTypes: []string{"application/json"}, 2921 Schemes: []string{"http"}, 2922 Params: params, 2923 Reader: &IpamVlanGroupsBulkPartialUpdateReader{formats: a.formats}, 2924 AuthInfo: authInfo, 2925 Context: params.Context, 2926 Client: params.HTTPClient, 2927 } 2928 for _, opt := range opts { 2929 opt(op) 2930 } 2931 2932 result, err := a.transport.Submit(op) 2933 if err != nil { 2934 return nil, err 2935 } 2936 success, ok := result.(*IpamVlanGroupsBulkPartialUpdateOK) 2937 if ok { 2938 return success, nil 2939 } 2940 // unexpected success response 2941 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2942 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2943 panic(msg) 2944 } 2945 2946 /* 2947 IpamVlanGroupsBulkUpdate ipam vlan groups bulk update API 2948 */ 2949 func (a *Client) IpamVlanGroupsBulkUpdate(params *IpamVlanGroupsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsBulkUpdateOK, error) { 2950 // TODO: Validate the params before sending 2951 if params == nil { 2952 params = NewIpamVlanGroupsBulkUpdateParams() 2953 } 2954 op := &runtime.ClientOperation{ 2955 ID: "ipam_vlan-groups_bulk_update", 2956 Method: "PUT", 2957 PathPattern: "/ipam/vlan-groups/", 2958 ProducesMediaTypes: []string{"application/json"}, 2959 ConsumesMediaTypes: []string{"application/json"}, 2960 Schemes: []string{"http"}, 2961 Params: params, 2962 Reader: &IpamVlanGroupsBulkUpdateReader{formats: a.formats}, 2963 AuthInfo: authInfo, 2964 Context: params.Context, 2965 Client: params.HTTPClient, 2966 } 2967 for _, opt := range opts { 2968 opt(op) 2969 } 2970 2971 result, err := a.transport.Submit(op) 2972 if err != nil { 2973 return nil, err 2974 } 2975 success, ok := result.(*IpamVlanGroupsBulkUpdateOK) 2976 if ok { 2977 return success, nil 2978 } 2979 // unexpected success response 2980 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2981 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2982 panic(msg) 2983 } 2984 2985 /* 2986 IpamVlanGroupsCreate ipam vlan groups create API 2987 */ 2988 func (a *Client) IpamVlanGroupsCreate(params *IpamVlanGroupsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsCreateCreated, error) { 2989 // TODO: Validate the params before sending 2990 if params == nil { 2991 params = NewIpamVlanGroupsCreateParams() 2992 } 2993 op := &runtime.ClientOperation{ 2994 ID: "ipam_vlan-groups_create", 2995 Method: "POST", 2996 PathPattern: "/ipam/vlan-groups/", 2997 ProducesMediaTypes: []string{"application/json"}, 2998 ConsumesMediaTypes: []string{"application/json"}, 2999 Schemes: []string{"http"}, 3000 Params: params, 3001 Reader: &IpamVlanGroupsCreateReader{formats: a.formats}, 3002 AuthInfo: authInfo, 3003 Context: params.Context, 3004 Client: params.HTTPClient, 3005 } 3006 for _, opt := range opts { 3007 opt(op) 3008 } 3009 3010 result, err := a.transport.Submit(op) 3011 if err != nil { 3012 return nil, err 3013 } 3014 success, ok := result.(*IpamVlanGroupsCreateCreated) 3015 if ok { 3016 return success, nil 3017 } 3018 // unexpected success response 3019 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3020 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3021 panic(msg) 3022 } 3023 3024 /* 3025 IpamVlanGroupsDelete ipam vlan groups delete API 3026 */ 3027 func (a *Client) IpamVlanGroupsDelete(params *IpamVlanGroupsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsDeleteNoContent, error) { 3028 // TODO: Validate the params before sending 3029 if params == nil { 3030 params = NewIpamVlanGroupsDeleteParams() 3031 } 3032 op := &runtime.ClientOperation{ 3033 ID: "ipam_vlan-groups_delete", 3034 Method: "DELETE", 3035 PathPattern: "/ipam/vlan-groups/{id}/", 3036 ProducesMediaTypes: []string{"application/json"}, 3037 ConsumesMediaTypes: []string{"application/json"}, 3038 Schemes: []string{"http"}, 3039 Params: params, 3040 Reader: &IpamVlanGroupsDeleteReader{formats: a.formats}, 3041 AuthInfo: authInfo, 3042 Context: params.Context, 3043 Client: params.HTTPClient, 3044 } 3045 for _, opt := range opts { 3046 opt(op) 3047 } 3048 3049 result, err := a.transport.Submit(op) 3050 if err != nil { 3051 return nil, err 3052 } 3053 success, ok := result.(*IpamVlanGroupsDeleteNoContent) 3054 if ok { 3055 return success, nil 3056 } 3057 // unexpected success response 3058 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3059 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3060 panic(msg) 3061 } 3062 3063 /* 3064 IpamVlanGroupsList ipam vlan groups list API 3065 */ 3066 func (a *Client) IpamVlanGroupsList(params *IpamVlanGroupsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsListOK, error) { 3067 // TODO: Validate the params before sending 3068 if params == nil { 3069 params = NewIpamVlanGroupsListParams() 3070 } 3071 op := &runtime.ClientOperation{ 3072 ID: "ipam_vlan-groups_list", 3073 Method: "GET", 3074 PathPattern: "/ipam/vlan-groups/", 3075 ProducesMediaTypes: []string{"application/json"}, 3076 ConsumesMediaTypes: []string{"application/json"}, 3077 Schemes: []string{"http"}, 3078 Params: params, 3079 Reader: &IpamVlanGroupsListReader{formats: a.formats}, 3080 AuthInfo: authInfo, 3081 Context: params.Context, 3082 Client: params.HTTPClient, 3083 } 3084 for _, opt := range opts { 3085 opt(op) 3086 } 3087 3088 result, err := a.transport.Submit(op) 3089 if err != nil { 3090 return nil, err 3091 } 3092 success, ok := result.(*IpamVlanGroupsListOK) 3093 if ok { 3094 return success, nil 3095 } 3096 // unexpected success response 3097 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3098 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3099 panic(msg) 3100 } 3101 3102 /* 3103 IpamVlanGroupsPartialUpdate ipam vlan groups partial update API 3104 */ 3105 func (a *Client) IpamVlanGroupsPartialUpdate(params *IpamVlanGroupsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsPartialUpdateOK, error) { 3106 // TODO: Validate the params before sending 3107 if params == nil { 3108 params = NewIpamVlanGroupsPartialUpdateParams() 3109 } 3110 op := &runtime.ClientOperation{ 3111 ID: "ipam_vlan-groups_partial_update", 3112 Method: "PATCH", 3113 PathPattern: "/ipam/vlan-groups/{id}/", 3114 ProducesMediaTypes: []string{"application/json"}, 3115 ConsumesMediaTypes: []string{"application/json"}, 3116 Schemes: []string{"http"}, 3117 Params: params, 3118 Reader: &IpamVlanGroupsPartialUpdateReader{formats: a.formats}, 3119 AuthInfo: authInfo, 3120 Context: params.Context, 3121 Client: params.HTTPClient, 3122 } 3123 for _, opt := range opts { 3124 opt(op) 3125 } 3126 3127 result, err := a.transport.Submit(op) 3128 if err != nil { 3129 return nil, err 3130 } 3131 success, ok := result.(*IpamVlanGroupsPartialUpdateOK) 3132 if ok { 3133 return success, nil 3134 } 3135 // unexpected success response 3136 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3137 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3138 panic(msg) 3139 } 3140 3141 /* 3142 IpamVlanGroupsRead ipam vlan groups read API 3143 */ 3144 func (a *Client) IpamVlanGroupsRead(params *IpamVlanGroupsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsReadOK, error) { 3145 // TODO: Validate the params before sending 3146 if params == nil { 3147 params = NewIpamVlanGroupsReadParams() 3148 } 3149 op := &runtime.ClientOperation{ 3150 ID: "ipam_vlan-groups_read", 3151 Method: "GET", 3152 PathPattern: "/ipam/vlan-groups/{id}/", 3153 ProducesMediaTypes: []string{"application/json"}, 3154 ConsumesMediaTypes: []string{"application/json"}, 3155 Schemes: []string{"http"}, 3156 Params: params, 3157 Reader: &IpamVlanGroupsReadReader{formats: a.formats}, 3158 AuthInfo: authInfo, 3159 Context: params.Context, 3160 Client: params.HTTPClient, 3161 } 3162 for _, opt := range opts { 3163 opt(op) 3164 } 3165 3166 result, err := a.transport.Submit(op) 3167 if err != nil { 3168 return nil, err 3169 } 3170 success, ok := result.(*IpamVlanGroupsReadOK) 3171 if ok { 3172 return success, nil 3173 } 3174 // unexpected success response 3175 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3176 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3177 panic(msg) 3178 } 3179 3180 /* 3181 IpamVlanGroupsUpdate ipam vlan groups update API 3182 */ 3183 func (a *Client) IpamVlanGroupsUpdate(params *IpamVlanGroupsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlanGroupsUpdateOK, error) { 3184 // TODO: Validate the params before sending 3185 if params == nil { 3186 params = NewIpamVlanGroupsUpdateParams() 3187 } 3188 op := &runtime.ClientOperation{ 3189 ID: "ipam_vlan-groups_update", 3190 Method: "PUT", 3191 PathPattern: "/ipam/vlan-groups/{id}/", 3192 ProducesMediaTypes: []string{"application/json"}, 3193 ConsumesMediaTypes: []string{"application/json"}, 3194 Schemes: []string{"http"}, 3195 Params: params, 3196 Reader: &IpamVlanGroupsUpdateReader{formats: a.formats}, 3197 AuthInfo: authInfo, 3198 Context: params.Context, 3199 Client: params.HTTPClient, 3200 } 3201 for _, opt := range opts { 3202 opt(op) 3203 } 3204 3205 result, err := a.transport.Submit(op) 3206 if err != nil { 3207 return nil, err 3208 } 3209 success, ok := result.(*IpamVlanGroupsUpdateOK) 3210 if ok { 3211 return success, nil 3212 } 3213 // unexpected success response 3214 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3215 msg := fmt.Sprintf("unexpected success response for ipam_vlan-groups_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3216 panic(msg) 3217 } 3218 3219 /* 3220 IpamVlansBulkDelete ipam vlans bulk delete API 3221 */ 3222 func (a *Client) IpamVlansBulkDelete(params *IpamVlansBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansBulkDeleteNoContent, error) { 3223 // TODO: Validate the params before sending 3224 if params == nil { 3225 params = NewIpamVlansBulkDeleteParams() 3226 } 3227 op := &runtime.ClientOperation{ 3228 ID: "ipam_vlans_bulk_delete", 3229 Method: "DELETE", 3230 PathPattern: "/ipam/vlans/", 3231 ProducesMediaTypes: []string{"application/json"}, 3232 ConsumesMediaTypes: []string{"application/json"}, 3233 Schemes: []string{"http"}, 3234 Params: params, 3235 Reader: &IpamVlansBulkDeleteReader{formats: a.formats}, 3236 AuthInfo: authInfo, 3237 Context: params.Context, 3238 Client: params.HTTPClient, 3239 } 3240 for _, opt := range opts { 3241 opt(op) 3242 } 3243 3244 result, err := a.transport.Submit(op) 3245 if err != nil { 3246 return nil, err 3247 } 3248 success, ok := result.(*IpamVlansBulkDeleteNoContent) 3249 if ok { 3250 return success, nil 3251 } 3252 // unexpected success response 3253 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3254 msg := fmt.Sprintf("unexpected success response for ipam_vlans_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3255 panic(msg) 3256 } 3257 3258 /* 3259 IpamVlansBulkPartialUpdate ipam vlans bulk partial update API 3260 */ 3261 func (a *Client) IpamVlansBulkPartialUpdate(params *IpamVlansBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansBulkPartialUpdateOK, error) { 3262 // TODO: Validate the params before sending 3263 if params == nil { 3264 params = NewIpamVlansBulkPartialUpdateParams() 3265 } 3266 op := &runtime.ClientOperation{ 3267 ID: "ipam_vlans_bulk_partial_update", 3268 Method: "PATCH", 3269 PathPattern: "/ipam/vlans/", 3270 ProducesMediaTypes: []string{"application/json"}, 3271 ConsumesMediaTypes: []string{"application/json"}, 3272 Schemes: []string{"http"}, 3273 Params: params, 3274 Reader: &IpamVlansBulkPartialUpdateReader{formats: a.formats}, 3275 AuthInfo: authInfo, 3276 Context: params.Context, 3277 Client: params.HTTPClient, 3278 } 3279 for _, opt := range opts { 3280 opt(op) 3281 } 3282 3283 result, err := a.transport.Submit(op) 3284 if err != nil { 3285 return nil, err 3286 } 3287 success, ok := result.(*IpamVlansBulkPartialUpdateOK) 3288 if ok { 3289 return success, nil 3290 } 3291 // unexpected success response 3292 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3293 msg := fmt.Sprintf("unexpected success response for ipam_vlans_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3294 panic(msg) 3295 } 3296 3297 /* 3298 IpamVlansBulkUpdate ipam vlans bulk update API 3299 */ 3300 func (a *Client) IpamVlansBulkUpdate(params *IpamVlansBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansBulkUpdateOK, error) { 3301 // TODO: Validate the params before sending 3302 if params == nil { 3303 params = NewIpamVlansBulkUpdateParams() 3304 } 3305 op := &runtime.ClientOperation{ 3306 ID: "ipam_vlans_bulk_update", 3307 Method: "PUT", 3308 PathPattern: "/ipam/vlans/", 3309 ProducesMediaTypes: []string{"application/json"}, 3310 ConsumesMediaTypes: []string{"application/json"}, 3311 Schemes: []string{"http"}, 3312 Params: params, 3313 Reader: &IpamVlansBulkUpdateReader{formats: a.formats}, 3314 AuthInfo: authInfo, 3315 Context: params.Context, 3316 Client: params.HTTPClient, 3317 } 3318 for _, opt := range opts { 3319 opt(op) 3320 } 3321 3322 result, err := a.transport.Submit(op) 3323 if err != nil { 3324 return nil, err 3325 } 3326 success, ok := result.(*IpamVlansBulkUpdateOK) 3327 if ok { 3328 return success, nil 3329 } 3330 // unexpected success response 3331 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3332 msg := fmt.Sprintf("unexpected success response for ipam_vlans_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3333 panic(msg) 3334 } 3335 3336 /* 3337 IpamVlansCreate ipam vlans create API 3338 */ 3339 func (a *Client) IpamVlansCreate(params *IpamVlansCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansCreateCreated, error) { 3340 // TODO: Validate the params before sending 3341 if params == nil { 3342 params = NewIpamVlansCreateParams() 3343 } 3344 op := &runtime.ClientOperation{ 3345 ID: "ipam_vlans_create", 3346 Method: "POST", 3347 PathPattern: "/ipam/vlans/", 3348 ProducesMediaTypes: []string{"application/json"}, 3349 ConsumesMediaTypes: []string{"application/json"}, 3350 Schemes: []string{"http"}, 3351 Params: params, 3352 Reader: &IpamVlansCreateReader{formats: a.formats}, 3353 AuthInfo: authInfo, 3354 Context: params.Context, 3355 Client: params.HTTPClient, 3356 } 3357 for _, opt := range opts { 3358 opt(op) 3359 } 3360 3361 result, err := a.transport.Submit(op) 3362 if err != nil { 3363 return nil, err 3364 } 3365 success, ok := result.(*IpamVlansCreateCreated) 3366 if ok { 3367 return success, nil 3368 } 3369 // unexpected success response 3370 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3371 msg := fmt.Sprintf("unexpected success response for ipam_vlans_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3372 panic(msg) 3373 } 3374 3375 /* 3376 IpamVlansDelete ipam vlans delete API 3377 */ 3378 func (a *Client) IpamVlansDelete(params *IpamVlansDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansDeleteNoContent, error) { 3379 // TODO: Validate the params before sending 3380 if params == nil { 3381 params = NewIpamVlansDeleteParams() 3382 } 3383 op := &runtime.ClientOperation{ 3384 ID: "ipam_vlans_delete", 3385 Method: "DELETE", 3386 PathPattern: "/ipam/vlans/{id}/", 3387 ProducesMediaTypes: []string{"application/json"}, 3388 ConsumesMediaTypes: []string{"application/json"}, 3389 Schemes: []string{"http"}, 3390 Params: params, 3391 Reader: &IpamVlansDeleteReader{formats: a.formats}, 3392 AuthInfo: authInfo, 3393 Context: params.Context, 3394 Client: params.HTTPClient, 3395 } 3396 for _, opt := range opts { 3397 opt(op) 3398 } 3399 3400 result, err := a.transport.Submit(op) 3401 if err != nil { 3402 return nil, err 3403 } 3404 success, ok := result.(*IpamVlansDeleteNoContent) 3405 if ok { 3406 return success, nil 3407 } 3408 // unexpected success response 3409 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3410 msg := fmt.Sprintf("unexpected success response for ipam_vlans_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3411 panic(msg) 3412 } 3413 3414 /* 3415 IpamVlansList ipam vlans list API 3416 */ 3417 func (a *Client) IpamVlansList(params *IpamVlansListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansListOK, error) { 3418 // TODO: Validate the params before sending 3419 if params == nil { 3420 params = NewIpamVlansListParams() 3421 } 3422 op := &runtime.ClientOperation{ 3423 ID: "ipam_vlans_list", 3424 Method: "GET", 3425 PathPattern: "/ipam/vlans/", 3426 ProducesMediaTypes: []string{"application/json"}, 3427 ConsumesMediaTypes: []string{"application/json"}, 3428 Schemes: []string{"http"}, 3429 Params: params, 3430 Reader: &IpamVlansListReader{formats: a.formats}, 3431 AuthInfo: authInfo, 3432 Context: params.Context, 3433 Client: params.HTTPClient, 3434 } 3435 for _, opt := range opts { 3436 opt(op) 3437 } 3438 3439 result, err := a.transport.Submit(op) 3440 if err != nil { 3441 return nil, err 3442 } 3443 success, ok := result.(*IpamVlansListOK) 3444 if ok { 3445 return success, nil 3446 } 3447 // unexpected success response 3448 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3449 msg := fmt.Sprintf("unexpected success response for ipam_vlans_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3450 panic(msg) 3451 } 3452 3453 /* 3454 IpamVlansPartialUpdate ipam vlans partial update API 3455 */ 3456 func (a *Client) IpamVlansPartialUpdate(params *IpamVlansPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansPartialUpdateOK, error) { 3457 // TODO: Validate the params before sending 3458 if params == nil { 3459 params = NewIpamVlansPartialUpdateParams() 3460 } 3461 op := &runtime.ClientOperation{ 3462 ID: "ipam_vlans_partial_update", 3463 Method: "PATCH", 3464 PathPattern: "/ipam/vlans/{id}/", 3465 ProducesMediaTypes: []string{"application/json"}, 3466 ConsumesMediaTypes: []string{"application/json"}, 3467 Schemes: []string{"http"}, 3468 Params: params, 3469 Reader: &IpamVlansPartialUpdateReader{formats: a.formats}, 3470 AuthInfo: authInfo, 3471 Context: params.Context, 3472 Client: params.HTTPClient, 3473 } 3474 for _, opt := range opts { 3475 opt(op) 3476 } 3477 3478 result, err := a.transport.Submit(op) 3479 if err != nil { 3480 return nil, err 3481 } 3482 success, ok := result.(*IpamVlansPartialUpdateOK) 3483 if ok { 3484 return success, nil 3485 } 3486 // unexpected success response 3487 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3488 msg := fmt.Sprintf("unexpected success response for ipam_vlans_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3489 panic(msg) 3490 } 3491 3492 /* 3493 IpamVlansRead ipam vlans read API 3494 */ 3495 func (a *Client) IpamVlansRead(params *IpamVlansReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansReadOK, error) { 3496 // TODO: Validate the params before sending 3497 if params == nil { 3498 params = NewIpamVlansReadParams() 3499 } 3500 op := &runtime.ClientOperation{ 3501 ID: "ipam_vlans_read", 3502 Method: "GET", 3503 PathPattern: "/ipam/vlans/{id}/", 3504 ProducesMediaTypes: []string{"application/json"}, 3505 ConsumesMediaTypes: []string{"application/json"}, 3506 Schemes: []string{"http"}, 3507 Params: params, 3508 Reader: &IpamVlansReadReader{formats: a.formats}, 3509 AuthInfo: authInfo, 3510 Context: params.Context, 3511 Client: params.HTTPClient, 3512 } 3513 for _, opt := range opts { 3514 opt(op) 3515 } 3516 3517 result, err := a.transport.Submit(op) 3518 if err != nil { 3519 return nil, err 3520 } 3521 success, ok := result.(*IpamVlansReadOK) 3522 if ok { 3523 return success, nil 3524 } 3525 // unexpected success response 3526 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3527 msg := fmt.Sprintf("unexpected success response for ipam_vlans_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3528 panic(msg) 3529 } 3530 3531 /* 3532 IpamVlansUpdate ipam vlans update API 3533 */ 3534 func (a *Client) IpamVlansUpdate(params *IpamVlansUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVlansUpdateOK, error) { 3535 // TODO: Validate the params before sending 3536 if params == nil { 3537 params = NewIpamVlansUpdateParams() 3538 } 3539 op := &runtime.ClientOperation{ 3540 ID: "ipam_vlans_update", 3541 Method: "PUT", 3542 PathPattern: "/ipam/vlans/{id}/", 3543 ProducesMediaTypes: []string{"application/json"}, 3544 ConsumesMediaTypes: []string{"application/json"}, 3545 Schemes: []string{"http"}, 3546 Params: params, 3547 Reader: &IpamVlansUpdateReader{formats: a.formats}, 3548 AuthInfo: authInfo, 3549 Context: params.Context, 3550 Client: params.HTTPClient, 3551 } 3552 for _, opt := range opts { 3553 opt(op) 3554 } 3555 3556 result, err := a.transport.Submit(op) 3557 if err != nil { 3558 return nil, err 3559 } 3560 success, ok := result.(*IpamVlansUpdateOK) 3561 if ok { 3562 return success, nil 3563 } 3564 // unexpected success response 3565 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3566 msg := fmt.Sprintf("unexpected success response for ipam_vlans_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3567 panic(msg) 3568 } 3569 3570 /* 3571 IpamVrfsBulkDelete ipam vrfs bulk delete API 3572 */ 3573 func (a *Client) IpamVrfsBulkDelete(params *IpamVrfsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsBulkDeleteNoContent, error) { 3574 // TODO: Validate the params before sending 3575 if params == nil { 3576 params = NewIpamVrfsBulkDeleteParams() 3577 } 3578 op := &runtime.ClientOperation{ 3579 ID: "ipam_vrfs_bulk_delete", 3580 Method: "DELETE", 3581 PathPattern: "/ipam/vrfs/", 3582 ProducesMediaTypes: []string{"application/json"}, 3583 ConsumesMediaTypes: []string{"application/json"}, 3584 Schemes: []string{"http"}, 3585 Params: params, 3586 Reader: &IpamVrfsBulkDeleteReader{formats: a.formats}, 3587 AuthInfo: authInfo, 3588 Context: params.Context, 3589 Client: params.HTTPClient, 3590 } 3591 for _, opt := range opts { 3592 opt(op) 3593 } 3594 3595 result, err := a.transport.Submit(op) 3596 if err != nil { 3597 return nil, err 3598 } 3599 success, ok := result.(*IpamVrfsBulkDeleteNoContent) 3600 if ok { 3601 return success, nil 3602 } 3603 // unexpected success response 3604 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3605 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3606 panic(msg) 3607 } 3608 3609 /* 3610 IpamVrfsBulkPartialUpdate ipam vrfs bulk partial update API 3611 */ 3612 func (a *Client) IpamVrfsBulkPartialUpdate(params *IpamVrfsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsBulkPartialUpdateOK, error) { 3613 // TODO: Validate the params before sending 3614 if params == nil { 3615 params = NewIpamVrfsBulkPartialUpdateParams() 3616 } 3617 op := &runtime.ClientOperation{ 3618 ID: "ipam_vrfs_bulk_partial_update", 3619 Method: "PATCH", 3620 PathPattern: "/ipam/vrfs/", 3621 ProducesMediaTypes: []string{"application/json"}, 3622 ConsumesMediaTypes: []string{"application/json"}, 3623 Schemes: []string{"http"}, 3624 Params: params, 3625 Reader: &IpamVrfsBulkPartialUpdateReader{formats: a.formats}, 3626 AuthInfo: authInfo, 3627 Context: params.Context, 3628 Client: params.HTTPClient, 3629 } 3630 for _, opt := range opts { 3631 opt(op) 3632 } 3633 3634 result, err := a.transport.Submit(op) 3635 if err != nil { 3636 return nil, err 3637 } 3638 success, ok := result.(*IpamVrfsBulkPartialUpdateOK) 3639 if ok { 3640 return success, nil 3641 } 3642 // unexpected success response 3643 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3644 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3645 panic(msg) 3646 } 3647 3648 /* 3649 IpamVrfsBulkUpdate ipam vrfs bulk update API 3650 */ 3651 func (a *Client) IpamVrfsBulkUpdate(params *IpamVrfsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsBulkUpdateOK, error) { 3652 // TODO: Validate the params before sending 3653 if params == nil { 3654 params = NewIpamVrfsBulkUpdateParams() 3655 } 3656 op := &runtime.ClientOperation{ 3657 ID: "ipam_vrfs_bulk_update", 3658 Method: "PUT", 3659 PathPattern: "/ipam/vrfs/", 3660 ProducesMediaTypes: []string{"application/json"}, 3661 ConsumesMediaTypes: []string{"application/json"}, 3662 Schemes: []string{"http"}, 3663 Params: params, 3664 Reader: &IpamVrfsBulkUpdateReader{formats: a.formats}, 3665 AuthInfo: authInfo, 3666 Context: params.Context, 3667 Client: params.HTTPClient, 3668 } 3669 for _, opt := range opts { 3670 opt(op) 3671 } 3672 3673 result, err := a.transport.Submit(op) 3674 if err != nil { 3675 return nil, err 3676 } 3677 success, ok := result.(*IpamVrfsBulkUpdateOK) 3678 if ok { 3679 return success, nil 3680 } 3681 // unexpected success response 3682 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3683 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3684 panic(msg) 3685 } 3686 3687 /* 3688 IpamVrfsCreate ipam vrfs create API 3689 */ 3690 func (a *Client) IpamVrfsCreate(params *IpamVrfsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsCreateCreated, error) { 3691 // TODO: Validate the params before sending 3692 if params == nil { 3693 params = NewIpamVrfsCreateParams() 3694 } 3695 op := &runtime.ClientOperation{ 3696 ID: "ipam_vrfs_create", 3697 Method: "POST", 3698 PathPattern: "/ipam/vrfs/", 3699 ProducesMediaTypes: []string{"application/json"}, 3700 ConsumesMediaTypes: []string{"application/json"}, 3701 Schemes: []string{"http"}, 3702 Params: params, 3703 Reader: &IpamVrfsCreateReader{formats: a.formats}, 3704 AuthInfo: authInfo, 3705 Context: params.Context, 3706 Client: params.HTTPClient, 3707 } 3708 for _, opt := range opts { 3709 opt(op) 3710 } 3711 3712 result, err := a.transport.Submit(op) 3713 if err != nil { 3714 return nil, err 3715 } 3716 success, ok := result.(*IpamVrfsCreateCreated) 3717 if ok { 3718 return success, nil 3719 } 3720 // unexpected success response 3721 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3722 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3723 panic(msg) 3724 } 3725 3726 /* 3727 IpamVrfsDelete ipam vrfs delete API 3728 */ 3729 func (a *Client) IpamVrfsDelete(params *IpamVrfsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsDeleteNoContent, error) { 3730 // TODO: Validate the params before sending 3731 if params == nil { 3732 params = NewIpamVrfsDeleteParams() 3733 } 3734 op := &runtime.ClientOperation{ 3735 ID: "ipam_vrfs_delete", 3736 Method: "DELETE", 3737 PathPattern: "/ipam/vrfs/{id}/", 3738 ProducesMediaTypes: []string{"application/json"}, 3739 ConsumesMediaTypes: []string{"application/json"}, 3740 Schemes: []string{"http"}, 3741 Params: params, 3742 Reader: &IpamVrfsDeleteReader{formats: a.formats}, 3743 AuthInfo: authInfo, 3744 Context: params.Context, 3745 Client: params.HTTPClient, 3746 } 3747 for _, opt := range opts { 3748 opt(op) 3749 } 3750 3751 result, err := a.transport.Submit(op) 3752 if err != nil { 3753 return nil, err 3754 } 3755 success, ok := result.(*IpamVrfsDeleteNoContent) 3756 if ok { 3757 return success, nil 3758 } 3759 // unexpected success response 3760 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3761 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3762 panic(msg) 3763 } 3764 3765 /* 3766 IpamVrfsList ipam vrfs list API 3767 */ 3768 func (a *Client) IpamVrfsList(params *IpamVrfsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsListOK, error) { 3769 // TODO: Validate the params before sending 3770 if params == nil { 3771 params = NewIpamVrfsListParams() 3772 } 3773 op := &runtime.ClientOperation{ 3774 ID: "ipam_vrfs_list", 3775 Method: "GET", 3776 PathPattern: "/ipam/vrfs/", 3777 ProducesMediaTypes: []string{"application/json"}, 3778 ConsumesMediaTypes: []string{"application/json"}, 3779 Schemes: []string{"http"}, 3780 Params: params, 3781 Reader: &IpamVrfsListReader{formats: a.formats}, 3782 AuthInfo: authInfo, 3783 Context: params.Context, 3784 Client: params.HTTPClient, 3785 } 3786 for _, opt := range opts { 3787 opt(op) 3788 } 3789 3790 result, err := a.transport.Submit(op) 3791 if err != nil { 3792 return nil, err 3793 } 3794 success, ok := result.(*IpamVrfsListOK) 3795 if ok { 3796 return success, nil 3797 } 3798 // unexpected success response 3799 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3800 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3801 panic(msg) 3802 } 3803 3804 /* 3805 IpamVrfsPartialUpdate ipam vrfs partial update API 3806 */ 3807 func (a *Client) IpamVrfsPartialUpdate(params *IpamVrfsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsPartialUpdateOK, error) { 3808 // TODO: Validate the params before sending 3809 if params == nil { 3810 params = NewIpamVrfsPartialUpdateParams() 3811 } 3812 op := &runtime.ClientOperation{ 3813 ID: "ipam_vrfs_partial_update", 3814 Method: "PATCH", 3815 PathPattern: "/ipam/vrfs/{id}/", 3816 ProducesMediaTypes: []string{"application/json"}, 3817 ConsumesMediaTypes: []string{"application/json"}, 3818 Schemes: []string{"http"}, 3819 Params: params, 3820 Reader: &IpamVrfsPartialUpdateReader{formats: a.formats}, 3821 AuthInfo: authInfo, 3822 Context: params.Context, 3823 Client: params.HTTPClient, 3824 } 3825 for _, opt := range opts { 3826 opt(op) 3827 } 3828 3829 result, err := a.transport.Submit(op) 3830 if err != nil { 3831 return nil, err 3832 } 3833 success, ok := result.(*IpamVrfsPartialUpdateOK) 3834 if ok { 3835 return success, nil 3836 } 3837 // unexpected success response 3838 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3839 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3840 panic(msg) 3841 } 3842 3843 /* 3844 IpamVrfsRead ipam vrfs read API 3845 */ 3846 func (a *Client) IpamVrfsRead(params *IpamVrfsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsReadOK, error) { 3847 // TODO: Validate the params before sending 3848 if params == nil { 3849 params = NewIpamVrfsReadParams() 3850 } 3851 op := &runtime.ClientOperation{ 3852 ID: "ipam_vrfs_read", 3853 Method: "GET", 3854 PathPattern: "/ipam/vrfs/{id}/", 3855 ProducesMediaTypes: []string{"application/json"}, 3856 ConsumesMediaTypes: []string{"application/json"}, 3857 Schemes: []string{"http"}, 3858 Params: params, 3859 Reader: &IpamVrfsReadReader{formats: a.formats}, 3860 AuthInfo: authInfo, 3861 Context: params.Context, 3862 Client: params.HTTPClient, 3863 } 3864 for _, opt := range opts { 3865 opt(op) 3866 } 3867 3868 result, err := a.transport.Submit(op) 3869 if err != nil { 3870 return nil, err 3871 } 3872 success, ok := result.(*IpamVrfsReadOK) 3873 if ok { 3874 return success, nil 3875 } 3876 // unexpected success response 3877 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3878 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3879 panic(msg) 3880 } 3881 3882 /* 3883 IpamVrfsUpdate ipam vrfs update API 3884 */ 3885 func (a *Client) IpamVrfsUpdate(params *IpamVrfsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IpamVrfsUpdateOK, error) { 3886 // TODO: Validate the params before sending 3887 if params == nil { 3888 params = NewIpamVrfsUpdateParams() 3889 } 3890 op := &runtime.ClientOperation{ 3891 ID: "ipam_vrfs_update", 3892 Method: "PUT", 3893 PathPattern: "/ipam/vrfs/{id}/", 3894 ProducesMediaTypes: []string{"application/json"}, 3895 ConsumesMediaTypes: []string{"application/json"}, 3896 Schemes: []string{"http"}, 3897 Params: params, 3898 Reader: &IpamVrfsUpdateReader{formats: a.formats}, 3899 AuthInfo: authInfo, 3900 Context: params.Context, 3901 Client: params.HTTPClient, 3902 } 3903 for _, opt := range opts { 3904 opt(op) 3905 } 3906 3907 result, err := a.transport.Submit(op) 3908 if err != nil { 3909 return nil, err 3910 } 3911 success, ok := result.(*IpamVrfsUpdateOK) 3912 if ok { 3913 return success, nil 3914 } 3915 // unexpected success response 3916 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3917 msg := fmt.Sprintf("unexpected success response for ipam_vrfs_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3918 panic(msg) 3919 } 3920 3921 // SetTransport changes the transport on the client 3922 func (a *Client) SetTransport(transport runtime.ClientTransport) { 3923 a.transport = transport 3924 }