github.com/digitalocean/go-netbox@v0.0.2/netbox/client/extras/extras_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 extras 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 extras 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 extras 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 ExtrasConfigContextsBulkDelete(params *ExtrasConfigContextsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsBulkDeleteNoContent, error) 49 50 ExtrasConfigContextsBulkPartialUpdate(params *ExtrasConfigContextsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsBulkPartialUpdateOK, error) 51 52 ExtrasConfigContextsBulkUpdate(params *ExtrasConfigContextsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsBulkUpdateOK, error) 53 54 ExtrasConfigContextsCreate(params *ExtrasConfigContextsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsCreateCreated, error) 55 56 ExtrasConfigContextsDelete(params *ExtrasConfigContextsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsDeleteNoContent, error) 57 58 ExtrasConfigContextsList(params *ExtrasConfigContextsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsListOK, error) 59 60 ExtrasConfigContextsPartialUpdate(params *ExtrasConfigContextsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsPartialUpdateOK, error) 61 62 ExtrasConfigContextsRead(params *ExtrasConfigContextsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsReadOK, error) 63 64 ExtrasConfigContextsUpdate(params *ExtrasConfigContextsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsUpdateOK, error) 65 66 ExtrasContentTypesList(params *ExtrasContentTypesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasContentTypesListOK, error) 67 68 ExtrasContentTypesRead(params *ExtrasContentTypesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasContentTypesReadOK, error) 69 70 ExtrasCustomFieldsBulkDelete(params *ExtrasCustomFieldsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsBulkDeleteNoContent, error) 71 72 ExtrasCustomFieldsBulkPartialUpdate(params *ExtrasCustomFieldsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsBulkPartialUpdateOK, error) 73 74 ExtrasCustomFieldsBulkUpdate(params *ExtrasCustomFieldsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsBulkUpdateOK, error) 75 76 ExtrasCustomFieldsCreate(params *ExtrasCustomFieldsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsCreateCreated, error) 77 78 ExtrasCustomFieldsDelete(params *ExtrasCustomFieldsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsDeleteNoContent, error) 79 80 ExtrasCustomFieldsList(params *ExtrasCustomFieldsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsListOK, error) 81 82 ExtrasCustomFieldsPartialUpdate(params *ExtrasCustomFieldsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsPartialUpdateOK, error) 83 84 ExtrasCustomFieldsRead(params *ExtrasCustomFieldsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsReadOK, error) 85 86 ExtrasCustomFieldsUpdate(params *ExtrasCustomFieldsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsUpdateOK, error) 87 88 ExtrasCustomLinksBulkDelete(params *ExtrasCustomLinksBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksBulkDeleteNoContent, error) 89 90 ExtrasCustomLinksBulkPartialUpdate(params *ExtrasCustomLinksBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksBulkPartialUpdateOK, error) 91 92 ExtrasCustomLinksBulkUpdate(params *ExtrasCustomLinksBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksBulkUpdateOK, error) 93 94 ExtrasCustomLinksCreate(params *ExtrasCustomLinksCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksCreateCreated, error) 95 96 ExtrasCustomLinksDelete(params *ExtrasCustomLinksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksDeleteNoContent, error) 97 98 ExtrasCustomLinksList(params *ExtrasCustomLinksListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksListOK, error) 99 100 ExtrasCustomLinksPartialUpdate(params *ExtrasCustomLinksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksPartialUpdateOK, error) 101 102 ExtrasCustomLinksRead(params *ExtrasCustomLinksReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksReadOK, error) 103 104 ExtrasCustomLinksUpdate(params *ExtrasCustomLinksUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksUpdateOK, error) 105 106 ExtrasExportTemplatesBulkDelete(params *ExtrasExportTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesBulkDeleteNoContent, error) 107 108 ExtrasExportTemplatesBulkPartialUpdate(params *ExtrasExportTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesBulkPartialUpdateOK, error) 109 110 ExtrasExportTemplatesBulkUpdate(params *ExtrasExportTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesBulkUpdateOK, error) 111 112 ExtrasExportTemplatesCreate(params *ExtrasExportTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesCreateCreated, error) 113 114 ExtrasExportTemplatesDelete(params *ExtrasExportTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesDeleteNoContent, error) 115 116 ExtrasExportTemplatesList(params *ExtrasExportTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesListOK, error) 117 118 ExtrasExportTemplatesPartialUpdate(params *ExtrasExportTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesPartialUpdateOK, error) 119 120 ExtrasExportTemplatesRead(params *ExtrasExportTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesReadOK, error) 121 122 ExtrasExportTemplatesUpdate(params *ExtrasExportTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesUpdateOK, error) 123 124 ExtrasImageAttachmentsBulkDelete(params *ExtrasImageAttachmentsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsBulkDeleteNoContent, error) 125 126 ExtrasImageAttachmentsBulkPartialUpdate(params *ExtrasImageAttachmentsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsBulkPartialUpdateOK, error) 127 128 ExtrasImageAttachmentsBulkUpdate(params *ExtrasImageAttachmentsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsBulkUpdateOK, error) 129 130 ExtrasImageAttachmentsCreate(params *ExtrasImageAttachmentsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsCreateCreated, error) 131 132 ExtrasImageAttachmentsDelete(params *ExtrasImageAttachmentsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsDeleteNoContent, error) 133 134 ExtrasImageAttachmentsList(params *ExtrasImageAttachmentsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsListOK, error) 135 136 ExtrasImageAttachmentsPartialUpdate(params *ExtrasImageAttachmentsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsPartialUpdateOK, error) 137 138 ExtrasImageAttachmentsRead(params *ExtrasImageAttachmentsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsReadOK, error) 139 140 ExtrasImageAttachmentsUpdate(params *ExtrasImageAttachmentsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsUpdateOK, error) 141 142 ExtrasJobResultsList(params *ExtrasJobResultsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJobResultsListOK, error) 143 144 ExtrasJobResultsRead(params *ExtrasJobResultsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJobResultsReadOK, error) 145 146 ExtrasJournalEntriesBulkDelete(params *ExtrasJournalEntriesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesBulkDeleteNoContent, error) 147 148 ExtrasJournalEntriesBulkPartialUpdate(params *ExtrasJournalEntriesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesBulkPartialUpdateOK, error) 149 150 ExtrasJournalEntriesBulkUpdate(params *ExtrasJournalEntriesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesBulkUpdateOK, error) 151 152 ExtrasJournalEntriesCreate(params *ExtrasJournalEntriesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesCreateCreated, error) 153 154 ExtrasJournalEntriesDelete(params *ExtrasJournalEntriesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesDeleteNoContent, error) 155 156 ExtrasJournalEntriesList(params *ExtrasJournalEntriesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesListOK, error) 157 158 ExtrasJournalEntriesPartialUpdate(params *ExtrasJournalEntriesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesPartialUpdateOK, error) 159 160 ExtrasJournalEntriesRead(params *ExtrasJournalEntriesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesReadOK, error) 161 162 ExtrasJournalEntriesUpdate(params *ExtrasJournalEntriesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesUpdateOK, error) 163 164 ExtrasObjectChangesList(params *ExtrasObjectChangesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasObjectChangesListOK, error) 165 166 ExtrasObjectChangesRead(params *ExtrasObjectChangesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasObjectChangesReadOK, error) 167 168 ExtrasReportsList(params *ExtrasReportsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsListOK, error) 169 170 ExtrasReportsRead(params *ExtrasReportsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsReadOK, error) 171 172 ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsRunCreated, error) 173 174 ExtrasScriptsList(params *ExtrasScriptsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasScriptsListOK, error) 175 176 ExtrasScriptsRead(params *ExtrasScriptsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasScriptsReadOK, error) 177 178 ExtrasTagsBulkDelete(params *ExtrasTagsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsBulkDeleteNoContent, error) 179 180 ExtrasTagsBulkPartialUpdate(params *ExtrasTagsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsBulkPartialUpdateOK, error) 181 182 ExtrasTagsBulkUpdate(params *ExtrasTagsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsBulkUpdateOK, error) 183 184 ExtrasTagsCreate(params *ExtrasTagsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsCreateCreated, error) 185 186 ExtrasTagsDelete(params *ExtrasTagsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsDeleteNoContent, error) 187 188 ExtrasTagsList(params *ExtrasTagsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsListOK, error) 189 190 ExtrasTagsPartialUpdate(params *ExtrasTagsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsPartialUpdateOK, error) 191 192 ExtrasTagsRead(params *ExtrasTagsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsReadOK, error) 193 194 ExtrasTagsUpdate(params *ExtrasTagsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsUpdateOK, error) 195 196 ExtrasWebhooksBulkDelete(params *ExtrasWebhooksBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksBulkDeleteNoContent, error) 197 198 ExtrasWebhooksBulkPartialUpdate(params *ExtrasWebhooksBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksBulkPartialUpdateOK, error) 199 200 ExtrasWebhooksBulkUpdate(params *ExtrasWebhooksBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksBulkUpdateOK, error) 201 202 ExtrasWebhooksCreate(params *ExtrasWebhooksCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksCreateCreated, error) 203 204 ExtrasWebhooksDelete(params *ExtrasWebhooksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksDeleteNoContent, error) 205 206 ExtrasWebhooksList(params *ExtrasWebhooksListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksListOK, error) 207 208 ExtrasWebhooksPartialUpdate(params *ExtrasWebhooksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksPartialUpdateOK, error) 209 210 ExtrasWebhooksRead(params *ExtrasWebhooksReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksReadOK, error) 211 212 ExtrasWebhooksUpdate(params *ExtrasWebhooksUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksUpdateOK, error) 213 214 SetTransport(transport runtime.ClientTransport) 215 } 216 217 /* 218 ExtrasConfigContextsBulkDelete extras config contexts bulk delete API 219 */ 220 func (a *Client) ExtrasConfigContextsBulkDelete(params *ExtrasConfigContextsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsBulkDeleteNoContent, error) { 221 // TODO: Validate the params before sending 222 if params == nil { 223 params = NewExtrasConfigContextsBulkDeleteParams() 224 } 225 op := &runtime.ClientOperation{ 226 ID: "extras_config-contexts_bulk_delete", 227 Method: "DELETE", 228 PathPattern: "/extras/config-contexts/", 229 ProducesMediaTypes: []string{"application/json"}, 230 ConsumesMediaTypes: []string{"application/json"}, 231 Schemes: []string{"http"}, 232 Params: params, 233 Reader: &ExtrasConfigContextsBulkDeleteReader{formats: a.formats}, 234 AuthInfo: authInfo, 235 Context: params.Context, 236 Client: params.HTTPClient, 237 } 238 for _, opt := range opts { 239 opt(op) 240 } 241 242 result, err := a.transport.Submit(op) 243 if err != nil { 244 return nil, err 245 } 246 success, ok := result.(*ExtrasConfigContextsBulkDeleteNoContent) 247 if ok { 248 return success, nil 249 } 250 // unexpected success response 251 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 252 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 253 panic(msg) 254 } 255 256 /* 257 ExtrasConfigContextsBulkPartialUpdate extras config contexts bulk partial update API 258 */ 259 func (a *Client) ExtrasConfigContextsBulkPartialUpdate(params *ExtrasConfigContextsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsBulkPartialUpdateOK, error) { 260 // TODO: Validate the params before sending 261 if params == nil { 262 params = NewExtrasConfigContextsBulkPartialUpdateParams() 263 } 264 op := &runtime.ClientOperation{ 265 ID: "extras_config-contexts_bulk_partial_update", 266 Method: "PATCH", 267 PathPattern: "/extras/config-contexts/", 268 ProducesMediaTypes: []string{"application/json"}, 269 ConsumesMediaTypes: []string{"application/json"}, 270 Schemes: []string{"http"}, 271 Params: params, 272 Reader: &ExtrasConfigContextsBulkPartialUpdateReader{formats: a.formats}, 273 AuthInfo: authInfo, 274 Context: params.Context, 275 Client: params.HTTPClient, 276 } 277 for _, opt := range opts { 278 opt(op) 279 } 280 281 result, err := a.transport.Submit(op) 282 if err != nil { 283 return nil, err 284 } 285 success, ok := result.(*ExtrasConfigContextsBulkPartialUpdateOK) 286 if ok { 287 return success, nil 288 } 289 // unexpected success response 290 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 291 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 292 panic(msg) 293 } 294 295 /* 296 ExtrasConfigContextsBulkUpdate extras config contexts bulk update API 297 */ 298 func (a *Client) ExtrasConfigContextsBulkUpdate(params *ExtrasConfigContextsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsBulkUpdateOK, error) { 299 // TODO: Validate the params before sending 300 if params == nil { 301 params = NewExtrasConfigContextsBulkUpdateParams() 302 } 303 op := &runtime.ClientOperation{ 304 ID: "extras_config-contexts_bulk_update", 305 Method: "PUT", 306 PathPattern: "/extras/config-contexts/", 307 ProducesMediaTypes: []string{"application/json"}, 308 ConsumesMediaTypes: []string{"application/json"}, 309 Schemes: []string{"http"}, 310 Params: params, 311 Reader: &ExtrasConfigContextsBulkUpdateReader{formats: a.formats}, 312 AuthInfo: authInfo, 313 Context: params.Context, 314 Client: params.HTTPClient, 315 } 316 for _, opt := range opts { 317 opt(op) 318 } 319 320 result, err := a.transport.Submit(op) 321 if err != nil { 322 return nil, err 323 } 324 success, ok := result.(*ExtrasConfigContextsBulkUpdateOK) 325 if ok { 326 return success, nil 327 } 328 // unexpected success response 329 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 330 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 331 panic(msg) 332 } 333 334 /* 335 ExtrasConfigContextsCreate extras config contexts create API 336 */ 337 func (a *Client) ExtrasConfigContextsCreate(params *ExtrasConfigContextsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsCreateCreated, error) { 338 // TODO: Validate the params before sending 339 if params == nil { 340 params = NewExtrasConfigContextsCreateParams() 341 } 342 op := &runtime.ClientOperation{ 343 ID: "extras_config-contexts_create", 344 Method: "POST", 345 PathPattern: "/extras/config-contexts/", 346 ProducesMediaTypes: []string{"application/json"}, 347 ConsumesMediaTypes: []string{"application/json"}, 348 Schemes: []string{"http"}, 349 Params: params, 350 Reader: &ExtrasConfigContextsCreateReader{formats: a.formats}, 351 AuthInfo: authInfo, 352 Context: params.Context, 353 Client: params.HTTPClient, 354 } 355 for _, opt := range opts { 356 opt(op) 357 } 358 359 result, err := a.transport.Submit(op) 360 if err != nil { 361 return nil, err 362 } 363 success, ok := result.(*ExtrasConfigContextsCreateCreated) 364 if ok { 365 return success, nil 366 } 367 // unexpected success response 368 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 369 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 370 panic(msg) 371 } 372 373 /* 374 ExtrasConfigContextsDelete extras config contexts delete API 375 */ 376 func (a *Client) ExtrasConfigContextsDelete(params *ExtrasConfigContextsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsDeleteNoContent, error) { 377 // TODO: Validate the params before sending 378 if params == nil { 379 params = NewExtrasConfigContextsDeleteParams() 380 } 381 op := &runtime.ClientOperation{ 382 ID: "extras_config-contexts_delete", 383 Method: "DELETE", 384 PathPattern: "/extras/config-contexts/{id}/", 385 ProducesMediaTypes: []string{"application/json"}, 386 ConsumesMediaTypes: []string{"application/json"}, 387 Schemes: []string{"http"}, 388 Params: params, 389 Reader: &ExtrasConfigContextsDeleteReader{formats: a.formats}, 390 AuthInfo: authInfo, 391 Context: params.Context, 392 Client: params.HTTPClient, 393 } 394 for _, opt := range opts { 395 opt(op) 396 } 397 398 result, err := a.transport.Submit(op) 399 if err != nil { 400 return nil, err 401 } 402 success, ok := result.(*ExtrasConfigContextsDeleteNoContent) 403 if ok { 404 return success, nil 405 } 406 // unexpected success response 407 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 408 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 409 panic(msg) 410 } 411 412 /* 413 ExtrasConfigContextsList extras config contexts list API 414 */ 415 func (a *Client) ExtrasConfigContextsList(params *ExtrasConfigContextsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsListOK, error) { 416 // TODO: Validate the params before sending 417 if params == nil { 418 params = NewExtrasConfigContextsListParams() 419 } 420 op := &runtime.ClientOperation{ 421 ID: "extras_config-contexts_list", 422 Method: "GET", 423 PathPattern: "/extras/config-contexts/", 424 ProducesMediaTypes: []string{"application/json"}, 425 ConsumesMediaTypes: []string{"application/json"}, 426 Schemes: []string{"http"}, 427 Params: params, 428 Reader: &ExtrasConfigContextsListReader{formats: a.formats}, 429 AuthInfo: authInfo, 430 Context: params.Context, 431 Client: params.HTTPClient, 432 } 433 for _, opt := range opts { 434 opt(op) 435 } 436 437 result, err := a.transport.Submit(op) 438 if err != nil { 439 return nil, err 440 } 441 success, ok := result.(*ExtrasConfigContextsListOK) 442 if ok { 443 return success, nil 444 } 445 // unexpected success response 446 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 447 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 448 panic(msg) 449 } 450 451 /* 452 ExtrasConfigContextsPartialUpdate extras config contexts partial update API 453 */ 454 func (a *Client) ExtrasConfigContextsPartialUpdate(params *ExtrasConfigContextsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsPartialUpdateOK, error) { 455 // TODO: Validate the params before sending 456 if params == nil { 457 params = NewExtrasConfigContextsPartialUpdateParams() 458 } 459 op := &runtime.ClientOperation{ 460 ID: "extras_config-contexts_partial_update", 461 Method: "PATCH", 462 PathPattern: "/extras/config-contexts/{id}/", 463 ProducesMediaTypes: []string{"application/json"}, 464 ConsumesMediaTypes: []string{"application/json"}, 465 Schemes: []string{"http"}, 466 Params: params, 467 Reader: &ExtrasConfigContextsPartialUpdateReader{formats: a.formats}, 468 AuthInfo: authInfo, 469 Context: params.Context, 470 Client: params.HTTPClient, 471 } 472 for _, opt := range opts { 473 opt(op) 474 } 475 476 result, err := a.transport.Submit(op) 477 if err != nil { 478 return nil, err 479 } 480 success, ok := result.(*ExtrasConfigContextsPartialUpdateOK) 481 if ok { 482 return success, nil 483 } 484 // unexpected success response 485 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 486 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 487 panic(msg) 488 } 489 490 /* 491 ExtrasConfigContextsRead extras config contexts read API 492 */ 493 func (a *Client) ExtrasConfigContextsRead(params *ExtrasConfigContextsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsReadOK, error) { 494 // TODO: Validate the params before sending 495 if params == nil { 496 params = NewExtrasConfigContextsReadParams() 497 } 498 op := &runtime.ClientOperation{ 499 ID: "extras_config-contexts_read", 500 Method: "GET", 501 PathPattern: "/extras/config-contexts/{id}/", 502 ProducesMediaTypes: []string{"application/json"}, 503 ConsumesMediaTypes: []string{"application/json"}, 504 Schemes: []string{"http"}, 505 Params: params, 506 Reader: &ExtrasConfigContextsReadReader{formats: a.formats}, 507 AuthInfo: authInfo, 508 Context: params.Context, 509 Client: params.HTTPClient, 510 } 511 for _, opt := range opts { 512 opt(op) 513 } 514 515 result, err := a.transport.Submit(op) 516 if err != nil { 517 return nil, err 518 } 519 success, ok := result.(*ExtrasConfigContextsReadOK) 520 if ok { 521 return success, nil 522 } 523 // unexpected success response 524 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 525 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 526 panic(msg) 527 } 528 529 /* 530 ExtrasConfigContextsUpdate extras config contexts update API 531 */ 532 func (a *Client) ExtrasConfigContextsUpdate(params *ExtrasConfigContextsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasConfigContextsUpdateOK, error) { 533 // TODO: Validate the params before sending 534 if params == nil { 535 params = NewExtrasConfigContextsUpdateParams() 536 } 537 op := &runtime.ClientOperation{ 538 ID: "extras_config-contexts_update", 539 Method: "PUT", 540 PathPattern: "/extras/config-contexts/{id}/", 541 ProducesMediaTypes: []string{"application/json"}, 542 ConsumesMediaTypes: []string{"application/json"}, 543 Schemes: []string{"http"}, 544 Params: params, 545 Reader: &ExtrasConfigContextsUpdateReader{formats: a.formats}, 546 AuthInfo: authInfo, 547 Context: params.Context, 548 Client: params.HTTPClient, 549 } 550 for _, opt := range opts { 551 opt(op) 552 } 553 554 result, err := a.transport.Submit(op) 555 if err != nil { 556 return nil, err 557 } 558 success, ok := result.(*ExtrasConfigContextsUpdateOK) 559 if ok { 560 return success, nil 561 } 562 // unexpected success response 563 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 564 msg := fmt.Sprintf("unexpected success response for extras_config-contexts_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 565 panic(msg) 566 } 567 568 /* 569 ExtrasContentTypesList Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. 570 */ 571 func (a *Client) ExtrasContentTypesList(params *ExtrasContentTypesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasContentTypesListOK, error) { 572 // TODO: Validate the params before sending 573 if params == nil { 574 params = NewExtrasContentTypesListParams() 575 } 576 op := &runtime.ClientOperation{ 577 ID: "extras_content-types_list", 578 Method: "GET", 579 PathPattern: "/extras/content-types/", 580 ProducesMediaTypes: []string{"application/json"}, 581 ConsumesMediaTypes: []string{"application/json"}, 582 Schemes: []string{"http"}, 583 Params: params, 584 Reader: &ExtrasContentTypesListReader{formats: a.formats}, 585 AuthInfo: authInfo, 586 Context: params.Context, 587 Client: params.HTTPClient, 588 } 589 for _, opt := range opts { 590 opt(op) 591 } 592 593 result, err := a.transport.Submit(op) 594 if err != nil { 595 return nil, err 596 } 597 success, ok := result.(*ExtrasContentTypesListOK) 598 if ok { 599 return success, nil 600 } 601 // unexpected success response 602 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 603 msg := fmt.Sprintf("unexpected success response for extras_content-types_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 604 panic(msg) 605 } 606 607 /* 608 ExtrasContentTypesRead Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. 609 */ 610 func (a *Client) ExtrasContentTypesRead(params *ExtrasContentTypesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasContentTypesReadOK, error) { 611 // TODO: Validate the params before sending 612 if params == nil { 613 params = NewExtrasContentTypesReadParams() 614 } 615 op := &runtime.ClientOperation{ 616 ID: "extras_content-types_read", 617 Method: "GET", 618 PathPattern: "/extras/content-types/{id}/", 619 ProducesMediaTypes: []string{"application/json"}, 620 ConsumesMediaTypes: []string{"application/json"}, 621 Schemes: []string{"http"}, 622 Params: params, 623 Reader: &ExtrasContentTypesReadReader{formats: a.formats}, 624 AuthInfo: authInfo, 625 Context: params.Context, 626 Client: params.HTTPClient, 627 } 628 for _, opt := range opts { 629 opt(op) 630 } 631 632 result, err := a.transport.Submit(op) 633 if err != nil { 634 return nil, err 635 } 636 success, ok := result.(*ExtrasContentTypesReadOK) 637 if ok { 638 return success, nil 639 } 640 // unexpected success response 641 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 642 msg := fmt.Sprintf("unexpected success response for extras_content-types_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 643 panic(msg) 644 } 645 646 /* 647 ExtrasCustomFieldsBulkDelete extras custom fields bulk delete API 648 */ 649 func (a *Client) ExtrasCustomFieldsBulkDelete(params *ExtrasCustomFieldsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsBulkDeleteNoContent, error) { 650 // TODO: Validate the params before sending 651 if params == nil { 652 params = NewExtrasCustomFieldsBulkDeleteParams() 653 } 654 op := &runtime.ClientOperation{ 655 ID: "extras_custom-fields_bulk_delete", 656 Method: "DELETE", 657 PathPattern: "/extras/custom-fields/", 658 ProducesMediaTypes: []string{"application/json"}, 659 ConsumesMediaTypes: []string{"application/json"}, 660 Schemes: []string{"http"}, 661 Params: params, 662 Reader: &ExtrasCustomFieldsBulkDeleteReader{formats: a.formats}, 663 AuthInfo: authInfo, 664 Context: params.Context, 665 Client: params.HTTPClient, 666 } 667 for _, opt := range opts { 668 opt(op) 669 } 670 671 result, err := a.transport.Submit(op) 672 if err != nil { 673 return nil, err 674 } 675 success, ok := result.(*ExtrasCustomFieldsBulkDeleteNoContent) 676 if ok { 677 return success, nil 678 } 679 // unexpected success response 680 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 681 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 682 panic(msg) 683 } 684 685 /* 686 ExtrasCustomFieldsBulkPartialUpdate extras custom fields bulk partial update API 687 */ 688 func (a *Client) ExtrasCustomFieldsBulkPartialUpdate(params *ExtrasCustomFieldsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsBulkPartialUpdateOK, error) { 689 // TODO: Validate the params before sending 690 if params == nil { 691 params = NewExtrasCustomFieldsBulkPartialUpdateParams() 692 } 693 op := &runtime.ClientOperation{ 694 ID: "extras_custom-fields_bulk_partial_update", 695 Method: "PATCH", 696 PathPattern: "/extras/custom-fields/", 697 ProducesMediaTypes: []string{"application/json"}, 698 ConsumesMediaTypes: []string{"application/json"}, 699 Schemes: []string{"http"}, 700 Params: params, 701 Reader: &ExtrasCustomFieldsBulkPartialUpdateReader{formats: a.formats}, 702 AuthInfo: authInfo, 703 Context: params.Context, 704 Client: params.HTTPClient, 705 } 706 for _, opt := range opts { 707 opt(op) 708 } 709 710 result, err := a.transport.Submit(op) 711 if err != nil { 712 return nil, err 713 } 714 success, ok := result.(*ExtrasCustomFieldsBulkPartialUpdateOK) 715 if ok { 716 return success, nil 717 } 718 // unexpected success response 719 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 720 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 721 panic(msg) 722 } 723 724 /* 725 ExtrasCustomFieldsBulkUpdate extras custom fields bulk update API 726 */ 727 func (a *Client) ExtrasCustomFieldsBulkUpdate(params *ExtrasCustomFieldsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsBulkUpdateOK, error) { 728 // TODO: Validate the params before sending 729 if params == nil { 730 params = NewExtrasCustomFieldsBulkUpdateParams() 731 } 732 op := &runtime.ClientOperation{ 733 ID: "extras_custom-fields_bulk_update", 734 Method: "PUT", 735 PathPattern: "/extras/custom-fields/", 736 ProducesMediaTypes: []string{"application/json"}, 737 ConsumesMediaTypes: []string{"application/json"}, 738 Schemes: []string{"http"}, 739 Params: params, 740 Reader: &ExtrasCustomFieldsBulkUpdateReader{formats: a.formats}, 741 AuthInfo: authInfo, 742 Context: params.Context, 743 Client: params.HTTPClient, 744 } 745 for _, opt := range opts { 746 opt(op) 747 } 748 749 result, err := a.transport.Submit(op) 750 if err != nil { 751 return nil, err 752 } 753 success, ok := result.(*ExtrasCustomFieldsBulkUpdateOK) 754 if ok { 755 return success, nil 756 } 757 // unexpected success response 758 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 759 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 760 panic(msg) 761 } 762 763 /* 764 ExtrasCustomFieldsCreate extras custom fields create API 765 */ 766 func (a *Client) ExtrasCustomFieldsCreate(params *ExtrasCustomFieldsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsCreateCreated, error) { 767 // TODO: Validate the params before sending 768 if params == nil { 769 params = NewExtrasCustomFieldsCreateParams() 770 } 771 op := &runtime.ClientOperation{ 772 ID: "extras_custom-fields_create", 773 Method: "POST", 774 PathPattern: "/extras/custom-fields/", 775 ProducesMediaTypes: []string{"application/json"}, 776 ConsumesMediaTypes: []string{"application/json"}, 777 Schemes: []string{"http"}, 778 Params: params, 779 Reader: &ExtrasCustomFieldsCreateReader{formats: a.formats}, 780 AuthInfo: authInfo, 781 Context: params.Context, 782 Client: params.HTTPClient, 783 } 784 for _, opt := range opts { 785 opt(op) 786 } 787 788 result, err := a.transport.Submit(op) 789 if err != nil { 790 return nil, err 791 } 792 success, ok := result.(*ExtrasCustomFieldsCreateCreated) 793 if ok { 794 return success, nil 795 } 796 // unexpected success response 797 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 798 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 799 panic(msg) 800 } 801 802 /* 803 ExtrasCustomFieldsDelete extras custom fields delete API 804 */ 805 func (a *Client) ExtrasCustomFieldsDelete(params *ExtrasCustomFieldsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsDeleteNoContent, error) { 806 // TODO: Validate the params before sending 807 if params == nil { 808 params = NewExtrasCustomFieldsDeleteParams() 809 } 810 op := &runtime.ClientOperation{ 811 ID: "extras_custom-fields_delete", 812 Method: "DELETE", 813 PathPattern: "/extras/custom-fields/{id}/", 814 ProducesMediaTypes: []string{"application/json"}, 815 ConsumesMediaTypes: []string{"application/json"}, 816 Schemes: []string{"http"}, 817 Params: params, 818 Reader: &ExtrasCustomFieldsDeleteReader{formats: a.formats}, 819 AuthInfo: authInfo, 820 Context: params.Context, 821 Client: params.HTTPClient, 822 } 823 for _, opt := range opts { 824 opt(op) 825 } 826 827 result, err := a.transport.Submit(op) 828 if err != nil { 829 return nil, err 830 } 831 success, ok := result.(*ExtrasCustomFieldsDeleteNoContent) 832 if ok { 833 return success, nil 834 } 835 // unexpected success response 836 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 837 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 838 panic(msg) 839 } 840 841 /* 842 ExtrasCustomFieldsList extras custom fields list API 843 */ 844 func (a *Client) ExtrasCustomFieldsList(params *ExtrasCustomFieldsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsListOK, error) { 845 // TODO: Validate the params before sending 846 if params == nil { 847 params = NewExtrasCustomFieldsListParams() 848 } 849 op := &runtime.ClientOperation{ 850 ID: "extras_custom-fields_list", 851 Method: "GET", 852 PathPattern: "/extras/custom-fields/", 853 ProducesMediaTypes: []string{"application/json"}, 854 ConsumesMediaTypes: []string{"application/json"}, 855 Schemes: []string{"http"}, 856 Params: params, 857 Reader: &ExtrasCustomFieldsListReader{formats: a.formats}, 858 AuthInfo: authInfo, 859 Context: params.Context, 860 Client: params.HTTPClient, 861 } 862 for _, opt := range opts { 863 opt(op) 864 } 865 866 result, err := a.transport.Submit(op) 867 if err != nil { 868 return nil, err 869 } 870 success, ok := result.(*ExtrasCustomFieldsListOK) 871 if ok { 872 return success, nil 873 } 874 // unexpected success response 875 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 876 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 877 panic(msg) 878 } 879 880 /* 881 ExtrasCustomFieldsPartialUpdate extras custom fields partial update API 882 */ 883 func (a *Client) ExtrasCustomFieldsPartialUpdate(params *ExtrasCustomFieldsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsPartialUpdateOK, error) { 884 // TODO: Validate the params before sending 885 if params == nil { 886 params = NewExtrasCustomFieldsPartialUpdateParams() 887 } 888 op := &runtime.ClientOperation{ 889 ID: "extras_custom-fields_partial_update", 890 Method: "PATCH", 891 PathPattern: "/extras/custom-fields/{id}/", 892 ProducesMediaTypes: []string{"application/json"}, 893 ConsumesMediaTypes: []string{"application/json"}, 894 Schemes: []string{"http"}, 895 Params: params, 896 Reader: &ExtrasCustomFieldsPartialUpdateReader{formats: a.formats}, 897 AuthInfo: authInfo, 898 Context: params.Context, 899 Client: params.HTTPClient, 900 } 901 for _, opt := range opts { 902 opt(op) 903 } 904 905 result, err := a.transport.Submit(op) 906 if err != nil { 907 return nil, err 908 } 909 success, ok := result.(*ExtrasCustomFieldsPartialUpdateOK) 910 if ok { 911 return success, nil 912 } 913 // unexpected success response 914 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 915 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 916 panic(msg) 917 } 918 919 /* 920 ExtrasCustomFieldsRead extras custom fields read API 921 */ 922 func (a *Client) ExtrasCustomFieldsRead(params *ExtrasCustomFieldsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsReadOK, error) { 923 // TODO: Validate the params before sending 924 if params == nil { 925 params = NewExtrasCustomFieldsReadParams() 926 } 927 op := &runtime.ClientOperation{ 928 ID: "extras_custom-fields_read", 929 Method: "GET", 930 PathPattern: "/extras/custom-fields/{id}/", 931 ProducesMediaTypes: []string{"application/json"}, 932 ConsumesMediaTypes: []string{"application/json"}, 933 Schemes: []string{"http"}, 934 Params: params, 935 Reader: &ExtrasCustomFieldsReadReader{formats: a.formats}, 936 AuthInfo: authInfo, 937 Context: params.Context, 938 Client: params.HTTPClient, 939 } 940 for _, opt := range opts { 941 opt(op) 942 } 943 944 result, err := a.transport.Submit(op) 945 if err != nil { 946 return nil, err 947 } 948 success, ok := result.(*ExtrasCustomFieldsReadOK) 949 if ok { 950 return success, nil 951 } 952 // unexpected success response 953 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 954 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 955 panic(msg) 956 } 957 958 /* 959 ExtrasCustomFieldsUpdate extras custom fields update API 960 */ 961 func (a *Client) ExtrasCustomFieldsUpdate(params *ExtrasCustomFieldsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomFieldsUpdateOK, error) { 962 // TODO: Validate the params before sending 963 if params == nil { 964 params = NewExtrasCustomFieldsUpdateParams() 965 } 966 op := &runtime.ClientOperation{ 967 ID: "extras_custom-fields_update", 968 Method: "PUT", 969 PathPattern: "/extras/custom-fields/{id}/", 970 ProducesMediaTypes: []string{"application/json"}, 971 ConsumesMediaTypes: []string{"application/json"}, 972 Schemes: []string{"http"}, 973 Params: params, 974 Reader: &ExtrasCustomFieldsUpdateReader{formats: a.formats}, 975 AuthInfo: authInfo, 976 Context: params.Context, 977 Client: params.HTTPClient, 978 } 979 for _, opt := range opts { 980 opt(op) 981 } 982 983 result, err := a.transport.Submit(op) 984 if err != nil { 985 return nil, err 986 } 987 success, ok := result.(*ExtrasCustomFieldsUpdateOK) 988 if ok { 989 return success, nil 990 } 991 // unexpected success response 992 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 993 msg := fmt.Sprintf("unexpected success response for extras_custom-fields_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 994 panic(msg) 995 } 996 997 /* 998 ExtrasCustomLinksBulkDelete extras custom links bulk delete API 999 */ 1000 func (a *Client) ExtrasCustomLinksBulkDelete(params *ExtrasCustomLinksBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksBulkDeleteNoContent, error) { 1001 // TODO: Validate the params before sending 1002 if params == nil { 1003 params = NewExtrasCustomLinksBulkDeleteParams() 1004 } 1005 op := &runtime.ClientOperation{ 1006 ID: "extras_custom-links_bulk_delete", 1007 Method: "DELETE", 1008 PathPattern: "/extras/custom-links/", 1009 ProducesMediaTypes: []string{"application/json"}, 1010 ConsumesMediaTypes: []string{"application/json"}, 1011 Schemes: []string{"http"}, 1012 Params: params, 1013 Reader: &ExtrasCustomLinksBulkDeleteReader{formats: a.formats}, 1014 AuthInfo: authInfo, 1015 Context: params.Context, 1016 Client: params.HTTPClient, 1017 } 1018 for _, opt := range opts { 1019 opt(op) 1020 } 1021 1022 result, err := a.transport.Submit(op) 1023 if err != nil { 1024 return nil, err 1025 } 1026 success, ok := result.(*ExtrasCustomLinksBulkDeleteNoContent) 1027 if ok { 1028 return success, nil 1029 } 1030 // unexpected success response 1031 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1032 msg := fmt.Sprintf("unexpected success response for extras_custom-links_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1033 panic(msg) 1034 } 1035 1036 /* 1037 ExtrasCustomLinksBulkPartialUpdate extras custom links bulk partial update API 1038 */ 1039 func (a *Client) ExtrasCustomLinksBulkPartialUpdate(params *ExtrasCustomLinksBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksBulkPartialUpdateOK, error) { 1040 // TODO: Validate the params before sending 1041 if params == nil { 1042 params = NewExtrasCustomLinksBulkPartialUpdateParams() 1043 } 1044 op := &runtime.ClientOperation{ 1045 ID: "extras_custom-links_bulk_partial_update", 1046 Method: "PATCH", 1047 PathPattern: "/extras/custom-links/", 1048 ProducesMediaTypes: []string{"application/json"}, 1049 ConsumesMediaTypes: []string{"application/json"}, 1050 Schemes: []string{"http"}, 1051 Params: params, 1052 Reader: &ExtrasCustomLinksBulkPartialUpdateReader{formats: a.formats}, 1053 AuthInfo: authInfo, 1054 Context: params.Context, 1055 Client: params.HTTPClient, 1056 } 1057 for _, opt := range opts { 1058 opt(op) 1059 } 1060 1061 result, err := a.transport.Submit(op) 1062 if err != nil { 1063 return nil, err 1064 } 1065 success, ok := result.(*ExtrasCustomLinksBulkPartialUpdateOK) 1066 if ok { 1067 return success, nil 1068 } 1069 // unexpected success response 1070 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1071 msg := fmt.Sprintf("unexpected success response for extras_custom-links_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1072 panic(msg) 1073 } 1074 1075 /* 1076 ExtrasCustomLinksBulkUpdate extras custom links bulk update API 1077 */ 1078 func (a *Client) ExtrasCustomLinksBulkUpdate(params *ExtrasCustomLinksBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksBulkUpdateOK, error) { 1079 // TODO: Validate the params before sending 1080 if params == nil { 1081 params = NewExtrasCustomLinksBulkUpdateParams() 1082 } 1083 op := &runtime.ClientOperation{ 1084 ID: "extras_custom-links_bulk_update", 1085 Method: "PUT", 1086 PathPattern: "/extras/custom-links/", 1087 ProducesMediaTypes: []string{"application/json"}, 1088 ConsumesMediaTypes: []string{"application/json"}, 1089 Schemes: []string{"http"}, 1090 Params: params, 1091 Reader: &ExtrasCustomLinksBulkUpdateReader{formats: a.formats}, 1092 AuthInfo: authInfo, 1093 Context: params.Context, 1094 Client: params.HTTPClient, 1095 } 1096 for _, opt := range opts { 1097 opt(op) 1098 } 1099 1100 result, err := a.transport.Submit(op) 1101 if err != nil { 1102 return nil, err 1103 } 1104 success, ok := result.(*ExtrasCustomLinksBulkUpdateOK) 1105 if ok { 1106 return success, nil 1107 } 1108 // unexpected success response 1109 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1110 msg := fmt.Sprintf("unexpected success response for extras_custom-links_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1111 panic(msg) 1112 } 1113 1114 /* 1115 ExtrasCustomLinksCreate extras custom links create API 1116 */ 1117 func (a *Client) ExtrasCustomLinksCreate(params *ExtrasCustomLinksCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksCreateCreated, error) { 1118 // TODO: Validate the params before sending 1119 if params == nil { 1120 params = NewExtrasCustomLinksCreateParams() 1121 } 1122 op := &runtime.ClientOperation{ 1123 ID: "extras_custom-links_create", 1124 Method: "POST", 1125 PathPattern: "/extras/custom-links/", 1126 ProducesMediaTypes: []string{"application/json"}, 1127 ConsumesMediaTypes: []string{"application/json"}, 1128 Schemes: []string{"http"}, 1129 Params: params, 1130 Reader: &ExtrasCustomLinksCreateReader{formats: a.formats}, 1131 AuthInfo: authInfo, 1132 Context: params.Context, 1133 Client: params.HTTPClient, 1134 } 1135 for _, opt := range opts { 1136 opt(op) 1137 } 1138 1139 result, err := a.transport.Submit(op) 1140 if err != nil { 1141 return nil, err 1142 } 1143 success, ok := result.(*ExtrasCustomLinksCreateCreated) 1144 if ok { 1145 return success, nil 1146 } 1147 // unexpected success response 1148 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1149 msg := fmt.Sprintf("unexpected success response for extras_custom-links_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1150 panic(msg) 1151 } 1152 1153 /* 1154 ExtrasCustomLinksDelete extras custom links delete API 1155 */ 1156 func (a *Client) ExtrasCustomLinksDelete(params *ExtrasCustomLinksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksDeleteNoContent, error) { 1157 // TODO: Validate the params before sending 1158 if params == nil { 1159 params = NewExtrasCustomLinksDeleteParams() 1160 } 1161 op := &runtime.ClientOperation{ 1162 ID: "extras_custom-links_delete", 1163 Method: "DELETE", 1164 PathPattern: "/extras/custom-links/{id}/", 1165 ProducesMediaTypes: []string{"application/json"}, 1166 ConsumesMediaTypes: []string{"application/json"}, 1167 Schemes: []string{"http"}, 1168 Params: params, 1169 Reader: &ExtrasCustomLinksDeleteReader{formats: a.formats}, 1170 AuthInfo: authInfo, 1171 Context: params.Context, 1172 Client: params.HTTPClient, 1173 } 1174 for _, opt := range opts { 1175 opt(op) 1176 } 1177 1178 result, err := a.transport.Submit(op) 1179 if err != nil { 1180 return nil, err 1181 } 1182 success, ok := result.(*ExtrasCustomLinksDeleteNoContent) 1183 if ok { 1184 return success, nil 1185 } 1186 // unexpected success response 1187 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1188 msg := fmt.Sprintf("unexpected success response for extras_custom-links_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1189 panic(msg) 1190 } 1191 1192 /* 1193 ExtrasCustomLinksList extras custom links list API 1194 */ 1195 func (a *Client) ExtrasCustomLinksList(params *ExtrasCustomLinksListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksListOK, error) { 1196 // TODO: Validate the params before sending 1197 if params == nil { 1198 params = NewExtrasCustomLinksListParams() 1199 } 1200 op := &runtime.ClientOperation{ 1201 ID: "extras_custom-links_list", 1202 Method: "GET", 1203 PathPattern: "/extras/custom-links/", 1204 ProducesMediaTypes: []string{"application/json"}, 1205 ConsumesMediaTypes: []string{"application/json"}, 1206 Schemes: []string{"http"}, 1207 Params: params, 1208 Reader: &ExtrasCustomLinksListReader{formats: a.formats}, 1209 AuthInfo: authInfo, 1210 Context: params.Context, 1211 Client: params.HTTPClient, 1212 } 1213 for _, opt := range opts { 1214 opt(op) 1215 } 1216 1217 result, err := a.transport.Submit(op) 1218 if err != nil { 1219 return nil, err 1220 } 1221 success, ok := result.(*ExtrasCustomLinksListOK) 1222 if ok { 1223 return success, nil 1224 } 1225 // unexpected success response 1226 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1227 msg := fmt.Sprintf("unexpected success response for extras_custom-links_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1228 panic(msg) 1229 } 1230 1231 /* 1232 ExtrasCustomLinksPartialUpdate extras custom links partial update API 1233 */ 1234 func (a *Client) ExtrasCustomLinksPartialUpdate(params *ExtrasCustomLinksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksPartialUpdateOK, error) { 1235 // TODO: Validate the params before sending 1236 if params == nil { 1237 params = NewExtrasCustomLinksPartialUpdateParams() 1238 } 1239 op := &runtime.ClientOperation{ 1240 ID: "extras_custom-links_partial_update", 1241 Method: "PATCH", 1242 PathPattern: "/extras/custom-links/{id}/", 1243 ProducesMediaTypes: []string{"application/json"}, 1244 ConsumesMediaTypes: []string{"application/json"}, 1245 Schemes: []string{"http"}, 1246 Params: params, 1247 Reader: &ExtrasCustomLinksPartialUpdateReader{formats: a.formats}, 1248 AuthInfo: authInfo, 1249 Context: params.Context, 1250 Client: params.HTTPClient, 1251 } 1252 for _, opt := range opts { 1253 opt(op) 1254 } 1255 1256 result, err := a.transport.Submit(op) 1257 if err != nil { 1258 return nil, err 1259 } 1260 success, ok := result.(*ExtrasCustomLinksPartialUpdateOK) 1261 if ok { 1262 return success, nil 1263 } 1264 // unexpected success response 1265 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1266 msg := fmt.Sprintf("unexpected success response for extras_custom-links_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1267 panic(msg) 1268 } 1269 1270 /* 1271 ExtrasCustomLinksRead extras custom links read API 1272 */ 1273 func (a *Client) ExtrasCustomLinksRead(params *ExtrasCustomLinksReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksReadOK, error) { 1274 // TODO: Validate the params before sending 1275 if params == nil { 1276 params = NewExtrasCustomLinksReadParams() 1277 } 1278 op := &runtime.ClientOperation{ 1279 ID: "extras_custom-links_read", 1280 Method: "GET", 1281 PathPattern: "/extras/custom-links/{id}/", 1282 ProducesMediaTypes: []string{"application/json"}, 1283 ConsumesMediaTypes: []string{"application/json"}, 1284 Schemes: []string{"http"}, 1285 Params: params, 1286 Reader: &ExtrasCustomLinksReadReader{formats: a.formats}, 1287 AuthInfo: authInfo, 1288 Context: params.Context, 1289 Client: params.HTTPClient, 1290 } 1291 for _, opt := range opts { 1292 opt(op) 1293 } 1294 1295 result, err := a.transport.Submit(op) 1296 if err != nil { 1297 return nil, err 1298 } 1299 success, ok := result.(*ExtrasCustomLinksReadOK) 1300 if ok { 1301 return success, nil 1302 } 1303 // unexpected success response 1304 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1305 msg := fmt.Sprintf("unexpected success response for extras_custom-links_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1306 panic(msg) 1307 } 1308 1309 /* 1310 ExtrasCustomLinksUpdate extras custom links update API 1311 */ 1312 func (a *Client) ExtrasCustomLinksUpdate(params *ExtrasCustomLinksUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasCustomLinksUpdateOK, error) { 1313 // TODO: Validate the params before sending 1314 if params == nil { 1315 params = NewExtrasCustomLinksUpdateParams() 1316 } 1317 op := &runtime.ClientOperation{ 1318 ID: "extras_custom-links_update", 1319 Method: "PUT", 1320 PathPattern: "/extras/custom-links/{id}/", 1321 ProducesMediaTypes: []string{"application/json"}, 1322 ConsumesMediaTypes: []string{"application/json"}, 1323 Schemes: []string{"http"}, 1324 Params: params, 1325 Reader: &ExtrasCustomLinksUpdateReader{formats: a.formats}, 1326 AuthInfo: authInfo, 1327 Context: params.Context, 1328 Client: params.HTTPClient, 1329 } 1330 for _, opt := range opts { 1331 opt(op) 1332 } 1333 1334 result, err := a.transport.Submit(op) 1335 if err != nil { 1336 return nil, err 1337 } 1338 success, ok := result.(*ExtrasCustomLinksUpdateOK) 1339 if ok { 1340 return success, nil 1341 } 1342 // unexpected success response 1343 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1344 msg := fmt.Sprintf("unexpected success response for extras_custom-links_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1345 panic(msg) 1346 } 1347 1348 /* 1349 ExtrasExportTemplatesBulkDelete extras export templates bulk delete API 1350 */ 1351 func (a *Client) ExtrasExportTemplatesBulkDelete(params *ExtrasExportTemplatesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesBulkDeleteNoContent, error) { 1352 // TODO: Validate the params before sending 1353 if params == nil { 1354 params = NewExtrasExportTemplatesBulkDeleteParams() 1355 } 1356 op := &runtime.ClientOperation{ 1357 ID: "extras_export-templates_bulk_delete", 1358 Method: "DELETE", 1359 PathPattern: "/extras/export-templates/", 1360 ProducesMediaTypes: []string{"application/json"}, 1361 ConsumesMediaTypes: []string{"application/json"}, 1362 Schemes: []string{"http"}, 1363 Params: params, 1364 Reader: &ExtrasExportTemplatesBulkDeleteReader{formats: a.formats}, 1365 AuthInfo: authInfo, 1366 Context: params.Context, 1367 Client: params.HTTPClient, 1368 } 1369 for _, opt := range opts { 1370 opt(op) 1371 } 1372 1373 result, err := a.transport.Submit(op) 1374 if err != nil { 1375 return nil, err 1376 } 1377 success, ok := result.(*ExtrasExportTemplatesBulkDeleteNoContent) 1378 if ok { 1379 return success, nil 1380 } 1381 // unexpected success response 1382 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1383 msg := fmt.Sprintf("unexpected success response for extras_export-templates_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1384 panic(msg) 1385 } 1386 1387 /* 1388 ExtrasExportTemplatesBulkPartialUpdate extras export templates bulk partial update API 1389 */ 1390 func (a *Client) ExtrasExportTemplatesBulkPartialUpdate(params *ExtrasExportTemplatesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesBulkPartialUpdateOK, error) { 1391 // TODO: Validate the params before sending 1392 if params == nil { 1393 params = NewExtrasExportTemplatesBulkPartialUpdateParams() 1394 } 1395 op := &runtime.ClientOperation{ 1396 ID: "extras_export-templates_bulk_partial_update", 1397 Method: "PATCH", 1398 PathPattern: "/extras/export-templates/", 1399 ProducesMediaTypes: []string{"application/json"}, 1400 ConsumesMediaTypes: []string{"application/json"}, 1401 Schemes: []string{"http"}, 1402 Params: params, 1403 Reader: &ExtrasExportTemplatesBulkPartialUpdateReader{formats: a.formats}, 1404 AuthInfo: authInfo, 1405 Context: params.Context, 1406 Client: params.HTTPClient, 1407 } 1408 for _, opt := range opts { 1409 opt(op) 1410 } 1411 1412 result, err := a.transport.Submit(op) 1413 if err != nil { 1414 return nil, err 1415 } 1416 success, ok := result.(*ExtrasExportTemplatesBulkPartialUpdateOK) 1417 if ok { 1418 return success, nil 1419 } 1420 // unexpected success response 1421 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1422 msg := fmt.Sprintf("unexpected success response for extras_export-templates_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1423 panic(msg) 1424 } 1425 1426 /* 1427 ExtrasExportTemplatesBulkUpdate extras export templates bulk update API 1428 */ 1429 func (a *Client) ExtrasExportTemplatesBulkUpdate(params *ExtrasExportTemplatesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesBulkUpdateOK, error) { 1430 // TODO: Validate the params before sending 1431 if params == nil { 1432 params = NewExtrasExportTemplatesBulkUpdateParams() 1433 } 1434 op := &runtime.ClientOperation{ 1435 ID: "extras_export-templates_bulk_update", 1436 Method: "PUT", 1437 PathPattern: "/extras/export-templates/", 1438 ProducesMediaTypes: []string{"application/json"}, 1439 ConsumesMediaTypes: []string{"application/json"}, 1440 Schemes: []string{"http"}, 1441 Params: params, 1442 Reader: &ExtrasExportTemplatesBulkUpdateReader{formats: a.formats}, 1443 AuthInfo: authInfo, 1444 Context: params.Context, 1445 Client: params.HTTPClient, 1446 } 1447 for _, opt := range opts { 1448 opt(op) 1449 } 1450 1451 result, err := a.transport.Submit(op) 1452 if err != nil { 1453 return nil, err 1454 } 1455 success, ok := result.(*ExtrasExportTemplatesBulkUpdateOK) 1456 if ok { 1457 return success, nil 1458 } 1459 // unexpected success response 1460 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1461 msg := fmt.Sprintf("unexpected success response for extras_export-templates_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1462 panic(msg) 1463 } 1464 1465 /* 1466 ExtrasExportTemplatesCreate extras export templates create API 1467 */ 1468 func (a *Client) ExtrasExportTemplatesCreate(params *ExtrasExportTemplatesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesCreateCreated, error) { 1469 // TODO: Validate the params before sending 1470 if params == nil { 1471 params = NewExtrasExportTemplatesCreateParams() 1472 } 1473 op := &runtime.ClientOperation{ 1474 ID: "extras_export-templates_create", 1475 Method: "POST", 1476 PathPattern: "/extras/export-templates/", 1477 ProducesMediaTypes: []string{"application/json"}, 1478 ConsumesMediaTypes: []string{"application/json"}, 1479 Schemes: []string{"http"}, 1480 Params: params, 1481 Reader: &ExtrasExportTemplatesCreateReader{formats: a.formats}, 1482 AuthInfo: authInfo, 1483 Context: params.Context, 1484 Client: params.HTTPClient, 1485 } 1486 for _, opt := range opts { 1487 opt(op) 1488 } 1489 1490 result, err := a.transport.Submit(op) 1491 if err != nil { 1492 return nil, err 1493 } 1494 success, ok := result.(*ExtrasExportTemplatesCreateCreated) 1495 if ok { 1496 return success, nil 1497 } 1498 // unexpected success response 1499 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1500 msg := fmt.Sprintf("unexpected success response for extras_export-templates_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1501 panic(msg) 1502 } 1503 1504 /* 1505 ExtrasExportTemplatesDelete extras export templates delete API 1506 */ 1507 func (a *Client) ExtrasExportTemplatesDelete(params *ExtrasExportTemplatesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesDeleteNoContent, error) { 1508 // TODO: Validate the params before sending 1509 if params == nil { 1510 params = NewExtrasExportTemplatesDeleteParams() 1511 } 1512 op := &runtime.ClientOperation{ 1513 ID: "extras_export-templates_delete", 1514 Method: "DELETE", 1515 PathPattern: "/extras/export-templates/{id}/", 1516 ProducesMediaTypes: []string{"application/json"}, 1517 ConsumesMediaTypes: []string{"application/json"}, 1518 Schemes: []string{"http"}, 1519 Params: params, 1520 Reader: &ExtrasExportTemplatesDeleteReader{formats: a.formats}, 1521 AuthInfo: authInfo, 1522 Context: params.Context, 1523 Client: params.HTTPClient, 1524 } 1525 for _, opt := range opts { 1526 opt(op) 1527 } 1528 1529 result, err := a.transport.Submit(op) 1530 if err != nil { 1531 return nil, err 1532 } 1533 success, ok := result.(*ExtrasExportTemplatesDeleteNoContent) 1534 if ok { 1535 return success, nil 1536 } 1537 // unexpected success response 1538 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1539 msg := fmt.Sprintf("unexpected success response for extras_export-templates_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1540 panic(msg) 1541 } 1542 1543 /* 1544 ExtrasExportTemplatesList extras export templates list API 1545 */ 1546 func (a *Client) ExtrasExportTemplatesList(params *ExtrasExportTemplatesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesListOK, error) { 1547 // TODO: Validate the params before sending 1548 if params == nil { 1549 params = NewExtrasExportTemplatesListParams() 1550 } 1551 op := &runtime.ClientOperation{ 1552 ID: "extras_export-templates_list", 1553 Method: "GET", 1554 PathPattern: "/extras/export-templates/", 1555 ProducesMediaTypes: []string{"application/json"}, 1556 ConsumesMediaTypes: []string{"application/json"}, 1557 Schemes: []string{"http"}, 1558 Params: params, 1559 Reader: &ExtrasExportTemplatesListReader{formats: a.formats}, 1560 AuthInfo: authInfo, 1561 Context: params.Context, 1562 Client: params.HTTPClient, 1563 } 1564 for _, opt := range opts { 1565 opt(op) 1566 } 1567 1568 result, err := a.transport.Submit(op) 1569 if err != nil { 1570 return nil, err 1571 } 1572 success, ok := result.(*ExtrasExportTemplatesListOK) 1573 if ok { 1574 return success, nil 1575 } 1576 // unexpected success response 1577 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1578 msg := fmt.Sprintf("unexpected success response for extras_export-templates_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1579 panic(msg) 1580 } 1581 1582 /* 1583 ExtrasExportTemplatesPartialUpdate extras export templates partial update API 1584 */ 1585 func (a *Client) ExtrasExportTemplatesPartialUpdate(params *ExtrasExportTemplatesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesPartialUpdateOK, error) { 1586 // TODO: Validate the params before sending 1587 if params == nil { 1588 params = NewExtrasExportTemplatesPartialUpdateParams() 1589 } 1590 op := &runtime.ClientOperation{ 1591 ID: "extras_export-templates_partial_update", 1592 Method: "PATCH", 1593 PathPattern: "/extras/export-templates/{id}/", 1594 ProducesMediaTypes: []string{"application/json"}, 1595 ConsumesMediaTypes: []string{"application/json"}, 1596 Schemes: []string{"http"}, 1597 Params: params, 1598 Reader: &ExtrasExportTemplatesPartialUpdateReader{formats: a.formats}, 1599 AuthInfo: authInfo, 1600 Context: params.Context, 1601 Client: params.HTTPClient, 1602 } 1603 for _, opt := range opts { 1604 opt(op) 1605 } 1606 1607 result, err := a.transport.Submit(op) 1608 if err != nil { 1609 return nil, err 1610 } 1611 success, ok := result.(*ExtrasExportTemplatesPartialUpdateOK) 1612 if ok { 1613 return success, nil 1614 } 1615 // unexpected success response 1616 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1617 msg := fmt.Sprintf("unexpected success response for extras_export-templates_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1618 panic(msg) 1619 } 1620 1621 /* 1622 ExtrasExportTemplatesRead extras export templates read API 1623 */ 1624 func (a *Client) ExtrasExportTemplatesRead(params *ExtrasExportTemplatesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesReadOK, error) { 1625 // TODO: Validate the params before sending 1626 if params == nil { 1627 params = NewExtrasExportTemplatesReadParams() 1628 } 1629 op := &runtime.ClientOperation{ 1630 ID: "extras_export-templates_read", 1631 Method: "GET", 1632 PathPattern: "/extras/export-templates/{id}/", 1633 ProducesMediaTypes: []string{"application/json"}, 1634 ConsumesMediaTypes: []string{"application/json"}, 1635 Schemes: []string{"http"}, 1636 Params: params, 1637 Reader: &ExtrasExportTemplatesReadReader{formats: a.formats}, 1638 AuthInfo: authInfo, 1639 Context: params.Context, 1640 Client: params.HTTPClient, 1641 } 1642 for _, opt := range opts { 1643 opt(op) 1644 } 1645 1646 result, err := a.transport.Submit(op) 1647 if err != nil { 1648 return nil, err 1649 } 1650 success, ok := result.(*ExtrasExportTemplatesReadOK) 1651 if ok { 1652 return success, nil 1653 } 1654 // unexpected success response 1655 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1656 msg := fmt.Sprintf("unexpected success response for extras_export-templates_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1657 panic(msg) 1658 } 1659 1660 /* 1661 ExtrasExportTemplatesUpdate extras export templates update API 1662 */ 1663 func (a *Client) ExtrasExportTemplatesUpdate(params *ExtrasExportTemplatesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasExportTemplatesUpdateOK, error) { 1664 // TODO: Validate the params before sending 1665 if params == nil { 1666 params = NewExtrasExportTemplatesUpdateParams() 1667 } 1668 op := &runtime.ClientOperation{ 1669 ID: "extras_export-templates_update", 1670 Method: "PUT", 1671 PathPattern: "/extras/export-templates/{id}/", 1672 ProducesMediaTypes: []string{"application/json"}, 1673 ConsumesMediaTypes: []string{"application/json"}, 1674 Schemes: []string{"http"}, 1675 Params: params, 1676 Reader: &ExtrasExportTemplatesUpdateReader{formats: a.formats}, 1677 AuthInfo: authInfo, 1678 Context: params.Context, 1679 Client: params.HTTPClient, 1680 } 1681 for _, opt := range opts { 1682 opt(op) 1683 } 1684 1685 result, err := a.transport.Submit(op) 1686 if err != nil { 1687 return nil, err 1688 } 1689 success, ok := result.(*ExtrasExportTemplatesUpdateOK) 1690 if ok { 1691 return success, nil 1692 } 1693 // unexpected success response 1694 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1695 msg := fmt.Sprintf("unexpected success response for extras_export-templates_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1696 panic(msg) 1697 } 1698 1699 /* 1700 ExtrasImageAttachmentsBulkDelete extras image attachments bulk delete API 1701 */ 1702 func (a *Client) ExtrasImageAttachmentsBulkDelete(params *ExtrasImageAttachmentsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsBulkDeleteNoContent, error) { 1703 // TODO: Validate the params before sending 1704 if params == nil { 1705 params = NewExtrasImageAttachmentsBulkDeleteParams() 1706 } 1707 op := &runtime.ClientOperation{ 1708 ID: "extras_image-attachments_bulk_delete", 1709 Method: "DELETE", 1710 PathPattern: "/extras/image-attachments/", 1711 ProducesMediaTypes: []string{"application/json"}, 1712 ConsumesMediaTypes: []string{"application/json"}, 1713 Schemes: []string{"http"}, 1714 Params: params, 1715 Reader: &ExtrasImageAttachmentsBulkDeleteReader{formats: a.formats}, 1716 AuthInfo: authInfo, 1717 Context: params.Context, 1718 Client: params.HTTPClient, 1719 } 1720 for _, opt := range opts { 1721 opt(op) 1722 } 1723 1724 result, err := a.transport.Submit(op) 1725 if err != nil { 1726 return nil, err 1727 } 1728 success, ok := result.(*ExtrasImageAttachmentsBulkDeleteNoContent) 1729 if ok { 1730 return success, nil 1731 } 1732 // unexpected success response 1733 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1734 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1735 panic(msg) 1736 } 1737 1738 /* 1739 ExtrasImageAttachmentsBulkPartialUpdate extras image attachments bulk partial update API 1740 */ 1741 func (a *Client) ExtrasImageAttachmentsBulkPartialUpdate(params *ExtrasImageAttachmentsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsBulkPartialUpdateOK, error) { 1742 // TODO: Validate the params before sending 1743 if params == nil { 1744 params = NewExtrasImageAttachmentsBulkPartialUpdateParams() 1745 } 1746 op := &runtime.ClientOperation{ 1747 ID: "extras_image-attachments_bulk_partial_update", 1748 Method: "PATCH", 1749 PathPattern: "/extras/image-attachments/", 1750 ProducesMediaTypes: []string{"application/json"}, 1751 ConsumesMediaTypes: []string{"application/json"}, 1752 Schemes: []string{"http"}, 1753 Params: params, 1754 Reader: &ExtrasImageAttachmentsBulkPartialUpdateReader{formats: a.formats}, 1755 AuthInfo: authInfo, 1756 Context: params.Context, 1757 Client: params.HTTPClient, 1758 } 1759 for _, opt := range opts { 1760 opt(op) 1761 } 1762 1763 result, err := a.transport.Submit(op) 1764 if err != nil { 1765 return nil, err 1766 } 1767 success, ok := result.(*ExtrasImageAttachmentsBulkPartialUpdateOK) 1768 if ok { 1769 return success, nil 1770 } 1771 // unexpected success response 1772 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1773 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1774 panic(msg) 1775 } 1776 1777 /* 1778 ExtrasImageAttachmentsBulkUpdate extras image attachments bulk update API 1779 */ 1780 func (a *Client) ExtrasImageAttachmentsBulkUpdate(params *ExtrasImageAttachmentsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsBulkUpdateOK, error) { 1781 // TODO: Validate the params before sending 1782 if params == nil { 1783 params = NewExtrasImageAttachmentsBulkUpdateParams() 1784 } 1785 op := &runtime.ClientOperation{ 1786 ID: "extras_image-attachments_bulk_update", 1787 Method: "PUT", 1788 PathPattern: "/extras/image-attachments/", 1789 ProducesMediaTypes: []string{"application/json"}, 1790 ConsumesMediaTypes: []string{"application/json"}, 1791 Schemes: []string{"http"}, 1792 Params: params, 1793 Reader: &ExtrasImageAttachmentsBulkUpdateReader{formats: a.formats}, 1794 AuthInfo: authInfo, 1795 Context: params.Context, 1796 Client: params.HTTPClient, 1797 } 1798 for _, opt := range opts { 1799 opt(op) 1800 } 1801 1802 result, err := a.transport.Submit(op) 1803 if err != nil { 1804 return nil, err 1805 } 1806 success, ok := result.(*ExtrasImageAttachmentsBulkUpdateOK) 1807 if ok { 1808 return success, nil 1809 } 1810 // unexpected success response 1811 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1812 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1813 panic(msg) 1814 } 1815 1816 /* 1817 ExtrasImageAttachmentsCreate extras image attachments create API 1818 */ 1819 func (a *Client) ExtrasImageAttachmentsCreate(params *ExtrasImageAttachmentsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsCreateCreated, error) { 1820 // TODO: Validate the params before sending 1821 if params == nil { 1822 params = NewExtrasImageAttachmentsCreateParams() 1823 } 1824 op := &runtime.ClientOperation{ 1825 ID: "extras_image-attachments_create", 1826 Method: "POST", 1827 PathPattern: "/extras/image-attachments/", 1828 ProducesMediaTypes: []string{"application/json"}, 1829 ConsumesMediaTypes: []string{"application/json"}, 1830 Schemes: []string{"http"}, 1831 Params: params, 1832 Reader: &ExtrasImageAttachmentsCreateReader{formats: a.formats}, 1833 AuthInfo: authInfo, 1834 Context: params.Context, 1835 Client: params.HTTPClient, 1836 } 1837 for _, opt := range opts { 1838 opt(op) 1839 } 1840 1841 result, err := a.transport.Submit(op) 1842 if err != nil { 1843 return nil, err 1844 } 1845 success, ok := result.(*ExtrasImageAttachmentsCreateCreated) 1846 if ok { 1847 return success, nil 1848 } 1849 // unexpected success response 1850 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1851 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1852 panic(msg) 1853 } 1854 1855 /* 1856 ExtrasImageAttachmentsDelete extras image attachments delete API 1857 */ 1858 func (a *Client) ExtrasImageAttachmentsDelete(params *ExtrasImageAttachmentsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsDeleteNoContent, error) { 1859 // TODO: Validate the params before sending 1860 if params == nil { 1861 params = NewExtrasImageAttachmentsDeleteParams() 1862 } 1863 op := &runtime.ClientOperation{ 1864 ID: "extras_image-attachments_delete", 1865 Method: "DELETE", 1866 PathPattern: "/extras/image-attachments/{id}/", 1867 ProducesMediaTypes: []string{"application/json"}, 1868 ConsumesMediaTypes: []string{"application/json"}, 1869 Schemes: []string{"http"}, 1870 Params: params, 1871 Reader: &ExtrasImageAttachmentsDeleteReader{formats: a.formats}, 1872 AuthInfo: authInfo, 1873 Context: params.Context, 1874 Client: params.HTTPClient, 1875 } 1876 for _, opt := range opts { 1877 opt(op) 1878 } 1879 1880 result, err := a.transport.Submit(op) 1881 if err != nil { 1882 return nil, err 1883 } 1884 success, ok := result.(*ExtrasImageAttachmentsDeleteNoContent) 1885 if ok { 1886 return success, nil 1887 } 1888 // unexpected success response 1889 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1890 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1891 panic(msg) 1892 } 1893 1894 /* 1895 ExtrasImageAttachmentsList extras image attachments list API 1896 */ 1897 func (a *Client) ExtrasImageAttachmentsList(params *ExtrasImageAttachmentsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsListOK, error) { 1898 // TODO: Validate the params before sending 1899 if params == nil { 1900 params = NewExtrasImageAttachmentsListParams() 1901 } 1902 op := &runtime.ClientOperation{ 1903 ID: "extras_image-attachments_list", 1904 Method: "GET", 1905 PathPattern: "/extras/image-attachments/", 1906 ProducesMediaTypes: []string{"application/json"}, 1907 ConsumesMediaTypes: []string{"application/json"}, 1908 Schemes: []string{"http"}, 1909 Params: params, 1910 Reader: &ExtrasImageAttachmentsListReader{formats: a.formats}, 1911 AuthInfo: authInfo, 1912 Context: params.Context, 1913 Client: params.HTTPClient, 1914 } 1915 for _, opt := range opts { 1916 opt(op) 1917 } 1918 1919 result, err := a.transport.Submit(op) 1920 if err != nil { 1921 return nil, err 1922 } 1923 success, ok := result.(*ExtrasImageAttachmentsListOK) 1924 if ok { 1925 return success, nil 1926 } 1927 // unexpected success response 1928 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1929 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1930 panic(msg) 1931 } 1932 1933 /* 1934 ExtrasImageAttachmentsPartialUpdate extras image attachments partial update API 1935 */ 1936 func (a *Client) ExtrasImageAttachmentsPartialUpdate(params *ExtrasImageAttachmentsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsPartialUpdateOK, error) { 1937 // TODO: Validate the params before sending 1938 if params == nil { 1939 params = NewExtrasImageAttachmentsPartialUpdateParams() 1940 } 1941 op := &runtime.ClientOperation{ 1942 ID: "extras_image-attachments_partial_update", 1943 Method: "PATCH", 1944 PathPattern: "/extras/image-attachments/{id}/", 1945 ProducesMediaTypes: []string{"application/json"}, 1946 ConsumesMediaTypes: []string{"application/json"}, 1947 Schemes: []string{"http"}, 1948 Params: params, 1949 Reader: &ExtrasImageAttachmentsPartialUpdateReader{formats: a.formats}, 1950 AuthInfo: authInfo, 1951 Context: params.Context, 1952 Client: params.HTTPClient, 1953 } 1954 for _, opt := range opts { 1955 opt(op) 1956 } 1957 1958 result, err := a.transport.Submit(op) 1959 if err != nil { 1960 return nil, err 1961 } 1962 success, ok := result.(*ExtrasImageAttachmentsPartialUpdateOK) 1963 if ok { 1964 return success, nil 1965 } 1966 // unexpected success response 1967 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 1968 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 1969 panic(msg) 1970 } 1971 1972 /* 1973 ExtrasImageAttachmentsRead extras image attachments read API 1974 */ 1975 func (a *Client) ExtrasImageAttachmentsRead(params *ExtrasImageAttachmentsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsReadOK, error) { 1976 // TODO: Validate the params before sending 1977 if params == nil { 1978 params = NewExtrasImageAttachmentsReadParams() 1979 } 1980 op := &runtime.ClientOperation{ 1981 ID: "extras_image-attachments_read", 1982 Method: "GET", 1983 PathPattern: "/extras/image-attachments/{id}/", 1984 ProducesMediaTypes: []string{"application/json"}, 1985 ConsumesMediaTypes: []string{"application/json"}, 1986 Schemes: []string{"http"}, 1987 Params: params, 1988 Reader: &ExtrasImageAttachmentsReadReader{formats: a.formats}, 1989 AuthInfo: authInfo, 1990 Context: params.Context, 1991 Client: params.HTTPClient, 1992 } 1993 for _, opt := range opts { 1994 opt(op) 1995 } 1996 1997 result, err := a.transport.Submit(op) 1998 if err != nil { 1999 return nil, err 2000 } 2001 success, ok := result.(*ExtrasImageAttachmentsReadOK) 2002 if ok { 2003 return success, nil 2004 } 2005 // unexpected success response 2006 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2007 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2008 panic(msg) 2009 } 2010 2011 /* 2012 ExtrasImageAttachmentsUpdate extras image attachments update API 2013 */ 2014 func (a *Client) ExtrasImageAttachmentsUpdate(params *ExtrasImageAttachmentsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasImageAttachmentsUpdateOK, error) { 2015 // TODO: Validate the params before sending 2016 if params == nil { 2017 params = NewExtrasImageAttachmentsUpdateParams() 2018 } 2019 op := &runtime.ClientOperation{ 2020 ID: "extras_image-attachments_update", 2021 Method: "PUT", 2022 PathPattern: "/extras/image-attachments/{id}/", 2023 ProducesMediaTypes: []string{"application/json"}, 2024 ConsumesMediaTypes: []string{"application/json"}, 2025 Schemes: []string{"http"}, 2026 Params: params, 2027 Reader: &ExtrasImageAttachmentsUpdateReader{formats: a.formats}, 2028 AuthInfo: authInfo, 2029 Context: params.Context, 2030 Client: params.HTTPClient, 2031 } 2032 for _, opt := range opts { 2033 opt(op) 2034 } 2035 2036 result, err := a.transport.Submit(op) 2037 if err != nil { 2038 return nil, err 2039 } 2040 success, ok := result.(*ExtrasImageAttachmentsUpdateOK) 2041 if ok { 2042 return success, nil 2043 } 2044 // unexpected success response 2045 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2046 msg := fmt.Sprintf("unexpected success response for extras_image-attachments_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2047 panic(msg) 2048 } 2049 2050 /* 2051 ExtrasJobResultsList Retrieve a list of job results 2052 */ 2053 func (a *Client) ExtrasJobResultsList(params *ExtrasJobResultsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJobResultsListOK, error) { 2054 // TODO: Validate the params before sending 2055 if params == nil { 2056 params = NewExtrasJobResultsListParams() 2057 } 2058 op := &runtime.ClientOperation{ 2059 ID: "extras_job-results_list", 2060 Method: "GET", 2061 PathPattern: "/extras/job-results/", 2062 ProducesMediaTypes: []string{"application/json"}, 2063 ConsumesMediaTypes: []string{"application/json"}, 2064 Schemes: []string{"http"}, 2065 Params: params, 2066 Reader: &ExtrasJobResultsListReader{formats: a.formats}, 2067 AuthInfo: authInfo, 2068 Context: params.Context, 2069 Client: params.HTTPClient, 2070 } 2071 for _, opt := range opts { 2072 opt(op) 2073 } 2074 2075 result, err := a.transport.Submit(op) 2076 if err != nil { 2077 return nil, err 2078 } 2079 success, ok := result.(*ExtrasJobResultsListOK) 2080 if ok { 2081 return success, nil 2082 } 2083 // unexpected success response 2084 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2085 msg := fmt.Sprintf("unexpected success response for extras_job-results_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2086 panic(msg) 2087 } 2088 2089 /* 2090 ExtrasJobResultsRead Retrieve a list of job results 2091 */ 2092 func (a *Client) ExtrasJobResultsRead(params *ExtrasJobResultsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJobResultsReadOK, error) { 2093 // TODO: Validate the params before sending 2094 if params == nil { 2095 params = NewExtrasJobResultsReadParams() 2096 } 2097 op := &runtime.ClientOperation{ 2098 ID: "extras_job-results_read", 2099 Method: "GET", 2100 PathPattern: "/extras/job-results/{id}/", 2101 ProducesMediaTypes: []string{"application/json"}, 2102 ConsumesMediaTypes: []string{"application/json"}, 2103 Schemes: []string{"http"}, 2104 Params: params, 2105 Reader: &ExtrasJobResultsReadReader{formats: a.formats}, 2106 AuthInfo: authInfo, 2107 Context: params.Context, 2108 Client: params.HTTPClient, 2109 } 2110 for _, opt := range opts { 2111 opt(op) 2112 } 2113 2114 result, err := a.transport.Submit(op) 2115 if err != nil { 2116 return nil, err 2117 } 2118 success, ok := result.(*ExtrasJobResultsReadOK) 2119 if ok { 2120 return success, nil 2121 } 2122 // unexpected success response 2123 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2124 msg := fmt.Sprintf("unexpected success response for extras_job-results_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2125 panic(msg) 2126 } 2127 2128 /* 2129 ExtrasJournalEntriesBulkDelete extras journal entries bulk delete API 2130 */ 2131 func (a *Client) ExtrasJournalEntriesBulkDelete(params *ExtrasJournalEntriesBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesBulkDeleteNoContent, error) { 2132 // TODO: Validate the params before sending 2133 if params == nil { 2134 params = NewExtrasJournalEntriesBulkDeleteParams() 2135 } 2136 op := &runtime.ClientOperation{ 2137 ID: "extras_journal-entries_bulk_delete", 2138 Method: "DELETE", 2139 PathPattern: "/extras/journal-entries/", 2140 ProducesMediaTypes: []string{"application/json"}, 2141 ConsumesMediaTypes: []string{"application/json"}, 2142 Schemes: []string{"http"}, 2143 Params: params, 2144 Reader: &ExtrasJournalEntriesBulkDeleteReader{formats: a.formats}, 2145 AuthInfo: authInfo, 2146 Context: params.Context, 2147 Client: params.HTTPClient, 2148 } 2149 for _, opt := range opts { 2150 opt(op) 2151 } 2152 2153 result, err := a.transport.Submit(op) 2154 if err != nil { 2155 return nil, err 2156 } 2157 success, ok := result.(*ExtrasJournalEntriesBulkDeleteNoContent) 2158 if ok { 2159 return success, nil 2160 } 2161 // unexpected success response 2162 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2163 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2164 panic(msg) 2165 } 2166 2167 /* 2168 ExtrasJournalEntriesBulkPartialUpdate extras journal entries bulk partial update API 2169 */ 2170 func (a *Client) ExtrasJournalEntriesBulkPartialUpdate(params *ExtrasJournalEntriesBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesBulkPartialUpdateOK, error) { 2171 // TODO: Validate the params before sending 2172 if params == nil { 2173 params = NewExtrasJournalEntriesBulkPartialUpdateParams() 2174 } 2175 op := &runtime.ClientOperation{ 2176 ID: "extras_journal-entries_bulk_partial_update", 2177 Method: "PATCH", 2178 PathPattern: "/extras/journal-entries/", 2179 ProducesMediaTypes: []string{"application/json"}, 2180 ConsumesMediaTypes: []string{"application/json"}, 2181 Schemes: []string{"http"}, 2182 Params: params, 2183 Reader: &ExtrasJournalEntriesBulkPartialUpdateReader{formats: a.formats}, 2184 AuthInfo: authInfo, 2185 Context: params.Context, 2186 Client: params.HTTPClient, 2187 } 2188 for _, opt := range opts { 2189 opt(op) 2190 } 2191 2192 result, err := a.transport.Submit(op) 2193 if err != nil { 2194 return nil, err 2195 } 2196 success, ok := result.(*ExtrasJournalEntriesBulkPartialUpdateOK) 2197 if ok { 2198 return success, nil 2199 } 2200 // unexpected success response 2201 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2202 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2203 panic(msg) 2204 } 2205 2206 /* 2207 ExtrasJournalEntriesBulkUpdate extras journal entries bulk update API 2208 */ 2209 func (a *Client) ExtrasJournalEntriesBulkUpdate(params *ExtrasJournalEntriesBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesBulkUpdateOK, error) { 2210 // TODO: Validate the params before sending 2211 if params == nil { 2212 params = NewExtrasJournalEntriesBulkUpdateParams() 2213 } 2214 op := &runtime.ClientOperation{ 2215 ID: "extras_journal-entries_bulk_update", 2216 Method: "PUT", 2217 PathPattern: "/extras/journal-entries/", 2218 ProducesMediaTypes: []string{"application/json"}, 2219 ConsumesMediaTypes: []string{"application/json"}, 2220 Schemes: []string{"http"}, 2221 Params: params, 2222 Reader: &ExtrasJournalEntriesBulkUpdateReader{formats: a.formats}, 2223 AuthInfo: authInfo, 2224 Context: params.Context, 2225 Client: params.HTTPClient, 2226 } 2227 for _, opt := range opts { 2228 opt(op) 2229 } 2230 2231 result, err := a.transport.Submit(op) 2232 if err != nil { 2233 return nil, err 2234 } 2235 success, ok := result.(*ExtrasJournalEntriesBulkUpdateOK) 2236 if ok { 2237 return success, nil 2238 } 2239 // unexpected success response 2240 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2241 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2242 panic(msg) 2243 } 2244 2245 /* 2246 ExtrasJournalEntriesCreate extras journal entries create API 2247 */ 2248 func (a *Client) ExtrasJournalEntriesCreate(params *ExtrasJournalEntriesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesCreateCreated, error) { 2249 // TODO: Validate the params before sending 2250 if params == nil { 2251 params = NewExtrasJournalEntriesCreateParams() 2252 } 2253 op := &runtime.ClientOperation{ 2254 ID: "extras_journal-entries_create", 2255 Method: "POST", 2256 PathPattern: "/extras/journal-entries/", 2257 ProducesMediaTypes: []string{"application/json"}, 2258 ConsumesMediaTypes: []string{"application/json"}, 2259 Schemes: []string{"http"}, 2260 Params: params, 2261 Reader: &ExtrasJournalEntriesCreateReader{formats: a.formats}, 2262 AuthInfo: authInfo, 2263 Context: params.Context, 2264 Client: params.HTTPClient, 2265 } 2266 for _, opt := range opts { 2267 opt(op) 2268 } 2269 2270 result, err := a.transport.Submit(op) 2271 if err != nil { 2272 return nil, err 2273 } 2274 success, ok := result.(*ExtrasJournalEntriesCreateCreated) 2275 if ok { 2276 return success, nil 2277 } 2278 // unexpected success response 2279 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2280 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2281 panic(msg) 2282 } 2283 2284 /* 2285 ExtrasJournalEntriesDelete extras journal entries delete API 2286 */ 2287 func (a *Client) ExtrasJournalEntriesDelete(params *ExtrasJournalEntriesDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesDeleteNoContent, error) { 2288 // TODO: Validate the params before sending 2289 if params == nil { 2290 params = NewExtrasJournalEntriesDeleteParams() 2291 } 2292 op := &runtime.ClientOperation{ 2293 ID: "extras_journal-entries_delete", 2294 Method: "DELETE", 2295 PathPattern: "/extras/journal-entries/{id}/", 2296 ProducesMediaTypes: []string{"application/json"}, 2297 ConsumesMediaTypes: []string{"application/json"}, 2298 Schemes: []string{"http"}, 2299 Params: params, 2300 Reader: &ExtrasJournalEntriesDeleteReader{formats: a.formats}, 2301 AuthInfo: authInfo, 2302 Context: params.Context, 2303 Client: params.HTTPClient, 2304 } 2305 for _, opt := range opts { 2306 opt(op) 2307 } 2308 2309 result, err := a.transport.Submit(op) 2310 if err != nil { 2311 return nil, err 2312 } 2313 success, ok := result.(*ExtrasJournalEntriesDeleteNoContent) 2314 if ok { 2315 return success, nil 2316 } 2317 // unexpected success response 2318 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2319 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2320 panic(msg) 2321 } 2322 2323 /* 2324 ExtrasJournalEntriesList extras journal entries list API 2325 */ 2326 func (a *Client) ExtrasJournalEntriesList(params *ExtrasJournalEntriesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesListOK, error) { 2327 // TODO: Validate the params before sending 2328 if params == nil { 2329 params = NewExtrasJournalEntriesListParams() 2330 } 2331 op := &runtime.ClientOperation{ 2332 ID: "extras_journal-entries_list", 2333 Method: "GET", 2334 PathPattern: "/extras/journal-entries/", 2335 ProducesMediaTypes: []string{"application/json"}, 2336 ConsumesMediaTypes: []string{"application/json"}, 2337 Schemes: []string{"http"}, 2338 Params: params, 2339 Reader: &ExtrasJournalEntriesListReader{formats: a.formats}, 2340 AuthInfo: authInfo, 2341 Context: params.Context, 2342 Client: params.HTTPClient, 2343 } 2344 for _, opt := range opts { 2345 opt(op) 2346 } 2347 2348 result, err := a.transport.Submit(op) 2349 if err != nil { 2350 return nil, err 2351 } 2352 success, ok := result.(*ExtrasJournalEntriesListOK) 2353 if ok { 2354 return success, nil 2355 } 2356 // unexpected success response 2357 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2358 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2359 panic(msg) 2360 } 2361 2362 /* 2363 ExtrasJournalEntriesPartialUpdate extras journal entries partial update API 2364 */ 2365 func (a *Client) ExtrasJournalEntriesPartialUpdate(params *ExtrasJournalEntriesPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesPartialUpdateOK, error) { 2366 // TODO: Validate the params before sending 2367 if params == nil { 2368 params = NewExtrasJournalEntriesPartialUpdateParams() 2369 } 2370 op := &runtime.ClientOperation{ 2371 ID: "extras_journal-entries_partial_update", 2372 Method: "PATCH", 2373 PathPattern: "/extras/journal-entries/{id}/", 2374 ProducesMediaTypes: []string{"application/json"}, 2375 ConsumesMediaTypes: []string{"application/json"}, 2376 Schemes: []string{"http"}, 2377 Params: params, 2378 Reader: &ExtrasJournalEntriesPartialUpdateReader{formats: a.formats}, 2379 AuthInfo: authInfo, 2380 Context: params.Context, 2381 Client: params.HTTPClient, 2382 } 2383 for _, opt := range opts { 2384 opt(op) 2385 } 2386 2387 result, err := a.transport.Submit(op) 2388 if err != nil { 2389 return nil, err 2390 } 2391 success, ok := result.(*ExtrasJournalEntriesPartialUpdateOK) 2392 if ok { 2393 return success, nil 2394 } 2395 // unexpected success response 2396 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2397 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2398 panic(msg) 2399 } 2400 2401 /* 2402 ExtrasJournalEntriesRead extras journal entries read API 2403 */ 2404 func (a *Client) ExtrasJournalEntriesRead(params *ExtrasJournalEntriesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesReadOK, error) { 2405 // TODO: Validate the params before sending 2406 if params == nil { 2407 params = NewExtrasJournalEntriesReadParams() 2408 } 2409 op := &runtime.ClientOperation{ 2410 ID: "extras_journal-entries_read", 2411 Method: "GET", 2412 PathPattern: "/extras/journal-entries/{id}/", 2413 ProducesMediaTypes: []string{"application/json"}, 2414 ConsumesMediaTypes: []string{"application/json"}, 2415 Schemes: []string{"http"}, 2416 Params: params, 2417 Reader: &ExtrasJournalEntriesReadReader{formats: a.formats}, 2418 AuthInfo: authInfo, 2419 Context: params.Context, 2420 Client: params.HTTPClient, 2421 } 2422 for _, opt := range opts { 2423 opt(op) 2424 } 2425 2426 result, err := a.transport.Submit(op) 2427 if err != nil { 2428 return nil, err 2429 } 2430 success, ok := result.(*ExtrasJournalEntriesReadOK) 2431 if ok { 2432 return success, nil 2433 } 2434 // unexpected success response 2435 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2436 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2437 panic(msg) 2438 } 2439 2440 /* 2441 ExtrasJournalEntriesUpdate extras journal entries update API 2442 */ 2443 func (a *Client) ExtrasJournalEntriesUpdate(params *ExtrasJournalEntriesUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasJournalEntriesUpdateOK, error) { 2444 // TODO: Validate the params before sending 2445 if params == nil { 2446 params = NewExtrasJournalEntriesUpdateParams() 2447 } 2448 op := &runtime.ClientOperation{ 2449 ID: "extras_journal-entries_update", 2450 Method: "PUT", 2451 PathPattern: "/extras/journal-entries/{id}/", 2452 ProducesMediaTypes: []string{"application/json"}, 2453 ConsumesMediaTypes: []string{"application/json"}, 2454 Schemes: []string{"http"}, 2455 Params: params, 2456 Reader: &ExtrasJournalEntriesUpdateReader{formats: a.formats}, 2457 AuthInfo: authInfo, 2458 Context: params.Context, 2459 Client: params.HTTPClient, 2460 } 2461 for _, opt := range opts { 2462 opt(op) 2463 } 2464 2465 result, err := a.transport.Submit(op) 2466 if err != nil { 2467 return nil, err 2468 } 2469 success, ok := result.(*ExtrasJournalEntriesUpdateOK) 2470 if ok { 2471 return success, nil 2472 } 2473 // unexpected success response 2474 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2475 msg := fmt.Sprintf("unexpected success response for extras_journal-entries_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2476 panic(msg) 2477 } 2478 2479 /* 2480 ExtrasObjectChangesList Retrieve a list of recent changes. 2481 */ 2482 func (a *Client) ExtrasObjectChangesList(params *ExtrasObjectChangesListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasObjectChangesListOK, error) { 2483 // TODO: Validate the params before sending 2484 if params == nil { 2485 params = NewExtrasObjectChangesListParams() 2486 } 2487 op := &runtime.ClientOperation{ 2488 ID: "extras_object-changes_list", 2489 Method: "GET", 2490 PathPattern: "/extras/object-changes/", 2491 ProducesMediaTypes: []string{"application/json"}, 2492 ConsumesMediaTypes: []string{"application/json"}, 2493 Schemes: []string{"http"}, 2494 Params: params, 2495 Reader: &ExtrasObjectChangesListReader{formats: a.formats}, 2496 AuthInfo: authInfo, 2497 Context: params.Context, 2498 Client: params.HTTPClient, 2499 } 2500 for _, opt := range opts { 2501 opt(op) 2502 } 2503 2504 result, err := a.transport.Submit(op) 2505 if err != nil { 2506 return nil, err 2507 } 2508 success, ok := result.(*ExtrasObjectChangesListOK) 2509 if ok { 2510 return success, nil 2511 } 2512 // unexpected success response 2513 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2514 msg := fmt.Sprintf("unexpected success response for extras_object-changes_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2515 panic(msg) 2516 } 2517 2518 /* 2519 ExtrasObjectChangesRead Retrieve a list of recent changes. 2520 */ 2521 func (a *Client) ExtrasObjectChangesRead(params *ExtrasObjectChangesReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasObjectChangesReadOK, error) { 2522 // TODO: Validate the params before sending 2523 if params == nil { 2524 params = NewExtrasObjectChangesReadParams() 2525 } 2526 op := &runtime.ClientOperation{ 2527 ID: "extras_object-changes_read", 2528 Method: "GET", 2529 PathPattern: "/extras/object-changes/{id}/", 2530 ProducesMediaTypes: []string{"application/json"}, 2531 ConsumesMediaTypes: []string{"application/json"}, 2532 Schemes: []string{"http"}, 2533 Params: params, 2534 Reader: &ExtrasObjectChangesReadReader{formats: a.formats}, 2535 AuthInfo: authInfo, 2536 Context: params.Context, 2537 Client: params.HTTPClient, 2538 } 2539 for _, opt := range opts { 2540 opt(op) 2541 } 2542 2543 result, err := a.transport.Submit(op) 2544 if err != nil { 2545 return nil, err 2546 } 2547 success, ok := result.(*ExtrasObjectChangesReadOK) 2548 if ok { 2549 return success, nil 2550 } 2551 // unexpected success response 2552 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2553 msg := fmt.Sprintf("unexpected success response for extras_object-changes_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2554 panic(msg) 2555 } 2556 2557 /* 2558 ExtrasReportsList Compile all reports and their related results (if any). Result data is deferred in the list view. 2559 */ 2560 func (a *Client) ExtrasReportsList(params *ExtrasReportsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsListOK, error) { 2561 // TODO: Validate the params before sending 2562 if params == nil { 2563 params = NewExtrasReportsListParams() 2564 } 2565 op := &runtime.ClientOperation{ 2566 ID: "extras_reports_list", 2567 Method: "GET", 2568 PathPattern: "/extras/reports/", 2569 ProducesMediaTypes: []string{"application/json"}, 2570 ConsumesMediaTypes: []string{"application/json"}, 2571 Schemes: []string{"http"}, 2572 Params: params, 2573 Reader: &ExtrasReportsListReader{formats: a.formats}, 2574 AuthInfo: authInfo, 2575 Context: params.Context, 2576 Client: params.HTTPClient, 2577 } 2578 for _, opt := range opts { 2579 opt(op) 2580 } 2581 2582 result, err := a.transport.Submit(op) 2583 if err != nil { 2584 return nil, err 2585 } 2586 success, ok := result.(*ExtrasReportsListOK) 2587 if ok { 2588 return success, nil 2589 } 2590 // unexpected success response 2591 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2592 msg := fmt.Sprintf("unexpected success response for extras_reports_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2593 panic(msg) 2594 } 2595 2596 /* 2597 ExtrasReportsRead Retrieve a single Report identified as "<module>.<report>". 2598 */ 2599 func (a *Client) ExtrasReportsRead(params *ExtrasReportsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsReadOK, error) { 2600 // TODO: Validate the params before sending 2601 if params == nil { 2602 params = NewExtrasReportsReadParams() 2603 } 2604 op := &runtime.ClientOperation{ 2605 ID: "extras_reports_read", 2606 Method: "GET", 2607 PathPattern: "/extras/reports/{id}/", 2608 ProducesMediaTypes: []string{"application/json"}, 2609 ConsumesMediaTypes: []string{"application/json"}, 2610 Schemes: []string{"http"}, 2611 Params: params, 2612 Reader: &ExtrasReportsReadReader{formats: a.formats}, 2613 AuthInfo: authInfo, 2614 Context: params.Context, 2615 Client: params.HTTPClient, 2616 } 2617 for _, opt := range opts { 2618 opt(op) 2619 } 2620 2621 result, err := a.transport.Submit(op) 2622 if err != nil { 2623 return nil, err 2624 } 2625 success, ok := result.(*ExtrasReportsReadOK) 2626 if ok { 2627 return success, nil 2628 } 2629 // unexpected success response 2630 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2631 msg := fmt.Sprintf("unexpected success response for extras_reports_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2632 panic(msg) 2633 } 2634 2635 /* 2636 ExtrasReportsRun Run a Report identified as "<module>.<script>" and return the pending JobResult as the result 2637 */ 2638 func (a *Client) ExtrasReportsRun(params *ExtrasReportsRunParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasReportsRunCreated, error) { 2639 // TODO: Validate the params before sending 2640 if params == nil { 2641 params = NewExtrasReportsRunParams() 2642 } 2643 op := &runtime.ClientOperation{ 2644 ID: "extras_reports_run", 2645 Method: "POST", 2646 PathPattern: "/extras/reports/{id}/run/", 2647 ProducesMediaTypes: []string{"application/json"}, 2648 ConsumesMediaTypes: []string{"application/json"}, 2649 Schemes: []string{"http"}, 2650 Params: params, 2651 Reader: &ExtrasReportsRunReader{formats: a.formats}, 2652 AuthInfo: authInfo, 2653 Context: params.Context, 2654 Client: params.HTTPClient, 2655 } 2656 for _, opt := range opts { 2657 opt(op) 2658 } 2659 2660 result, err := a.transport.Submit(op) 2661 if err != nil { 2662 return nil, err 2663 } 2664 success, ok := result.(*ExtrasReportsRunCreated) 2665 if ok { 2666 return success, nil 2667 } 2668 // unexpected success response 2669 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2670 msg := fmt.Sprintf("unexpected success response for extras_reports_run: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2671 panic(msg) 2672 } 2673 2674 /* 2675 ExtrasScriptsList extras scripts list API 2676 */ 2677 func (a *Client) ExtrasScriptsList(params *ExtrasScriptsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasScriptsListOK, error) { 2678 // TODO: Validate the params before sending 2679 if params == nil { 2680 params = NewExtrasScriptsListParams() 2681 } 2682 op := &runtime.ClientOperation{ 2683 ID: "extras_scripts_list", 2684 Method: "GET", 2685 PathPattern: "/extras/scripts/", 2686 ProducesMediaTypes: []string{"application/json"}, 2687 ConsumesMediaTypes: []string{"application/json"}, 2688 Schemes: []string{"http"}, 2689 Params: params, 2690 Reader: &ExtrasScriptsListReader{formats: a.formats}, 2691 AuthInfo: authInfo, 2692 Context: params.Context, 2693 Client: params.HTTPClient, 2694 } 2695 for _, opt := range opts { 2696 opt(op) 2697 } 2698 2699 result, err := a.transport.Submit(op) 2700 if err != nil { 2701 return nil, err 2702 } 2703 success, ok := result.(*ExtrasScriptsListOK) 2704 if ok { 2705 return success, nil 2706 } 2707 // unexpected success response 2708 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2709 msg := fmt.Sprintf("unexpected success response for extras_scripts_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2710 panic(msg) 2711 } 2712 2713 /* 2714 ExtrasScriptsRead extras scripts read API 2715 */ 2716 func (a *Client) ExtrasScriptsRead(params *ExtrasScriptsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasScriptsReadOK, error) { 2717 // TODO: Validate the params before sending 2718 if params == nil { 2719 params = NewExtrasScriptsReadParams() 2720 } 2721 op := &runtime.ClientOperation{ 2722 ID: "extras_scripts_read", 2723 Method: "GET", 2724 PathPattern: "/extras/scripts/{id}/", 2725 ProducesMediaTypes: []string{"application/json"}, 2726 ConsumesMediaTypes: []string{"application/json"}, 2727 Schemes: []string{"http"}, 2728 Params: params, 2729 Reader: &ExtrasScriptsReadReader{formats: a.formats}, 2730 AuthInfo: authInfo, 2731 Context: params.Context, 2732 Client: params.HTTPClient, 2733 } 2734 for _, opt := range opts { 2735 opt(op) 2736 } 2737 2738 result, err := a.transport.Submit(op) 2739 if err != nil { 2740 return nil, err 2741 } 2742 success, ok := result.(*ExtrasScriptsReadOK) 2743 if ok { 2744 return success, nil 2745 } 2746 // unexpected success response 2747 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2748 msg := fmt.Sprintf("unexpected success response for extras_scripts_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2749 panic(msg) 2750 } 2751 2752 /* 2753 ExtrasTagsBulkDelete extras tags bulk delete API 2754 */ 2755 func (a *Client) ExtrasTagsBulkDelete(params *ExtrasTagsBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsBulkDeleteNoContent, error) { 2756 // TODO: Validate the params before sending 2757 if params == nil { 2758 params = NewExtrasTagsBulkDeleteParams() 2759 } 2760 op := &runtime.ClientOperation{ 2761 ID: "extras_tags_bulk_delete", 2762 Method: "DELETE", 2763 PathPattern: "/extras/tags/", 2764 ProducesMediaTypes: []string{"application/json"}, 2765 ConsumesMediaTypes: []string{"application/json"}, 2766 Schemes: []string{"http"}, 2767 Params: params, 2768 Reader: &ExtrasTagsBulkDeleteReader{formats: a.formats}, 2769 AuthInfo: authInfo, 2770 Context: params.Context, 2771 Client: params.HTTPClient, 2772 } 2773 for _, opt := range opts { 2774 opt(op) 2775 } 2776 2777 result, err := a.transport.Submit(op) 2778 if err != nil { 2779 return nil, err 2780 } 2781 success, ok := result.(*ExtrasTagsBulkDeleteNoContent) 2782 if ok { 2783 return success, nil 2784 } 2785 // unexpected success response 2786 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2787 msg := fmt.Sprintf("unexpected success response for extras_tags_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2788 panic(msg) 2789 } 2790 2791 /* 2792 ExtrasTagsBulkPartialUpdate extras tags bulk partial update API 2793 */ 2794 func (a *Client) ExtrasTagsBulkPartialUpdate(params *ExtrasTagsBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsBulkPartialUpdateOK, error) { 2795 // TODO: Validate the params before sending 2796 if params == nil { 2797 params = NewExtrasTagsBulkPartialUpdateParams() 2798 } 2799 op := &runtime.ClientOperation{ 2800 ID: "extras_tags_bulk_partial_update", 2801 Method: "PATCH", 2802 PathPattern: "/extras/tags/", 2803 ProducesMediaTypes: []string{"application/json"}, 2804 ConsumesMediaTypes: []string{"application/json"}, 2805 Schemes: []string{"http"}, 2806 Params: params, 2807 Reader: &ExtrasTagsBulkPartialUpdateReader{formats: a.formats}, 2808 AuthInfo: authInfo, 2809 Context: params.Context, 2810 Client: params.HTTPClient, 2811 } 2812 for _, opt := range opts { 2813 opt(op) 2814 } 2815 2816 result, err := a.transport.Submit(op) 2817 if err != nil { 2818 return nil, err 2819 } 2820 success, ok := result.(*ExtrasTagsBulkPartialUpdateOK) 2821 if ok { 2822 return success, nil 2823 } 2824 // unexpected success response 2825 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2826 msg := fmt.Sprintf("unexpected success response for extras_tags_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2827 panic(msg) 2828 } 2829 2830 /* 2831 ExtrasTagsBulkUpdate extras tags bulk update API 2832 */ 2833 func (a *Client) ExtrasTagsBulkUpdate(params *ExtrasTagsBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsBulkUpdateOK, error) { 2834 // TODO: Validate the params before sending 2835 if params == nil { 2836 params = NewExtrasTagsBulkUpdateParams() 2837 } 2838 op := &runtime.ClientOperation{ 2839 ID: "extras_tags_bulk_update", 2840 Method: "PUT", 2841 PathPattern: "/extras/tags/", 2842 ProducesMediaTypes: []string{"application/json"}, 2843 ConsumesMediaTypes: []string{"application/json"}, 2844 Schemes: []string{"http"}, 2845 Params: params, 2846 Reader: &ExtrasTagsBulkUpdateReader{formats: a.formats}, 2847 AuthInfo: authInfo, 2848 Context: params.Context, 2849 Client: params.HTTPClient, 2850 } 2851 for _, opt := range opts { 2852 opt(op) 2853 } 2854 2855 result, err := a.transport.Submit(op) 2856 if err != nil { 2857 return nil, err 2858 } 2859 success, ok := result.(*ExtrasTagsBulkUpdateOK) 2860 if ok { 2861 return success, nil 2862 } 2863 // unexpected success response 2864 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2865 msg := fmt.Sprintf("unexpected success response for extras_tags_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2866 panic(msg) 2867 } 2868 2869 /* 2870 ExtrasTagsCreate extras tags create API 2871 */ 2872 func (a *Client) ExtrasTagsCreate(params *ExtrasTagsCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsCreateCreated, error) { 2873 // TODO: Validate the params before sending 2874 if params == nil { 2875 params = NewExtrasTagsCreateParams() 2876 } 2877 op := &runtime.ClientOperation{ 2878 ID: "extras_tags_create", 2879 Method: "POST", 2880 PathPattern: "/extras/tags/", 2881 ProducesMediaTypes: []string{"application/json"}, 2882 ConsumesMediaTypes: []string{"application/json"}, 2883 Schemes: []string{"http"}, 2884 Params: params, 2885 Reader: &ExtrasTagsCreateReader{formats: a.formats}, 2886 AuthInfo: authInfo, 2887 Context: params.Context, 2888 Client: params.HTTPClient, 2889 } 2890 for _, opt := range opts { 2891 opt(op) 2892 } 2893 2894 result, err := a.transport.Submit(op) 2895 if err != nil { 2896 return nil, err 2897 } 2898 success, ok := result.(*ExtrasTagsCreateCreated) 2899 if ok { 2900 return success, nil 2901 } 2902 // unexpected success response 2903 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2904 msg := fmt.Sprintf("unexpected success response for extras_tags_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2905 panic(msg) 2906 } 2907 2908 /* 2909 ExtrasTagsDelete extras tags delete API 2910 */ 2911 func (a *Client) ExtrasTagsDelete(params *ExtrasTagsDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsDeleteNoContent, error) { 2912 // TODO: Validate the params before sending 2913 if params == nil { 2914 params = NewExtrasTagsDeleteParams() 2915 } 2916 op := &runtime.ClientOperation{ 2917 ID: "extras_tags_delete", 2918 Method: "DELETE", 2919 PathPattern: "/extras/tags/{id}/", 2920 ProducesMediaTypes: []string{"application/json"}, 2921 ConsumesMediaTypes: []string{"application/json"}, 2922 Schemes: []string{"http"}, 2923 Params: params, 2924 Reader: &ExtrasTagsDeleteReader{formats: a.formats}, 2925 AuthInfo: authInfo, 2926 Context: params.Context, 2927 Client: params.HTTPClient, 2928 } 2929 for _, opt := range opts { 2930 opt(op) 2931 } 2932 2933 result, err := a.transport.Submit(op) 2934 if err != nil { 2935 return nil, err 2936 } 2937 success, ok := result.(*ExtrasTagsDeleteNoContent) 2938 if ok { 2939 return success, nil 2940 } 2941 // unexpected success response 2942 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2943 msg := fmt.Sprintf("unexpected success response for extras_tags_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2944 panic(msg) 2945 } 2946 2947 /* 2948 ExtrasTagsList extras tags list API 2949 */ 2950 func (a *Client) ExtrasTagsList(params *ExtrasTagsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsListOK, error) { 2951 // TODO: Validate the params before sending 2952 if params == nil { 2953 params = NewExtrasTagsListParams() 2954 } 2955 op := &runtime.ClientOperation{ 2956 ID: "extras_tags_list", 2957 Method: "GET", 2958 PathPattern: "/extras/tags/", 2959 ProducesMediaTypes: []string{"application/json"}, 2960 ConsumesMediaTypes: []string{"application/json"}, 2961 Schemes: []string{"http"}, 2962 Params: params, 2963 Reader: &ExtrasTagsListReader{formats: a.formats}, 2964 AuthInfo: authInfo, 2965 Context: params.Context, 2966 Client: params.HTTPClient, 2967 } 2968 for _, opt := range opts { 2969 opt(op) 2970 } 2971 2972 result, err := a.transport.Submit(op) 2973 if err != nil { 2974 return nil, err 2975 } 2976 success, ok := result.(*ExtrasTagsListOK) 2977 if ok { 2978 return success, nil 2979 } 2980 // unexpected success response 2981 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 2982 msg := fmt.Sprintf("unexpected success response for extras_tags_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 2983 panic(msg) 2984 } 2985 2986 /* 2987 ExtrasTagsPartialUpdate extras tags partial update API 2988 */ 2989 func (a *Client) ExtrasTagsPartialUpdate(params *ExtrasTagsPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsPartialUpdateOK, error) { 2990 // TODO: Validate the params before sending 2991 if params == nil { 2992 params = NewExtrasTagsPartialUpdateParams() 2993 } 2994 op := &runtime.ClientOperation{ 2995 ID: "extras_tags_partial_update", 2996 Method: "PATCH", 2997 PathPattern: "/extras/tags/{id}/", 2998 ProducesMediaTypes: []string{"application/json"}, 2999 ConsumesMediaTypes: []string{"application/json"}, 3000 Schemes: []string{"http"}, 3001 Params: params, 3002 Reader: &ExtrasTagsPartialUpdateReader{formats: a.formats}, 3003 AuthInfo: authInfo, 3004 Context: params.Context, 3005 Client: params.HTTPClient, 3006 } 3007 for _, opt := range opts { 3008 opt(op) 3009 } 3010 3011 result, err := a.transport.Submit(op) 3012 if err != nil { 3013 return nil, err 3014 } 3015 success, ok := result.(*ExtrasTagsPartialUpdateOK) 3016 if ok { 3017 return success, nil 3018 } 3019 // unexpected success response 3020 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3021 msg := fmt.Sprintf("unexpected success response for extras_tags_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3022 panic(msg) 3023 } 3024 3025 /* 3026 ExtrasTagsRead extras tags read API 3027 */ 3028 func (a *Client) ExtrasTagsRead(params *ExtrasTagsReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsReadOK, error) { 3029 // TODO: Validate the params before sending 3030 if params == nil { 3031 params = NewExtrasTagsReadParams() 3032 } 3033 op := &runtime.ClientOperation{ 3034 ID: "extras_tags_read", 3035 Method: "GET", 3036 PathPattern: "/extras/tags/{id}/", 3037 ProducesMediaTypes: []string{"application/json"}, 3038 ConsumesMediaTypes: []string{"application/json"}, 3039 Schemes: []string{"http"}, 3040 Params: params, 3041 Reader: &ExtrasTagsReadReader{formats: a.formats}, 3042 AuthInfo: authInfo, 3043 Context: params.Context, 3044 Client: params.HTTPClient, 3045 } 3046 for _, opt := range opts { 3047 opt(op) 3048 } 3049 3050 result, err := a.transport.Submit(op) 3051 if err != nil { 3052 return nil, err 3053 } 3054 success, ok := result.(*ExtrasTagsReadOK) 3055 if ok { 3056 return success, nil 3057 } 3058 // unexpected success response 3059 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3060 msg := fmt.Sprintf("unexpected success response for extras_tags_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3061 panic(msg) 3062 } 3063 3064 /* 3065 ExtrasTagsUpdate extras tags update API 3066 */ 3067 func (a *Client) ExtrasTagsUpdate(params *ExtrasTagsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasTagsUpdateOK, error) { 3068 // TODO: Validate the params before sending 3069 if params == nil { 3070 params = NewExtrasTagsUpdateParams() 3071 } 3072 op := &runtime.ClientOperation{ 3073 ID: "extras_tags_update", 3074 Method: "PUT", 3075 PathPattern: "/extras/tags/{id}/", 3076 ProducesMediaTypes: []string{"application/json"}, 3077 ConsumesMediaTypes: []string{"application/json"}, 3078 Schemes: []string{"http"}, 3079 Params: params, 3080 Reader: &ExtrasTagsUpdateReader{formats: a.formats}, 3081 AuthInfo: authInfo, 3082 Context: params.Context, 3083 Client: params.HTTPClient, 3084 } 3085 for _, opt := range opts { 3086 opt(op) 3087 } 3088 3089 result, err := a.transport.Submit(op) 3090 if err != nil { 3091 return nil, err 3092 } 3093 success, ok := result.(*ExtrasTagsUpdateOK) 3094 if ok { 3095 return success, nil 3096 } 3097 // unexpected success response 3098 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3099 msg := fmt.Sprintf("unexpected success response for extras_tags_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3100 panic(msg) 3101 } 3102 3103 /* 3104 ExtrasWebhooksBulkDelete extras webhooks bulk delete API 3105 */ 3106 func (a *Client) ExtrasWebhooksBulkDelete(params *ExtrasWebhooksBulkDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksBulkDeleteNoContent, error) { 3107 // TODO: Validate the params before sending 3108 if params == nil { 3109 params = NewExtrasWebhooksBulkDeleteParams() 3110 } 3111 op := &runtime.ClientOperation{ 3112 ID: "extras_webhooks_bulk_delete", 3113 Method: "DELETE", 3114 PathPattern: "/extras/webhooks/", 3115 ProducesMediaTypes: []string{"application/json"}, 3116 ConsumesMediaTypes: []string{"application/json"}, 3117 Schemes: []string{"http"}, 3118 Params: params, 3119 Reader: &ExtrasWebhooksBulkDeleteReader{formats: a.formats}, 3120 AuthInfo: authInfo, 3121 Context: params.Context, 3122 Client: params.HTTPClient, 3123 } 3124 for _, opt := range opts { 3125 opt(op) 3126 } 3127 3128 result, err := a.transport.Submit(op) 3129 if err != nil { 3130 return nil, err 3131 } 3132 success, ok := result.(*ExtrasWebhooksBulkDeleteNoContent) 3133 if ok { 3134 return success, nil 3135 } 3136 // unexpected success response 3137 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3138 msg := fmt.Sprintf("unexpected success response for extras_webhooks_bulk_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3139 panic(msg) 3140 } 3141 3142 /* 3143 ExtrasWebhooksBulkPartialUpdate extras webhooks bulk partial update API 3144 */ 3145 func (a *Client) ExtrasWebhooksBulkPartialUpdate(params *ExtrasWebhooksBulkPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksBulkPartialUpdateOK, error) { 3146 // TODO: Validate the params before sending 3147 if params == nil { 3148 params = NewExtrasWebhooksBulkPartialUpdateParams() 3149 } 3150 op := &runtime.ClientOperation{ 3151 ID: "extras_webhooks_bulk_partial_update", 3152 Method: "PATCH", 3153 PathPattern: "/extras/webhooks/", 3154 ProducesMediaTypes: []string{"application/json"}, 3155 ConsumesMediaTypes: []string{"application/json"}, 3156 Schemes: []string{"http"}, 3157 Params: params, 3158 Reader: &ExtrasWebhooksBulkPartialUpdateReader{formats: a.formats}, 3159 AuthInfo: authInfo, 3160 Context: params.Context, 3161 Client: params.HTTPClient, 3162 } 3163 for _, opt := range opts { 3164 opt(op) 3165 } 3166 3167 result, err := a.transport.Submit(op) 3168 if err != nil { 3169 return nil, err 3170 } 3171 success, ok := result.(*ExtrasWebhooksBulkPartialUpdateOK) 3172 if ok { 3173 return success, nil 3174 } 3175 // unexpected success response 3176 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3177 msg := fmt.Sprintf("unexpected success response for extras_webhooks_bulk_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3178 panic(msg) 3179 } 3180 3181 /* 3182 ExtrasWebhooksBulkUpdate extras webhooks bulk update API 3183 */ 3184 func (a *Client) ExtrasWebhooksBulkUpdate(params *ExtrasWebhooksBulkUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksBulkUpdateOK, error) { 3185 // TODO: Validate the params before sending 3186 if params == nil { 3187 params = NewExtrasWebhooksBulkUpdateParams() 3188 } 3189 op := &runtime.ClientOperation{ 3190 ID: "extras_webhooks_bulk_update", 3191 Method: "PUT", 3192 PathPattern: "/extras/webhooks/", 3193 ProducesMediaTypes: []string{"application/json"}, 3194 ConsumesMediaTypes: []string{"application/json"}, 3195 Schemes: []string{"http"}, 3196 Params: params, 3197 Reader: &ExtrasWebhooksBulkUpdateReader{formats: a.formats}, 3198 AuthInfo: authInfo, 3199 Context: params.Context, 3200 Client: params.HTTPClient, 3201 } 3202 for _, opt := range opts { 3203 opt(op) 3204 } 3205 3206 result, err := a.transport.Submit(op) 3207 if err != nil { 3208 return nil, err 3209 } 3210 success, ok := result.(*ExtrasWebhooksBulkUpdateOK) 3211 if ok { 3212 return success, nil 3213 } 3214 // unexpected success response 3215 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3216 msg := fmt.Sprintf("unexpected success response for extras_webhooks_bulk_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3217 panic(msg) 3218 } 3219 3220 /* 3221 ExtrasWebhooksCreate extras webhooks create API 3222 */ 3223 func (a *Client) ExtrasWebhooksCreate(params *ExtrasWebhooksCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksCreateCreated, error) { 3224 // TODO: Validate the params before sending 3225 if params == nil { 3226 params = NewExtrasWebhooksCreateParams() 3227 } 3228 op := &runtime.ClientOperation{ 3229 ID: "extras_webhooks_create", 3230 Method: "POST", 3231 PathPattern: "/extras/webhooks/", 3232 ProducesMediaTypes: []string{"application/json"}, 3233 ConsumesMediaTypes: []string{"application/json"}, 3234 Schemes: []string{"http"}, 3235 Params: params, 3236 Reader: &ExtrasWebhooksCreateReader{formats: a.formats}, 3237 AuthInfo: authInfo, 3238 Context: params.Context, 3239 Client: params.HTTPClient, 3240 } 3241 for _, opt := range opts { 3242 opt(op) 3243 } 3244 3245 result, err := a.transport.Submit(op) 3246 if err != nil { 3247 return nil, err 3248 } 3249 success, ok := result.(*ExtrasWebhooksCreateCreated) 3250 if ok { 3251 return success, nil 3252 } 3253 // unexpected success response 3254 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3255 msg := fmt.Sprintf("unexpected success response for extras_webhooks_create: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3256 panic(msg) 3257 } 3258 3259 /* 3260 ExtrasWebhooksDelete extras webhooks delete API 3261 */ 3262 func (a *Client) ExtrasWebhooksDelete(params *ExtrasWebhooksDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksDeleteNoContent, error) { 3263 // TODO: Validate the params before sending 3264 if params == nil { 3265 params = NewExtrasWebhooksDeleteParams() 3266 } 3267 op := &runtime.ClientOperation{ 3268 ID: "extras_webhooks_delete", 3269 Method: "DELETE", 3270 PathPattern: "/extras/webhooks/{id}/", 3271 ProducesMediaTypes: []string{"application/json"}, 3272 ConsumesMediaTypes: []string{"application/json"}, 3273 Schemes: []string{"http"}, 3274 Params: params, 3275 Reader: &ExtrasWebhooksDeleteReader{formats: a.formats}, 3276 AuthInfo: authInfo, 3277 Context: params.Context, 3278 Client: params.HTTPClient, 3279 } 3280 for _, opt := range opts { 3281 opt(op) 3282 } 3283 3284 result, err := a.transport.Submit(op) 3285 if err != nil { 3286 return nil, err 3287 } 3288 success, ok := result.(*ExtrasWebhooksDeleteNoContent) 3289 if ok { 3290 return success, nil 3291 } 3292 // unexpected success response 3293 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3294 msg := fmt.Sprintf("unexpected success response for extras_webhooks_delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3295 panic(msg) 3296 } 3297 3298 /* 3299 ExtrasWebhooksList extras webhooks list API 3300 */ 3301 func (a *Client) ExtrasWebhooksList(params *ExtrasWebhooksListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksListOK, error) { 3302 // TODO: Validate the params before sending 3303 if params == nil { 3304 params = NewExtrasWebhooksListParams() 3305 } 3306 op := &runtime.ClientOperation{ 3307 ID: "extras_webhooks_list", 3308 Method: "GET", 3309 PathPattern: "/extras/webhooks/", 3310 ProducesMediaTypes: []string{"application/json"}, 3311 ConsumesMediaTypes: []string{"application/json"}, 3312 Schemes: []string{"http"}, 3313 Params: params, 3314 Reader: &ExtrasWebhooksListReader{formats: a.formats}, 3315 AuthInfo: authInfo, 3316 Context: params.Context, 3317 Client: params.HTTPClient, 3318 } 3319 for _, opt := range opts { 3320 opt(op) 3321 } 3322 3323 result, err := a.transport.Submit(op) 3324 if err != nil { 3325 return nil, err 3326 } 3327 success, ok := result.(*ExtrasWebhooksListOK) 3328 if ok { 3329 return success, nil 3330 } 3331 // unexpected success response 3332 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3333 msg := fmt.Sprintf("unexpected success response for extras_webhooks_list: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3334 panic(msg) 3335 } 3336 3337 /* 3338 ExtrasWebhooksPartialUpdate extras webhooks partial update API 3339 */ 3340 func (a *Client) ExtrasWebhooksPartialUpdate(params *ExtrasWebhooksPartialUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksPartialUpdateOK, error) { 3341 // TODO: Validate the params before sending 3342 if params == nil { 3343 params = NewExtrasWebhooksPartialUpdateParams() 3344 } 3345 op := &runtime.ClientOperation{ 3346 ID: "extras_webhooks_partial_update", 3347 Method: "PATCH", 3348 PathPattern: "/extras/webhooks/{id}/", 3349 ProducesMediaTypes: []string{"application/json"}, 3350 ConsumesMediaTypes: []string{"application/json"}, 3351 Schemes: []string{"http"}, 3352 Params: params, 3353 Reader: &ExtrasWebhooksPartialUpdateReader{formats: a.formats}, 3354 AuthInfo: authInfo, 3355 Context: params.Context, 3356 Client: params.HTTPClient, 3357 } 3358 for _, opt := range opts { 3359 opt(op) 3360 } 3361 3362 result, err := a.transport.Submit(op) 3363 if err != nil { 3364 return nil, err 3365 } 3366 success, ok := result.(*ExtrasWebhooksPartialUpdateOK) 3367 if ok { 3368 return success, nil 3369 } 3370 // unexpected success response 3371 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3372 msg := fmt.Sprintf("unexpected success response for extras_webhooks_partial_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3373 panic(msg) 3374 } 3375 3376 /* 3377 ExtrasWebhooksRead extras webhooks read API 3378 */ 3379 func (a *Client) ExtrasWebhooksRead(params *ExtrasWebhooksReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksReadOK, error) { 3380 // TODO: Validate the params before sending 3381 if params == nil { 3382 params = NewExtrasWebhooksReadParams() 3383 } 3384 op := &runtime.ClientOperation{ 3385 ID: "extras_webhooks_read", 3386 Method: "GET", 3387 PathPattern: "/extras/webhooks/{id}/", 3388 ProducesMediaTypes: []string{"application/json"}, 3389 ConsumesMediaTypes: []string{"application/json"}, 3390 Schemes: []string{"http"}, 3391 Params: params, 3392 Reader: &ExtrasWebhooksReadReader{formats: a.formats}, 3393 AuthInfo: authInfo, 3394 Context: params.Context, 3395 Client: params.HTTPClient, 3396 } 3397 for _, opt := range opts { 3398 opt(op) 3399 } 3400 3401 result, err := a.transport.Submit(op) 3402 if err != nil { 3403 return nil, err 3404 } 3405 success, ok := result.(*ExtrasWebhooksReadOK) 3406 if ok { 3407 return success, nil 3408 } 3409 // unexpected success response 3410 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3411 msg := fmt.Sprintf("unexpected success response for extras_webhooks_read: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3412 panic(msg) 3413 } 3414 3415 /* 3416 ExtrasWebhooksUpdate extras webhooks update API 3417 */ 3418 func (a *Client) ExtrasWebhooksUpdate(params *ExtrasWebhooksUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExtrasWebhooksUpdateOK, error) { 3419 // TODO: Validate the params before sending 3420 if params == nil { 3421 params = NewExtrasWebhooksUpdateParams() 3422 } 3423 op := &runtime.ClientOperation{ 3424 ID: "extras_webhooks_update", 3425 Method: "PUT", 3426 PathPattern: "/extras/webhooks/{id}/", 3427 ProducesMediaTypes: []string{"application/json"}, 3428 ConsumesMediaTypes: []string{"application/json"}, 3429 Schemes: []string{"http"}, 3430 Params: params, 3431 Reader: &ExtrasWebhooksUpdateReader{formats: a.formats}, 3432 AuthInfo: authInfo, 3433 Context: params.Context, 3434 Client: params.HTTPClient, 3435 } 3436 for _, opt := range opts { 3437 opt(op) 3438 } 3439 3440 result, err := a.transport.Submit(op) 3441 if err != nil { 3442 return nil, err 3443 } 3444 success, ok := result.(*ExtrasWebhooksUpdateOK) 3445 if ok { 3446 return success, nil 3447 } 3448 // unexpected success response 3449 // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue 3450 msg := fmt.Sprintf("unexpected success response for extras_webhooks_update: API contract not enforced by server. Client expected to get an error, but got: %T", result) 3451 panic(msg) 3452 } 3453 3454 // SetTransport changes the transport on the client 3455 func (a *Client) SetTransport(transport runtime.ClientTransport) { 3456 a.transport = transport 3457 }